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 | |
| 132 | |
| 133 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 134 | /* |
| 135 | #search ol > li:focus:not(.active) { |
| 136 | background-color: $dark-orange !important; |
| 137 | &:not(:target) div.flag { |
| 138 | border-right-color: $nearly-white; |
| 139 | } |
| 140 | div.snippet { |
| 141 | color: $nearly-white; |
| 142 | text-shadow: none !important; |
| 143 | .class-3 { |
| 144 | border-color: $nearly-white; |
| 145 | } |
| 146 | } |
| 147 | } |
| 148 | */ |
| 149 | |
| 150 | #search div.match-main { |
| 151 | position: relative; |
| 152 | z-index: 4; |
| 153 | > div.match-wrap { |
| 154 | margin-left: -49999.5%; |
| 155 | width: 99999%; |
| 156 | overflow-x: hidden; |
| 157 | overflow-y: visible; |
| 158 | position: relative; |
| 159 | box-sizing: border-box; |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | div.snippet.startMore:before, |
| 164 | div.snippet.endMore:after { |
| 165 | content: "…"; |
| 166 | padding-left: 2pt; |
| 167 | padding-right: 2pt; |
| 168 | } |
| 169 | |
| 170 | /** |
| 171 | * flag |
| 172 | */ |
| 173 | div.snippet div.flag { |
| 174 | position: absolute; |
| 175 | height: 100%; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 176 | top: 0; |
| 177 | // margin-left: -49999.5%; |
| 178 | // margin-left: 50%; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 179 | margin-left: 50%; |
| 180 | width: 11px; |
| 181 | background-color: $dark-orange; |
| 182 | border-right-color: $nearly-white; |
| 183 | border-right: 1px solid $darkest-orange; |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * References |
| 188 | */ |
| 189 | #search > ol > li p.ref { |
| 190 | display: none; |
| 191 | } |
| 192 | |
| 193 | /** |
| 194 | * Active |
| 195 | */ |
| 196 | #search > ol { |
| 197 | > li.active, |
| 198 | > li:target { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 199 | background-color: $dark-orange; |
| 200 | display: block; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 201 | text-align: left; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 202 | position: relative; |
| 203 | border-width: 2px; |
| 204 | white-space: wrap; |
| 205 | height: auto; |
| 206 | width: auto; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 207 | |
| 208 | div.match-main > div.match-wrap { |
| 209 | cursor: default; |
| 210 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 211 | } |
| 212 | } |
| 213 | |
| 214 | #search > ol > li.active { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 215 | span { |
| 216 | display: inline !important; |
| 217 | } |
| 218 | ul.action { |
| 219 | display: block; |
| 220 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 221 | div.match-wrap { |
| 222 | min-height: 20pt; |
| 223 | div.snippet { |
| 224 | background-color: $light-orange; |
| 225 | > * { |
| 226 | background-color: transparent; |
| 227 | } |
| 228 | div.flag { |
| 229 | display: none; |
| 230 | } |
| 231 | padding: 2pt 0 5pt 5pt; |
| 232 | margin: { |
| 233 | top: 0; |
| 234 | right: $right-match-distance; // 3em; |
| 235 | bottom: 0; |
| 236 | left: 0; // 5pt margin-top |
| 237 | } |
| 238 | > span { |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 239 | // color: black; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 240 | line-height: 1.4em; |
| 241 | width: auto; |
| 242 | &.context-left { |
| 243 | margin-left: 0; |
| 244 | display: inline; |
| 245 | overflow: visible; |
| 246 | text-align: left; |
| 247 | width: auto; |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | #search > ol > li.active { |
| 255 | overflow: hidden; |
| 256 | div.meta { |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 257 | display: none; |
| 258 | // visibility: hidden; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 259 | } |
| 260 | div.match-main { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 261 | width: 100%; |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 262 | display: block; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 263 | div.match-wrap { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 264 | background-color: $dark-orange; |
| 265 | width: 100%; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 266 | margin-left: 0; |
| 267 | overflow-x: visible; |
| 268 | white-space: wrap; |
| 269 | } |
| 270 | } |
| 271 | p.ref { |
| 272 | display: block; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 273 | color: $nearly-white; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 274 | padding: 3pt 10pt 3pt 3pt; |
| 275 | padding-right: $right-match-distance; |
| 276 | margin: 0pt; |
| 277 | width: 100%; |
| 278 | bottom: 0; |
| 279 | z-index: 30; |
| 280 | > span.sigle { |
| 281 | font-size: 75%; |
| 282 | vertical-align: top; |
| 283 | color: $light-orange; |
| 284 | float: right; |
| 285 | } |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | |
| 290 | |
| 291 | /** |
| 292 | * Right aligned |
| 293 | */ |
| 294 | |
| 295 | #search ol span.context-left { |
| 296 | display: inline-block; |
| 297 | width: 50.01%; |
| 298 | text-align: right; |
| 299 | } |
| 300 | |
| 301 | #search ol.align-right { |
| 302 | text-align: right; |
| 303 | div.match-main span.context-right { |
| 304 | display: inline-block; |
| 305 | width: 49.915%; |
| 306 | text-align: left; |
| 307 | } |
| 308 | } |
| 309 | |
| 310 | |
| 311 | /** |
| 312 | * Highlights |
| 313 | */ |
| 314 | mark { |
| 315 | background-color: inherit; |
| 316 | color: inherit; |
| 317 | } |
| 318 | |
| 319 | mark > mark, |
| 320 | em, |
| 321 | .level-0 { |
| 322 | border-bottom-width: 2px; |
| 323 | border-bottom-style: solid; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 324 | padding-bottom: 0px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 325 | font-style: normal; |
| 326 | } |
| 327 | |
| 328 | mark > mark > mark, |
| 329 | em > em, |
| 330 | .level-1 { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 331 | padding-bottom: 3px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 332 | } |
| 333 | |
| 334 | mark > mark > mark > mark, |
| 335 | em > em > em, |
| 336 | .level-2 { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 337 | padding-bottom: 6px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 338 | } |
| 339 | |
| 340 | |
| 341 | #search > ol > li { |
| 342 | &:not(.active) mark > mark > mark > mark, |
| 343 | &:not(.active) em > em > em { |
| 344 | line-height: 180%; |
| 345 | } |
| 346 | &.active mark > mark > mark > mark, |
| 347 | &.active em > em > em { |
| 348 | line-height: 250%; |
| 349 | } |
| 350 | } |
| 351 | |
| 352 | .class-1 { border-color: $kwic-highlight-1; } |
| 353 | .class-2 { border-color: $kwic-highlight-2; } |
| 354 | .class-3 { border-color: $kwic-highlight-3; } |
| 355 | .class-4 { border-color: $kwic-highlight-4; } |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 356 | |
| 357 | |
| 358 | /** |
| 359 | * Actions |
| 360 | */ |
| 361 | |
| 362 | ul.action { |
| 363 | display: none; |
| 364 | // background-color: $dark-orange; |
| 365 | font-size: 12pt; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 366 | color: $nearly-white; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 367 | text: { |
| 368 | shadow: none; |
| 369 | indent: 0; |
| 370 | } |
| 371 | margin: 0; |
| 372 | padding: 0; |
| 373 | z-index: 5; |
| 374 | |
| 375 | list-style: { |
| 376 | type: none; |
| 377 | position: inline; |
| 378 | } |
| 379 | &.right { |
| 380 | position: absolute; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 381 | z-index: 4; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 382 | width: $right-match-distance; |
| 383 | float: right; |
| 384 | text-align: center; |
| 385 | padding: 0pt 3pt; |
| 386 | height: 100%; |
| 387 | right: 0; |
| 388 | top: 0; |
| 389 | li { |
| 390 | cursor: pointer; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 391 | color: $nearly-white; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 392 | text-decoration: none; |
| 393 | |
| 394 | > span { |
| 395 | @include blind; |
| 396 | } |
| 397 | &.close::after { |
| 398 | font-family: "FontAwesome"; |
| 399 | content: $fa-close; |
| 400 | } |
| 401 | &.info::after { |
| 402 | font-family: "FontAwesome"; |
| 403 | content: $fa-info; |
| 404 | } |
| 405 | } |
| 406 | } |
| 407 | } |
| 408 | |