grafana/public/sass/layout/_page.scss

154 lines
2.3 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
.grafana-app {
display: flex;
align-items: stretch;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
2016-02-15 08:27:41 -06:00
}
.main-view {
position: relative;
flex-grow: 1;
2017-08-17 14:32:23 -05:00
background: $page-gradient;
2016-02-15 08:27:41 -06:00
}
2018-11-22 01:46:54 -06:00
.panel-in-fullscreen {
.main-view {
2018-11-22 08:34:55 -06:00
background: $edit-gradient;
2018-11-22 01:46:54 -06:00
}
}
2016-02-15 08:27:41 -06:00
.page-container {
margin-left: auto;
margin-right: auto;
2017-12-19 09:22:41 -06:00
padding-left: $spacer*2;
padding-right: $spacer*2;
max-width: 980px;
@include clearfix();
}
2017-08-14 09:06:20 -05:00
2018-04-26 04:58:42 -05:00
.page-full {
margin-left: $page-sidebar-margin;
padding-left: $spacer;
padding-right: $spacer;
@include clearfix();
}
.scroll-canvas {
position: absolute;
width: 100%;
2017-08-15 02:46:38 -05:00
overflow: auto;
2017-08-16 04:28:52 -05:00
height: 100%;
-webkit-overflow-scrolling: touch;
2018-12-25 13:18:38 -06:00
display: flex;
flex-direction: column;
2017-08-16 04:28:52 -05:00
&--dashboard {
2017-12-15 06:14:00 -06:00
height: calc(100% - 56px);
2017-08-16 04:28:52 -05:00
}
> div {
flex-grow: 1;
}
> .footer {
flex-shrink: 0;
}
// Render in correct position even ng-view div is not rendered yet
> .footer:first-child {
flex-grow: 1;
display: flex;
> * {
width: 100%;
align-self: flex-end;
}
}
2017-08-14 09:06:20 -05:00
}
// fix for phantomjs
.body--phantomjs {
.scroll-canvas {
overflow: hidden;
}
}
.page-body {
2017-11-30 01:18:23 -06:00
padding-top: $spacer*2;
2017-12-13 06:16:44 -06:00
min-height: 500px;
}
2017-11-30 08:37:03 -06:00
.page-heading {
font-size: 1.25rem;
margin-top: 0;
margin-bottom: $spacer * 0.7;
}
2017-11-30 04:31:38 -06:00
.page-action-bar {
margin-bottom: $spacer * 2;
display: flex;
align-items: flex-start;
2017-11-30 09:35:27 -06:00
2017-12-19 09:22:41 -06:00
> a,
> button {
2017-11-30 09:35:27 -06:00
margin-left: $spacer;
}
2017-11-30 04:31:38 -06:00
}
.page-action-bar--narrow {
margin-bottom: 0;
}
2017-11-30 04:31:38 -06:00
.page-action-bar__spacer {
width: $spacer * 2;
flex-grow: 1;
}
2017-12-01 03:47:21 -06:00
.sidebar-content {
width: calc(100% - #{$page-sidebar-width + $page-sidebar-margin}); // sidebar width + margin
}
2017-12-01 03:47:21 -06:00
.sidebar-container {
@include media-breakpoint-up(md) {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
}
.page-sidebar {
@include media-breakpoint-up(md) {
width: $page-sidebar-width;
margin-left: $page-sidebar-margin;
}
}
2017-11-30 09:35:27 -06:00
.page-sub-heading {
margin-bottom: $spacer;
}
.page-sub-heading-icon {
margin-left: $spacer;
vertical-align: 6px;
font-size: 13px;
}
.page-sidebar {
color: $text-color-weak;
h4 {
font-size: $font-size-base;
font-weight: $font-weight-semi-bold;
}
h5 {
font-size: $font-size-base;
font-weight: $font-weight-semi-bold;
}
}
.page-sidebar-section {
margin-bottom: $spacer*2;
}