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