|
| 1 | +.search-result-dropdown-menu { |
| 2 | + position: absolute; |
| 3 | + z-index: 100; |
| 4 | + display: block; |
| 5 | + right: 0; |
| 6 | + left: inherit; |
| 7 | + top: 100%; |
| 8 | + border-radius: 4px; |
| 9 | + margin: 6px 0 0; |
| 10 | + padding: 0; |
| 11 | + text-align: left; |
| 12 | + height: auto; |
| 13 | + background: transparent; |
| 14 | + border: none; |
| 15 | + max-width: 600px; |
| 16 | + min-width: 500px; |
| 17 | + box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2), 0 2px 3px 0 rgba(0, 0, 0, 0.1); |
| 18 | +} |
| 19 | + |
| 20 | +@media screen and (max-width: 768px) { |
| 21 | + .search-result-dropdown-menu { |
| 22 | + min-width: calc(100vw - 3.75rem); |
| 23 | + } |
| 24 | +} |
| 25 | + |
| 26 | +.search-result-dataset { |
| 27 | + position: relative; |
| 28 | + border: 1px solid #d9d9d9; |
| 29 | + background: #fff; |
| 30 | + border-radius: 4px; |
| 31 | + overflow: auto; |
| 32 | + padding: 8px; |
| 33 | + max-height: calc(100vh - 5.25rem); |
| 34 | + line-height: 1.5; |
| 35 | +} |
| 36 | + |
| 37 | +.search-result-item { |
| 38 | + display: flex; |
| 39 | + margin-top: 0.5rem; |
| 40 | +} |
| 41 | + |
| 42 | +.search-result-component-header { |
| 43 | + color: #1e1e1e; |
| 44 | + border-bottom: 1px solid #ddd; |
| 45 | + margin-left: 0.5em; |
| 46 | + margin-right: 0.5em; |
| 47 | + padding-top: 0.25em; |
| 48 | + padding-bottom: 0.25em; |
| 49 | +} |
| 50 | + |
| 51 | +.search-result-document-title { |
| 52 | + width: 33%; |
| 53 | + border-right: 1px solid #ddd; |
| 54 | + color: #02060c; |
| 55 | + font-weight: 500; |
| 56 | + font-size: 0.8rem; |
| 57 | + padding: 0.5rem 0.5rem 0.5rem 0; |
| 58 | + text-align: right; |
| 59 | + position: relative; |
| 60 | + word-wrap: break-word; |
| 61 | +} |
| 62 | + |
| 63 | +.search-result-document-hit { |
| 64 | + flex: 1; |
| 65 | + font-size: 0.75rem; |
| 66 | + color: #63676d; |
| 67 | +} |
| 68 | + |
| 69 | +.search-result-document-hit > a { |
| 70 | + color: inherit; |
| 71 | + display: block; |
| 72 | + padding: 0.55rem 0.25rem 0.55rem 0.75rem; |
| 73 | +} |
| 74 | + |
| 75 | +.search-result-document-hit > a:hover { |
| 76 | + background-color: rgba(69, 142, 225, 0.05); |
| 77 | +} |
| 78 | + |
| 79 | +.search-result-document-hit .search-result-highlight { |
| 80 | + color: #174d8c; |
| 81 | + background: rgba(143, 187, 237, 0.1); |
| 82 | + padding: 0.1em 0.05em; |
| 83 | + font-weight: 500; |
| 84 | +} |
| 85 | + |
| 86 | +.search-result-document-hit .search-result-section-title { |
| 87 | + color: #303030; |
| 88 | + font-weight: 500; |
| 89 | + font-size: 1.05em; |
| 90 | + margin-bottom: 0.25em; |
| 91 | +} |
| 92 | + |
| 93 | +#search-input { |
| 94 | + padding: 0.25em; |
| 95 | +} |
| 96 | + |
| 97 | +#search-input:focus { |
| 98 | + outline: none; |
| 99 | +} |
| 100 | + |
| 101 | +#search-field { |
| 102 | + display: flex; |
| 103 | +} |
| 104 | + |
| 105 | +#search-field .filter { |
| 106 | + background: #fff linear-gradient(180deg,#e1e1e1 0,#e1e1e1) no-repeat 0/1px 50%; |
| 107 | + border: 1px solid #e1e1e1; |
| 108 | + border-left: none; |
| 109 | + border-radius: 0 0.1em 0.1em 0; |
| 110 | + color: #5d5d5d; |
| 111 | + cursor: pointer; |
| 112 | + font-size: .875em; |
| 113 | + display: flex; |
| 114 | + align-items: center; |
| 115 | + padding: 0 0.5rem; |
| 116 | + white-space: nowrap; |
| 117 | + overflow: hidden; |
| 118 | +} |
| 119 | + |
| 120 | +#search-field.has-filter > input { |
| 121 | + border-right: none; |
| 122 | + border-radius: 0.1em 0 0 0.1em; |
| 123 | +} |
0 commit comments