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