Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
| 2 | @import "util"; |
| 3 | |
| 4 | $border-size: 2px; |
| 5 | |
| 6 | #search { |
| 7 | position: relative; |
| 8 | margin-bottom: 44px; |
| 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 | } |
Nils Diewald | 5c5a747 | 2015-04-02 22:13:38 +0000 | [diff] [blame] | 43 | .matchinfo { |
| 44 | display: none; |
| 45 | } |
| 46 | > div > div.snippet { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 47 | text-overflow: ellipsis; |
| 48 | text-indent: 0; |
| 49 | text-shadow: $light-shadow; |
Nils Diewald | 5c5a747 | 2015-04-02 22:13:38 +0000 | [diff] [blame] | 50 | } |
| 51 | } |
| 52 | > div { |
| 53 | > div.snippet { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 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; |
| 83 | background-color: $light-orange; |
| 84 | position: relative; |
| 85 | > div { |
| 86 | min-height: 42pt; |
| 87 | > div.snippet { |
| 88 | margin: 5pt 10pt; |
| 89 | margin-right: 3em; |
| 90 | > span { |
| 91 | line-height: 1.4em; |
| 92 | width: auto; |
| 93 | &.context-left { |
| 94 | margin-left: 0; |
| 95 | display: inline; |
| 96 | overflow: visible; |
| 97 | text-align: left; |
| 98 | width: auto; |
| 99 | } |
| 100 | } |
| 101 | } |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | /* Actions */ |
| 106 | > li { |
| 107 | ul.action { |
| 108 | display: none; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 109 | } |
| 110 | |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 111 | /* active actions */ |
| 112 | &.active, &:target { |
| 113 | ul.action { |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 114 | display: block; |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 115 | } |
| 116 | } |
| 117 | &:not(.active):not(:target) p.ref { |
| 118 | display: none; |
| 119 | } |
| 120 | &.active p.ref, |
| 121 | &:target p.ref { |
| 122 | background-color: $dark-orange; |
| 123 | color: white; |
| 124 | padding: 3pt 10pt; |
| 125 | padding-right: $right-match-distance; |
| 126 | margin: 0pt; |
| 127 | width: 100%; |
| 128 | bottom: 0; |
| 129 | z-index: 30; |
| 130 | } |
| 131 | } |
| 132 | } |
| 133 | } |
| 134 | |
Nils Diewald | 5814133 | 2015-04-07 16:18:45 +0000 | [diff] [blame^] | 135 | ul.action { |
| 136 | background-color: $dark-orange; |
| 137 | font-size: 12pt; |
| 138 | color: white; |
| 139 | text: { |
| 140 | shadow: none; |
| 141 | indent: 0; |
| 142 | } |
| 143 | margin: 0; |
| 144 | padding: 0; |
| 145 | z-index: 5; |
| 146 | |
| 147 | list-style: { |
| 148 | type: none; |
| 149 | position: inline; |
| 150 | } |
| 151 | &.right { |
| 152 | position: absolute; |
| 153 | width: $right-match-distance; |
| 154 | float: right; |
| 155 | text-align: center; |
| 156 | padding: 0pt 3pt; |
| 157 | height: 100%; |
| 158 | right: 0; |
| 159 | top: 0; |
| 160 | li { |
| 161 | cursor: pointer; |
| 162 | color: white; |
| 163 | text-decoration: none; |
| 164 | |
| 165 | > span { |
| 166 | @include blind; |
| 167 | } |
| 168 | &.close::after { |
| 169 | font-family: "FontAwesome"; |
| 170 | content: "\f00d"; |
| 171 | } |
| 172 | &.info::after { |
| 173 | font-family: "FontAwesome"; |
| 174 | content: "\f05a"; |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 180 | /* |
| 181 | ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left { |
| 182 | display: inline-block; |
| 183 | text-align: right; |
| 184 | width: 50.046%; |
| 185 | } |
| 186 | |
| 187 | ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator { |
| 188 | width: 0px; |
| 189 | height: 1em; |
| 190 | margin-bottom: -2px; |
| 191 | display: inline-block; |
| 192 | line-height: 100%; |
| 193 | border: 1px solid #009EE0; |
| 194 | margin-left: 2px; |
| 195 | margin-right: 2px; |
| 196 | } |
| 197 | |
| 198 | ol.align-free > li > div > div.snippet > span.right { |
| 199 | text-align: left; |
| 200 | } |
| 201 | */ |
| 202 | |
| 203 | ol.align-left > li > div > div.snippet > span.context-left { |
| 204 | display: inline-block; |
| 205 | text-align: right; |
| 206 | width: 50.01%; |
| 207 | } |
| 208 | |
| 209 | ol.align-right { |
| 210 | text-align: right; |
| 211 | > li:not(.active):not(:target) > div > div.snippet > span.context-right { |
| 212 | display: inline-block; |
| 213 | text-align: left; |
| 214 | width: 49.915%; |
| 215 | } |
| 216 | } |
| 217 | |
| 218 | /** |
| 219 | * Highlights |
| 220 | */ |
Nils Diewald | 5814133 | 2015-04-07 16:18:45 +0000 | [diff] [blame^] | 221 | mark { |
| 222 | background-color: inherit; |
| 223 | color: inherit; |
| 224 | } |
| 225 | |
Nils Diewald | a297f06 | 2015-04-02 00:23:46 +0000 | [diff] [blame] | 226 | mark > mark, |
| 227 | em, |
| 228 | .level-0 { |
| 229 | border-bottom-width: 2px; |
| 230 | border-bottom-style: solid; |
| 231 | padding-bottom: 0px; |
| 232 | font-style: normal; |
| 233 | } |
| 234 | |
| 235 | mark > mark > mark, |
| 236 | em > em, |
| 237 | .level-1 { |
| 238 | padding-bottom: 3px; |
| 239 | } |
| 240 | |
| 241 | mark > mark > mark > mark, |
| 242 | em > em > em, |
| 243 | .level-2 { |
| 244 | padding-bottom: 6px; |
| 245 | } |
| 246 | |
| 247 | li { |
| 248 | &:not(.active) mark > mark > mark > mark, |
| 249 | &:not(.active) em > em > em { |
| 250 | line-height: 180%; |
| 251 | } |
| 252 | &.active mark > mark > mark > mark, |
| 253 | &.active em > em > em { |
| 254 | line-height: 250%; |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | .class-1 { border-color: $kwic-highlight-1; } |
| 259 | .class-2 { border-color: $kwic-highlight-2; } |
| 260 | .class-3 { border-color: $kwic-highlight-3; } |
| 261 | .class-4 { border-color: $kwic-highlight-4; } |
| 262 | |
| 263 | /* |
| 264 | span.more:before { |
| 265 | content: "…"; |
| 266 | padding-left: 2pt; |
| 267 | padding-right: 2pt; |
| 268 | } |
| 269 | */ |
| 270 | |
| 271 | div.snippet.startMore:before, |
| 272 | div.snippet.endMore:after { |
| 273 | content: "…"; |
| 274 | padding-left: 2pt; |
| 275 | padding-right: 2pt; |
| 276 | } |
| 277 | |
| 278 | |