mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 06:39:48 +00:00
86 lines
1.1 KiB
SCSS
86 lines
1.1 KiB
SCSS
@import '../constants/dimensions';
|
|
|
|
.grid,
|
|
.grid--v {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
justify-content: center;
|
|
align-items: stretch;
|
|
align-content: center;
|
|
|
|
&.grid--center {
|
|
align-items: center;
|
|
align-content: center;
|
|
}
|
|
|
|
&.grid--start {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
&.grid--end {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
& > .grid__cell {
|
|
display: flex;
|
|
flex: 1 1 auto;
|
|
box-sizing: border-box;
|
|
|
|
&.grid__cell--no-flex {
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.grid {
|
|
max-width: 100%;
|
|
flex-direction: row;
|
|
|
|
& > .grid__cell {
|
|
// So the cells are equal width
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.grid--v {
|
|
max-height: 100%;
|
|
flex-direction: column;
|
|
|
|
& > .grid__cell {
|
|
// So the cells are equal height
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.grid__cell--scroll--v,
|
|
.grid__cell--scroll--h {
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.grid__cell--scroll--v {
|
|
overflow-y: auto;
|
|
|
|
& > * {
|
|
height: 0;
|
|
}
|
|
}
|
|
|
|
.grid__cell--scroll--h {
|
|
overflow-x: auto;
|
|
|
|
& > * {
|
|
width: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: $breakpoint-md) {
|
|
.grid.grid--collapse {
|
|
flex-direction: column;
|
|
|
|
& > .grid__cell {
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|