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

208 lines
3.6 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;
// background: linear-gradient(180deg, #251f1f 0, #17181b);
$gradient-opacity: 0.03;
background: linear-gradient(135deg, rgba(26, 42, 108, $gradient-opacity), rgba(178, 31, 31, $gradient-opacity), rgba(253, 187, 45, $gradient-opacity)); //Matt experiement
2016-02-15 15:27:41 +01:00
}
.page-container {
@extend .container;
padding: $spacer $spacer $spacer $spacer*3;
}
2017-08-14 16:06:20 +02:00
.scroll-canvas {
position: absolute;
width: 100%;
height: calc(100% - 54px);
2017-08-15 09:46:38 +02:00
overflow: auto;
2017-08-14 16:06:20 +02:00
}
.page-body {
@include media-breakpoint-up(md) {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
}
.page-content-with-sidebar {
width: calc(100% - #{$page-sidebar-width + $page-sidebar-margin}); // sidebar width + margin
}
.page-sidebar {
@include media-breakpoint-up(md) {
width: $page-sidebar-width;
margin-left: $page-sidebar-margin;
}
}
2016-02-15 15:27:41 +01:00
.page-header {
2017-08-15 20:24:16 +02:00
padding: 2rem 0 0 0;
2017-08-14 18:11:35 +02:00
margin-bottom: 2rem;
@include brand-bottom-border();
@include clearfix();
2016-02-15 15:27:41 +01:00
h1 {
2017-08-14 16:06:20 +02:00
font-size: $font-size-h2;
flex-grow: 1;
display: inline-block;
2017-08-15 23:17:34 +02:00
margin-bottom: 1rem;
img {
width: 30px;
height: 30px;
border-radius: 50%;
margin-right: 0.5rem;
position: relative;
top: -3px;
}
}
2017-08-15 17:52:52 +02:00
a, button {
float: right;
margin-left: $spacer;
}
2017-08-14 16:06:20 +02:00
}
.page-heading {
font-size: 1.25rem;
margin-top: 0;
2016-02-18 19:47:00 +01:00
margin-bottom: $spacer * 0.7;
}
2016-02-15 15:27:41 +01:00
.admin-page {
max-width: 800px;
margin-left: 10px;
h2 {
margin-left: 15px;
margin-bottom: 0px;
2016-02-16 09:42:46 +01:00
font-size: $font-size-lg;
color: $text-color;
2016-02-15 15:27:41 +01:00
i {
padding-right: 6px;
}
}
}
.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;
}
2017-08-14 16:06:20 +02:00
$breadcrumb-hover-hl: #111;
$page-breadcrumb__angle-1: 39px;
$page-breadcrumb__angle-ul: 31px;
$page-breadcrumb__angle-a: 30px;
2017-08-14 16:06:20 +02:00
.page-breadcrumb {
display: flex;
padding: 0 $spacer;
line-height: 0.5;
2017-08-14 16:06:20 +02:00
}
.page-breadcrumb__item {
background: $page-nav-bg;
box-shadow: $page-nav-shadow;
2017-08-14 19:47:40 +02:00
2017-08-14 18:11:35 +02:00
> a {
2017-08-14 16:06:20 +02:00
color: $text-color-weak;
font-size: $font-size-sm;
2017-08-14 18:11:35 +02:00
display: block;
2017-08-14 19:47:40 +02:00
padding: 0.6rem 1rem 0.6rem 3rem;;
position: relative;
&::after {
content: '';
position: absolute;
top: -53px;
left: 100%;
content: '';
height: 0;
width: 0;
border: $page-breadcrumb__angle-1 solid transparent;
2017-08-14 19:47:40 +02:00
border-right-width: 0;
border-left-width: $page-breadcrumb__angle-a;
2017-08-14 19:47:40 +02:00
z-index: 2;
border-left-color: $page-nav-bg;
2017-08-14 19:47:40 +02:00
}
2017-08-14 16:06:20 +02:00
}
2017-08-14 18:11:35 +02:00
2017-08-14 19:47:40 +02:00
&:first-child {
a {
padding-left: 1rem;
2017-08-14 18:11:35 +02:00
}
}
&::after {
2017-08-14 19:47:40 +02:00
content: '';
2017-08-14 18:11:35 +02:00
position: absolute;
2017-08-14 19:47:40 +02:00
top: -53px;
2017-08-14 18:11:35 +02:00
left: 100%;
content: '';
height: 0;
width: 0;
border: $page-breadcrumb__angle-1 solid transparent;
2017-08-14 18:11:35 +02:00
border-right-width: 0;
border-left-width: $page-breadcrumb__angle-ul;
2017-08-14 19:47:40 +02:00
z-index: 1;
2017-08-14 18:11:35 +02:00
transform: translateX(4px);
2017-08-14 19:47:40 +02:00
border-left-color: #282020;
margin: 0;
}
&:hover {
background: $breadcrumb-hover-hl;
.page-breadcrumb__caret {
opacity: 1;
}
> a {
color: $text-color;
&::after {
border-left-color: $breadcrumb-hover-hl;
color: $text-color;
}
}
2017-08-14 18:11:35 +02:00
}
}
.page-breadcrumb__caret {
opacity: 0;
position: absolute;
display: block;
width: 16px;
height: 16px;
2017-08-14 19:47:40 +02:00
right: -9px;
top: 5px;
2017-08-14 19:47:40 +02:00
z-index: 3;
2017-08-14 16:06:20 +02:00
}