|
| 1 | +// AI-powered search |
| 2 | + |
| 3 | +.ai-search-invisible { |
| 4 | + display: none !important; |
| 5 | +} |
| 6 | + |
| 7 | +.ai-search-form { |
| 8 | + display: flex; |
| 9 | + align-items: center; |
| 10 | + height: 30px; |
| 11 | + margin-bottom: 10px; |
| 12 | + padding: 0px 8px 0px 8px; |
| 13 | + border: solid 1px #cccccc; |
| 14 | + border-radius: 3px; |
| 15 | + background-color: #ffffff; |
| 16 | + margin-bottom: 30px; |
| 17 | + margin-right: 1px; |
| 18 | + position: relative; |
| 19 | + |
| 20 | + |
| 21 | + &:hover { |
| 22 | + border-color: #b2bac1; |
| 23 | + } |
| 24 | + |
| 25 | + #aiSearchField { |
| 26 | + flex-grow: 1; |
| 27 | + margin-right: 7px; |
| 28 | + border: none; |
| 29 | + outline: none; |
| 30 | + font-family: $font-family-base; |
| 31 | + color: #222222; |
| 32 | + background-color: transparent; |
| 33 | + } |
| 34 | + |
| 35 | + #aiSearchButton { |
| 36 | + height: 30px; |
| 37 | + padding: 0px 12px; |
| 38 | + |
| 39 | + border: none; |
| 40 | + outline: none; |
| 41 | + white-space: nowrap; |
| 42 | + background-color: #b2bac1; |
| 43 | + font-family: $font-family-base; |
| 44 | + color: #ffffff; |
| 45 | + cursor: pointer; |
| 46 | + position: absolute; |
| 47 | + right:-1px; |
| 48 | + border-bottom-right-radius: 3px; |
| 49 | + border-top-right-radius: 3px; |
| 50 | + |
| 51 | + &:hover { |
| 52 | + background-color: #8d969d; |
| 53 | + } |
| 54 | + } |
| 55 | +} |
| 56 | + |
| 57 | +#aiSearchResultsCurtain { |
| 58 | + z-index: 99; |
| 59 | + position: fixed; |
| 60 | + top: 0px; |
| 61 | + left: 0px; |
| 62 | + bottom: 0px; |
| 63 | + right: 0px; |
| 64 | + background-color: #000000; |
| 65 | + opacity: 0.7; |
| 66 | +} |
| 67 | + |
| 68 | +#aiSearchResultsForm { |
| 69 | + display: flex; |
| 70 | + flex-direction: column; |
| 71 | + z-index: 100; |
| 72 | + position: fixed; |
| 73 | + top: 10%; |
| 74 | + left: 10%; |
| 75 | + bottom: 10%; |
| 76 | + right: 10%; |
| 77 | + padding: 20px; |
| 78 | + border: solid 1px #cccccc; |
| 79 | + box-shadow: 0px 0px 5px 3px rgba(68,68,68,1); |
| 80 | + background-color: #ffffff; |
| 81 | + |
| 82 | + & > header { |
| 83 | + display: flex; |
| 84 | + align-items: center; |
| 85 | + margin-bottom: 20px; |
| 86 | + |
| 87 | + .ai-search-results-prompt { |
| 88 | + display: flex; |
| 89 | + flex-grow: 1; |
| 90 | + align-items: center; |
| 91 | + height: 40px; |
| 92 | + padding: 0px 2px 0px 10px; |
| 93 | + padding-right: 80px; |
| 94 | + border: solid 1px #cccccc; |
| 95 | + border-radius: 3px; |
| 96 | + background-color: #ffffff; |
| 97 | + font-size: 16px; |
| 98 | + position: relative; |
| 99 | + |
| 100 | + #aiSearchResultsField { |
| 101 | + flex-grow: 1; |
| 102 | + margin-right: 7px; |
| 103 | + border: none; |
| 104 | + outline: none; |
| 105 | + font-family: $font-family-base; |
| 106 | + color: #222222; |
| 107 | + background-color: transparent; |
| 108 | + } |
| 109 | + |
| 110 | + #aiSearchResultsButton { |
| 111 | + height: 40px; |
| 112 | + padding: 0px 18px; |
| 113 | + |
| 114 | + border: none; |
| 115 | + outline: none; |
| 116 | + white-space: nowrap; |
| 117 | + background-color: #558fff; |
| 118 | + font-family: $font-family-base; |
| 119 | + font-weight: 600; |
| 120 | + color: #ffffff; |
| 121 | + cursor: pointer; |
| 122 | + position: absolute; |
| 123 | + right:-1px; |
| 124 | + border-top-right-radius: 3px; |
| 125 | + border-bottom-right-radius: 3px; |
| 126 | + &:hover { |
| 127 | + background-color:#4172d4; |
| 128 | + } |
| 129 | + } |
| 130 | + } |
| 131 | + |
| 132 | + .ai-search-results-tools { |
| 133 | + margin-left: 15px; |
| 134 | + |
| 135 | + & > img { |
| 136 | + width: auto; |
| 137 | + height: 25px; |
| 138 | + cursor: pointer; |
| 139 | + opacity: 1; |
| 140 | + |
| 141 | + &:hover { |
| 142 | + opacity: 0.7; |
| 143 | + } |
| 144 | + } |
| 145 | + } |
| 146 | + } |
| 147 | + |
| 148 | + & > article { |
| 149 | + flex-grow: 1; |
| 150 | + overflow: auto; |
| 151 | + padding: 10px 0px; |
| 152 | + color: rgb(15, 23, 39); |
| 153 | + |
| 154 | + #aiSearchResultsPreloader { |
| 155 | + margin-top: 15px; |
| 156 | + text-align: center; |
| 157 | + |
| 158 | + & > img { |
| 159 | + margin-bottom: 15px; |
| 160 | + } |
| 161 | + |
| 162 | + & > p { |
| 163 | + color: #666666; |
| 164 | + font-style: italic; |
| 165 | + } |
| 166 | + } |
| 167 | + |
| 168 | + #aiSearchError { |
| 169 | + display: none; |
| 170 | + font-size: 16px; |
| 171 | + font-weight: 500; |
| 172 | + color: #aa0000; |
| 173 | + } |
| 174 | + |
| 175 | + pre { |
| 176 | + padding: 10px; |
| 177 | + border: solid 1px #c2c2c2; |
| 178 | + background-color: #f8f9fa; |
| 179 | + } |
| 180 | + } |
| 181 | + |
| 182 | + & > aside { |
| 183 | + display: none; |
| 184 | + |
| 185 | + padding: 10px 20px; |
| 186 | + border-top: solid 1px #cccccc; |
| 187 | + margin: 0 -20px; |
| 188 | + margin-top: 20px; |
| 189 | + |
| 190 | + .ai-search-results-title { |
| 191 | + margin-top: 5px; |
| 192 | + margin-bottom: 15px; |
| 193 | + font-weight: 500; |
| 194 | + font-size: 18px; |
| 195 | + color: rgb(15, 23, 39); |
| 196 | + } |
| 197 | + |
| 198 | + #aiSearchRelatedArticles { |
| 199 | + display: flex; |
| 200 | + flex-wrap: wrap; |
| 201 | + align-items: top; |
| 202 | + |
| 203 | + #aiSearchRelatedArticleTemplate { |
| 204 | + display: none; |
| 205 | + } |
| 206 | + |
| 207 | + & > a { |
| 208 | + display: block; |
| 209 | + /* min-width: 200px; */ |
| 210 | + margin: 0px 15px 5px 0px; |
| 211 | + padding: 12px 15px; |
| 212 | + border-radius: 3px; |
| 213 | + |
| 214 | + text-decoration: none; |
| 215 | + white-space: nowrap; |
| 216 | + overflow: hidden; |
| 217 | + background-color: #f3f5f7; |
| 218 | + |
| 219 | + &:hover { |
| 220 | + text-decoration: none; |
| 221 | + |
| 222 | + } |
| 223 | + } |
| 224 | + } |
| 225 | + } |
| 226 | +} |
0 commit comments