julienmonnerie/assets/css/base/_base.scss

123 lines
3.1 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: $text-font-family;
font-size: $text-font-size;
line-height: $text-line-height;
2025-05-23 17:17:38 +02:00
}
strong {
2025-05-25 18:29:02 +02:00
font-weight: 700;
2025-05-23 17:17:38 +02:00
}
em {
font-style: italic;
}
a {
color: $black;
2025-05-25 18:29:02 +02:00
text-decoration: underline;
text-underline-position: under;
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;
}
}
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;
2025-05-29 18:55:49 +02:00
grid-template-columns: 1fr auto 1fr;
2025-05-25 18:29:02 +02:00
justify-content: center;
justify-items: center;
2025-05-29 18:55:49 +02:00
width: $content-width-xl;
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;
2025-05-29 18:55:49 +02:00
padding: $sidebar-padding-y $sidebar-padding-x;
2025-05-25 18:29:02 +02:00
.header__logo {
position: relative;
2025-05-29 18:55:49 +02:00
width: $logo-portrait-width;
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-landscape-width;
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-05-29 18:55:49 +02:00
padding: calc(($sidebar-padding-y * 2) + ($logo-portrait-width * 2)) 0;
@media (orientation: landscape) {
padding: calc(($sidebar-padding-y * 2) + ($logo-landscape-width / 2)) 0;
}
2025-05-25 18:29:02 +02:00
}
2025-05-23 17:17:38 +02:00
2025-05-25 18:29:02 +02:00
footer {
grid-column: 3;
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;
2025-05-23 17:17:38 +02:00
display: flex;
2025-05-25 18:29:02 +02:00
flex-direction: column;
justify-content: flex-end;
2025-05-29 18:55:49 +02:00
align-items: center;
2025-05-25 18:29:02 +02:00
gap: $icon-spacing;
2025-05-29 18:55:49 +02:00
padding: $sidebar-padding-y $sidebar-padding-x;
2025-05-25 18:29:02 +02:00
2025-05-29 18:55:49 +02:00
@media (orientation: landscape) {
2025-05-25 18:29:02 +02:00
flex-direction: row;
2025-05-29 18:55:49 +02:00
justify-content: center;
2025-05-25 18:29:02 +02:00
align-items: flex-end;
}
.footer__link {
display: flex;
justify-content: center;
align-items: center;
width: $icon-size;
aspect-ratio: 1;
svg {
width: 100%;
height: 100%;
}
2025-05-23 17:17:38 +02:00
}
}
}
}