grafana/public/sass/pages/_dashboard.scss

223 lines
3.4 KiB
SCSS
Raw Normal View History

.dashboard-container {
padding: $dashboard-padding;
width: 100%;
2017-08-17 14:32:23 -05:00
min-height: 100%;
// background: $dashboard-gradient;
}
2016-02-15 08:27:41 -06:00
.template-variable {
color: $variable;
}
div.flot-text {
2016-02-16 02:42:46 -06:00
color: $text-color !important;
2016-02-15 08:27:41 -06:00
}
.panel {
2017-10-16 02:55:55 -05:00
height: 100%;
2016-11-06 08:40:02 -06:00
&--solo {
.panel-container {
border: none;
2017-12-19 09:22:41 -06:00
z-index: $zindex-sidemenu + 1;
2016-11-06 08:40:02 -06:00
}
}
2016-02-15 08:27:41 -06:00
}
2017-11-21 07:30:33 -06:00
.panel-height-helper {
display: block;
height: 100%;
}
2016-02-15 08:27:41 -06:00
.panel-container {
2016-02-16 01:30:37 -06:00
background-color: $panel-bg;
2017-08-17 08:52:22 -05:00
border: $panel-border;
2016-02-15 08:27:41 -06:00
position: relative;
2017-10-26 09:06:28 -05:00
border-radius: 3px;
2017-10-09 10:24:10 -05:00
height: 100%;
2016-02-15 08:27:41 -06:00
&.panel-transparent {
background-color: transparent;
border: none;
}
&:hover {
.panel-menu-toggle {
visibility: visible;
transition: opacity 0.1s ease-in 0.2s;
opacity: 1;
}
}
2016-02-15 08:27:41 -06:00
}
.panel-content {
2017-11-29 06:21:42 -06:00
padding: $panel-padding;
2017-11-21 07:30:33 -06:00
height: calc(100% - 27px);
position: relative;
overflow: hidden;
2016-02-15 08:27:41 -06:00
}
.panel-title-container {
min-height: 9px;
2017-04-11 03:05:30 -05:00
cursor: move;
word-wrap: break-word;
2017-04-11 03:05:30 -05:00
display: block;
2016-02-15 08:27:41 -06:00
}
.panel-title {
border: 0px;
2016-02-16 03:42:06 -06:00
font-weight: $font-weight-semi-bold;
2016-02-15 08:27:41 -06:00
position: relative;
width: 100%;
display: block;
2017-08-03 03:35:27 -05:00
padding-bottom: 2px;
}
.panel-title-text {
cursor: pointer;
2017-08-14 06:57:16 -05:00
font-weight: $font-weight-semi-bold;
2017-08-03 03:35:27 -05:00
&:hover {
color: $link-hover-color;
}
2016-02-15 08:27:41 -06:00
}
2017-04-11 03:05:30 -05:00
.panel-menu-container {
2017-08-03 06:26:30 -05:00
width: 1px;
height: 19px;
display: inline-block;
2017-04-11 03:05:30 -05:00
}
.panel-menu-toggle {
color: $text-color-weak;
2017-04-11 03:05:30 -05:00
cursor: pointer;
2017-04-11 00:43:40 -05:00
padding: 3px 5px;
2017-08-03 03:35:27 -05:00
visibility: hidden;
opacity: 0;
position: absolute;
width: 16px;
height: 16px;
2017-08-03 06:26:30 -05:00
left: 1px;
top: 4px;
2017-08-03 03:35:27 -05:00
&:hover {
color: $link-hover-color;
}
2016-02-15 08:27:41 -06:00
}
.panel-loading {
2017-12-19 09:22:41 -06:00
position: absolute;
2016-02-15 08:27:41 -06:00
top: -3px;
right: 0px;
z-index: 800;
2017-08-03 03:35:27 -05:00
font-size: $font-size-sm;
color: $text-color-weak;
2016-02-15 08:27:41 -06:00
}
.panel-header {
text-align: center;
2017-04-11 00:43:40 -05:00
&:hover {
2017-08-03 03:35:27 -05:00
transition: background-color 0.1s ease-in-out;
background-color: $panel-header-hover-bg;
2017-04-11 00:43:40 -05:00
}
2016-02-15 08:27:41 -06:00
}
2017-04-11 03:05:30 -05:00
.panel-menu {
top: 25px;
left: -100px;
2017-04-11 00:43:40 -05:00
}
.panel-info-corner-inner {
width: 0;
height: 0;
position: absolute;
left: 0;
bottom: 0;
}
@mixin panel-corner-color($corner-bg) {
.panel-info-corner-inner {
border-left: 27px solid $corner-bg;
border-right: none;
border-bottom: 27px solid transparent;
}
}
.panel-info-corner {
color: $text-muted;
cursor: pointer;
2016-02-15 08:27:41 -06:00
position: absolute;
display: none;
2016-02-15 08:27:41 -06:00
left: 0;
width: 27px;
height: 27px;
2016-02-15 08:27:41 -06:00
top: 0;
z-index: 1;
.fa {
2016-02-15 08:27:41 -06:00
position: relative;
top: -4px;
left: -6px;
font-size: 75%;
z-index: 1;
2016-02-15 08:27:41 -06:00
}
&--info {
display: block;
@include panel-corner-color(lighten($panel-bg, 4%));
.fa:before {
content: '\f129';
}
}
&--links {
display: block;
@include panel-corner-color(lighten($panel-bg, 4%));
.fa {
left: -5px;
}
.fa:before {
content: '\f08e';
}
}
&--error {
display: block;
color: $text-color;
@include panel-corner-color($popover-error-bg);
.fa:before {
content: '\f12a';
}
}
2016-02-15 08:27:41 -06:00
}
.panel-time-info {
font-weight: bold;
float: right;
margin-right: 15px;
color: $blue;
font-size: 85%;
position: absolute;
2017-08-09 08:33:19 -05:00
top: 4px;
2016-02-15 08:27:41 -06:00
right: 0;
}
.dashboard-header {
font-family: $headings-font-family;
2016-04-11 15:21:25 -05:00
font-size: $font-size-h3;
2016-02-15 08:27:41 -06:00
text-align: center;
overflow: hidden;
position: relative;
top: -10px;
2016-02-15 08:27:41 -06:00
span {
display: inline-block;
2016-02-24 03:32:22 -06:00
@include brand-bottom-border();
2017-12-19 09:22:41 -06:00
padding: 0.5rem 0.5rem 0.2rem 0.5rem;
2016-02-15 08:27:41 -06:00
}
}
2017-12-09 15:45:33 -06:00
.panel-full-edit {
margin: $dashboard-padding (-$dashboard-padding) 0 (-$dashboard-padding);
}