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