Skip to content

Commit

Permalink
v1.2 Many fixes and improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
asvvvad committed May 24, 2020
1 parent 46fe655 commit 398e582
Show file tree
Hide file tree
Showing 15 changed files with 631 additions and 504 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
vendor/
composer.phar
mono-only-*.zip
monocolor-*.zip
34 changes: 34 additions & 0 deletions build
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";
88 changes: 42 additions & 46 deletions color.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/* 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 {
--gray: #CCC;
--gray: #ccc;
--accent: #fa0;
--warning: #ffd600;
--error: #d50000;
--success: #00c853;
--info: #2962ff;
--info: #2962ff
}

.card {
Expand All @@ -17,148 +19,142 @@
color: var(--fg)
}


/* Grid */

@media(min-width:45em) {
.col {
display: table-cell;
display: table-cell
}
.\31 {
width: 5%;
width: 5%
}
.\33 {
width: 22%;
width: 22%
}
.\34 {
width: 30%;
width: 30%
}
.\35 {
width: 40%;
width: 40%
}
.\32 {
width: 15%;
width: 15%
}
.row {
display: table;
border-spacing: 1em 0;
border-spacing: 1em 0
}
}

.w-100,
.row {
width: 100%;
width: 100%
}

.w-50 {
width: 50%
}


/*Colors*/

.white {
color: #FFF;
color: #fff
}

.bg-white {
background: #FFF;
background: #fff
}

.b-white {
border-color: #FFF;
border-color: #fff
}

.gray {
color: var(--gray);
color: var(--gray)
}

.bg-gray {
background: var(--gray);
background: var(--gray)
}

.b-gray {
border-color: var(--gray);
border-color: var(--gray)
}

.black {
color: #000;
color: #000
}

.bg-black {
background: #000;
background: #000
}

.b-black {
border-color: #000;
border-color: #000
}

.b-primary {
border-color: var(--p);
border-color: var(--p)
}

.b-default {
border-color: var(--b);
border-color: var(--b)
}

.accent {
color: var(--accent);
color: var(--accent)
}

.bg-accent {
background: var(--accent);
background: var(--accent)
}

.b-accent {
border-color: var(--accent);
border-color: var(--accent)
}

.warning {
color: var(--warning);
color: var(--warning)
}

.bg-warning {
background: var(--warning);
background: var(--warning)
}

.b-warning {
border-color: var(--warning);
border-color: var(--warning)
}

.error {
color: var(--error);
color: var(--error)
}

.bg-error {
background: var(--error);
background: var(--error)
}

.b-error {
border-color: var(--error);
border-color: var(--error)
}

.success {
color: var(--success);
color: var(--success)
}

.bg-success {
background: var(--success);
background: var(--success)
}

.b-success {
border-color: var(--success);
border-color: var(--success)
}

.info {
color: var(--info);
color: var(--info)
}

.bg-info {
background: var(--info);
background: var(--info)
}

.b-info {
border-color: var(--info);
border-color: var(--info)
}

.inline {
Expand All @@ -180,7 +176,7 @@

.pill {
border-radius: 2rem;
white-space: nowrap;
white-space: nowrap
}

.rounded {
Expand All @@ -204,7 +200,7 @@
}

.normal {
font-size: inherit;
font-size: inherit
}

.vh-100 {
Expand Down
2 changes: 1 addition & 1 deletion color.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"require": {
"tubalmartin/cssmin": "^4.1"
}
}
71 changes: 71 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 11 additions & 8 deletions dark.css
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
}
Loading

0 comments on commit 398e582

Please sign in to comment.