-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
asvvvad
committed
May 24, 2020
1 parent
46fe655
commit 398e582
Showing
15 changed files
with
631 additions
and
504 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
vendor/ | ||
composer.phar | ||
mono-only-*.zip | ||
monocolor-*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#! /usr/bin/env php | ||
<?php | ||
# This is the build script for mono/color. | ||
# Yes I could have used bash but I'm more comfortable with PHP scripting | ||
# Plus I can use the CSS minifiers available instead of downloading an executable | ||
# It's relatively easier for contributers as you're not forced to use a new editor like VS Code | ||
# which once I didnt want to use. Most linux distros come with php pre-installed too. | ||
|
||
require './vendor/autoload.php'; | ||
|
||
// the framework version. used for release archives | ||
$version = "1.2"; | ||
|
||
use tubalmartin\CssMin\Minifier as CSSmin; | ||
$compressor = new CSSmin; | ||
|
||
$files = [ "mono", "dark", "light", "color" ]; | ||
|
||
// minify every css file mentioned above and save it with .min.css suffix | ||
echo "Minifying CSS ...\n"; | ||
foreach ($files as $file) { | ||
file_put_contents("$file.min.css", $compressor->run(file_get_contents("$file.css"))); | ||
} | ||
|
||
# combine mono and color into a single css file for better gzipping | ||
echo "Making monocolor.min.css ...\n"; | ||
file_put_contents("monocolor.min.css", file_get_contents("mono.min.css").file_get_contents("color.min.css")); | ||
|
||
# create the release zip files | ||
echo "Creating release archives ...\n"; | ||
`zip mono-only-$version.zip mono.min.css light.min.css dark.min.css template-mono-only.html`; | ||
`zip monocolor-$version.zip mono.min.css light.min.css dark.min.css color.min.css template.html`; | ||
|
||
echo "Done.\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"require": { | ||
"tubalmartin/cssmin": "^4.1" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
/* mono/color v1.1 (https://github.com/asvvvad/mono-color) | ||
by asvvvad (https://asvvvad.eu.org) under the MIT license*/ | ||
/* | ||
mono/color (https://github.com/asvvad/mono-color) | ||
Copyright (c) 2020 asvvvad - MIT License | ||
*/ | ||
|
||
:root { | ||
font-size: 62.5%; | ||
--fg: #aaa; /* forground color */ | ||
--h: #efefef; /* headers color */ | ||
--bg: #000; /* background color */ | ||
--b: #333; /* border color */ | ||
--p: #eee; /* primary color */ | ||
--def: #121212; /* default color */ | ||
--fg: #aaa; | ||
--h: #efefef; | ||
--bg: #000; | ||
--b: #333; | ||
--p: #eee; | ||
--def: #121212 | ||
} |
Oops, something went wrong.