mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashboard: dashboard search results component. closes #10080
This commit is contained in:
committed by
Marcus Efraimsson
parent
d29c695d44
commit
781349d360
@@ -3,6 +3,7 @@
|
||||
|
||||
.search-results-container {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -129,12 +129,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.search-section__header__with-checkbox {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.search-section__header__icon {
|
||||
padding: 5px 10px;
|
||||
padding: 2px 10px;
|
||||
}
|
||||
|
||||
.search-section__header__toggle {
|
||||
@@ -145,14 +141,6 @@
|
||||
flex-grow: 1;
|
||||
}
|
||||
|
||||
.search-item__with-checkbox {
|
||||
display: flex;
|
||||
|
||||
.search-item {
|
||||
margin: 1px 3px;
|
||||
}
|
||||
}
|
||||
|
||||
.search-item {
|
||||
@include list-item();
|
||||
@include left-brand-border();
|
||||
|
||||
@@ -102,6 +102,73 @@ $switch-height: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
.gf-form-switch--search-result__section, .gf-form-switch--search-result__item {
|
||||
min-width: 2.6rem;
|
||||
|
||||
input + label {
|
||||
background-color: inherit;
|
||||
height: 1.7rem;
|
||||
}
|
||||
}
|
||||
|
||||
.gf-form-switch--search-result__section {
|
||||
min-width: 3.3rem;
|
||||
margin-right: -0.3rem;
|
||||
|
||||
&:hover {
|
||||
input + label::before {
|
||||
@include buttonBackground($panel-bg, $panel-bg);
|
||||
}
|
||||
|
||||
input + label::after {
|
||||
@include buttonBackground($panel-bg, $panel-bg, lighten($orange, 10%));
|
||||
}
|
||||
}
|
||||
|
||||
input + label::before, input + label::after {
|
||||
@include buttonBackground($panel-bg, $panel-bg);
|
||||
}
|
||||
|
||||
input + label::before {
|
||||
color: $gray-2
|
||||
}
|
||||
|
||||
input + label::after {
|
||||
color: $orange
|
||||
}
|
||||
}
|
||||
|
||||
.gf-form-switch--search-result__item {
|
||||
input + label {
|
||||
height: 2.7rem;
|
||||
}
|
||||
|
||||
|
||||
&:hover {
|
||||
input + label::before {
|
||||
@include buttonBackground($list-item-hover-bg, $list-item-hover-bg);
|
||||
}
|
||||
|
||||
input + label::after {
|
||||
@include buttonBackground($list-item-hover-bg, $list-item-hover-bg);
|
||||
color: lighten($orange, 10%);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
input + label::before, input + label::after {
|
||||
@include buttonBackground($list-item-hover-bg, $list-item-hover-bg);
|
||||
}
|
||||
|
||||
input + label::before {
|
||||
color: $gray-2
|
||||
}
|
||||
|
||||
input + label::after {
|
||||
color: $orange
|
||||
}
|
||||
}
|
||||
|
||||
gf-form-switch[disabled] {
|
||||
.gf-form-label,
|
||||
.gf-form-switch input + label {
|
||||
|
||||
Reference in New Issue
Block a user