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 { |
| 51 | > div.snippet > span { |
| 52 | white-space: no-wrap !important; |
| 53 | > span { |
| 54 | white-space: no-wrap !important; |
| 55 | } |
| 56 | color: #666; |
| 57 | &.match { |
| 58 | font-weight: bold; |
| 59 | text-shadow: $kwic-match-shadow; |
| 60 | color: $kwic-match-color; |
| 61 | padding-left: 4pt; |
| 62 | padding-right: 2pt; |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | } |
| 67 | } |
| 68 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 69 | 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] | 70 | display: inline-block; |
| 71 | text-align: right; |
| 72 | width: 50.046%; |
| 73 | } |
| 74 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 75 | 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] | 76 | width: 0px; |
| 77 | height: 1em; |
| 78 | margin-bottom: -2px; |
| 79 | display: inline-block; |
| 80 | line-height: 100%; |
| 81 | border: 1px solid #009EE0; |
| 82 | margin-left: 2px; |
| 83 | margin-right: 2px; |
| 84 | } |
| 85 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 86 | ol.align-free > li > div > div.snippet > span.right { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 87 | text-align: left; |
| 88 | } |
| 89 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 90 | ol.align-left > li > div > div.snippet > span.context-left { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 91 | display: inline-block; |
| 92 | text-align: right; |
| 93 | width: 50.01%; |
| 94 | } |
| 95 | |
Nils Diewald | e99d904 | 2014-11-20 23:36:54 +0000 | [diff] [blame] | 96 | ol.align-right { |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 97 | text-align: right; |
| 98 | > li:not(.active):not(:target) > div > div.snippet > span.context-right { |
| 99 | display: inline-block; |
| 100 | text-align: left; |
| 101 | width: 49.915%; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | /* Highlights */ |
| 106 | em, em.level-0 { |
| 107 | border-bottom-width: 2px; |
| 108 | border-bottom-style: solid; |
| 109 | padding-bottom: 0px; |
| 110 | font-style: normal; |
| 111 | } |
| 112 | |
| 113 | em > em, em.level-1 { |
| 114 | padding-bottom: 3px; |
| 115 | } |
| 116 | |
| 117 | em > em > em, em.level-2 { |
| 118 | padding-bottom: 6px; |
| 119 | } |
| 120 | |
Nils Diewald | 791b590 | 2014-12-04 04:47:24 +0000 | [diff] [blame] | 121 | li { |
| 122 | &:not(.active) em > em > em { |
| 123 | line-height: 180%; |
| 124 | } |
| 125 | &.active em > em > em { |
| 126 | line-height: 250%; |
| 127 | } |
| 128 | } |
| 129 | |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 130 | .class-1 { border-color: $kwic-highlight-1; } |
| 131 | .class-2 { border-color: $kwic-highlight-2; } |
Nils Diewald | 2ef057e | 2014-11-04 16:04:17 +0000 | [diff] [blame] | 132 | .class-3 { border-color: $kwic-highlight-3; } |
| 133 | .class-4 { border-color: $kwic-highlight-4; } |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 134 | |
Nils Diewald | 791b590 | 2014-12-04 04:47:24 +0000 | [diff] [blame] | 135 | /* |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 136 | span.more:before { |
| 137 | content: "…"; |
| 138 | padding-left: 2pt; |
| 139 | padding-right: 2pt; |
| 140 | } |
Nils Diewald | 791b590 | 2014-12-04 04:47:24 +0000 | [diff] [blame] | 141 | */ |
| 142 | |
| 143 | div.snippet.startMore:before, |
| 144 | div.snippet.endMore:after { |
| 145 | content: "…"; |
| 146 | padding-left: 2pt; |
| 147 | padding-right: 2pt; |
| 148 | } |
Nils Diewald | 7cad840 | 2014-07-08 17:06:56 +0000 | [diff] [blame] | 149 | |
| 150 | /* active view */ |
| 151 | ol > li.active, |
| 152 | ol > li:target { |
| 153 | text-align: left; |
| 154 | width: auto; |
| 155 | cursor: normal; |
| 156 | white-space: wrap; |
| 157 | height: auto; |
| 158 | border-width: 2px; |
| 159 | background-color: $light-orange; |
| 160 | position: relative; |
| 161 | > div { |
| 162 | min-height: 42pt; |
| 163 | > div.snippet { |
| 164 | margin: 5pt 10pt; |
| 165 | margin-right: 3em; |
| 166 | > span { |
| 167 | line-height: 1.4em; |
| 168 | width: auto; |
| 169 | &.context-left { |
| 170 | margin-left: 0; |
| 171 | display: inline; |
| 172 | overflow: visible; |
| 173 | text-align: left; |
| 174 | width: auto; |
| 175 | } |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | } |
| 180 | |
| 181 | /* Actions */ |
| 182 | ol > li { |
| 183 | ul.action { |
| 184 | display: none; |
| 185 | > li { |
| 186 | cursor: pointer; |
| 187 | color: white; |
| 188 | text-decoration: none; |
| 189 | } |
| 190 | } |
| 191 | /* active actions */ |
| 192 | &.active, &:target { |
| 193 | ul.action { |
| 194 | background-color: $dark-orange; |
| 195 | font-size: 12pt; |
| 196 | color: white; |
| 197 | text: { |
| 198 | shadow: none; |
| 199 | indent: 0; |
| 200 | } |
| 201 | display: block; |
| 202 | margin: 0; |
| 203 | padding: 0; |
| 204 | z-index: 4; |
| 205 | list-style: { |
| 206 | type: none; |
| 207 | position: inline; |
| 208 | } |
| 209 | &.right { |
| 210 | position: absolute; |
| 211 | float: right; |
| 212 | text-align: center; |
| 213 | padding: 0pt 3pt; |
| 214 | height: 100%; |
| 215 | width: 1.2em;; |
| 216 | right: 0; |
| 217 | top: 0; |
| 218 | } |
| 219 | } |
| 220 | } |
| 221 | &:not(.active):not(:target) p { |
| 222 | display: none; |
| 223 | } |
| 224 | &.active p, &:target p { |
| 225 | @include box-sizing-box(); |
| 226 | padding-right: 2em; |
| 227 | background-color: $dark-orange; |
| 228 | color: white; |
| 229 | text-shadow: none; |
| 230 | padding: 3pt 10pt; |
| 231 | margin: 0pt; |
| 232 | width: 100%; |
| 233 | bottom: 0; |
| 234 | z-index: 300; |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | |