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