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