mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 20:28:20 +03:00
46 lines
946 B
Sass
46 lines
946 B
Sass
//- ----------------------------------
|
|
//- 💫 BASE > GRID
|
|
//- ----------------------------------
|
|
|
|
//- Grid container
|
|
|
|
.o-grid
|
|
display: flex
|
|
flex-wrap: wrap
|
|
|
|
@include breakpoint(min, sm)
|
|
flex-direction: row
|
|
align-items: stretch
|
|
justify-content: space-between
|
|
|
|
|
|
//- Grid column
|
|
|
|
.o-grid__col
|
|
$grid-gutter: 2rem
|
|
|
|
margin-top: $grid-gutter
|
|
overflow: hidden
|
|
|
|
@include breakpoint(min, sm)
|
|
display: flex
|
|
flex: 0 0 100%
|
|
flex-direction: column
|
|
flex-wrap: wrap
|
|
|
|
@each $mode, $count in $grid
|
|
&.o-grid__col--#{$mode}
|
|
$percentage: calc(#{100% / $count} - #{$grid-gutter})
|
|
flex: 0 0 $percentage
|
|
max-width: $percentage
|
|
|
|
@include breakpoint(max, xs)
|
|
flex: 0 0 100%
|
|
flex-flow: column wrap
|
|
|
|
// Fix overflow issue in old browsers
|
|
|
|
& > *
|
|
flex-shrink: 1
|
|
max-width: 100%
|