alexdaniels.me/assets/styles/scss/front/_layout.scss
2026-06-03 17:18:50 -07:00

57 lines
961 B
SCSS

@use '../shared/colors' as colors;
.secondary.layout--v1 {
display: block;
position: relative;
padding: 0.5rem 0.5rem;
background-color: colors.$primaryYellow;
#root {
display: flex;
flex-direction: column;
@media (min-width: 800px) {
display: grid;
grid-template-columns: 25% 75%;
grid-template-rows: 1fr;
margin: 0 auto;
padding: 1rem 1rem;
}
gap: 1rem;
position: relative;
width: 100%;
height: 100%;
min-height: 100vh;
max-width: 1200px;
background-color: colors.$carbonBlack;
box-shadow: 0 0 5px 10px rgba(29, 31, 32, 0.45);
main {
padding: 1rem 1rem;
}
}
&.menu-open,
&.photo-open {
overflow: hidden;
}
&.photo-open {
.overlay {
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: colors.$inkBlack;
opacity: .9;
}
}
}