tildes-statistics/source/scss/index.scss

43 lines
686 B
SCSS

@mixin responsive-container($breakpoint) {
margin-left: auto;
margin-right: auto;
width: $breakpoint;
@media (max-width: $breakpoint) {
width: 100%;
}
}
.page-header,
.page-main,
.page-footer {
@include responsive-container(900px);
margin-bottom: var(--large-spacing);
}
.page-header {
border-bottom: 4px solid var(--background-2);
padding: var(--large-spacing);
}
.page-main {
h2,
img,
p {
margin-bottom: var(--medium-spacing);
&:last-child {
margin-bottom: 0;
}
}
}
.page-footer {
background-color: var(--background-2);
display: flex;
flex-direction: column;
gap: var(--large-spacing);
padding: var(--large-spacing);
}