Skip to content
Snippets Groups Projects
Commit 1651aa3e authored by benjamin's avatar benjamin
Browse files

Variablen für die Farben

parent 6814490d
No related branches found
No related tags found
No related merge requests found
Pipeline #2512 passed
...@@ -2,12 +2,31 @@ ...@@ -2,12 +2,31 @@
@use 'partials/_font-faces'; @use 'partials/_font-faces';
@use 'partials/_font-code'; @use 'partials/_font-code';
$bg_light: #efefef;
$bg_light_2: #e2e2e2;
$color_light: #333333;
$a_light: #763bff;
$a_hover_light: #5f0096;
$secondary_light: #c31fba;
$tertiary_light: #6600ea;
$light_h2: #bf1eb7;
$menu_hover_light: #5b00d2;
$bg_dark: #040012;
$gb_dark_2: black;
$color_dark: #ccc;
$a_dark: #2ea0ff;
$a_hover_dark: #b162f4;
$dark_h2: #e20cef;
$menu_hover_dark: #8432ee;
$tertiary_dark: #6600ea;
body { body {
font-size: 13pt; font-size: 13pt;
line-height: 1.45em; line-height: 1.45em;
margin: 0 auto; margin: 0 auto;
background: #efefef; background: $bg_light;
color: #333333; color: $color_light;
} }
:root { :root {
...@@ -16,11 +35,11 @@ body { ...@@ -16,11 +35,11 @@ body {
a { a {
text-decoration: none; text-decoration: none;
color: #763bff; color: $a_light;
} }
a:hover, a:hover,
a:focus { a:focus {
color: #5f0096; color: $a_hover_light;
} }
header { header {
...@@ -45,7 +64,7 @@ main > * { ...@@ -45,7 +64,7 @@ main > * {
h1 { h1 {
display: inline-block; display: inline-block;
background: linear-gradient(to right, #c31fba, #6600ea); background: linear-gradient(to right, $secondary_light, $tertiary_light);
padding: 0.4em; padding: 0.4em;
border-top-left-radius: 0.75em; border-top-left-radius: 0.75em;
border-bottom-right-radius: 0.75em; border-bottom-right-radius: 0.75em;
...@@ -53,22 +72,22 @@ h1 { ...@@ -53,22 +72,22 @@ h1 {
line-height: 1em; line-height: 1em;
} }
h2 { h2 {
color: #bf1eb7; color: $light_h2;
line-height: 1.2; line-height: 1.2;
} }
ul { ul {
background: #e2e2e2ff; background: $bg_light_2;
border-width: 3px 0 0 0; border-width: 3px 0 0 0;
border-style: solid; border-style: solid;
-o-border-image: linear-gradient(to right, #c31fba, #6600ea) 100% 1; -o-border-image: linear-gradient(to right, $secondary_light, $tertiary_light) 100% 1;
border-image: linear-gradient(to right, #c31fba, #6600ea) 100% 1; border-image: linear-gradient(to right, $secondary_light, $tertiary_light) 100% 1;
} }
p { p {
margin: 2rem auto; margin: 2rem auto;
} }
footer { footer {
background-color: #e2e2e2ff; background-color: $bg_light_2;
text-align: center; text-align: center;
padding: 1em; padding: 1em;
} }
...@@ -95,8 +114,8 @@ footer { ...@@ -95,8 +114,8 @@ footer {
top: 0; top: 0;
right: 0; right: 0;
font-size: inherit; font-size: inherit;
color: #efefef; color: $bg_light;
background-color: #6600ea; background-color: $tertiary_light;
border: 0; border: 0;
border-bottom-left-radius: 1em; border-bottom-left-radius: 1em;
font-weight: bold; font-weight: bold;
...@@ -104,7 +123,7 @@ footer { ...@@ -104,7 +123,7 @@ footer {
padding: 0.4em 0.6em; padding: 0.4em 0.6em;
} }
button:hover { button:hover {
background-color: #5b00d2; background-color: $menu_hover_light;
cursor: pointer; cursor: pointer;
} }
button:focus { button:focus {
...@@ -112,17 +131,17 @@ footer { ...@@ -112,17 +131,17 @@ footer {
} }
} }
#font-selection { #font-selection {
color: #333333; color: $color_light;
background: #efefef; background: $bg_light;
border-radius: 15px; border-radius: 15px;
border: 1px solid #6600ea; border: 1px solid $tertiary_light;
ul { ul {
-moz-columns: 3 150pt; -moz-columns: 3 150pt;
columns: 3 150pt; columns: 3 150pt;
margin: 0; margin: 0;
padding: 0; padding: 0;
border: 0; border: 0;
background: #efefef; background: $bg_light;
} }
li { li {
min-width: 13em; min-width: 13em;
...@@ -136,7 +155,7 @@ footer { ...@@ -136,7 +155,7 @@ footer {
color: inherit; color: inherit;
padding: 0.2rem 0.7rem; padding: 0.2rem 0.7rem;
background-color: inherit; background-color: inherit;
border: 1px solid #6600ea; border: 1px solid $tertiary_light;
border-radius: 15px; border-radius: 15px;
} }
label:hover { label:hover {
...@@ -184,8 +203,8 @@ footer { ...@@ -184,8 +203,8 @@ footer {
top: 0; top: 0;
right: 0; right: 0;
font-size: inherit; font-size: inherit;
color: #efefef; color: $bg_light;
background-color: #6600ea; background-color: $tertiary_light;
border: 0; border: 0;
border-bottom-left-radius: 1.5em; border-bottom-left-radius: 1.5em;
font-weight: bold; font-weight: bold;
...@@ -193,8 +212,8 @@ footer { ...@@ -193,8 +212,8 @@ footer {
} }
#font-selection { #font-selection {
margin: auto; margin: auto;
color: #efefef; color: $bg_light;
background-color: #6600ea; background-color: $tertiary_light;
legend { legend {
border: 0; border: 0;
...@@ -205,73 +224,70 @@ footer { ...@@ -205,73 +224,70 @@ footer {
ul { ul {
-moz-columns: 1; -moz-columns: 1;
columns: 1; columns: 1;
color: #efefef; color: $bg_light;
background-color: #6600ea; background-color: $tertiary_light;
margin: 0; margin: 0;
} }
li:hover { li:hover {
background-color: #5b00d2; background-color: $menu_hover_light;
} }
} }
} }
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
body { body {
background: #040012; background: $bg_dark;
color: #ccc; color: $color_dark;
font-family: "Ubuntu-Medium";
} }
a { a {
text-decoration: none; text-decoration: none;
color: #2ea0ff; color: $a_dark;
} }
a:hover, a:hover,
a:focus { a:focus {
color: #b162f4; color: $a_hover_dark;
} }
h1 { h1 {
font-family: "Ubuntu-Light"; color: $gb_dark_2;
color: black;
} }
h2 { h2 {
font-family: "Ubuntu Regular"; color: $dark_h2;
color: #e20cef;
} }
ul { ul {
background: black; background: $gb_dark_2;
} }
#accessibility-options button { #accessibility-options button {
color: black; color: $gb_dark_2;
} }
#accessibility-options button:hover { #accessibility-options button:hover {
background-color: #8432ee; background-color: $menu_hover_dark;
} }
#font-selection { #font-selection {
color: #ccc; color: $color_dark;
background: #040012; background: $bg_dark;
ul { ul {
background: #040012; background: $bg_dark;
} }
legend { legend {
border: 1px solid #6600ea; border: 1px solid $tertiary_dark;
} }
} }
footer { footer {
background: black; background: $gb_dark_2;
} }
} }
@media (prefers-color-scheme: dark) and (min-width: 50em) { @media (prefers-color-scheme: dark) and (min-width: 50em) {
#font-selection { #font-selection {
color: black; color: $gb_dark_2;
background: #6600ea; background: $tertiary_dark;
ul { ul {
color: black; color: $gb_dark_2;
background: #6600ea; background: $tertiary_dark;
} }
li:hover { li:hover {
background-color: #8432ee; background-color: $menu_hover_dark;
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment