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