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