|
| 1 | +// stylelint-disable selector-class-pattern |
| 2 | + |
| 3 | +.DocSearch-Container { |
| 4 | + --docsearch-muted-color: #{$text-muted}; |
| 5 | + --docsearch-hit-shadow: none; |
| 6 | + |
| 7 | + z-index: 2000; // Make sure to be over all components showcased in the documentation |
| 8 | + cursor: auto; // Needed because of [role="button"] in Algolia search modal. Remove once https://github.com/algolia/docsearch/issues/1370 is tackled. |
| 9 | + |
| 10 | + @include media-breakpoint-up(lg) { |
| 11 | + padding-top: 4rem; |
| 12 | + } |
| 13 | +} |
| 14 | + |
| 15 | +.DocSearch-Button { |
| 16 | + min-width: 200px; |
| 17 | + min-height: 38px; |
| 18 | + font-family: $input-font-family; |
| 19 | + font-weight: $input-font-weight; |
| 20 | + line-height: $input-line-height; |
| 21 | + @include font-size($input-font-size); |
| 22 | + color: $input-color; |
| 23 | + background-color: $input-bg; |
| 24 | + background-clip: padding-box; |
| 25 | + border: $input-border-width solid $input-border-color; |
| 26 | + |
| 27 | + // Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS. |
| 28 | + @include border-radius($btn-border-radius); |
| 29 | + |
| 30 | + @include box-shadow($input-box-shadow); |
| 31 | + @include transition($input-transition); |
| 32 | + |
| 33 | + &:focus { |
| 34 | + color: $input-focus-color; |
| 35 | + background-color: $input-focus-bg; |
| 36 | + border-color: $input-focus-border-color; |
| 37 | + outline: 0; |
| 38 | + @if $enable-shadows { |
| 39 | + @include box-shadow($input-box-shadow, $input-focus-box-shadow); |
| 40 | + } @else { |
| 41 | + // Avoid using mixin so we can pass custom focus shadow properly |
| 42 | + box-shadow: $input-focus-box-shadow; |
| 43 | + } |
| 44 | + } |
| 45 | + |
| 46 | + &:hover:not(:disabled):not([readonly])::file-selector-button { |
| 47 | + background-color: $form-file-button-hover-bg; |
| 48 | + } |
| 49 | + |
| 50 | + .DocSearch-Search-Icon { |
| 51 | + opacity: .65; |
| 52 | + } |
| 53 | +} |
| 54 | + |
| 55 | + |
| 56 | +.DocSearch-Button-Keys { |
| 57 | + min-width: 0; |
| 58 | + padding: 0 .25rem; |
| 59 | + background: rgba($black, .125); |
| 60 | + @include border-radius(.25rem); |
| 61 | +} |
| 62 | + |
| 63 | +.DocSearch-Button-Key { |
| 64 | + top: 0; |
| 65 | + width: auto; |
| 66 | + height: 1.5rem; |
| 67 | + padding: 0 .125rem; |
| 68 | + margin-right: 0; |
| 69 | + font-size: .875rem; |
| 70 | + background: none; |
| 71 | + box-shadow: none; |
| 72 | +} |
| 73 | + |
| 74 | +.DocSearch-Commands-Key { |
| 75 | + padding-left: 1px; |
| 76 | + font-size: .875rem; |
| 77 | + background-color: rgba($black, .1); |
| 78 | + background-image: none; |
| 79 | + box-shadow: none; |
| 80 | +} |
| 81 | + |
| 82 | +.DocSearch-Form { |
| 83 | + @include border-radius(var(--cui-border-radius)); |
| 84 | +} |
| 85 | + |
| 86 | +.DocSearch-Hits { |
| 87 | + mark { |
| 88 | + padding: 0; |
| 89 | + } |
| 90 | +} |
| 91 | + |
| 92 | +.DocSearch-Hit { |
| 93 | + padding-bottom: 0; |
| 94 | + @include border-radius(0); |
| 95 | + |
| 96 | + a { |
| 97 | + @include border-radius(0); |
| 98 | + border: solid var(--cui-border-color); |
| 99 | + border-width: 0 1px 1px; |
| 100 | + } |
| 101 | + |
| 102 | + &:first-child a { |
| 103 | + @include border-top-radius(var(--cui-border-radius)); |
| 104 | + border-top-width: 1px; |
| 105 | + } |
| 106 | + &:last-child a { |
| 107 | + @include border-bottom-radius(var(--cui-border-radius)); |
| 108 | + } |
| 109 | +} |
| 110 | + |
| 111 | +.DocSearch-Hit-icon { |
| 112 | + display: flex; |
| 113 | + align-items: center; |
| 114 | +} |
0 commit comments