Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 1 | @charset "utf-8"; |
| 2 | @import "../util"; |
| 3 | |
| 4 | $border-size: 2px; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 5 | $font-size: 10pt; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 6 | |
| 7 | #search { |
| 8 | position: relative; |
| 9 | margin-bottom: 30px; |
| 10 | overflow: visible; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 11 | // margin-top: 14pt; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | #search > ol { |
| 15 | overflow-x: hidden; |
| 16 | overflow-y: visible; |
| 17 | width: auto; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 18 | text-indent: 0; |
| 19 | list-style-type: none; |
| 20 | margin: 0; |
| 21 | padding: 0; |
Akron | bec4a6a | 2018-07-10 14:45:15 +0200 | [diff] [blame] | 22 | border: $result-border-size solid $kwic-border; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 23 | font-size: $font-size; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 24 | |
| 25 | > li { |
| 26 | display: table-row; |
| 27 | table-layout: auto; |
| 28 | div.meta { |
| 29 | position: relative; |
| 30 | display: table-cell; |
Akron | 625fe0c | 2017-05-03 16:15:08 +0200 | [diff] [blame] | 31 | text-align: left; |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 32 | vertical-align: middle; |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 33 | cursor: initial; |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 34 | width: 2px; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 35 | z-index: 5; |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 36 | overflow-y: hidden; |
| 37 | overflow-x: hidden; |
| 38 | text-overflow: ellipsis; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 39 | white-space: nowrap; |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 40 | background-color: lighten($middle-grey, 5%); |
| 41 | // @include light-noise; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 42 | border: { |
Akron | 46b9f21 | 2017-05-01 13:55:17 +0200 | [diff] [blame] | 43 | color: $dark-grey; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 44 | style: solid; |
Akron | 46b9f21 | 2017-05-01 13:55:17 +0200 | [diff] [blame] | 45 | width: 2px 1px 0 0; |
| 46 | } |
| 47 | &:empty { |
| 48 | border-width: 0 1px 0 0; |
| 49 | } |
| 50 | &.flip { |
Akron | 67b5181 | 2017-05-01 14:10:55 +0200 | [diff] [blame] | 51 | background-color: lighten($middle-grey, 17%); |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 52 | } |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 53 | color: $nearly-white; |
Akron | 46b9f21 | 2017-05-01 13:55:17 +0200 | [diff] [blame] | 54 | font-size: 75%; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 55 | padding: 0 5pt; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 56 | } |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 57 | &:first-of-type div.meta { |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 58 | border-top-width: 0; |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 59 | } |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 60 | &:last-of-type div.meta { |
| 61 | border-bottom-width: 0; |
| 62 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 63 | } |
| 64 | } |
| 65 | |
| 66 | #search > ol > li { |
| 67 | border: { |
| 68 | style: solid; |
| 69 | color: $dark-orange; |
| 70 | width: 0; |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | #search { |
| 75 | div.meta, div.match-main { |
| 76 | position: relative; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 77 | cursor: pointer; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 78 | } |
| 79 | /* |
| 80 | &:not(.active):not(:target) { |
| 81 | &:nth-of-type(even) div.main-col { |
| 82 | */ |
| 83 | div.match-main { |
| 84 | display: table-cell; |
| 85 | z-index: 4; |
| 86 | > div.match-wrap { |
| 87 | width: 99999%; |
| 88 | margin-left: -49999.5%; |
| 89 | background-color: $kwic-line-noneven; |
| 90 | overflow-x: hidden; |
| 91 | overflow-y: visible; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 92 | white-space: normal; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 93 | } |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | #search ol li:nth-of-type(even) div.match-main div.match-wrap { |
| 98 | background-color: $kwic-line-even; |
| 99 | } |
| 100 | |
| 101 | |
| 102 | div.snippet { |
| 103 | text-overflow: ellipsis; |
| 104 | text-indent: 0; |
| 105 | text-shadow: $light-shadow; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 106 | font-size: 0; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 107 | > span, mark { |
| 108 | padding: 5pt 0 6pt 0; |
Akron | 2b75b13 | 2018-08-13 09:47:47 +0200 | [diff] [blame] | 109 | font-size: $font-size; |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 110 | // white-space: nowrap; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 111 | > span { |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 112 | // white-space: nowrap; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 113 | } |
| 114 | } |
| 115 | > mark, > span.match { |
| 116 | font-weight: bold; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 117 | color: $black; |
| 118 | text-shadow: none; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 119 | padding-left: 4pt; |
| 120 | padding-right: 2pt; |
| 121 | } |
Akron | 09e7f1f | 2018-05-28 14:08:14 +0200 | [diff] [blame] | 122 | > span.match > span.cutted::after { |
| 123 | content: $fa-cut; |
| 124 | font-family: FontAwesome; |
| 125 | padding: { |
| 126 | left: 4pt; |
| 127 | right: 4pt; |
| 128 | } |
| 129 | color: $light-green; |
| 130 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 131 | } |
| 132 | |
| 133 | |
| 134 | |
| 135 | #search div.matchinfo { |
| 136 | display: none; |
| 137 | } |
| 138 | |
Akron | b6685bb | 2018-02-04 00:44:47 +0100 | [diff] [blame] | 139 | #search { |
| 140 | |
| 141 | li.active div.matchinfo { |
| 142 | display: block; |
| 143 | } |
| 144 | |
| 145 | li.active + li.active { |
| 146 | border-top: $border-size solid $light-grey; |
| 147 | padding-top: 3 * $border-size; |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 148 | // > ul.action.right { |
| 149 | .button-group.button-view { |
Akron | b6685bb | 2018-02-04 00:44:47 +0100 | [diff] [blame] | 150 | padding-top: 3 * $border-size; |
| 151 | } |
| 152 | } |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 153 | } |
| 154 | |
Akron | b6685bb | 2018-02-04 00:44:47 +0100 | [diff] [blame] | 155 | |
| 156 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 157 | #search div.match-main { |
| 158 | position: relative; |
| 159 | z-index: 4; |
| 160 | > div.match-wrap { |
| 161 | margin-left: -49999.5%; |
| 162 | width: 99999%; |
| 163 | overflow-x: hidden; |
| 164 | overflow-y: visible; |
| 165 | position: relative; |
| 166 | box-sizing: border-box; |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | div.snippet.startMore:before, |
| 171 | div.snippet.endMore:after { |
| 172 | content: "…"; |
| 173 | padding-left: 2pt; |
| 174 | padding-right: 2pt; |
| 175 | } |
| 176 | |
| 177 | /** |
| 178 | * flag |
| 179 | */ |
| 180 | div.snippet div.flag { |
| 181 | position: absolute; |
| 182 | height: 100%; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 183 | top: 0; |
| 184 | // margin-left: -49999.5%; |
| 185 | // margin-left: 50%; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 186 | margin-left: 50%; |
| 187 | width: 11px; |
| 188 | background-color: $dark-orange; |
| 189 | border-right-color: $nearly-white; |
| 190 | border-right: 1px solid $darkest-orange; |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * References |
| 195 | */ |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 196 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 197 | #search > ol > li p.ref { |
| 198 | display: none; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 199 | |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 200 | // TEMP! Remove |
Akron | 2b75b13 | 2018-08-13 09:47:47 +0200 | [diff] [blame] | 201 | /* |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 202 | > span.meta { |
| 203 | cursor: pointer; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 204 | @include choose-item; |
| 205 | margin: $border-size $border-size 0 $border-size !important; |
| 206 | text-align: center; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 207 | text-decoration: none; |
| 208 | padding: 0pt 3pt; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 209 | border: { |
| 210 | width: $border-size; |
| 211 | style: solid; |
| 212 | radius: $standard-border-radius; |
| 213 | } |
| 214 | &:hover { |
| 215 | cursor:pointer; |
| 216 | @include choose-hover; |
| 217 | } |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 218 | |
Akron | 2b75b13 | 2018-08-13 09:47:47 +0200 | [diff] [blame] | 219 | // color: $nearly-white; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 220 | &::after { |
Akron | 2b75b13 | 2018-08-13 09:47:47 +0200 | [diff] [blame] | 221 | // font-size: 12pt; |
| 222 | // font-family: "FontAwesome"; |
| 223 | // content: $fa-metadata; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 224 | content: "+Meta"; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | > span { |
| 228 | @include blind; |
| 229 | } |
| 230 | } |
Akron | 2b75b13 | 2018-08-13 09:47:47 +0200 | [diff] [blame] | 231 | */ |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 232 | } |
| 233 | |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 234 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 235 | /** |
| 236 | * Active |
| 237 | */ |
Akron | 2a4e9af | 2017-12-22 15:45:22 +0100 | [diff] [blame] | 238 | body.no-js #search > ol > li:active, |
| 239 | #search > ol > li.active, |
| 240 | #search > ol > li:target { |
| 241 | background-color: $dark-orange; |
| 242 | display: block; |
| 243 | text-align: left; |
| 244 | position: relative; |
| 245 | border-width: 2px; |
| 246 | white-space: wrap; |
| 247 | height: auto; |
| 248 | width: auto; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 249 | |
Akron | 2a4e9af | 2017-12-22 15:45:22 +0100 | [diff] [blame] | 250 | div.match-main > div.match-wrap { |
| 251 | cursor: default; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 252 | } |
Akron | 2b75b13 | 2018-08-13 09:47:47 +0200 | [diff] [blame] | 253 | .snippet span { |
| 254 | display: inline !important; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 255 | } |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 256 | .button-group.button-view { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 257 | display: block; |
| 258 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 259 | div.match-wrap { |
| 260 | min-height: 20pt; |
| 261 | div.snippet { |
| 262 | background-color: $light-orange; |
| 263 | > * { |
| 264 | background-color: transparent; |
| 265 | } |
| 266 | div.flag { |
| 267 | display: none; |
| 268 | } |
| 269 | padding: 2pt 0 5pt 5pt; |
| 270 | margin: { |
| 271 | top: 0; |
| 272 | right: $right-match-distance; // 3em; |
| 273 | bottom: 0; |
| 274 | left: 0; // 5pt margin-top |
| 275 | } |
| 276 | > span { |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 277 | line-height: 1.4em; |
| 278 | width: auto; |
| 279 | &.context-left { |
| 280 | margin-left: 0; |
| 281 | display: inline; |
| 282 | overflow: visible; |
| 283 | text-align: left; |
| 284 | width: auto; |
| 285 | } |
| 286 | } |
| 287 | } |
| 288 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 289 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 290 | overflow: hidden; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 291 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 292 | div.meta { |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 293 | display: none; |
| 294 | // visibility: hidden; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 295 | } |
| 296 | div.match-main { |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 297 | display: block; |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 298 | width: 100%; |
| 299 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 300 | div.match-wrap { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 301 | background-color: $dark-orange; |
| 302 | width: 100%; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 303 | margin-left: 0; |
| 304 | overflow-x: visible; |
| 305 | white-space: wrap; |
| 306 | } |
| 307 | } |
| 308 | p.ref { |
| 309 | display: block; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 310 | color: $nearly-white; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 311 | padding: 3pt 10pt 3pt 3pt; |
| 312 | padding-right: $right-match-distance; |
| 313 | margin: 0pt; |
| 314 | width: 100%; |
| 315 | bottom: 0; |
| 316 | z-index: 30; |
| 317 | > span.sigle { |
| 318 | font-size: 75%; |
| 319 | vertical-align: top; |
| 320 | color: $light-orange; |
| 321 | float: right; |
| 322 | } |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | |
| 327 | |
| 328 | /** |
| 329 | * Right aligned |
| 330 | */ |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 331 | #search ol span.context-left { |
| 332 | display: inline-block; |
| 333 | width: 50.01%; |
| 334 | text-align: right; |
| 335 | } |
| 336 | |
| 337 | #search ol.align-right { |
| 338 | text-align: right; |
Akron | 2b75b13 | 2018-08-13 09:47:47 +0200 | [diff] [blame] | 339 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 340 | div.match-main span.context-right { |
| 341 | display: inline-block; |
| 342 | width: 49.915%; |
| 343 | text-align: left; |
| 344 | } |
| 345 | } |
| 346 | |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 347 | // Complete margin, see main.scss |
| 348 | // TODO: |
| 349 | // This, however, needs to be adjusted for embedded views |
| 350 | // and media! |
| 351 | $complete-margin: $right-distance + ($standard-margin / 2) + (2 * $result-border-size); |
| 352 | |
| 353 | |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 354 | /** |
| 355 | * Center aligned |
| 356 | */ |
| 357 | #search ol.align-center { |
| 358 | display: table; |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 359 | width: 100%; |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 360 | max-width: 100%; |
| 361 | table-layout: fixed; |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 362 | |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 363 | li.active { |
| 364 | /* |
| 365 | display: table-caption !important; |
| 366 | caption-side: inherit; |
| 367 | */ |
| 368 | |
| 369 | display: block; |
| 370 | max-width: calc(100vw - #{$complete-margin}); |
| 371 | width: calc(100vw - #{$complete-margin}); |
| 372 | |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 373 | } |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 374 | |
| 375 | li:not(.active) { |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 376 | |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 377 | div.meta { |
| 378 | width: 13vw; |
| 379 | min-width: 12em; |
| 380 | max-width: 12em; |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 381 | } |
| 382 | |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 383 | .match-main { |
| 384 | |
| 385 | div.flag { |
| 386 | margin-left: 50%; |
| 387 | } |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 388 | |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 389 | > .match-wrap { |
| 390 | margin-left: 0; |
| 391 | width: 100% !important; |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 392 | } |
| 393 | |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 394 | .snippet { |
| 395 | position: initial; |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 396 | display: inline-block; |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 397 | left: 50%; |
| 398 | transform: translateX(-50%); |
| 399 | overflow-x: hidden; |
| 400 | white-space: nowrap !important; |
| 401 | |
| 402 | > mark, span.match { |
| 403 | display: inline-block; |
| 404 | } |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 405 | |
Akron | b0e484b | 2018-08-14 17:06:17 +0200 | [diff] [blame^] | 406 | span.context-left { |
| 407 | display: inline-block; |
| 408 | text-align: right; |
| 409 | width: 80000px; |
| 410 | margin-left: 70vw; |
| 411 | } |
| 412 | |
| 413 | span.context-right { |
| 414 | display: inline-block; |
| 415 | text-align: left; |
| 416 | width: 80000px; |
| 417 | } |
Akron | ad73934 | 2018-08-14 13:48:14 +0200 | [diff] [blame] | 418 | } |
| 419 | } |
| 420 | } |
| 421 | } |
| 422 | |
| 423 | |
Akron | 0123100 | 2017-06-29 20:47:58 +0200 | [diff] [blame] | 424 | // fix empty contexts |
| 425 | #search ol span.context-left, |
| 426 | #search ol span.context-right { |
| 427 | &:empty::after { |
| 428 | content: " "; |
| 429 | display: inline-block; |
| 430 | } |
| 431 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 432 | |
| 433 | /** |
| 434 | * Highlights |
| 435 | */ |
| 436 | mark { |
| 437 | background-color: inherit; |
| 438 | color: inherit; |
| 439 | } |
| 440 | |
| 441 | mark > mark, |
| 442 | em, |
| 443 | .level-0 { |
| 444 | border-bottom-width: 2px; |
| 445 | border-bottom-style: solid; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 446 | padding-bottom: 0px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 447 | font-style: normal; |
| 448 | } |
| 449 | |
| 450 | mark > mark > mark, |
| 451 | em > em, |
| 452 | .level-1 { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 453 | padding-bottom: 3px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 454 | } |
| 455 | |
| 456 | mark > mark > mark > mark, |
| 457 | em > em > em, |
| 458 | .level-2 { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 459 | padding-bottom: 6px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 460 | } |
| 461 | |
| 462 | |
| 463 | #search > ol > li { |
| 464 | &:not(.active) mark > mark > mark > mark, |
| 465 | &:not(.active) em > em > em { |
| 466 | line-height: 180%; |
| 467 | } |
| 468 | &.active mark > mark > mark > mark, |
| 469 | &.active em > em > em { |
| 470 | line-height: 250%; |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | .class-1 { border-color: $kwic-highlight-1; } |
| 475 | .class-2 { border-color: $kwic-highlight-2; } |
| 476 | .class-3 { border-color: $kwic-highlight-3; } |
| 477 | .class-4 { border-color: $kwic-highlight-4; } |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 478 | |
| 479 | |
| 480 | /** |
| 481 | * Actions |
| 482 | */ |
Akron | bfe912c | 2018-07-17 19:30:52 +0200 | [diff] [blame] | 483 | #search > ol > li .button-group.button-view { |
| 484 | display: none; |
| 485 | } |