Import theme

This commit is contained in:
DuN0z 2025-10-09 10:23:36 +02:00
parent 51769fa6be
commit c59ffbfeee
127 changed files with 13611 additions and 1 deletions

View file

@ -0,0 +1,11 @@
@use 'modules/color_theme' as color;
.body {
width: 100%;
margin: 0 auto;
// work around to style body
@include color.themed() {
color: color.t('primary');
background-color: color.t('accent');
}
}

View file

@ -0,0 +1,24 @@
@use 'modules/color_theme' as color;
@use 'modules/config' as conf;
.header {
@include color.themed() {
background-color: color.t('accent');
}
width: 100%;
position: fixed;
z-index: 1;
top: 0;
@include conf.desktop {
position: sticky;
@include color.themed() {
border-bottom: color.t('border');
}
}
@include conf.print {
display: none;
}
}

View file

@ -0,0 +1,4 @@
.html {
-webkit-font-smoothing: antialiased;
font-size: 62.5%;
}

View file

@ -0,0 +1,77 @@
@use 'modules/color_theme' as color;
@use 'modules/config' as conf;
.nav {
$py-desktop: 24px;
display: none;
@include conf.desktop {
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: none;
}
&__list {
margin: 0;
list-style: none;
padding: 0;
width: 100%;
@include color.themed() {
background-color: color.t('primary-lighter');
}
@include conf.desktop {
display: flex;
padding: $py-desktop 30px;
@include color.themed() {
background-color: color.t('accent');
}
&--end {
flex-shrink: 1;
justify-content: flex-end;
}
}
&-item {
padding: 16px 0;
text-transform: uppercase;
text-align: center;
white-space: nowrap;
@include conf.desktop {
padding-top: 0;
padding-bottom: 0;
&:not(:last-child) {
@include conf.ltr {
padding-right: 20px;
}
@include conf.rtl {
padding-left: 20px;
}
}
}
}
}
&__link {
&--active {
padding-bottom: $py-desktop;
@include conf.desktop {
@include color.themed() {
border-bottom: 1px solid color.t('primary');
}
}
}
}
&--active {
display: block;
}
}