Added mixins for color-schemes

This commit is contained in:
Sofia 2017-10-01 23:51:43 +03:00
parent 497fce74be
commit ff87ef6aa7
3 changed files with 73 additions and 53 deletions

View File

@ -3,10 +3,12 @@
font-family: "Iosevka Slab", "Iosevka", "Consolas", "monospace";
background-color: black;
color: #c9c9c9;
border-color: #c9c9c9;
font-weight: 400;
font-size: 16px;
line-height: 21px; }
/* General styles for elements */
* {
margin: 0;
padding: 0; }
@ -25,9 +27,10 @@ ul {
a {
color: #c9c9c9; }
a :hover {
a:hover {
background-color: #171c94;
color: #c9c9c9; }
color: #c9c9c9;
border-color: #c9c9c9; }
nav ul > li > ul:hover a {
color: #c9c9c9; }
@ -46,13 +49,15 @@ nav li hr, li.button-list > ul a hr, .white hr {
nav > li > ul li > ul:hover > hr, li.button-list > ul:hover a hr {
border-color: #c9c9c9; }
/* Lists */
li:not(.button-list) > ul::before {
content: "- "; }
li.button-list > ul {
width: calc(100% - 1ch); }
li.button-list > ul:hover {
background-color: #171c94;
color: #c9c9c9; }
color: #c9c9c9;
border-color: #c9c9c9; }
li.button-list > ul:hover > a {
color: #c9c9c9; }
li.button-list > ul > li {
@ -61,6 +66,7 @@ li.button-list > ul {
display: block;
width: 100%; }
/* Navbars */
@keyframes hide {
0% {
opacity: 0;
@ -80,6 +86,7 @@ nav ul::before {
nav > li {
background-color: #c9c9c9;
color: black;
border-color: black;
margin-left: 0; }
nav > li > ul {
margin: 0;
@ -90,10 +97,12 @@ nav > li {
nav > li > ul:hover {
background-color: #171c94;
color: #c9c9c9;
border-color: #c9c9c9;
cursor: pointer; }
nav > li > ul:focus {
background-color: #171c94;
color: #c9c9c9; }
color: #c9c9c9;
border-color: #c9c9c9; }
nav > li > ul:focus li {
display: block;
opacity: 1;
@ -101,11 +110,12 @@ nav > li {
animation-name: hide;
animation-name: none; }
nav > li > ul > li {
position: absolute;
border: 2px solid #c9c9c9;
border-color: black;
box-shadow: 0 0 0 0.25ch #c9c9c9;
background-color: #c9c9c9;
color: black;
border-color: black;
position: absolute;
border: 2px solid;
box-shadow: 0 0 0 0.25ch #c9c9c9;
margin-left: calc(2px - 1ch);
margin-right: calc(2px - 1ch);
margin-top: 10.5px;
@ -120,17 +130,20 @@ nav > li {
nav > li > ul > li > ul {
background-color: #c9c9c9;
color: black;
border-color: black;
padding-left: 1ch;
padding-right: 1ch;
min-height: 21px; }
nav > li > ul > li > ul:hover {
background-color: #171c94;
color: #c9c9c9; }
color: #c9c9c9;
border-color: #c9c9c9; }
nav > li .submenu {
display: inline-block;
animation-name: show;
animation-duration: 0.5s; }
/* Miscallaneous Classes */
.box {
border: 2px solid #c9c9c9;
margin: 0.5ch;
@ -165,7 +178,8 @@ nav > li {
color: black; }
.box.white a:hover {
background-color: #171c94;
color: #c9c9c9; }
color: #c9c9c9;
border-color: #c9c9c9; }
.box.blue {
background-color: #171c94;
color: #c9c9c9;
@ -173,18 +187,21 @@ nav > li {
box-shadow: 0 0 0 0.25ch #171c94; }
.box.blue li.button-list > ul:hover {
background-color: #c9c9c9;
color: black; }
color: black;
border-color: black; }
.box.blue li.button-list > ul:hover > a {
color: black; }
.box.blue a:hover {
background-color: #c9c9c9;
color: #171c94; }
color: #171c94;
border-color: #171c94; }
.box.blue hr {
border-color: #c9c9c9; }
.list-symbol::after {
content: " ▼"; }
/* Style helpers, like space-takers */
.space-1em {
min-height: 21px; }

View File

@ -1,6 +1,6 @@
{
"version": 3,
"mappings": ";AAaA,KAAM;EACJ,WAAW,EAAE,kDAAkD;EAE/D,gBAAgB,EAdF,KAAY;EAe1B,KAAK,EAdS,OAAkB;EAehC,WAAW,EAAE,GAAG;EAEhB,SAAS,EAdC,IAAI;EAed,WAAW,EAbC,IAA2B;;AAkBzC,CAAE;EACA,MAAM,EAAE,CAAC;EACT,OAAO,EAAE,CAAC;;AAGZ,CAAE;EACA,KAAK,EAAE,IAAI;;AAGb,CAAE;EACA,WAAW,EAAE,IAAI;;AAGnB,EAAG;EACD,UAAU,EAAE,IAAI;;AAGlB,EAAG;EACD,Y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KAAiB;EAAE,cAAc,EAAE,KAAiB",
"sources": ["style.scss"],
"names": [],
"file": "style.css"

View File

@ -11,18 +11,38 @@ $line-height: $em-height + $line-overflow;
$box-border: 2px;
$box-double-border: 4px;
@mixin whiteOnBlue {
background-color: $default-blue;
color: $default-white;
border-color: $default-white;
}
@mixin blueOnWhite {
background-color: $default-white;
color: $default-blue;
border-color: $default-blue;
}
@mixin whiteOnBlack {
background-color: $default-black;
color: $default-white;
border-color: $default-white;
}
@mixin blackOnWhite {
background-color: $default-white;
color: $default-black;
border-color: $default-black;
}
:root { // Styles applying to everyting
font-family: "Iosevka Slab", "Iosevka", "Consolas", "monospace";
background-color: $default-black;
color: $default-white;
@include whiteOnBlack;
font-weight: 400;
font-size: $em-height;
line-height: $line-height;
}
// General styles for elements
/* General styles for elements */
* { // Remove margin and padding from everything by default
margin: 0;
@ -47,9 +67,8 @@ ul {
a {
color: $default-white;
:hover {
background-color: $default-blue;
color: $default-white;
&:hover {
@include whiteOnBlue;
}
}
@ -72,7 +91,7 @@ nav > li > ul li > ul:hover > hr, li.button-list > ul:hover a hr {
border-color: $default-white;
}
// Lists
/* Lists */
li {
&:not(.button-list) > ul::before {
@ -82,8 +101,7 @@ li {
width: calc(100% - 1ch);
&:hover {
background-color: $default-blue;
color: $default-white;
@include whiteOnBlue;
& > a {
color: $default-white;
@ -101,7 +119,7 @@ li {
}
}
// Navbars
/* Navbars */
@keyframes hide {
0% {
@ -130,8 +148,7 @@ nav {
}
& > li { // Navbar
background-color: $default-white;
color: $default-black;
@include blackOnWhite;
margin-left: 0;
& > ul { // Navbar items
@ -142,13 +159,11 @@ nav {
padding-right: 1ch;
&:hover { // Navbar items
background-color: $default-blue;
color: $default-white;
@include whiteOnBlue;
cursor: pointer;
}
&:focus {
background-color: $default-blue;
color: $default-white;
@include whiteOnBlue;
li { // Display inner items on focus
display: block;
@ -161,11 +176,10 @@ nav {
}
& > li { // Navbar inner lists
@include blackOnWhite;
position: absolute;
border: 2px solid $default-white;
border-color: $default-black;
border: 2px solid;
box-shadow: 0 0 0 0.25ch $default-white;
background-color: $default-white;
margin-left: calc(2px - 1ch);
margin-right: calc(2px - 1ch);
margin-top: $line-height / 2;
@ -181,15 +195,13 @@ nav {
animation-duration: 0.5s;
& > ul { // Inner Items
background-color: $default-white;
color: $default-black;
@include blackOnWhite;
padding-left: 1ch;
padding-right: 1ch;
min-height: $line-height;
&:hover { // Navbar inner items hover
background-color: $default-blue;
color: $default-white;
@include whiteOnBlue;
}
}
}
@ -203,7 +215,7 @@ nav {
}
}
// Classes
/* Miscallaneous Classes */
.box {
border: $box-border solid $default-white;
@ -229,43 +241,34 @@ nav {
}
&.black {
background-color: $default-black;
color: $default-white;
border-color: $default-white;
@include whiteOnBlack;
box-shadow: 0 0 0 0.25ch $default-black;
}
&.white {
background-color: $default-white;
color: $default-black;
border-color: $default-black;
@include blackOnWhite;
box-shadow: 0 0 0 0.25ch $default-white;
a {
color: $default-black;
&:hover {
background-color: $default-blue;
color: $default-white;
@include whiteOnBlue;
}
}
}
&.blue {
background-color: $default-blue;
color: $default-white;
border-color: $default-white;
@include whiteOnBlue;
box-shadow: 0 0 0 0.25ch $default-blue;
li.button-list > ul:hover {
background-color: $default-white;
color: $default-black;
@include blackOnWhite;
}
li.button-list > ul:hover > a {
color: $default-black;
}
a:hover {
background-color: $default-white;
color: $default-blue;
@include blueOnWhite;
}
hr {
border-color: $default-white;
@ -277,7 +280,7 @@ nav {
content: "";
}
// Style helpers, like space-takers
/* Style helpers, like space-takers */
@for $i from 1 through 5 {
.space-#{$i}em { min-height: $line-height * $i; }