grafana/public/sass/components/_search.scss
2016-02-16 08:30:37 +01:00

108 lines
1.6 KiB
SCSS

.search-container {
left: 72px;
top: 39px;
margin: 16px 0 0 2px;
z-index: 1000;
position: absolute;
width: 700px;
box-shadow: $searchShadow;
padding: 10px;
background-color: $panel-bg;
border: $panel-border;
.label-tag {
margin-left: 6px;
font-size: 11px;
padding: 2px 6px;
}
}
// Search
.search-field-wrapper {
padding-bottom: 10px;
input {
width: 100%;
padding: 8px 8px;
height: 100%;
box-sizing: border-box;
}
button {
margin: 0 4px 0 0;
}
> span {
display: block;
overflow: hidden;
}
}
.search-results-container {
height: 450px;
overflow: auto;
display: block;
line-height: 28px;
.search-item:hover, .search-item.selected {
background-color: $grafanaListHighlight;
}
.selected {
.search-result-tag {
opacity: 0.70;
color: white;
}
}
.fa-star, .fa-star-o {
padding-left: 13px;
}
.fa-star {
color: $orange;
}
.search-result-link {
color: $grafanaListMainLinkColor;
.fa {
padding-right: 10px;
}
}
.search-item {
display: block;
padding: 3px 10px;
white-space: nowrap;
background-color: $grafanaListBackground;
margin-bottom: 4px;
.search-result-icon:before {
content: "\f009";
}
&.search-item-dash-home .search-result-icon:before {
content: "\f015";
}
}
.search-result-tags {
float: right;
}
.search-result-actions {
float: right;
padding-left: 20px;
}
}
.search-switches {
position: absolute;
top: 19px;
right: 21px;
}
.search-button-row {
padding-top: 20px;
button, a {
margin-right: 10px;
}
}