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