grafana/public/sass/components/_row.scss

91 lines
1.5 KiB
SCSS
Raw Normal View History

2017-08-18 09:33:36 -05:00
.dashboard-row {
display: flex;
2017-10-17 05:04:18 -05:00
align-items: center;
height: 100%;
2017-10-17 07:53:52 -05:00
&--collapsed {
2017-08-18 09:33:36 -05:00
background: $panel-bg;
2017-08-24 09:37:00 -05:00
.dashboard-row__panel_count {
2017-10-17 05:04:18 -05:00
display: inline-block;
2017-08-24 09:37:00 -05:00
}
.dashboard-row__drag {
2017-08-24 09:37:00 -05:00
visibility: visible;
opacity: 1;
}
.dashboard-row__actions {
visibility: hidden;
}
.dashboard-row__toggle-target {
flex: 1;
cursor: pointer;
margin-right: 15px;
}
2017-08-18 09:33:36 -05:00
}
&:hover {
.dashboard-row__actions {
visibility: visible;
opacity: 1;
}
}
}
2017-08-18 09:33:36 -05:00
.dashboard-row__title {
2017-08-25 11:53:35 -05:00
flex-grow: 0;
font-size: $font-size-h5;
2017-08-18 09:33:36 -05:00
font-weight: $font-weight-semi-bold;
color: $text-color;
background: transparent;
border: none;
.fa {
color: $text-muted;
2017-10-17 05:04:18 -05:00
font-size: $font-size-xs;
padding: 0 $space-sm;
}
2017-08-18 09:33:36 -05:00
}
.dashboard-row__actions {
color: $text-muted;
2017-08-24 07:08:05 -05:00
visibility: hidden;
opacity: 0;
transition: 200ms opacity ease-in 200ms;
2017-08-25 11:53:35 -05:00
button {
2017-08-24 07:08:05 -05:00
color: $text-color-weak;
2017-08-24 09:37:00 -05:00
padding-left: $spacer;
background: transparent;
border: none;
2017-08-24 07:08:05 -05:00
&:hover {
color: $link-hover-color;
}
}
2017-08-18 09:33:36 -05:00
}
2017-08-24 09:37:00 -05:00
.dashboard-row__panel_count {
2017-10-17 05:04:18 -05:00
padding-left: $spacer;
2017-08-24 09:37:00 -05:00
color: $text-color-weak;
font-style: italic;
font-size: $font-size-sm;
font-weight: normal;
display: none;
}
.dashboard-row__drag {
cursor: move;
width: 16px;
2017-10-16 09:09:23 -05:00
height: 100%;
background: url('../img/grab_dark.svg') no-repeat 50% 50%;
2017-08-24 09:37:00 -05:00
background-size: 8px;
visibility: hidden;
2017-08-25 11:53:35 -05:00
position: absolute;
top: 0;
right: 0;
2017-08-24 09:37:00 -05:00
}