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 | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 32 | width: 2px; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 33 | z-index: 5; |
| 34 | overflow-y: visible; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 35 | white-space: nowrap; |
| 36 | background-color: $light-green; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 37 | // border-top: 1px solid lighten($light-green, 10%); |
| 38 | border: { |
| 39 | color: $dark-green; |
| 40 | style: solid; |
| 41 | width: 1px 0; |
| 42 | } |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 43 | color: $nearly-white; |
| 44 | font-size: 80%; |
| 45 | padding: 0 5pt; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 46 | } |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 47 | &:first-of-type div.meta { |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 48 | border-top-width: 0; |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 49 | } |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 50 | &:last-of-type div.meta { |
| 51 | border-bottom-width: 0; |
| 52 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 53 | } |
| 54 | } |
| 55 | |
| 56 | #search > ol > li { |
| 57 | border: { |
| 58 | style: solid; |
| 59 | color: $dark-orange; |
| 60 | width: 0; |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | #search { |
| 65 | div.meta, div.match-main { |
| 66 | position: relative; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 67 | cursor: pointer; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 68 | } |
| 69 | /* |
| 70 | &:not(.active):not(:target) { |
| 71 | &:nth-of-type(even) div.main-col { |
| 72 | */ |
| 73 | div.match-main { |
| 74 | display: table-cell; |
| 75 | z-index: 4; |
| 76 | > div.match-wrap { |
| 77 | width: 99999%; |
| 78 | margin-left: -49999.5%; |
| 79 | background-color: $kwic-line-noneven; |
| 80 | overflow-x: hidden; |
| 81 | overflow-y: visible; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 82 | white-space: normal; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 83 | } |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | #search ol li:nth-of-type(even) div.match-main div.match-wrap { |
| 88 | background-color: $kwic-line-even; |
| 89 | } |
| 90 | |
| 91 | |
| 92 | div.snippet { |
| 93 | text-overflow: ellipsis; |
| 94 | text-indent: 0; |
| 95 | text-shadow: $light-shadow; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 96 | font-size: 0; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 97 | > span, mark { |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 98 | font-size: $font-size; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 99 | padding: 5pt 0 6pt 0; |
| 100 | white-space: no-wrap !important; |
| 101 | > span { |
| 102 | white-space: no-wrap !important; |
| 103 | } |
| 104 | } |
| 105 | > mark, > span.match { |
| 106 | font-weight: bold; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 107 | color: $black; |
| 108 | text-shadow: none; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 109 | padding-left: 4pt; |
| 110 | padding-right: 2pt; |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | |
| 115 | |
| 116 | #search div.matchinfo { |
| 117 | display: none; |
| 118 | } |
| 119 | |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 120 | #search li.active div.matchinfo { |
| 121 | display: block; |
| 122 | } |
| 123 | |
| 124 | |
| 125 | |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 126 | /* |
| 127 | #search ol > li:focus:not(.active) { |
| 128 | background-color: $dark-orange !important; |
| 129 | &:not(:target) div.flag { |
| 130 | border-right-color: $nearly-white; |
| 131 | } |
| 132 | div.snippet { |
| 133 | color: $nearly-white; |
| 134 | text-shadow: none !important; |
| 135 | .class-3 { |
| 136 | border-color: $nearly-white; |
| 137 | } |
| 138 | } |
| 139 | } |
| 140 | */ |
| 141 | |
| 142 | #search div.match-main { |
| 143 | position: relative; |
| 144 | z-index: 4; |
| 145 | > div.match-wrap { |
| 146 | margin-left: -49999.5%; |
| 147 | width: 99999%; |
| 148 | overflow-x: hidden; |
| 149 | overflow-y: visible; |
| 150 | position: relative; |
| 151 | box-sizing: border-box; |
| 152 | } |
| 153 | } |
| 154 | |
| 155 | div.snippet.startMore:before, |
| 156 | div.snippet.endMore:after { |
| 157 | content: "…"; |
| 158 | padding-left: 2pt; |
| 159 | padding-right: 2pt; |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * flag |
| 164 | */ |
| 165 | div.snippet div.flag { |
| 166 | position: absolute; |
| 167 | height: 100%; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 168 | top: 0; |
| 169 | // margin-left: -49999.5%; |
| 170 | // margin-left: 50%; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 171 | margin-left: 50%; |
| 172 | width: 11px; |
| 173 | background-color: $dark-orange; |
| 174 | border-right-color: $nearly-white; |
| 175 | border-right: 1px solid $darkest-orange; |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * References |
| 180 | */ |
| 181 | #search > ol > li p.ref { |
| 182 | display: none; |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * Active |
| 187 | */ |
| 188 | #search > ol { |
| 189 | > li.active, |
| 190 | > li:target { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 191 | background-color: $dark-orange; |
| 192 | display: block; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 193 | text-align: left; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 194 | position: relative; |
| 195 | border-width: 2px; |
| 196 | white-space: wrap; |
| 197 | height: auto; |
| 198 | width: auto; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 199 | |
| 200 | div.match-main > div.match-wrap { |
| 201 | cursor: default; |
| 202 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 203 | } |
| 204 | } |
| 205 | |
| 206 | #search > ol > li.active { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 207 | span { |
| 208 | display: inline !important; |
| 209 | } |
| 210 | ul.action { |
| 211 | display: block; |
| 212 | } |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 213 | div.match-wrap { |
| 214 | min-height: 20pt; |
| 215 | div.snippet { |
| 216 | background-color: $light-orange; |
| 217 | > * { |
| 218 | background-color: transparent; |
| 219 | } |
| 220 | div.flag { |
| 221 | display: none; |
| 222 | } |
| 223 | padding: 2pt 0 5pt 5pt; |
| 224 | margin: { |
| 225 | top: 0; |
| 226 | right: $right-match-distance; // 3em; |
| 227 | bottom: 0; |
| 228 | left: 0; // 5pt margin-top |
| 229 | } |
| 230 | > span { |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 231 | // color: black; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 232 | line-height: 1.4em; |
| 233 | width: auto; |
| 234 | &.context-left { |
| 235 | margin-left: 0; |
| 236 | display: inline; |
| 237 | overflow: visible; |
| 238 | text-align: left; |
| 239 | width: auto; |
| 240 | } |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | } |
| 245 | |
| 246 | #search > ol > li.active { |
| 247 | overflow: hidden; |
| 248 | div.meta { |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 249 | display: none; |
| 250 | // visibility: hidden; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 251 | } |
| 252 | div.match-main { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 253 | width: 100%; |
Akron | 97d4280 | 2016-11-26 22:45:46 +0100 | [diff] [blame] | 254 | display: block; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 255 | div.match-wrap { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 256 | background-color: $dark-orange; |
| 257 | width: 100%; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 258 | margin-left: 0; |
| 259 | overflow-x: visible; |
| 260 | white-space: wrap; |
| 261 | } |
| 262 | } |
| 263 | p.ref { |
| 264 | display: block; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 265 | color: $nearly-white; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 266 | padding: 3pt 10pt 3pt 3pt; |
| 267 | padding-right: $right-match-distance; |
| 268 | margin: 0pt; |
| 269 | width: 100%; |
| 270 | bottom: 0; |
| 271 | z-index: 30; |
| 272 | > span.sigle { |
| 273 | font-size: 75%; |
| 274 | vertical-align: top; |
| 275 | color: $light-orange; |
| 276 | float: right; |
| 277 | } |
| 278 | } |
| 279 | } |
| 280 | |
| 281 | |
| 282 | |
| 283 | /** |
| 284 | * Right aligned |
| 285 | */ |
| 286 | |
| 287 | #search ol span.context-left { |
| 288 | display: inline-block; |
| 289 | width: 50.01%; |
| 290 | text-align: right; |
| 291 | } |
| 292 | |
| 293 | #search ol.align-right { |
| 294 | text-align: right; |
| 295 | div.match-main span.context-right { |
| 296 | display: inline-block; |
| 297 | width: 49.915%; |
| 298 | text-align: left; |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | |
| 303 | /** |
| 304 | * Highlights |
| 305 | */ |
| 306 | mark { |
| 307 | background-color: inherit; |
| 308 | color: inherit; |
| 309 | } |
| 310 | |
| 311 | mark > mark, |
| 312 | em, |
| 313 | .level-0 { |
| 314 | border-bottom-width: 2px; |
| 315 | border-bottom-style: solid; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 316 | padding-bottom: 0px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 317 | font-style: normal; |
| 318 | } |
| 319 | |
| 320 | mark > mark > mark, |
| 321 | em > em, |
| 322 | .level-1 { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 323 | padding-bottom: 3px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 324 | } |
| 325 | |
| 326 | mark > mark > mark > mark, |
| 327 | em > em > em, |
| 328 | .level-2 { |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 329 | padding-bottom: 6px !important; |
Akron | 49bfdbf | 2016-11-22 21:47:33 +0100 | [diff] [blame] | 330 | } |
| 331 | |
| 332 | |
| 333 | #search > ol > li { |
| 334 | &:not(.active) mark > mark > mark > mark, |
| 335 | &:not(.active) em > em > em { |
| 336 | line-height: 180%; |
| 337 | } |
| 338 | &.active mark > mark > mark > mark, |
| 339 | &.active em > em > em { |
| 340 | line-height: 250%; |
| 341 | } |
| 342 | } |
| 343 | |
| 344 | .class-1 { border-color: $kwic-highlight-1; } |
| 345 | .class-2 { border-color: $kwic-highlight-2; } |
| 346 | .class-3 { border-color: $kwic-highlight-3; } |
| 347 | .class-4 { border-color: $kwic-highlight-4; } |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 348 | |
| 349 | |
| 350 | /** |
| 351 | * Actions |
| 352 | */ |
| 353 | |
| 354 | ul.action { |
| 355 | display: none; |
| 356 | // background-color: $dark-orange; |
| 357 | font-size: 12pt; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 358 | color: $nearly-white; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 359 | text: { |
| 360 | shadow: none; |
| 361 | indent: 0; |
| 362 | } |
| 363 | margin: 0; |
| 364 | padding: 0; |
| 365 | z-index: 5; |
| 366 | |
| 367 | list-style: { |
| 368 | type: none; |
| 369 | position: inline; |
| 370 | } |
| 371 | &.right { |
| 372 | position: absolute; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 373 | z-index: 4; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 374 | width: $right-match-distance; |
| 375 | float: right; |
| 376 | text-align: center; |
| 377 | padding: 0pt 3pt; |
| 378 | height: 100%; |
| 379 | right: 0; |
| 380 | top: 0; |
| 381 | li { |
| 382 | cursor: pointer; |
Akron | 08b82d6 | 2016-12-05 15:06:05 +0100 | [diff] [blame^] | 383 | color: $nearly-white; |
Akron | 3bb91bc | 2016-12-02 16:43:17 +0100 | [diff] [blame] | 384 | text-decoration: none; |
| 385 | |
| 386 | > span { |
| 387 | @include blind; |
| 388 | } |
| 389 | &.close::after { |
| 390 | font-family: "FontAwesome"; |
| 391 | content: $fa-close; |
| 392 | } |
| 393 | &.info::after { |
| 394 | font-family: "FontAwesome"; |
| 395 | content: $fa-info; |
| 396 | } |
| 397 | } |
| 398 | } |
| 399 | } |
| 400 | |