Edit base and home style

This commit is contained in:
Paul Nicoué 2025-05-29 18:55:49 +02:00
parent 9b238fcf7d
commit 00d58f620d
10 changed files with 61 additions and 32 deletions

View file

@ -43,55 +43,65 @@ body {
#app {
position: relative;
display: grid;
grid-template-columns: auto 1fr auto;
grid-template-columns: 1fr auto 1fr;
justify-content: center;
justify-items: center;
width: $app-width;
width: $content-width-xl;
header {
grid-column: 1;
display: flex;
flex-direction: column;
align-items: center;
position: sticky;
top: 0;
width: 100%;
height: 100vh; // Fallback in case dvh unit is not supported
height: 100dvh;
padding: 1rem;
padding: $sidebar-padding-y $sidebar-padding-x;
.header__logo {
position: relative;
width: $icon-size;
width: $logo-portrait-width;
aspect-ratio: calc(1 / 2);
background-image: url("/public/images/signature-vertical.svg");
background-image: url("/public/images/signature-portrait.svg");
background-size: contain;
background-position: center;
@media screen and (min-width: $desktop-media-query) {
width: calc(($icon-size * 2) + $icon-spacing);
@media (orientation: landscape) {
width: $logo-landscape-width;
aspect-ratio: calc(2 / 1);
background-image: url("/public/images/signature-horizontal.svg");
background-image: url("/public/images/signature-landscape.svg");
}
}
}
main {
grid-column: 2;
width: $large-content-width;
padding: calc(2rem + $icon-size) 0;
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;
}
}
footer {
grid-column: 3;
position: sticky;
top: 0;
width: 100%;
height: 100vh; // Fallback in case dvh unit is not supported
height: 100dvh;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
gap: $icon-spacing;
padding: 1rem;
padding: $sidebar-padding-y $sidebar-padding-x;
@media screen and (min-width: $desktop-media-query) {
@media (orientation: landscape) {
flex-direction: row;
justify-content: center;
align-items: flex-end;
}