Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
| 2 | |
| 3 | $fonts: verdana, tahoma, arial; |
| 4 | |
| 5 | @import "colors"; |
| 6 | |
| 7 | @mixin box-sizing-box() { |
| 8 | -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */ |
| 9 | -moz-box-sizing: border-box; /* Firefox, other Gecko */ |
| 10 | box-sizing: border-box; /* Opera/IE 8+ */ |
| 11 | } |
| 12 | |
| 13 | |
| 14 | /* |
| 15 | Search for: [orth=erstens] |
| 16 | */ |
| 17 | |
| 18 | ol { |
| 19 | width: auto; |
| 20 | overflow: hidden; |
| 21 | list-style-type: none; |
| 22 | margin: 0; |
| 23 | padding: 0; |
| 24 | text-indent: 0; |
| 25 | border: 1px solid $kwic-border; |
| 26 | font: { |
| 27 | family: $fonts; |
| 28 | size: 10pt; |
| 29 | } |
| 30 | text-shadow: 1px 1px rgba(255, 255, 255, 0.4); |
| 31 | > li { |
| 32 | border: { |
| 33 | style: solid; |
| 34 | color: #ffa500; |
| 35 | width: 0; |
| 36 | } |
| 37 | &:not(.active):not(:target) { |
| 38 | width: 99999%; |
| 39 | margin-left: -49999.5%; |
| 40 | background-color: $kwic-line-noneven; |
| 41 | overflow: hidden; |
| 42 | white-space: no-wrap; |
| 43 | cursor: pointer; |
| 44 | padding: 5pt 0 6pt 0; |
| 45 | text-indent: 0; |
| 46 | &:nth-of-type(even) { |
| 47 | background-color: $kwic-line-even; |
| 48 | } |
| 49 | } |
| 50 | > div { |
Nils Diewald | 88707fe | 2015-02-20 03:09:02 +0000 | [diff] [blame^] | 51 | > div.snippet { |
| 52 | > span, |
| 53 | > mark { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 54 | white-space: no-wrap !important; |
Nils Diewald | 88707fe | 2015-02-20 03:09:02 +0000 | [diff] [blame^] | 55 | > span { |
| 56 | white-space: no-wrap !important; |
| 57 | } |
| 58 | color: #666; |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 59 | } |
Nils Diewald | 88707fe | 2015-02-20 03:09:02 +0000 | [diff] [blame^] | 60 | > mark, |
| 61 | > span.match { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 62 | font-weight: bold; |
| 63 | text-shadow: $kwic-match-shadow; |
| 64 | color: $kwic-match-color; |
| 65 | padding-left: 4pt; |
| 66 | padding-right: 2pt; |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 73 | ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.left { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 74 | display: inline-block; |
| 75 | text-align: right; |
| 76 | width: 50.046%; |
| 77 | } |
| 78 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 79 | ol.align-free > li:not(.active):not(:target) > div > div.snippet > span.separator { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 80 | width: 0px; |
| 81 | height: 1em; |
| 82 | margin-bottom: -2px; |
| 83 | display: inline-block; |
| 84 | line-height: 100%; |
| 85 | border: 1px solid #009EE0; |
| 86 | margin-left: 2px; |
| 87 | margin-right: 2px; |
| 88 | } |
| 89 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 90 | ol.align-free > li > div > div.snippet > span.right { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 91 | text-align: left; |
| 92 | } |
| 93 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 94 | ol.align-left > li > div > div.snippet > span.context-left { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 95 | display: inline-block; |
| 96 | text-align: right; |
| 97 | width: 50.01%; |
| 98 | } |
| 99 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 100 | ol.align-right { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 101 | text-align: right; |
| 102 | > li:not(.active):not(:target) > div > div.snippet > span.context-right { |
| 103 | display: inline-block; |
| 104 | text-align: left; |
| 105 | width: 49.915%; |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | /* Highlights */ |
Nils Diewald | 88707fe | 2015-02-20 03:09:02 +0000 | [diff] [blame^] | 110 | mark > mark, |
| 111 | em, |
| 112 | .level-0 { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 113 | border-bottom-width: 2px; |
| 114 | border-bottom-style: solid; |
| 115 | padding-bottom: 0px; |
| 116 | font-style: normal; |
| 117 | } |
| 118 | |
Nils Diewald | 88707fe | 2015-02-20 03:09:02 +0000 | [diff] [blame^] | 119 | mark > mark > mark, |
| 120 | em > em, |
| 121 | .level-1 { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 122 | padding-bottom: 3px; |
| 123 | } |
| 124 | |
Nils Diewald | 88707fe | 2015-02-20 03:09:02 +0000 | [diff] [blame^] | 125 | mark > mark > mark > mark, |
| 126 | em > em > em, |
| 127 | .level-2 { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 128 | padding-bottom: 6px; |
| 129 | } |
| 130 | |
Nils Diewald | 791b590 | 2014-12-04 04:47:24 +0000 | [diff] [blame] | 131 | li { |
Nils Diewald | 88707fe | 2015-02-20 03:09:02 +0000 | [diff] [blame^] | 132 | &:not(.active) mark > mark > mark > mark, |
Nils Diewald | 791b590 | 2014-12-04 04:47:24 +0000 | [diff] [blame] | 133 | &:not(.active) em > em > em { |
| 134 | line-height: 180%; |
| 135 | } |
Nils Diewald | 88707fe | 2015-02-20 03:09:02 +0000 | [diff] [blame^] | 136 | &.active mark > mark > mark > mark, |
Nils Diewald | 791b590 | 2014-12-04 04:47:24 +0000 | [diff] [blame] | 137 | &.active em > em > em { |
| 138 | line-height: 250%; |
| 139 | } |
| 140 | } |
| 141 | |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 142 | .class-1 { border-color: $kwic-highlight-1; } |
| 143 | .class-2 { border-color: $kwic-highlight-2; } |
Nils Diewald | 2ef057e | 2014-11-04 16:04:17 +0000 | [diff] [blame] | 144 | .class-3 { border-color: $kwic-highlight-3; } |
| 145 | .class-4 { border-color: $kwic-highlight-4; } |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 146 | |
Nils Diewald | 791b590 | 2014-12-04 04:47:24 +0000 | [diff] [blame] | 147 | /* |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 148 | span.more:before { |
| 149 | content: "…"; |
| 150 | padding-left: 2pt; |
| 151 | padding-right: 2pt; |
| 152 | } |
Nils Diewald | 791b590 | 2014-12-04 04:47:24 +0000 | [diff] [blame] | 153 | */ |
| 154 | |
| 155 | div.snippet.startMore:before, |
| 156 | div.snippet.endMore:after { |
| 157 | content: "…"; |
| 158 | padding-left: 2pt; |
| 159 | padding-right: 2pt; |
| 160 | } |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 161 | |
| 162 | /* active view */ |
| 163 | ol > li.active, |
| 164 | ol > li:target { |
| 165 | text-align: left; |
| 166 | width: auto; |
| 167 | cursor: normal; |
| 168 | white-space: wrap; |
| 169 | height: auto; |
| 170 | border-width: 2px; |
| 171 | background-color: $light-orange; |
| 172 | position: relative; |
| 173 | > div { |
| 174 | min-height: 42pt; |
| 175 | > div.snippet { |
| 176 | margin: 5pt 10pt; |
| 177 | margin-right: 3em; |
| 178 | > span { |
| 179 | line-height: 1.4em; |
| 180 | width: auto; |
| 181 | &.context-left { |
| 182 | margin-left: 0; |
| 183 | display: inline; |
| 184 | overflow: visible; |
| 185 | text-align: left; |
| 186 | width: auto; |
| 187 | } |
| 188 | } |
| 189 | } |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | /* Actions */ |
| 194 | ol > li { |
| 195 | ul.action { |
| 196 | display: none; |
| 197 | > li { |
| 198 | cursor: pointer; |
| 199 | color: white; |
| 200 | text-decoration: none; |
| 201 | } |
| 202 | } |
| 203 | /* active actions */ |
| 204 | &.active, &:target { |
| 205 | ul.action { |
| 206 | background-color: $dark-orange; |
| 207 | font-size: 12pt; |
| 208 | color: white; |
| 209 | text: { |
| 210 | shadow: none; |
| 211 | indent: 0; |
| 212 | } |
| 213 | display: block; |
| 214 | margin: 0; |
| 215 | padding: 0; |
| 216 | z-index: 4; |
| 217 | list-style: { |
| 218 | type: none; |
| 219 | position: inline; |
| 220 | } |
| 221 | &.right { |
| 222 | position: absolute; |
| 223 | float: right; |
| 224 | text-align: center; |
| 225 | padding: 0pt 3pt; |
| 226 | height: 100%; |
| 227 | width: 1.2em;; |
| 228 | right: 0; |
| 229 | top: 0; |
| 230 | } |
| 231 | } |
| 232 | } |
| 233 | &:not(.active):not(:target) p { |
| 234 | display: none; |
| 235 | } |
| 236 | &.active p, &:target p { |
| 237 | @include box-sizing-box(); |
| 238 | padding-right: 2em; |
| 239 | background-color: $dark-orange; |
| 240 | color: white; |
| 241 | text-shadow: none; |
| 242 | padding: 3pt 10pt; |
| 243 | margin: 0pt; |
| 244 | width: 100%; |
| 245 | bottom: 0; |
| 246 | z-index: 300; |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | |