Recount-Server/web/sass/site.scss

95 lines
1.6 KiB
SCSS
Raw Normal View History

2024-01-14 18:00:51 -08:00
$prefix: pf;
@import "variables";
2024-01-12 20:50:41 -08:00
// highlight transition speed
$hl-trn-spd: 0.2s;
2024-01-15 13:47:16 -08:00
$border-radius: 8px;
2024-01-15 13:47:16 -08:00
@import 'utility-classes';
2024-01-12 21:59:19 -08:00
@import 'mixins';
@import 'nav';
2024-01-14 18:00:51 -08:00
2024-01-12 20:50:41 -08:00
body {
2024-01-24 18:58:29 -08:00
background-color: var(--#{$prefix}-base);
2024-01-15 19:26:51 -08:00
height: 97vh;
2024-01-14 18:00:51 -08:00
}
.row {
display: flex;
flex-wrap: wrap;
2024-01-12 21:59:19 -08:00
}
2024-01-14 18:00:51 -08:00
.col {
box-sizing: border-box;
2024-01-15 13:47:16 -08:00
margin-top: 20px;
width: clamp(300px, 80%, 450px);
}
.card {
aspect-ratio: 16 / 12;
}
@media (min-width: 1362px) {
.card-table {
box-sizing: border-box;
2024-01-15 19:26:51 -08:00
width: 100%;
margin-left: 0%;
margin-right: 0%;
2024-01-15 13:47:16 -08:00
}
}
@media (max-width: 1362px) {
.card-table {
2024-01-15 19:26:51 -08:00
margin-left: auto;
margin-right: auto;
2024-01-15 13:47:16 -08:00
box-sizing: border-box;
2024-01-15 19:26:51 -08:00
width: clamp(300px, 80%, 450px);
2024-01-15 13:47:16 -08:00
}
}
2024-01-15 19:26:51 -08:00
div#below-header {
height: 93vh;
}
div#left-col {
width: 15vw;
padding: 10px;
2024-02-09 19:02:08 -08:00
background-color: var(--#{$prefix}-nav-bg);
2024-01-15 19:26:51 -08:00
border-radius: $border-radius;
}
div#main-body-content {
width: 70vw;
2024-01-15 19:26:51 -08:00
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;
2024-01-14 18:00:51 -08:00
background-color: var(--#{$prefix}-nav-bg);
2024-01-15 19:26:51 -08:00
border-radius: $border-radius;
2024-01-24 18:58:29 -08:00
display: flex;
flex-direction: column;
}
#transactions-quick-access {
border-radius: $border-radius;
height: 500px;
}
#right-panel-quick-access {
border-radius: $border-radius;
margin-top: auto;
margin-bottom: 10px;
height: 300px;
}