GenderDysphoria.fyi/scss/_grid-row.scss

31 lines
585 B
SCSS
Raw Permalink Normal View History

2020-02-20 14:38:25 -08:00
.grid-row {
clear: both;
display: grid;
grid-template-rows: 1fr;
grid-gap: 10px;
grid-template-columns: repeat( auto-fit, minmax( 250px, 1fr ) );
margin-bottom: 1rem;
@include media-breakpoint-up(md) {
.double { grid-column-end: span 2; }
}
&.by-two {
grid-template-columns: repeat( auto-fit, minmax( 420px, 1fr ) );
}
&.by-three {
grid-template-columns: repeat( auto-fit, minmax( 325px, 1fr ) );
}
&.by-three-forced {
@include media-breakpoint-up(md) {
grid-template-columns: repeat( auto-fit, minmax( 30%, 1fr ) );
}
}
}