grafana/public/sass/pages/_dashboard.scss

283 lines
4.4 KiB
SCSS

.dashboard-container {
padding: $dashboard-padding;
width: 100%;
}
.page-dashboard {
.main-view {
background-image: none;
}
}
.template-variable {
color: $variable;
}
div.flot-text {
color: $text-color !important;
}
.panel {
display: inline-block;
float: left;
&--solo {
.resize-panel-handle {
display: none;
}
.panel-container {
border: none;
}
}
}
.panel-margin {
margin: 0 0.4rem 0.8rem 0.4rem;
display: block;
}
.panel-container {
background-color: $panel-bg;
position: relative;
border: $panel-border;
&.panel-transparent {
background-color: transparent;
border: none;
}
}
.panel-content {
padding: 0px 10px 5px 10px;
}
.panel-title-container {
min-height: 9px;
padding: 2px 0;
cursor: move;
word-wrap: break-word;
display: block;
}
.panel-title {
border: 0px;
font-weight: $font-weight-semi-bold;
position: relative;
width: 100%;
display: block;
}
.panel-menu-container {
margin-left: 6px;
}
.panel-menu-toggle {
color: $text-color-weak;
cursor: pointer;
padding: 3px 5px;
}
.panel-loading {
position:absolute;
top: -3px;
right: 0px;
z-index: 800;
}
.panel-header {
text-align: center;
&:hover {
background: $panel-header-hover-bg;
.panel-menu-toggle {
color: $text-color;
background: $panel-header-menu-hover-bg;
}
}
}
.panel-menu {
border: none;
text-align: left;
background: $side-menu-bg;
box-shadow: $search-shadow;
top: 25px;
left: -100px;
li a {
display: block;
white-space: nowrap;
color: $dropdown-link-color;
font-size: $font-size-sm;
padding: $spacer/2 $spacer;
border-left: 2px solid $side-menu-bg;
i {
display: inline-block;
padding-right: $spacer/2;
}
&:hover {
@include left-brand-border-gradient();
color: $link-color;
background: $input-label-bg;
}
}
}
.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;
position: absolute;
display: none;
left: 0;
width: 27px;
height: 27px;
top: 0;
z-index: 10;
.fa {
position: relative;
top: -4px;
left: -6px;
font-size: 75%;
z-index: 1000;
}
&--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($errorBackground);
.fa:before {
content: "\f12a";
}
}
}
.panel-full-edit {
margin-top: 20px;
margin-bottom: 20px;
}
.panel-highlight {
box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 5px rgba(82,168,236,10.8)
}
// .panel-hover-highlight {
// box-shadow: inset 0 1px 1px rgba(0,0,0,0.025), 0 0 1px rgba(82,168,236,0.5)
// }
.on-drag-hover {
.panel-container {
box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 5px rgba(82,168,236,10.8)
}
}
.panel-drop-zone {
display: none;
.panel-container {
border: $panel-border;
display: flex;
justify-content: center;
flex-direction: column;
text-align: center;
color: $text-color-faint;
font-weight: bold;
background: $panel-drop-zone-bg;
}
}
.panel-in-fullscreen {
.panel-drop-zone {
display: none !important;
}
}
.panel-time-info {
font-weight: bold;
float: right;
margin-right: 15px;
color: $blue;
font-size: 85%;
position: absolute;
top: 0;
right: 0;
}
.resize-panel-handle {
cursor: nwse-resize;
position: absolute;
font-size: 10px;
bottom: 0;
right: 0;
width: 15px;
height: 15px;
display: block;
color: $text-color-faint;
&:before {
left: initial;
right: -1px;
bottom: 0px;
position: absolute;
}
}
.dashboard-header {
font-family: $headings-font-family;
font-size: $font-size-h3;
text-align: center;
span {
display: inline-block;
@include brand-bottom-border();
padding: 0.5rem .5rem .2rem .5rem;
}
}
.dash-edit-view {
opacity: 0;
&--open{
opacity: 1;
transition: opacity 200ms ease-in-out;
}
}