insomnia/app/css/grid.scss

69 lines
1.1 KiB
SCSS
Raw Normal View History

2016-03-16 05:49:42 +00:00
@import 'constants/dimensions';
.grid {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
2016-03-16 23:34:25 +00:00
justify-content: center;
align-items: center;
2016-03-16 05:49:42 +00:00
align-content: flex-start;
height: 100%;
2016-03-16 20:02:47 +00:00
width: 100%;
box-sizing: border-box;
2016-03-16 05:49:42 +00:00
2016-03-21 05:47:49 +00:00
& > .col {
display: block;
flex: 1 1 auto;
width: 100%;
height: 100%;
overflow: hidden;
box-sizing: border-box;
}
2016-03-16 05:49:42 +00:00
}
2016-03-16 20:02:47 +00:00
.grid-v {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
align-content: flex-start;
height: 100%;
width: 100%;
box-sizing: border-box;
2016-03-16 05:49:42 +00:00
2016-03-21 05:47:49 +00:00
& > .row {
display: block;
flex: 1 1 auto;
height: 100%;
box-sizing: border-box;
}
2016-03-16 05:49:42 +00:00
}
2016-03-20 04:00:40 +00:00
.un-grid {
display: initial;
height: auto;
width: auto;
}
2016-03-21 05:47:49 +00:00
@media (max-width: $breakpoint-md) {
.grid.grid-collapse {
display: flex;
flex-direction: column;
flex-wrap: nowrap;
justify-content: flex-start;
align-items: stretch;
align-content: flex-start;
height: 100%;
width: 100%;
box-sizing: border-box;
& > .col {
display: block;
flex: 1 1 auto;
height: 100%;
box-sizing: border-box;
}
}
}