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