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