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 { |
| 153 | p.ref { |
| 154 | color: white; |
| 155 | padding: 3pt 10pt; |
| 156 | padding-right: $right-match-distance; |
| 157 | margin: 0pt; |
| 158 | width: 100%; |
| 159 | bottom: 0; |
| 160 | z-index: 30; |
| 161 | } |
| 162 | } |
| 163 | } |
| 164 | > li.marked:not(.active):not(:target) { |
| 165 | div.flag { |
| 166 | position: absolute; |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 167 | top: 0; |
| 168 | width: 11px; |
| 169 | height: 100%; |
| 170 | margin-left: 50%; |
Akron | 0669f2f | 2015-05-28 20:27:09 +0200 | [diff] [blame] | 171 | background-color: $dark-orange; |
| 172 | border-right: 1px solid $darkest-orange; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 173 | } |
| 174 | } |
| 175 | } |
| 176 | } |
| 177 | |
Akron | ebc8d93 | 2015-05-28 18:19:35 +0200 | [diff] [blame] | 178 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 179 | ul.action { |
Nils Diewald | 1c54692 | 2015-04-13 01:56:19 +0000 | [diff] [blame] | 180 | // background-color: $dark-orange; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 181 | font-size: 12pt; |
| 182 | color: white; |
| 183 | text: { |
| 184 | shadow: none; |
| 185 | indent: 0; |
| 186 | } |
| 187 | margin: 0; |
| 188 | padding: 0; |
| 189 | z-index: 5; |
| 190 | |
| 191 | list-style: { |
| 192 | type: none; |
| 193 | position: inline; |
| 194 | } |
| 195 | &.right { |
| 196 | position: absolute; |
| 197 | width: $right-match-distance; |
| 198 | float: right; |
| 199 | text-align: center; |
| 200 | padding: 0pt 3pt; |
| 201 | height: 100%; |
| 202 | right: 0; |
| 203 | top: 0; |
| 204 | li { |
| 205 | cursor: pointer; |
| 206 | color: white; |
| 207 | text-decoration: none; |
| 208 | |
| 209 | > span { |
| 210 | @include blind; |
| 211 | } |
| 212 | &.close::after { |
| 213 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 214 | content: $fa-close; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 215 | } |
| 216 | &.info::after { |
| 217 | font-family: "FontAwesome"; |
Nils Diewald | 2488d05 | 2015-04-09 21:46:02 +0000 | [diff] [blame] | 218 | content: $fa-info; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 219 | } |
| 220 | } |
| 221 | } |
| 222 | } |
| 223 | |
| 224 | /* |
| 225 | ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left { |
| 226 | display: inline-block; |
| 227 | text-align: right; |
| 228 | width: 50.046%; |
| 229 | } |
| 230 | |
| 231 | ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator { |
| 232 | width: 0px; |
| 233 | height: 1em; |
| 234 | margin-bottom: -2px; |
| 235 | display: inline-block; |
| 236 | line-height: 100%; |
| 237 | border: 1px solid #009EE0; |
| 238 | margin-left: 2px; |
| 239 | margin-right: 2px; |
| 240 | } |
| 241 | |
| 242 | ol.align-free > li > div > div.snippet > span.right { |
| 243 | text-align: left; |
| 244 | } |
| 245 | */ |
| 246 | |
| 247 | ol.align-left > li > div > div.snippet > span.context-left { |
| 248 | display: inline-block; |
| 249 | text-align: right; |
| 250 | width: 50.01%; |
| 251 | } |
| 252 | |
| 253 | ol.align-right { |
| 254 | text-align: right; |
| 255 | > li:not(.active):not(:target) > div > div.snippet > span.context-right { |
| 256 | display: inline-block; |
| 257 | text-align: left; |
| 258 | width: 49.915%; |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | /** |
| 263 | * Highlights |
| 264 | */ |
| 265 | mark { |
| 266 | background-color: inherit; |
| 267 | color: inherit; |
| 268 | } |
| 269 | |
| 270 | mark > mark, |
| 271 | em, |
| 272 | .level-0 { |
| 273 | border-bottom-width: 2px; |
| 274 | border-bottom-style: solid; |
| 275 | padding-bottom: 0px; |
| 276 | font-style: normal; |
| 277 | } |
| 278 | |
| 279 | mark > mark > mark, |
| 280 | em > em, |
| 281 | .level-1 { |
| 282 | padding-bottom: 3px; |
| 283 | } |
| 284 | |
| 285 | mark > mark > mark > mark, |
| 286 | em > em > em, |
| 287 | .level-2 { |
| 288 | padding-bottom: 6px; |
| 289 | } |
| 290 | |
| 291 | li { |
| 292 | &:not(.active) mark > mark > mark > mark, |
| 293 | &:not(.active) em > em > em { |
| 294 | line-height: 180%; |
| 295 | } |
| 296 | &.active mark > mark > mark > mark, |
| 297 | &.active em > em > em { |
| 298 | line-height: 250%; |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | .class-1 { border-color: $kwic-highlight-1; } |
| 303 | .class-2 { border-color: $kwic-highlight-2; } |
| 304 | .class-3 { border-color: $kwic-highlight-3; } |
| 305 | .class-4 { border-color: $kwic-highlight-4; } |
| 306 | |
| 307 | /* |
| 308 | span.more:before { |
| 309 | content: "…"; |
| 310 | padding-left: 2pt; |
| 311 | padding-right: 2pt; |
| 312 | } |
| 313 | */ |
| 314 | |
| 315 | div.snippet.startMore:before, |
| 316 | div.snippet.endMore:after { |
| 317 | content: "…"; |
| 318 | padding-left: 2pt; |
| 319 | padding-right: 2pt; |
| 320 | } |
| 321 | |
| 322 | |