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