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