grafana/public/sass/components/_submenu.scss

149 lines
2.6 KiB
SCSS
Raw Normal View History

2016-02-15 08:27:41 -06:00
.submenu-controls {
2017-04-18 09:58:34 -05:00
display: flex;
flex-direction: row;
flex-wrap: wrap;
align-content: flex-start;
align-items: flex-start;
2019-03-12 02:34:55 -05:00
padding: 0 0 $space-sm 0;
2016-02-15 08:27:41 -06:00
}
2017-12-19 09:22:41 -06:00
.annotation-disabled,
.annotation-disabled a {
2016-02-16 02:42:46 -06:00
color: $link-color-disabled;
2016-02-15 08:27:41 -06:00
}
.annotation-segment {
2016-11-16 10:08:38 -06:00
padding: 8px 7px;
2016-02-15 08:27:41 -06:00
label.cr1 {
margin-left: 5px;
margin-top: 3px;
2016-02-15 08:27:41 -06:00
}
}
.submenu-item {
display: inline-block;
margin-right: 15px;
2016-02-15 08:27:41 -06:00
.fa-caret-down {
font-size: 75%;
padding-left: 8px;
2016-02-15 08:27:41 -06:00
}
.gf-form-inline .gf-form {
margin-bottom: 0;
}
2016-02-15 08:27:41 -06:00
}
.variable-value-link {
max-width: 500px;
2016-02-15 08:27:41 -06:00
padding-right: 10px;
padding: 0 $space-sm;
background-color: $input-bg;
border: 1px solid $input-border-color;
border-radius: $input-border-radius;
display: flex;
align-items: center;
2016-02-24 01:32:09 -06:00
color: $text-color;
height: $input-height;
2016-11-16 10:08:38 -06:00
.label-tag {
margin: 0 5px;
}
2016-02-24 01:32:09 -06:00
}
2017-12-19 09:22:41 -06:00
.variable-link-wrapper {
2016-02-15 08:27:41 -06:00
display: inline-block;
position: relative;
}
.variable-value-dropdown {
position: absolute;
top: 47px;
min-width: 150px;
max-height: 400px;
min-height: 150px;
overflow-y: auto;
overflow-x: hidden;
background-color: $dropdownBackground;
2017-12-19 09:22:41 -06:00
box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
z-index: $zindex-typeahead;
2016-02-16 03:42:06 -06:00
font-size: $font-size-base;
2016-02-15 08:27:41 -06:00
border-radius: 3px 3px 0 0;
2016-02-16 02:42:46 -06:00
border: 1px solid $tight-form-func-bg;
2016-02-15 08:27:41 -06:00
&.multi {
2017-12-19 09:22:41 -06:00
.selected {
.variable-option-icon {
background: url($checkboxImageUrl) 0px -18px no-repeat;
}
}
}
&.single {
.variable-option-icon {
display: none;
}
.selected {
background-color: $tight-form-func-highlight-bg;
}
}
2016-02-15 08:27:41 -06:00
}
.variable-options-wrapper {
display: table;
width: 100%;
}
.variable-options-column {
max-height: 350px;
display: table-cell;
line-height: 26px;
&:nth-child(2) {
2016-02-16 02:42:46 -06:00
border-left: 1px solid $tight-form-func-bg;
2016-02-15 08:27:41 -06:00
}
}
.variable-option-tag,
.variable-option,
.variable-options-column-header {
display: block;
padding: 2px 27px 0 8px;
position: relative;
white-space: nowrap;
min-width: 115px;
}
.variable-options-column-header {
padding-top: 5px;
padding-bottom: 5px;
margin-bottom: 5px;
&.many-selected {
.variable-option-icon {
background: url($checkboxImageUrl) 0px -36px no-repeat;
}
}
}
.variable-option-icon {
display: inline-block;
width: 24px;
height: 18px;
position: relative;
top: 4px;
background: url($checkboxImageUrl) left top no-repeat;
}
.variable-option {
2017-12-19 09:22:41 -06:00
&:hover,
&.highlighted {
background-color: $variable-option-bg;
2016-02-15 08:27:41 -06:00
}
}
.dash-nav-link {
padding: 8px 7px;
display: inline-block;
2016-02-16 02:42:46 -06:00
color: $text-color;
2016-02-15 08:27:41 -06:00
}