mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
100 lines
1.6 KiB
SCSS
100 lines
1.6 KiB
SCSS
@use 'sass:math';
|
|
|
|
@import 'src/styles/variables';
|
|
|
|
$target_flow_cell_width: 225px;
|
|
|
|
.wrap {
|
|
max-width: 2000px;
|
|
padding: 0 40px 40px 40px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
$cols: math.div($content_width, $cell);
|
|
|
|
.container {
|
|
@include container;
|
|
@include flow_container;
|
|
|
|
margin-top: $page_top_offset;
|
|
|
|
@include tablet {
|
|
padding: 0 $gap;
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
.grid {
|
|
width: 100%;
|
|
min-height: 200px;
|
|
|
|
@include flow_grid() {
|
|
grid-template-rows: 40vh;
|
|
}
|
|
|
|
@include flow_breakpoint(5);
|
|
@include flow_breakpoint(4);
|
|
@include flow_breakpoint(3) {
|
|
grid-template-rows: calc(66cqw - #{$gap}) auto;
|
|
}
|
|
|
|
@include flow_breakpoint(2) {
|
|
grid-template-rows: calc(100cqw - #{$gap}) auto;
|
|
}
|
|
|
|
@container sizer (width < #{$flow_hide_recents}) {
|
|
.stamp {
|
|
grid-column-start: 1;
|
|
grid-row-end: span 1;
|
|
}
|
|
|
|
.login {
|
|
display: flex;
|
|
grid-column: 1 / 2;
|
|
grid-row-end: span 2;
|
|
}
|
|
}
|
|
}
|
|
|
|
.pad_last {
|
|
grid-column-end: $cols + 1;
|
|
}
|
|
|
|
.hero {
|
|
grid-row-start: 1;
|
|
grid-row-end: 2;
|
|
grid-column-start: 1;
|
|
grid-column-end: -1;
|
|
background: $content_bg_dark;
|
|
border-radius: $radius;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font: $font_24_semibold;
|
|
}
|
|
|
|
.stamp {
|
|
grid-row-end: span 3;
|
|
grid-column: -2 / -1;
|
|
display: flex;
|
|
align-items: stretch;
|
|
justify-content: stretch;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.login {
|
|
grid-row-start: 4;
|
|
grid-row-end: span 2;
|
|
grid-column: -3 / -4;
|
|
display: flex;
|
|
align-items: stretch;
|
|
justify-content: stretch;
|
|
overflow: hidden;
|
|
position: relative;
|
|
|
|
@include desktop {
|
|
display: none;
|
|
}
|
|
}
|