Files
grafana/public/sass/layout/_page.scss

96 lines
1.4 KiB
SCSS
Raw Normal View History

2016-02-15 15:27:41 +01:00
.grafana-app {
display: flex;
align-items: stretch;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
2016-02-15 15:27:41 +01:00
}
.main-view {
position: relative;
flex-grow: 1;
2017-08-17 21:32:23 +02:00
background: $page-gradient;
2016-02-15 15:27:41 +01:00
}
.page-container {
@extend .container;
2017-11-30 08:18:23 +01:00
padding: 0 $spacer * 2;
}
2017-08-14 16:06:20 +02:00
.scroll-canvas {
position: absolute;
width: 100%;
2017-08-15 09:46:38 +02:00
overflow: auto;
2017-08-16 11:28:52 +02:00
height: 100%;
&--dashboard {
2017-08-16 11:28:52 +02:00
height: calc(100% - 54px);
}
2017-08-14 16:06:20 +02:00
}
.page-body {
2017-11-30 08:18:23 +01:00
padding-top: $spacer*2;
}
2017-11-30 15:37:03 +01:00
.page-heading {
font-size: 1.25rem;
margin-top: 0;
margin-bottom: $spacer * 0.7;
}
2017-11-30 11:31:38 +01:00
.page-action-bar {
margin-bottom: $spacer * 2;
display: flex;
align-items: flex-start;
2017-11-30 16:35:27 +01:00
> a, > button {
margin-left: $spacer;
}
2017-11-30 11:31:38 +01:00
}
.page-action-bar__spacer {
width: $spacer * 2;
flex-grow: 1;
}
2017-12-01 10:47:21 +01:00
.sidebar-content {
width: calc(100% - #{$page-sidebar-width + $page-sidebar-margin}); // sidebar width + margin
}
2017-12-01 10:47:21 +01: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 16:35:27 +01:00
.page-sub-heading {
margin-bottom: $spacer;
}
.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;
}