mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
86 lines
1.5 KiB
Plaintext
86 lines
1.5 KiB
Plaintext
@mobileBreakpoint: ~"(max-width: 767px)";
|
|
|
|
body #application-root {
|
|
@topMenuHeight: 49px;
|
|
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: stretch;
|
|
padding-bottom: 0 !important;
|
|
height: 100%;
|
|
|
|
.application-layout-side-menu {
|
|
height: 100%;
|
|
position: relative;
|
|
|
|
@media @mobileBreakpoint {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.application-layout-top-menu {
|
|
height: @topMenuHeight;
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
z-index: 1000;
|
|
|
|
@media @mobileBreakpoint {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.application-layout-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow-y: auto;
|
|
|
|
flex: 1 1 auto;
|
|
padding-bottom: 15px;
|
|
|
|
@media @mobileBreakpoint {
|
|
margin-top: @topMenuHeight; // compensate for app header fixed position
|
|
}
|
|
}
|
|
}
|
|
|
|
body > section {
|
|
height: 100%;
|
|
}
|
|
|
|
body.fixed-layout #application-root {
|
|
.application-layout-content {
|
|
padding-bottom: 0;
|
|
}
|
|
}
|
|
|
|
body.headless #application-root {
|
|
.application-layout-side-menu,
|
|
.application-layout-top-menu {
|
|
display: none !important;
|
|
}
|
|
|
|
.application-layout-content {
|
|
margin-top: 0;
|
|
}
|
|
}
|
|
|
|
// Fixes for proper snapshots in Percy (move vertical scroll to body level
|
|
// to capture entire page, otherwise it wll be cut by viewport)
|
|
@media only percy {
|
|
body #application-root {
|
|
height: auto;
|
|
|
|
.application-layout-side-menu {
|
|
height: auto;
|
|
}
|
|
|
|
.application-layout-content {
|
|
overflow: visible;
|
|
}
|
|
}
|
|
}
|