Recount-Server/web/sass/site.scss
2024-01-15 19:26:51 -08:00

87 lines
1.4 KiB
SCSS

$prefix: pf;
@import "variables";
// highlight transition speed
$hl-trn-spd: 0.2s;
$border-radius: 8px;
@import 'utility-classes';
@import 'mixins';
@import 'nav';
body {
background-color: var(--#{$prefix}-bg);
height: 97vh;
}
.container {
width: 100%;
margin-right: auto;
margin-left: auto;
}
.row {
display: flex;
flex-wrap: wrap;
}
.col {
box-sizing: border-box;
margin-top: 20px;
width: clamp(300px, 80%, 450px);
}
.card {
aspect-ratio: 16 / 12;
}
@media (min-width: 1362px) {
.card-table {
box-sizing: border-box;
width: 100%;
margin-left: 0%;
margin-right: 0%;
}
}
@media (max-width: 1362px) {
.card-table {
margin-left: auto;
margin-right: auto;
box-sizing: border-box;
width: clamp(300px, 80%, 450px);
}
}
div#below-header {
height: 93vh;
}
div#left-col {
width: 15vw;
padding: 10px;
background-color: var(--#{$prefix}-nav-bg);
border-radius: $border-radius;
}
div#main-body-content {
width: 70vw;
height: 100%;
overflow-y: scroll;
opacity: 1;
transition: opacity 0.2s ease-out;
}
div#main-body-content.htmx-swapping {
opacity: 0;
transition: opacity 0.2s ease-out;
}
div#main-body-content.htmx-added {
opacity: 0;
}
div#right-col {
width: 15vw;
padding: 10px;
background-color: var(--#{$prefix}-nav-bg);
border-radius: $border-radius;
}