grafana/public/sass/pages/_dashboard.scss

221 lines
3.4 KiB
SCSS
Raw Normal View History

.dashboard-container {
padding: $dashboard-padding;
width: 100%;
}
.page-dashboard {
.main-view {
background-image: none;
}
}
2016-02-15 08:27:41 -06:00
.template-variable {
color: $variable;
}
2016-02-15 08:27:41 -06:00
div.flot-text {
2016-02-16 02:42:46 -06:00
color: $text-color !important;
2016-02-15 08:27:41 -06:00
}
.panel {
display: inline-block;
float: left;
2016-11-06 08:40:02 -06:00
&--solo {
.resize-panel-handle {
display: none;
}
.panel-container {
border: none;
}
}
2016-02-15 08:27:41 -06:00
}
.panel-margin {
2016-03-01 06:50:24 -06:00
margin: 0 0.4rem 0.8rem 0.4rem;
2016-02-15 08:27:41 -06:00
display: block;
}
.panel-container {
2016-02-16 01:30:37 -06:00
background-color: $panel-bg;
2016-02-15 08:27:41 -06:00
position: relative;
2016-02-16 01:30:37 -06:00
border: $panel-border;
2016-02-15 08:27:41 -06:00
&.panel-transparent {
background-color: transparent;
border: none;
}
}
.panel-content {
padding: 0px 10px 5px 10px;
}
.panel-title-container {
min-height: 9px;
2016-02-15 08:27:41 -06:00
padding-top: 4px;
cursor: pointer;
}
.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;
cursor: pointer;
width: 100%;
display: block;
}
.panel-links-btn {
margin-left: 10px;
display: none;
}
.panel-loading {
position:absolute;
top: -3px;
right: 0px;
z-index: 800;
}
.panel-header {
text-align: center;
}
.panel-error {
color: $white;
position: absolute;
left: 0;
padding: 0px 17px 6px 5px;
top: 0;
z-index: 10;
i {
position: relative;
top: -2px;
}
}
.panel-error-arrow {
width: 0;
height: 0;
position: absolute;
border-left: 31px solid transparent;
border-right: 30px solid transparent;
2016-02-16 01:30:37 -06:00
border-bottom: 27px solid $panel-bg;
2016-02-15 08:27:41 -06:00
left: 0;
bottom: 0;
}
.panel-full-edit {
margin-top: 20px;
margin-bottom: 20px;
}
.panel-menu {
z-index: 500;
position: absolute;
2016-02-16 02:42:46 -06:00
background: $tight-form-func-bg;
border: $panel-menu-border;
2016-02-15 08:27:41 -06:00
.panel-menu-row {
white-space: nowrap;
border-bottom: $panel-menu-border;
2016-02-15 08:27:41 -06:00
&:last-child {
border-bottom: none;
}
}
.panel-menu-link, .panel-menu-icon {
padding: 5px 10px;
}
.panel-menu-link {
display: inline-block;
border-right: $panel-menu-border;
2016-02-15 08:27:41 -06:00
&:last-child {
border: none;
}
}
.dropdown-menu {
text-align: left;
}
}
.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)
2016-02-15 08:27:41 -06:00
}
.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)
2016-02-15 08:27:41 -06:00
}
}
.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;
2016-02-15 08:27:41 -06:00
}
}
.panel-in-fullscreen {
.panel-drop-zone {
display: none !important;
}
}
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;
top: 0;
right: 0;
}
.resize-panel-handle {
cursor: nwse-resize;
2016-02-15 08:27:41 -06:00
position: absolute;
bottom: 0;
right: 0;
width: 15px;
height: 15px;
display: block;
color: $text-color-faint;
overflow: hidden;
&:before {
left: initial;
right: -5px;
bottom: 0px;
position: absolute;
}
2016-02-15 08:27:41 -06:00
}
.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;
span {
display: inline-block;
2016-02-24 03:32:22 -06:00
@include brand-bottom-border();
2016-04-11 15:21:25 -05:00
padding: 0.5rem .5rem .2rem .5rem;
2016-02-15 08:27:41 -06:00
}
}