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 | */ |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 171 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 172 | #search > ol > li p.ref { |
| 173 | display: none; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 174 | |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 175 | // TEMP! Remove |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 176 | > span.meta { |
| 177 | cursor: pointer; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 178 | @include choose-item; |
| 179 | margin: $border-size $border-size 0 $border-size !important; |
| 180 | text-align: center; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 181 | text-decoration: none; |
| 182 | padding: 0pt 3pt; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 183 | border: { |
| 184 | width: $border-size; |
| 185 | style: solid; |
| 186 | radius: $standard-border-radius; |
| 187 | } |
| 188 | &:hover { |
| 189 | cursor:pointer; |
| 190 | @include choose-hover; |
| 191 | } |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 192 | |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 193 | /* |
| 194 | color: $nearly-white; |
| 195 | */ |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 196 | &::after { |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 197 | /* |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 198 | font-size: 12pt; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 199 | font-family: "FontAwesome"; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 200 | content: $fa-metadata; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 201 | */ |
| 202 | content: "+Meta"; |
Akron | 0490535 | 2018-01-24 02:06:32 +0100 | [diff] [blame] | 203 | } |
| 204 | |
| 205 | > span { |
| 206 | @include blind; |
| 207 | } |
| 208 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 209 | } |
| 210 | |
Akron | eaba63e | 2018-01-26 19:49:30 +0100 | [diff] [blame] | 211 | // More is defined in vc.scss |
| 212 | p.ref div.action.bottom { |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 213 | display: inline-block; |
| 214 | margin-right: .5em; |
| 215 | > span { |
| 216 | position: relative; |
Akron | eaba63e | 2018-01-26 19:49:30 +0100 | [diff] [blame] | 217 | box-shadow: none; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 218 | } |
| 219 | } |
| 220 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 221 | /** |
| 222 | * Active |
| 223 | */ |
Akron | 2a4e9af | 2017-12-22 15:45:22 +0100 | [diff] [blame] | 224 | body.no-js #search > ol > li:active, |
| 225 | #search > ol > li.active, |
| 226 | #search > ol > li:target { |
| 227 | background-color: $dark-orange; |
| 228 | display: block; |
| 229 | text-align: left; |
| 230 | position: relative; |
| 231 | border-width: 2px; |
| 232 | white-space: wrap; |
| 233 | height: auto; |
| 234 | width: auto; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 235 | |
Akron | 2a4e9af | 2017-12-22 15:45:22 +0100 | [diff] [blame] | 236 | div.match-main > div.match-wrap { |
| 237 | cursor: default; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 238 | } |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 239 | span { |
Akron | bd34298 | 2018-01-25 18:01:46 +0100 | [diff] [blame] | 240 | display: inline; // !important; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 241 | } |
| 242 | ul.action { |
| 243 | display: block; |
| 244 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 245 | div.match-wrap { |
| 246 | min-height: 20pt; |
| 247 | div.snippet { |
| 248 | background-color: $light-orange; |
| 249 | > * { |
| 250 | background-color: transparent; |
| 251 | } |
| 252 | div.flag { |
| 253 | display: none; |
| 254 | } |
| 255 | padding: 2pt 0 5pt 5pt; |
| 256 | margin: { |
| 257 | top: 0; |
| 258 | right: $right-match-distance; // 3em; |
| 259 | bottom: 0; |
| 260 | left: 0; // 5pt margin-top |
| 261 | } |
| 262 | > span { |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 263 | // color: black; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 264 | line-height: 1.4em; |
| 265 | width: auto; |
| 266 | &.context-left { |
| 267 | margin-left: 0; |
| 268 | display: inline; |
| 269 | overflow: visible; |
| 270 | text-align: left; |
| 271 | width: auto; |
| 272 | } |
| 273 | } |
| 274 | } |
| 275 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 276 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 277 | overflow: hidden; |
Akron | 8b592d4 | 2018-01-26 18:33:06 +0100 | [diff] [blame] | 278 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 279 | div.meta { |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 280 | display: none; |
| 281 | // visibility: hidden; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 282 | } |
| 283 | div.match-main { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 284 | width: 100%; |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 285 | display: block; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 286 | div.match-wrap { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 287 | background-color: $dark-orange; |
| 288 | width: 100%; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 289 | margin-left: 0; |
| 290 | overflow-x: visible; |
| 291 | white-space: wrap; |
| 292 | } |
| 293 | } |
| 294 | p.ref { |
| 295 | display: block; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 296 | color: $nearly-white; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 297 | padding: 3pt 10pt 3pt 3pt; |
| 298 | padding-right: $right-match-distance; |
| 299 | margin: 0pt; |
| 300 | width: 100%; |
| 301 | bottom: 0; |
| 302 | z-index: 30; |
| 303 | > span.sigle { |
| 304 | font-size: 75%; |
| 305 | vertical-align: top; |
| 306 | color: $light-orange; |
| 307 | float: right; |
| 308 | } |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | |
| 313 | |
| 314 | /** |
| 315 | * Right aligned |
| 316 | */ |
| 317 | |
| 318 | #search ol span.context-left { |
| 319 | display: inline-block; |
| 320 | width: 50.01%; |
| 321 | text-align: right; |
| 322 | } |
| 323 | |
| 324 | #search ol.align-right { |
| 325 | text-align: right; |
| 326 | div.match-main span.context-right { |
| 327 | display: inline-block; |
| 328 | width: 49.915%; |
| 329 | text-align: left; |
| 330 | } |
| 331 | } |
| 332 | |
Akron | 0123100 | 2017-06-29 20:47:58 +0200 | [diff] [blame] | 333 | // fix empty contexts |
| 334 | #search ol span.context-left, |
| 335 | #search ol span.context-right { |
| 336 | &:empty::after { |
| 337 | content: " "; |
| 338 | display: inline-block; |
| 339 | } |
| 340 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 341 | |
| 342 | /** |
| 343 | * Highlights |
| 344 | */ |
| 345 | mark { |
| 346 | background-color: inherit; |
| 347 | color: inherit; |
| 348 | } |
| 349 | |
| 350 | mark > mark, |
| 351 | em, |
| 352 | .level-0 { |
| 353 | border-bottom-width: 2px; |
| 354 | border-bottom-style: solid; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 355 | padding-bottom: 0px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 356 | font-style: normal; |
| 357 | } |
| 358 | |
| 359 | mark > mark > mark, |
| 360 | em > em, |
| 361 | .level-1 { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 362 | padding-bottom: 3px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 363 | } |
| 364 | |
| 365 | mark > mark > mark > mark, |
| 366 | em > em > em, |
| 367 | .level-2 { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 368 | padding-bottom: 6px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 369 | } |
| 370 | |
| 371 | |
| 372 | #search > ol > li { |
| 373 | &:not(.active) mark > mark > mark > mark, |
| 374 | &:not(.active) em > em > em { |
| 375 | line-height: 180%; |
| 376 | } |
| 377 | &.active mark > mark > mark > mark, |
| 378 | &.active em > em > em { |
| 379 | line-height: 250%; |
| 380 | } |
| 381 | } |
| 382 | |
| 383 | .class-1 { border-color: $kwic-highlight-1; } |
| 384 | .class-2 { border-color: $kwic-highlight-2; } |
| 385 | .class-3 { border-color: $kwic-highlight-3; } |
| 386 | .class-4 { border-color: $kwic-highlight-4; } |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 387 | |
| 388 | |
| 389 | /** |
| 390 | * Actions |
| 391 | */ |
| 392 | |
| 393 | ul.action { |
| 394 | display: none; |
| 395 | // background-color: $dark-orange; |
| 396 | font-size: 12pt; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 397 | color: $nearly-white; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 398 | text: { |
| 399 | shadow: none; |
| 400 | indent: 0; |
| 401 | } |
| 402 | margin: 0; |
| 403 | padding: 0; |
| 404 | z-index: 5; |
| 405 | |
| 406 | list-style: { |
| 407 | type: none; |
| 408 | position: inline; |
| 409 | } |
| 410 | &.right { |
| 411 | position: absolute; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 412 | z-index: 4; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 413 | width: $right-match-distance; |
| 414 | float: right; |
| 415 | text-align: center; |
| 416 | padding: 0pt 3pt; |
| 417 | height: 100%; |
| 418 | right: 0; |
| 419 | top: 0; |
| 420 | li { |
| 421 | cursor: pointer; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame] | 422 | color: $nearly-white; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 423 | text-decoration: none; |
| 424 | |
| 425 | > span { |
| 426 | @include blind; |
| 427 | } |
| 428 | &.close::after { |
| 429 | font-family: "FontAwesome"; |
| 430 | content: $fa-close; |
| 431 | } |
| 432 | &.info::after { |
| 433 | font-family: "FontAwesome"; |
| 434 | content: $fa-info; |
| 435 | } |
| 436 | } |
| 437 | } |
| 438 | } |
| 439 | |