julienmonnerie/assets/css/base/_base.scss

97 lines
2.5 KiB
SCSS
Raw Normal View History

2025-05-25 18:29:02 +02:00
@use "../abstracts" as *;
2025-05-23 17:17:38 +02:00
// --------------------------------------------------
// BASE STYLE
// --------------------------------------------------
body {
2025-05-25 18:29:02 +02:00
color: $black;
background-color: $white;
font-family: $default-font-family;
font-size: $default-font-size;
line-height: $default-line-height;
2025-05-23 17:17:38 +02:00
}
a {
color: $black;
2025-05-25 18:29:02 +02:00
text-decoration: underline;
2025-05-23 17:17:38 +02:00
&:focus-visible {
outline: 1px dashed $black;
2025-05-23 17:17:38 +02:00
outline-offset: 2px;
}
}
strong {
font-weight: 700;
}
em {
font-style: italic;
}
2025-05-25 18:29:02 +02:00
// --------------------------------------------------
// BASE LAYOUT
// --------------------------------------------------
2025-05-23 17:17:38 +02:00
body {
2025-05-25 18:29:02 +02:00
display: flex;
flex-direction: column;
align-items: center;
#app {
position: relative;
display: grid;
grid-template-columns: $sidebar-width-portrait minmax(min-content, $content-width-m) $sidebar-width-portrait;
justify-content: space-evenly;
2025-05-25 18:29:02 +02:00
justify-items: center;
2025-06-03 19:36:13 +02:00
width: 100%;
max-width: $content-width-xl;
2025-05-25 18:29:02 +02:00
@media (orientation: landscape) {
grid-template-columns: $sidebar-width-landscape minmax(min-content, $content-width-m) $sidebar-width-landscape;
}
2025-05-25 18:29:02 +02:00
header {
grid-column: 1;
2025-05-29 18:55:49 +02:00
display: flex;
flex-direction: column;
align-items: center;
2025-05-25 18:29:02 +02:00
position: sticky;
top: 0;
2025-05-29 18:55:49 +02:00
width: 100%;
2025-05-25 18:29:02 +02:00
height: 100vh; // Fallback in case dvh unit is not supported
height: 100dvh;
padding: $sidebar-padding-y 0;
2025-05-25 18:29:02 +02:00
.header__logo {
2025-05-30 17:15:12 +02:00
display: block;
2025-05-25 18:29:02 +02:00
position: relative;
width: $logo-width-portrait;
2025-05-25 18:29:02 +02:00
aspect-ratio: calc(1 / 2);
2025-05-29 18:55:49 +02:00
background-image: url("/public/images/signature-portrait.svg");
2025-05-25 18:29:02 +02:00
background-size: contain;
background-position: center;
2025-05-29 18:55:49 +02:00
@media (orientation: landscape) {
width: $logo-width-landscape;
2025-05-25 18:29:02 +02:00
aspect-ratio: calc(2 / 1);
2025-05-29 18:55:49 +02:00
background-image: url("/public/images/signature-landscape.svg");
2025-05-25 18:29:02 +02:00
}
}
2025-05-23 17:17:38 +02:00
}
2025-05-25 18:29:02 +02:00
main {
grid-column: 2;
2025-06-03 19:36:13 +02:00
display: flex;
flex-direction: column;
align-items: center;
padding: $main-padding-y-portrait 0;
2025-05-29 18:55:49 +02:00
@media (orientation: landscape) {
padding: $main-padding-y-landscape 0;
2025-05-23 17:17:38 +02:00
}
}
}
}