1
0
Fork 0

[SITE CSS] set colors as variables + base on 2 colors

This commit is contained in:
Jannik Beyerstedt 2016-04-10 22:42:23 +02:00
parent a05b824cd0
commit 2a2cf3bb89
9 changed files with 44 additions and 22 deletions

View file

@ -20,6 +20,11 @@ p {
margin-top: 0; margin-top: 0;
line-height: 1.5em; } line-height: 1.5em; }
a {
color: #2da301; }
a:active, a:hover {
color: #1f7001; }
main div.container { main div.container {
margin-top: 10px; } margin-top: 10px; }
@media (min-width: 992px) { @media (min-width: 992px) {

Binary file not shown.

View file

@ -6,9 +6,9 @@ body {
color: #fff; } color: #fff; }
a { a {
color: #108ffd; } color: #34bc01; }
a:active, a:hover { a:active, a:hover {
color: #75bffe; } color: #42ef01; }
@media (min-width: 544px) { @media (min-width: 544px) {
nav ul.nav.main { nav ul.nav.main {

Binary file not shown.

View file

@ -1,8 +1,23 @@
$fontcolor: #000; $color_font: #000;
$color_bg: #fff;
$color_base: #1779ff;
$color_accent: #2da301;
$link_color: $color_accent;
$link_active: darken($color_accent, 10%);
$col_xxs_bp: 543px; $col_xxs_bp: 543px;
$nav_bgColor: #1779ff; $nav_bgColor: $color_base;
$nav_borderColor: darken($nav_bgColor, 15%); $nav_borderColor: darken($nav_bgColor, 15%);
$nav_fgColor: #fff; $nav_fgColor: #fff;
$nav_textXsWidth: 80px; $nav_textXsWidth: 80px;
$nav_textSmWidth: 109px; $nav_textSmWidth: 109px;
$footer_color_bg: #bebebe;
$color_bg_inv: #424242;
$color_font_inv: #fff;
$link_color_inv: lighten($color_accent, 5%);
$link_active_inv: lighten($color_accent, 15%);

View file

@ -26,6 +26,12 @@ p {
margin-top: 0; margin-top: 0;
line-height: 1.5em; line-height: 1.5em;
} }
a {
color: $link_color;
&:active, &:hover {
color: $link_active;
}
}
main div.container { main div.container {
margin-top: 10px; margin-top: 10px;
@ -96,7 +102,7 @@ nav {
a.active { a.active {
color: $nav_fgColor; color: $nav_fgColor;
border-bottom: 4px solid #2da301; border-bottom: 4px solid $color_accent;
padding-bottom: 1px; padding-bottom: 1px;
} }
} }
@ -110,7 +116,7 @@ nav {
color: $nav_bgColor; color: $nav_bgColor;
a.active { a.active {
color: $nav_fgColor; color: $nav_fgColor;
border-bottom: 4px solid #2da301; border-bottom: 4px solid $color_accent;
padding-bottom: 1.5px; padding-bottom: 1.5px;
} }
} }
@ -120,7 +126,7 @@ nav {
background-color: $nav_bgColor; background-color: $nav_bgColor;
} }
a.active { a.active {
border-bottom: 4px solid #2da301; border-bottom: 4px solid $color_accent;
padding-bottom: 1.5px; padding-bottom: 1.5px;
} }
} }
@ -169,8 +175,8 @@ footer {
padding-top: 20px; padding-top: 20px;
padding-bottom: 20px; padding-bottom: 20px;
background-color: #bebebe; background-color: $footer_color_bg;
color: $fontcolor; color: $color_font;
p { p {
margin-bottom: 0; margin-bottom: 0;
@ -184,7 +190,7 @@ footer {
} }
i.fa { i.fa {
color: $fontcolor; color: $color_font;
font-size: $footer_logoHeight; font-size: $footer_logoHeight;
padding-right: 0.2em; padding-right: 0.2em;
} }

View file

@ -7,19 +7,15 @@
@import "../mainvariables"; @import "../mainvariables";
$inv_bgColor: #424242;
$inv_fontcolor: #fff;
// change main.scss behavior - inverted color style // change main.scss behavior - inverted color style
body { body {
background-color: $inv_bgColor; background-color: $color_bg_inv;
color: $inv_fontcolor; color: $color_font_inv;
} }
a { a {
color: lighten($link-color, 10%); color: $link_color_inv;
&:active, &:hover { &:active, &:hover {
color: lighten($link-color, 30%); color: $link_active_inv;
} }
} }
@include media-breakpoint-up(sm) { @include media-breakpoint-up(sm) {
@ -30,8 +26,8 @@ a {
} }
} }
footer { footer {
background-color: darken($inv_bgColor, 7%); background-color: darken($color_bg_inv, 7%);
color: darken($inv_fontcolor, 10%); color: darken($color_font_inv, 10%);
} }

View file

@ -7,7 +7,7 @@
@import "../mainvariables"; @import "../mainvariables";
// change main.scss behavior - inverted color style // change main.scss behavior
body { body {
} }

View file

@ -7,7 +7,7 @@
@import "../mainvariables"; @import "../mainvariables";
// change main.scss behavior - inverted color style // change main.scss behavior
body { body {
} }