grafana/public/sass/components/_dashboard.scss

283 lines
4.1 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
.template-variable {
color: $variable;
}
.grafana-row {
margin-bottom: 5px;
}
.row-tab {
.dropdown-menu-right {
top: 0;
left: 33px;
}
}
.row-tab-button {
padding: 0px;
cursor: pointer;
vertical-align: middle;
width: 30px;
height: 30px;
text-align: center;
display: inline-block;
line-height: 30px;
2016-02-19 07:21:57 -06:00
background: $btn-success-bg;
2016-02-15 08:27:41 -06:00
color: rgba(255,255,255,.90);
}
.row-button {
width: 24px;
float: left;
cursor: pointer;
line-height: 31px;
2016-02-16 01:17:08 -06:00
background-color: $blue-dark;
2016-02-15 08:27:41 -06:00
}
.row-text {
white-space: nowrap;
text-transform: uppercase;
font-weight: bold;
font-size: 0.9em;
text-align: center;
line-height: 31px;
height: 31px;
}
.row-close {
padding: 0px;
margin: 0px;
2016-02-16 01:30:37 -06:00
background: $panel-bg;
2016-02-15 08:27:41 -06:00
text-align: center;
}
.row-close-buttons {
position: absolute;
left: 0;
}
.row-open {
margin-top: 5px;
left: -30px;
2016-02-15 08:27:41 -06:00
position: absolute;
z-index: 100;
transition: .10s left;
transition-delay: .10s;
&:hover {
left: -12px;
}
}
.row-control-inner {
padding:0px;
margin:0px;
position:relative;
}
.hide-controls {
padding: 0;
.row-tab {
display: none;
}
.add-row-panel-hint {
display: none;
}
}
.playlist-active {
.add-row-panel-hint,
.dashnav-refresh-action,
.dashnav-zoom-out,
.dashnav-action-icons {
display: none;
}
.grafana-menu-stop-playlist {
display: list-item;
}
}
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;
vertical-align: top;
position: relative;
}
.panel-margin {
margin: 5px;
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
&:hover {
.panel-actions {
display: block;
}
}
&.panel-transparent {
background-color: transparent;
border: none;
}
}
.panel-content {
padding: 0px 10px 5px 10px;
}
.panel-title-container {
min-height: 5px;
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-fullscreen {
.panel-title-container {
padding: 8px;
}
}
.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;
2016-02-15 08:27:41 -06:00
border: 1px solid black;
.panel-menu-row {
white-space: nowrap;
border-bottom: 1px solid black;
&:last-child {
border-bottom: none;
}
}
.panel-menu-link, .panel-menu-icon {
padding: 5px 10px;
}
.panel-menu-link {
display: inline-block;
border-right: 1px solid black;
&: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)
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 {
2016-02-19 05:26:39 -06:00
border: 1px solid $dark-3;
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: se-resize;
position: absolute;
bottom: 0;
right: 0;
width: 15px;
height: 15px;
display: block;
}
.dashboard-header {
font-family: $headings-font-family;
font-size: $font-size-h2;
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-02-15 09:09:05 -06:00
padding: 1.2rem .5rem .4rem .5rem;
2016-02-15 08:27:41 -06:00
}
}