mirror of
https://github.com/grafana/grafana.git
synced 2025-02-10 07:35:45 -06:00
200 lines
3.5 KiB
SCSS
200 lines
3.5 KiB
SCSS
.grafana-app {
|
|
display: flex;
|
|
align-items: stretch;
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
|
|
.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
|
|
}
|
|
|
|
.page-container {
|
|
@extend .container;
|
|
padding: $spacer $spacer $spacer $spacer*3;
|
|
}
|
|
|
|
.scroll-canvas {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: calc(100% - 54px);
|
|
overflow: auto;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
|
|
.page-header {
|
|
padding: 2rem 0 0 0;
|
|
margin-bottom: 2rem;
|
|
@include brand-bottom-border();
|
|
@include clearfix();
|
|
|
|
h1 {
|
|
font-size: $font-size-h2;
|
|
flex-grow: 1;
|
|
display: inline-block;
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
a, button {
|
|
float: right;
|
|
margin-left: $spacer;
|
|
}
|
|
}
|
|
|
|
|
|
.page-heading {
|
|
font-size: 1.25rem;
|
|
margin-top: 0;
|
|
margin-bottom: $spacer * 0.7;
|
|
}
|
|
|
|
.admin-page {
|
|
max-width: 800px;
|
|
margin-left: 10px;
|
|
h2 {
|
|
margin-left: 15px;
|
|
margin-bottom: 0px;
|
|
font-size: $font-size-lg;
|
|
color: $text-color;
|
|
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;
|
|
}
|
|
|
|
$breadcrumb-hover-hl: #111;
|
|
|
|
$page-breadcrumb__angle-1: 39px;
|
|
$page-breadcrumb__angle-ul: 31px;
|
|
$page-breadcrumb__angle-a: 30px;
|
|
|
|
|
|
.page-breadcrumb {
|
|
display: flex;
|
|
padding: 0 $spacer;
|
|
line-height: 0.5;
|
|
}
|
|
|
|
.page-breadcrumb__item {
|
|
background: $page-nav-bg;
|
|
box-shadow: $page-nav-shadow;
|
|
|
|
|
|
> a {
|
|
color: $text-color-weak;
|
|
font-size: $font-size-sm;
|
|
display: block;
|
|
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;
|
|
border-right-width: 0;
|
|
border-left-width: $page-breadcrumb__angle-a;
|
|
z-index: 2;
|
|
border-left-color: $page-nav-bg;
|
|
}
|
|
}
|
|
|
|
&:first-child {
|
|
a {
|
|
padding-left: 1rem;
|
|
}
|
|
}
|
|
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: -53px;
|
|
left: 100%;
|
|
content: '';
|
|
height: 0;
|
|
width: 0;
|
|
border: $page-breadcrumb__angle-1 solid transparent;
|
|
border-right-width: 0;
|
|
border-left-width: $page-breadcrumb__angle-ul;
|
|
z-index: 1;
|
|
transform: translateX(4px);
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.page-breadcrumb__caret {
|
|
opacity: 0;
|
|
position: absolute;
|
|
display: block;
|
|
width: 16px;
|
|
height: 16px;
|
|
right: -9px;
|
|
top: 5px;
|
|
z-index: 3;
|
|
}
|
|
|