Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 2 | @import "../util"; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 3 | |
| 4 | $border-size: 2px; |
| 5 | |
Akron | 6a535d4 | 2015-08-26 20:16:58 +0200 | [diff] [blame] | 6 | /* |
| 7 | *:focus { |
| 8 | background-color: red !important; |
| 9 | } |
| 10 | */ |
| 11 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 12 | #search { |
| 13 | position: relative; |
Nils Diewald | a898dac | 2015-05-06 21:04:16 +0000 | [diff] [blame] | 14 | margin-bottom: 30px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 15 | overflow: visible; |
| 16 | |
| 17 | &.match { |
| 18 | margin-top: 14pt; |
| 19 | } |
| 20 | |
| 21 | ol { |
| 22 | width: auto; |
| 23 | overflow-x: hidden; |
| 24 | overflow-y: visible; |
| 25 | list-style-type: none; |
| 26 | margin: 0; |
| 27 | padding: 0; |
| 28 | text-indent: 0; |
| 29 | border: 1px solid $kwic-border; |
| 30 | font-size: 10pt; |
| 31 | > li { |
Akron | 6a535d4 | 2015-08-26 20:16:58 +0200 | [diff] [blame] | 32 | &:focus:not(.active) { |
| 33 | background-color: $dark-orange !important; |
| 34 | &:not(:target) div.flag { |
| 35 | border-right-color: $nearly-white; |
| 36 | } |
| 37 | > div > div.snippet { |
| 38 | color: $nearly-white; |
| 39 | text-shadow: none !important; |
| 40 | .class-3 { |
| 41 | border-color: $nearly-white; |
| 42 | } |
| 43 | } |
| 44 | } |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 45 | position: relative; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 46 | border: { |
| 47 | style: solid; |
| 48 | color: $dark-orange; |
| 49 | width: 0; |
| 50 | } |
| 51 | &:not(.active):not(:target) { |
| 52 | width: 99999%; |
| 53 | margin-left: -49999.5%; |
| 54 | background-color: $kwic-line-noneven; |
| 55 | overflow-x: hidden; |
| 56 | overflow-y: visible; |
| 57 | white-space: no-wrap; |
| 58 | cursor: pointer; |
| 59 | padding: 5pt 0 6pt 0; |
| 60 | &:nth-of-type(even) { |
| 61 | background-color: $kwic-line-even; |
| 62 | } |
| 63 | .matchinfo { |
| 64 | display: none; |
| 65 | } |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 66 | > div { |
| 67 | > div.snippet { |
| 68 | text-overflow: ellipsis; |
| 69 | text-indent: 0; |
| 70 | text-shadow: $light-shadow; |
| 71 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 72 | } |
| 73 | } |
| 74 | > div { |
| 75 | > div.snippet { |
| 76 | > span, |
| 77 | > mark { |
| 78 | white-space: no-wrap !important; |
| 79 | > span { |
| 80 | white-space: no-wrap !important; |
| 81 | } |
Akron | 6a535d4 | 2015-08-26 20:16:58 +0200 | [diff] [blame] | 82 | // color: #666; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 83 | } |
| 84 | > mark, |
| 85 | > span.match { |
| 86 | font-weight: bold; |
| 87 | /* text-shadow: $kwic-match-shadow; */ |
Akron | 6a535d4 | 2015-08-26 20:16:58 +0200 | [diff] [blame] | 88 | // color: $kwic-match-color; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 89 | padding-left: 4pt; |
| 90 | padding-right: 2pt; |
| 91 | } |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | /* active view */ |
| 97 | > li.active, |
| 98 | > li:target { |
| 99 | text-align: left; |
| 100 | width: auto; |
| 101 | cursor: normal; |
| 102 | white-space: wrap; |
| 103 | height: auto; |
| 104 | border-width: 2px; |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 105 | background-color: $dark-orange; |
Nils Diewald | 0e6992a | 2015-04-14 20:13:52 +0000 | [diff] [blame] | 106 | // @include light-noise; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 107 | position: relative; |
| 108 | > div { |
Nils Diewald | a898dac | 2015-05-06 21:04:16 +0000 | [diff] [blame] | 109 | min-height: 20pt; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 110 | > div.snippet { |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 111 | background-color: $light-orange; |
| 112 | > * { |
| 113 | background-color: transparent; |
| 114 | } |
Nils Diewald | 4347ee9 | 2015-05-04 20:32:48 +0000 | [diff] [blame] | 115 | padding: 2pt 0 5pt 5pt; |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 116 | margin: { |
| 117 | top: 0; |
| 118 | right: $right-match-distance; // 3em; |
| 119 | bottom: 0; |
| 120 | left: 0; // 5pt margin-top |
| 121 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 122 | > span { |
| 123 | line-height: 1.4em; |
| 124 | width: auto; |
| 125 | &.context-left { |
| 126 | margin-left: 0; |
| 127 | display: inline; |
| 128 | overflow: visible; |
| 129 | text-align: left; |
| 130 | width: auto; |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | /* Actions */ |
| 138 | > li { |
| 139 | ul.action { |
| 140 | display: none; |
| 141 | } |
| 142 | |
| 143 | /* active actions */ |
| 144 | &.active, &:target { |
| 145 | ul.action { |
| 146 | display: block; |
| 147 | } |
| 148 | } |
| 149 | &:not(.active):not(:target) p.ref { |
| 150 | display: none; |
| 151 | } |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 152 | &.active, &:target { |
Akron | 894f7f1 | 2016-02-16 20:34:53 +0100 | [diff] [blame] | 153 | overflow: hidden; |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 154 | p.ref { |
| 155 | color: white; |
Akron | 894f7f1 | 2016-02-16 20:34:53 +0100 | [diff] [blame] | 156 | padding: 3pt 10pt 3pt 3pt; |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 157 | padding-right: $right-match-distance; |
| 158 | margin: 0pt; |
| 159 | width: 100%; |
| 160 | bottom: 0; |
| 161 | z-index: 30; |
Akron | 894f7f1 | 2016-02-16 20:34:53 +0100 | [diff] [blame] | 162 | > span.sigle { |
| 163 | font-size: 75%; |
| 164 | vertical-align: top; |
| 165 | color: $light-orange; |
| 166 | float: right; |
| 167 | } |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 168 | } |
| 169 | } |
| 170 | } |
| 171 | > li.marked:not(.active):not(:target) { |
| 172 | div.flag { |
| 173 | position: absolute; |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 174 | top: 0; |
| 175 | width: 11px; |
| 176 | height: 100%; |
| 177 | margin-left: 50%; |
Akron | 0669f2f | 2015-05-28 20:27:09 +0200 | [diff] [blame] | 178 | background-color: $dark-orange; |
| 179 | border-right: 1px solid $darkest-orange; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 180 | } |
| 181 | } |
| 182 | } |
| 183 | } |
| 184 | |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 185 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 186 | ul.action { |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 187 | // background-color: $dark-orange; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 188 | font-size: 12pt; |
| 189 | color: white; |
| 190 | text: { |
| 191 | shadow: none; |
| 192 | indent: 0; |
| 193 | } |
| 194 | margin: 0; |
| 195 | padding: 0; |
| 196 | z-index: 5; |
| 197 | |
| 198 | list-style: { |
| 199 | type: none; |
| 200 | position: inline; |
| 201 | } |
| 202 | &.right { |
| 203 | position: absolute; |
| 204 | width: $right-match-distance; |
| 205 | float: right; |
| 206 | text-align: center; |
| 207 | padding: 0pt 3pt; |
| 208 | height: 100%; |
| 209 | right: 0; |
| 210 | top: 0; |
| 211 | li { |
| 212 | cursor: pointer; |
| 213 | color: white; |
| 214 | text-decoration: none; |
| 215 | |
| 216 | > span { |
| 217 | @include blind; |
| 218 | } |
| 219 | &.close::after { |
| 220 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 221 | content: $fa-close; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 222 | } |
| 223 | &.info::after { |
| 224 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 225 | content: $fa-info; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 226 | } |
| 227 | } |
| 228 | } |
| 229 | } |
| 230 | |
| 231 | /* |
| 232 | ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left { |
| 233 | display: inline-block; |
| 234 | text-align: right; |
| 235 | width: 50.046%; |
| 236 | } |
| 237 | |
| 238 | ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator { |
| 239 | width: 0px; |
| 240 | height: 1em; |
| 241 | margin-bottom: -2px; |
| 242 | display: inline-block; |
| 243 | line-height: 100%; |
| 244 | border: 1px solid #009EE0; |
| 245 | margin-left: 2px; |
| 246 | margin-right: 2px; |
| 247 | } |
| 248 | |
| 249 | ol.align-free > li > div > div.snippet > span.right { |
| 250 | text-align: left; |
| 251 | } |
| 252 | */ |
| 253 | |
| 254 | ol.align-left > li > div > div.snippet > span.context-left { |
| 255 | display: inline-block; |
| 256 | text-align: right; |
| 257 | width: 50.01%; |
| 258 | } |
| 259 | |
| 260 | ol.align-right { |
| 261 | text-align: right; |
| 262 | > li:not(.active):not(:target) > div > div.snippet > span.context-right { |
| 263 | display: inline-block; |
| 264 | text-align: left; |
| 265 | width: 49.915%; |
| 266 | } |
| 267 | } |
| 268 | |
| 269 | /** |
| 270 | * Highlights |
| 271 | */ |
| 272 | mark { |
| 273 | background-color: inherit; |
| 274 | color: inherit; |
| 275 | } |
| 276 | |
| 277 | mark > mark, |
| 278 | em, |
| 279 | .level-0 { |
| 280 | border-bottom-width: 2px; |
| 281 | border-bottom-style: solid; |
| 282 | padding-bottom: 0px; |
| 283 | font-style: normal; |
| 284 | } |
| 285 | |
| 286 | mark > mark > mark, |
| 287 | em > em, |
| 288 | .level-1 { |
| 289 | padding-bottom: 3px; |
| 290 | } |
| 291 | |
| 292 | mark > mark > mark > mark, |
| 293 | em > em > em, |
| 294 | .level-2 { |
| 295 | padding-bottom: 6px; |
| 296 | } |
| 297 | |
| 298 | li { |
| 299 | &:not(.active) mark > mark > mark > mark, |
| 300 | &:not(.active) em > em > em { |
| 301 | line-height: 180%; |
| 302 | } |
| 303 | &.active mark > mark > mark > mark, |
| 304 | &.active em > em > em { |
| 305 | line-height: 250%; |
| 306 | } |
| 307 | } |
| 308 | |
| 309 | .class-1 { border-color: $kwic-highlight-1; } |
| 310 | .class-2 { border-color: $kwic-highlight-2; } |
| 311 | .class-3 { border-color: $kwic-highlight-3; } |
| 312 | .class-4 { border-color: $kwic-highlight-4; } |
| 313 | |
| 314 | /* |
| 315 | span.more:before { |
| 316 | content: "…"; |
| 317 | padding-left: 2pt; |
| 318 | padding-right: 2pt; |
| 319 | } |
| 320 | */ |
| 321 | |
| 322 | div.snippet.startMore:before, |
| 323 | div.snippet.endMore:after { |
| 324 | content: "…"; |
| 325 | padding-left: 2pt; |
| 326 | padding-right: 2pt; |
| 327 | } |
| 328 | |
| 329 | |