2017-06-02 07:00:42 -05:00
|
|
|
.search-backdrop {
|
|
|
|
position: fixed;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
top: $navbarHeight;
|
|
|
|
z-index: $zindex-modal-backdrop;
|
|
|
|
background-color: $black;
|
|
|
|
@include opacity(70);
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:27:41 -06:00
|
|
|
.search-container {
|
2017-06-02 07:19:39 -05:00
|
|
|
left: 0;
|
2017-06-02 07:00:42 -05:00
|
|
|
top: 0;
|
|
|
|
right: 0;
|
2017-06-08 06:56:51 -05:00
|
|
|
bottom: 0;
|
2017-06-02 07:00:42 -05:00
|
|
|
z-index: ($zindex-modal-backdrop + 10);
|
2017-06-08 06:56:51 -05:00
|
|
|
position: fixed;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
.label-tag {
|
|
|
|
margin-left: 6px;
|
|
|
|
font-size: 11px;
|
|
|
|
padding: 2px 6px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Search
|
|
|
|
.search-field-wrapper {
|
2017-06-02 07:00:42 -05:00
|
|
|
width: 100%;
|
|
|
|
display: flex;
|
|
|
|
background-color: $navbarButtonBackground;
|
|
|
|
|
2016-02-15 08:27:41 -06:00
|
|
|
input {
|
2017-06-02 07:00:42 -05:00
|
|
|
max-width: 653px;
|
|
|
|
//padding: 0.5rem 1.5rem 0.5rem 0;
|
|
|
|
padding: 1rem 1rem 0.75rem 1rem;
|
|
|
|
height: 51px;
|
|
|
|
line-height: 51px;
|
2016-02-15 08:27:41 -06:00
|
|
|
box-sizing: border-box;
|
2017-06-02 07:00:42 -05:00
|
|
|
outline: none;
|
|
|
|
background: $side-menu-bg;
|
|
|
|
background-color: $navbarButtonBackground;
|
|
|
|
flex-grow: 10;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
2017-06-02 07:00:42 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-field-spacer {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
2017-06-08 06:56:51 -05:00
|
|
|
|
2017-06-02 07:00:42 -05:00
|
|
|
.search-switches {
|
|
|
|
flex-grow: 1;
|
|
|
|
padding: 1rem 1rem 0.75rem 1rem;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-field-icon {
|
|
|
|
font-size: $font-size-lg;
|
2017-06-08 06:56:51 -05:00
|
|
|
padding: 1rem 1rem 0.75rem 1.5rem;
|
2017-06-02 07:00:42 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-dropdown {
|
|
|
|
display: flex;
|
2017-06-02 07:19:39 -05:00
|
|
|
flex-direction: column;
|
2017-06-02 07:00:42 -05:00
|
|
|
max-width: 1100px;
|
|
|
|
visibility: none;
|
|
|
|
opacity: 0;
|
2017-06-08 06:56:51 -05:00
|
|
|
height: 100%;
|
2017-06-02 07:00:42 -05:00
|
|
|
|
|
|
|
&--fade-in {
|
|
|
|
visibility: visible;
|
|
|
|
opacity: 1;
|
|
|
|
transition: opacity 0.3s;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-results-container {
|
2017-06-08 06:56:51 -05:00
|
|
|
height: 90%;
|
2016-02-15 08:27:41 -06:00
|
|
|
overflow: auto;
|
|
|
|
display: block;
|
|
|
|
line-height: 28px;
|
2017-06-02 07:00:42 -05:00
|
|
|
padding: $spacer;
|
|
|
|
background: $panel-bg;
|
|
|
|
flex-grow: 10;
|
2016-02-15 08:27:41 -06:00
|
|
|
|
|
|
|
.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 {
|
2017-01-16 05:02:07 -06:00
|
|
|
word-wrap: break-word;
|
2016-02-15 08:27:41 -06:00
|
|
|
display: block;
|
|
|
|
padding: 3px 10px;
|
2017-06-02 07:00:42 -05:00
|
|
|
white-space: nowrap;
|
|
|
|
background-color: $tight-form-bg;
|
2016-02-15 08:27:41 -06:00
|
|
|
margin-bottom: 4px;
|
2017-06-02 07:00:42 -05:00
|
|
|
@include left-brand-border();
|
2016-02-21 05:47:57 -06:00
|
|
|
|
2016-06-20 03:37:47 -05:00
|
|
|
.search-result-icon::before {
|
2016-02-15 08:27:41 -06:00
|
|
|
content: "\f009";
|
|
|
|
}
|
|
|
|
|
2017-06-02 07:00:42 -05:00
|
|
|
&:hover {
|
|
|
|
background-color: $tight-form-func-bg;
|
|
|
|
@include left-brand-border-gradient();
|
|
|
|
}
|
|
|
|
|
|
|
|
&.selected {
|
|
|
|
background-color: $grafanaListBackground;
|
|
|
|
}
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-tags {
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-result-actions {
|
|
|
|
float: right;
|
|
|
|
padding-left: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-03-27 07:36:28 -05:00
|
|
|
.search-item-child {
|
|
|
|
margin-left: 20px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.search-item-dash-home > .search-result-link > .search-result-icon::before {
|
|
|
|
content: "\f015";
|
|
|
|
}
|
|
|
|
|
2017-05-04 08:51:45 -05:00
|
|
|
.search-item-dash-folder.search-results-browse-mode > .search-result-link > .search-result-icon::before {
|
2017-03-27 07:36:28 -05:00
|
|
|
content: "\f07c";
|
|
|
|
}
|
2016-02-15 08:27:41 -06:00
|
|
|
|
2017-05-04 08:51:45 -05:00
|
|
|
.search-item-dash-folder.search-results-search-mode > .search-result-link > .search-result-icon::before {
|
|
|
|
content: "\f07b";
|
|
|
|
}
|
|
|
|
|
2016-02-15 08:27:41 -06:00
|
|
|
.search-button-row {
|
2017-06-02 07:00:42 -05:00
|
|
|
padding: $spacer*2;
|
|
|
|
display: flex;
|
2017-06-08 06:56:51 -05:00
|
|
|
flex-direction: row;
|
2017-06-02 07:00:42 -05:00
|
|
|
align-items: flex-start;
|
2017-06-08 06:56:51 -05:00
|
|
|
justify-content: space-around;
|
|
|
|
height: 30%;
|
2016-07-11 12:07:16 -05:00
|
|
|
|
2016-02-15 08:27:41 -06:00
|
|
|
button, a {
|
2017-06-02 07:00:42 -05:00
|
|
|
margin-bottom: $spacer;
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
2016-07-11 12:07:16 -05:00
|
|
|
|
|
|
|
.search-button-row-explore-link {
|
2017-03-21 12:13:35 -05:00
|
|
|
color: $gray-3;
|
2016-07-11 12:07:16 -05:00
|
|
|
font-size: $font-size-sm;
|
|
|
|
position: relative;
|
2017-03-21 12:13:35 -05:00
|
|
|
top: 1.0rem;
|
2016-07-11 12:07:16 -05:00
|
|
|
&:hover {
|
|
|
|
color: $link-hover-color;
|
|
|
|
}
|
2017-03-21 10:16:42 -05:00
|
|
|
img {
|
2017-03-21 12:13:35 -05:00
|
|
|
vertical-align: text-bottom;
|
2017-03-21 10:16:42 -05:00
|
|
|
}
|
2016-07-11 12:07:16 -05:00
|
|
|
}
|
2016-02-15 08:27:41 -06:00
|
|
|
}
|
|
|
|
|
2017-06-08 06:56:51 -05:00
|
|
|
@include media-breakpoint-up(lg) {
|
2017-06-02 07:19:39 -05:00
|
|
|
.search-dropdown {
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
2017-06-08 06:56:51 -05:00
|
|
|
.search-button-row {
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: flex-start;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@include media-breakpoint-up(md) {
|
2017-06-02 07:19:39 -05:00
|
|
|
.search-container {
|
|
|
|
left: 78px;
|
|
|
|
}
|
|
|
|
}
|