julienmonnerie/assets/css/base/_base.scss

113 lines
2.8 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;
grid-template-columns: auto 1fr auto;
justify-content: center;
justify-items: center;
width: $app-width;
header {
grid-column: 1;
position: sticky;
top: 0;
height: 100vh; // Fallback in case dvh unit is not supported
height: 100dvh;
padding: 1rem;
.header__logo {
position: relative;
width: $icon-size;
aspect-ratio: calc(1 / 2);
background-image: url("/public/images/signature-vertical.svg");
background-size: contain;
background-position: center;
@media screen and (min-width: $desktop-media-query) {
width: calc(($icon-size * 2) + $icon-spacing);
aspect-ratio: calc(2 / 1);
background-image: url("/public/images/signature-horizontal.svg");
}
}
2025-05-23 17:17:38 +02:00
}
2025-05-25 18:29:02 +02:00
main {
grid-column: 2;
width: $large-content-width;
padding: calc(2rem + $icon-size) 0;
}
2025-05-23 17:17:38 +02:00
2025-05-25 18:29:02 +02:00
footer {
grid-column: 3;
position: sticky;
top: 0;
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;
gap: $icon-spacing;
padding: 1rem;
@media screen and (min-width: $desktop-media-query) {
flex-direction: row;
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
}
}
}
}