1
Fork 0
mirror of https://github.com/Steffo99/unisteffo.git synced 2024-11-25 17:34:20 +00:00
triennale-appunti-steffo/components/Layout.module.css

62 lines
1.7 KiB
CSS
Raw Permalink Normal View History

2023-03-15 11:13:11 +00:00
.layout {
2023-03-20 14:15:31 +00:00
height: 100vh;
2023-03-15 11:13:11 +00:00
overflow: hidden;
display: grid;
grid-template-areas:
2023-03-20 14:15:31 +00:00
"heading side"
2023-03-15 11:13:11 +00:00
"main side"
;
2023-03-20 14:15:31 +00:00
grid-template-rows: 68px 1fr;
2023-03-15 11:13:11 +00:00
grid-template-columns: 1fr 320px;
align-content: stretch;
2023-03-20 14:15:31 +00:00
}
@media screen and (max-width: 1328px) {
.layout {
grid-template-areas:
"heading"
"main"
;
grid-template-columns: 1fr;
}
.layout > .sidebar {
display: none;
}
2023-03-15 11:13:11 +00:00
}
.layout > .heading {
grid-area: heading;
}
.layout > .main {
grid-area: main;
overflow-y: scroll;
2023-03-20 14:15:31 +00:00
padding: 8px;
padding-right: 7px;
2023-03-15 11:13:11 +00:00
}
.layout > .sidebar {
grid-area: side;
overflow-y: scroll;
2023-03-20 14:15:31 +00:00
padding: 8px;
padding-top: 68px;
padding-left: 1px;
}
.layout > .main > :where(:global(.chapter-0), :global(.chapter-1), :global(.chapter-2), :global(.chapter-3), :global(.chapter-4), :global(.chapter-5), :global(.chapter-6), :global(.chapter-7), :global(.chapter-8), :global(.chapter-9)) > :global(.panel) {
max-width: 500px;
2023-03-15 11:13:11 +00:00
}
2023-03-20 14:15:31 +00:00
.layout :where(:global(.chapter-0), :global(.chapter-1), :global(.chapter-2), :global(.chapter-3), :global(.chapter-4), :global(.chapter-5), :global(.chapter-6), :global(.chapter-7), :global(.chapter-8), :global(.chapter-9)):first-child, .layout :where(:global(.chapter-0), :global(.chapter-1), :global(.chapter-2), :global(.chapter-3), :global(.chapter-4), :global(.chapter-5), :global(.chapter-6), :global(.chapter-7), :global(.chapter-8), :global(.chapter-9)):first-child :where(h1, h2, h3, h4, h5, h6) {
2023-03-15 11:13:11 +00:00
margin-top: 0;
}
.layout :where(:global(.chapter-0), :global(.chapter-1), :global(.chapter-2), :global(.chapter-3), :global(.chapter-4), :global(.chapter-5), :global(.chapter-6), :global(.chapter-7), :global(.chapter-8), :global(.chapter-9)):last-child {
margin-bottom: 0;
}