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