Newer
Older
@use 'styles/settings' as s;
@use 'styles/mixins' as mx;
@use 'styles/functions' as fn;
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
&::before {
display: none;
content: 'light';
}
@each $key, $value in s.$light-colors {
--#{$key}: #{$value};
}
@each $key, $value in s.$light-colors {
--#{$key}-rgb: #{red($value), green($value), blue($value)};
}
}
@media (prefers-color-scheme: dark) {
:root {
&::before {
display: none;
content: 'dark';
}
@each $key, $value in s.$dark-colors {
--#{$key}: #{$value};
}
@each $key, $value in s.$dark-colors {
--#{$key}-rgb: #{red($value), green($value), blue($value)};
}
}
}
:root.light-theme {
&::before {
display: none;
content: 'light';
}
@each $key, $value in s.$light-colors {
--#{$key}: #{$value};
}
@each $key, $value in s.$light-colors {
--#{$key}-rgb: #{red($value), green($value), blue($value)};
}
}
:root.dark-theme {
&::before {
display: none;
content: 'dark';
}
@each $key, $value in s.$dark-colors {
--#{$key}: #{$value};
}
@each $key, $value in s.$dark-colors {
--#{$key}-rgb: #{red($value), green($value), blue($value)};
}

Planoetscher Daniel (Student Com20)
committed
* {
transition: s.$transition;
font-family: s.$body-font;
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
position: relative;
background: s.$background;
}
button {
background: none;
border: none;
outline: none;
}
Bernard Roland (Student Com20)
committed
font-size: 1em;
color: s.$primary;
text-decoration: none;
&:hover {
color: rgba(s.$primary, 0.5);
}
}
.content-container {
max-width: 1280px;
width: 100%;
margin: 0 auto;
padding: 0 30px;
}
h1, h2, h3,
h4, h5, h6 {
font-weight: s.$weight-bold;
}
h1 {
font-size: fn.toRem(36);
margin-bottom: fn.toRem(20);
font-weight: s.$weight-xbold;
&.underlined {
position: relative;
display: inline-block;
content: ' ';
position: absolute;

Planoetscher Daniel (Student Com20)
committed
bottom: 0;
width: 90px;
z-index: -1;
@include mx.breakpoint(large) {
height: 24px;
width: 120px;

Planoetscher Daniel (Student Com20)
committed
bottom: 5px;
}
}
}

Planoetscher Daniel (Student Com20)
committed
@include mx.breakpoint(large) {
font-size: fn.toRem(48);
margin-bottom: fn.toRem(24);
}
}
h2 {
font-size: fn.toRem(24);
margin-bottom: fn.toRem(16);

Planoetscher Daniel (Student Com20)
committed
@include mx.breakpoint(large) {
font-size: fn.toRem(36);
margin-bottom: fn.toRem(24);
}
&.left {
text-align: left;
max-width: none;
}
}
h3 {
margin-bottom: fn.toRem(12);
font-weight: s.$weight-bold;

Planoetscher Daniel (Student Com20)
committed
@include mx.breakpoint(large) {
font-size: fn.toRem(24);
margin-bottom: fn.toRem(16);
}
}
h4 {
font-size: fn.toRem(16);
margin-bottom: fn.toRem(10);

Planoetscher Daniel (Student Com20)
committed
@include mx.breakpoint(large) {
font-size: fn.toRem(20);
margin-bottom: fn.toRem(16);
}
@each $key,
$color in s.$themeDarkMap {
.bg-dark-#{$key} {
background-color: $color;
}
.text-dark-#{$key} {
color: $color
}
@each $key,
$color in s.$themeLightMap {
.bg-light-#{$key} {
background-color: $color;
}
.text-light-#{$key} {
color: $color
}
@each $key,
$color in s.$themeLightMap {
.bg-gradient-#{$key} {
background: linear-gradient(to bottom, $color 0%, fn.getFrom(s.$themeDarkMap, $key) 100%);
}
.bg-gradient-horizontal-#{$key} {
background: linear-gradient(to left, $color 0%, fn.getFrom(s.$themeDarkMap, $key) 100%);
}
.theme-#{$key} {
--primary: #{$color};
--primary-dark: #{fn.getFrom(s.$themeDarkMap, $key)};
}
}
.back-btn {
position: absolute;
top: 0;
left: 0;
padding: 35px 30px 20px 30px;
font-size: 30px;
height: 84px;
cursor: pointer;
user-select: none;