Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 1 | @charset "utf-8"; |
Nils Diewald | ab4d3ca | 2015-04-17 01:48:43 +0000 | [diff] [blame] | 2 | @import "../util"; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 3 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 4 | $left-padding: 4em; // 32pt; // 2.8em; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 5 | $border-size: 2px; |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 6 | $bracket-size: .4em; // 4pt; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 7 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 8 | /** |
| 9 | * Virtual Collection Builder |
| 10 | */ |
Akron | 5c829e9 | 2017-05-12 18:10:00 +0200 | [diff] [blame] | 11 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 12 | .vc { |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 13 | margin-top: 4pt; |
| 14 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 15 | .docGroup, .doc { |
| 16 | // color: $nearly-white; |
| 17 | // color: $dark-green; |
| 18 | color: $dark-grey; |
| 19 | // text-shadow: $light-shadow; |
| 20 | } |
| 21 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 22 | /** |
| 23 | * Rules for all docGroups |
| 24 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 25 | .docGroup { |
| 26 | position: relative; |
| 27 | display: inline-block; |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 28 | margin-left: $left-padding; // 28pt |
| 29 | |
| 30 | .docGroup { display: block; } |
| 31 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 32 | padding: 4pt 2pt 4pt 0pt; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 33 | border: { |
| 34 | radius: $standard-border-radius * 2; |
| 35 | style: solid; |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 36 | width: 0 $bracket-size; // .6em .5em |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 37 | } |
| 38 | |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 39 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 40 | // Whiten on hover |
| 41 | &:hover { |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 42 | // background-color: rgba(255,255,255,.06); |
| 43 | background-color: rgba(255,255,255,.3); |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 44 | } |
| 45 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 46 | &[data-operation] { |
| 47 | > .doc:first-child::before, |
| 48 | > .docGroup:first-child::before { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 49 | content: none; |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 50 | } |
| 51 | > .doc::before, |
| 52 | > .docGroup::before { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 53 | display: inline-block; |
| 54 | position: absolute; |
| 55 | text-align: right; |
| 56 | width: $left-padding; |
| 57 | margin-left: -1 * ($left-padding + .5em); // -28pt |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 58 | // color: $dark-green; |
| 59 | color: $dark-orange; |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 60 | line-height: 1.5em; |
| 61 | border-top: $border-size solid transparent; |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 62 | } |
| 63 | > .docGroup::before { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 64 | margin-left: -1 * ($left-padding + .5em) + (-1 * $bracket-size); |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 65 | } |
| 66 | } |
| 67 | |
| 68 | // Or operation |
| 69 | &[data-operation=or] { |
| 70 | border-color: $dark-orange; |
| 71 | > .doc::before, |
| 72 | > .docGroup::before { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 73 | // This will be overruled by JS! |
| 74 | content: "or"; |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 75 | } |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 76 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 77 | /* |
| 78 | &:after { |
| 79 | .button-stat { |
| 80 | > span { |
| 81 | cursor: pointer; |
| 82 | box-shadow: $choose-box-shadow; |
| 83 | font-size: 9pt; |
| 84 | line-height: 1.5em; |
| 85 | padding: 0 4px; |
| 86 | display: inline-block; |
| 87 | @include choose-item; |
| 88 | border-style: solid; |
| 89 | border-width: $border-size 0; |
| 90 | &:hover { |
| 91 | @include choose-hover; |
| 92 | } |
| 93 | &:first-child { |
| 94 | border: { |
| 95 | left-width: $border-size; |
| 96 | right-width: $border-size; |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | } |
| 101 | } |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 102 | } |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 103 | */ |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 104 | } |
| 105 | |
| 106 | // And operation |
| 107 | &[data-operation=and] { |
| 108 | > .doc::before, |
| 109 | > .docGroup::before { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 110 | // This will be overruled by JS! |
| 111 | content: "and"; |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 112 | } |
| 113 | } |
| 114 | |
| 115 | |
| 116 | /** |
| 117 | * All operators on groups |
| 118 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 119 | > .operators { |
| 120 | position: absolute; |
| 121 | display: block; |
| 122 | top: 10px; |
| 123 | vertical-align: middle; |
| 124 | left: 3px; |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 125 | > span:first-child { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 126 | border: { |
| 127 | top-left-radius: 0; |
| 128 | bottom-left-radius: 0; |
| 129 | } |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 130 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 131 | margin-left: 100%; |
| 132 | padding: 0; |
| 133 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 134 | } |
| 135 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 136 | |
| 137 | /** |
| 138 | * All document rules |
| 139 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 140 | .doc { |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 141 | padding-left: $left-padding; |
Nils Diewald | 4c22125 | 2015-04-21 20:19:25 +0000 | [diff] [blame] | 142 | > span + span, |
Akron | 7945237 | 2018-04-11 14:24:19 +0200 | [diff] [blame] | 143 | > span + div + span, |
| 144 | > span + ul + span { |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 145 | margin-left: 5pt; |
| 146 | } |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 147 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 148 | > span.key, |
| 149 | > span.value { |
| 150 | font-weight: bold; |
Akron | b19803c | 2018-08-16 16:39:42 +0200 | [diff] [blame] | 151 | } |
| 152 | > span.value { |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 153 | &[data-type=regex] { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 154 | font-style: italic; |
| 155 | &::after, |
| 156 | &::before { |
| 157 | content: '/'; |
| 158 | } |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 159 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 160 | } |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 161 | |
Akron | b19803c | 2018-08-16 16:39:42 +0200 | [diff] [blame] | 162 | > span.key.fixed { |
| 163 | color: $light-green; |
| 164 | } |
| 165 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 166 | /** |
| 167 | * All operators on docs |
| 168 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 169 | > .operators { |
| 170 | display: inline-block; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 171 | margin-left: 10px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 172 | } |
| 173 | > span.key { |
| 174 | position: relative; |
| 175 | > ul { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 176 | margin: 0; |
| 177 | margin-left: 3.3em; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 178 | } |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | .rewritten { |
| 183 | .rewrite { |
| 184 | margin-left: 4pt; |
| 185 | display: inline-block; |
| 186 | color: $dark-orange; |
| 187 | &::after { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 188 | font: { |
| 189 | family: FontAwesome; |
| 190 | style: normal; |
| 191 | weight: normal; |
| 192 | } |
| 193 | content: $fa-rewrite; |
| 194 | text-decoration: underline; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 195 | } |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 196 | > span { |
| 197 | display: none; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 198 | } |
| 199 | } |
| 200 | } |
| 201 | |
Akron | b19803c | 2018-08-16 16:39:42 +0200 | [diff] [blame] | 202 | .doc > span:not(.fixed) { |
Nils Diewald | 1fcb2ad | 2015-04-20 19:19:18 +0000 | [diff] [blame] | 203 | cursor: pointer; |
Nils Diewald | 4c22125 | 2015-04-21 20:19:25 +0000 | [diff] [blame] | 204 | &:hover { |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 205 | // color: $dark-green; |
| 206 | color: $dark-orange; |
Nils Diewald | 4c22125 | 2015-04-21 20:19:25 +0000 | [diff] [blame] | 207 | } |
Nils Diewald | 1fcb2ad | 2015-04-20 19:19:18 +0000 | [diff] [blame] | 208 | } |
| 209 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 210 | /** |
| 211 | * All operators |
| 212 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 213 | .operators { |
| 214 | opacity: 0; |
| 215 | white-space: nowrap; |
| 216 | padding: 0; |
| 217 | font-size: 0; |
| 218 | line-height: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 219 | text-align: center; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 220 | } |
| 221 | |
| 222 | > .docGroup { |
| 223 | margin-left: 0; |
| 224 | } |
| 225 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 226 | .doc, .docGroup { |
| 227 | &:hover > .operators { |
| 228 | opacity: 1; |
| 229 | } |
| 230 | } |
| 231 | |
Nils Diewald | 4c22125 | 2015-04-21 20:19:25 +0000 | [diff] [blame] | 232 | .menu { |
| 233 | display: inline-block; |
| 234 | } |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 235 | |
Akron | 3ad4694 | 2018-08-22 16:47:14 +0200 | [diff] [blame] | 236 | .menu li[data-type=ref]:before, |
| 237 | span.key.ref:before { |
| 238 | content: $fa-referto; |
| 239 | font-family: 'FontAwesome'; |
Akron | d82e42a | 2018-08-22 17:08:59 +0200 | [diff] [blame] | 240 | padding-right: 4pt; |
Akron | 3ad4694 | 2018-08-22 16:47:14 +0200 | [diff] [blame] | 241 | style: normal; |
| 242 | weight: normal; |
| 243 | } |
| 244 | |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 245 | div.value { |
| 246 | position: absolute; |
| 247 | display: inline-block; |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 248 | z-index: 8000; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 249 | @include choose-item; |
| 250 | box-shadow: $choose-box-shadow; |
| 251 | padding: 4pt; |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 252 | margin-top: -6pt; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 253 | border: { |
| 254 | width: $border-size; |
| 255 | style: solid; |
| 256 | radius: $standard-border-radius; |
| 257 | } |
| 258 | input { |
| 259 | border-width: 0; |
| 260 | } |
| 261 | > div { |
| 262 | padding: 2pt; |
| 263 | cursor: pointer; |
| 264 | font: { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 265 | size: 80%; |
| 266 | style: italic; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 267 | } |
| 268 | display: inline-block; |
| 269 | @include choose-item; |
| 270 | border: { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 271 | width: $border-size; |
| 272 | style: solid; |
| 273 | radius: $standard-border-radius; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 274 | } |
| 275 | |
| 276 | &:hover { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 277 | @include choose-hover; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 278 | } |
| 279 | } |
| 280 | &.regex { |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 281 | > input { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 282 | font-style: italic; |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 283 | } |
| 284 | |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 285 | > div { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 286 | @include choose-active; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 287 | } |
| 288 | } |
| 289 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 290 | } |
| 291 | |
| 292 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 293 | /** |
| 294 | * The z-index cascade for groups. |
| 295 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 296 | $dg-index : 30; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 297 | .docGroup { |
| 298 | > .operators { |
| 299 | z-index: $dg-index; |
| 300 | } |
| 301 | .docGroup { |
| 302 | > .operators { |
| 303 | z-index: $dg-index + 1; |
| 304 | } |
| 305 | .docGroup { |
| 306 | > .operators { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 307 | z-index: $dg-index + 2; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 308 | } |
| 309 | .docGroup { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 310 | > .operators { |
| 311 | z-index: $dg-index + 3; |
| 312 | } |
| 313 | .docGroup { |
| 314 | > .operators { |
| 315 | z-index: $dg-index + 4; |
| 316 | } |
| 317 | .docGroup { |
| 318 | > .operators { |
| 319 | z-index: $dg-index + 5; |
| 320 | } |
| 321 | .docGroup { |
| 322 | > .operators { |
| 323 | z-index: $dg-index + 6; |
| 324 | } |
| 325 | } |
| 326 | } |
| 327 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 328 | } |
| 329 | } |
| 330 | } |
| 331 | } |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 332 | |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 333 | #collection { |
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 334 | line-height: 1em; |
| 335 | border-radius: $standard-border-radius; |
| 336 | } |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 337 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 338 | header #vc-view > div { |
| 339 | margin: 1.3em 0 .5em 0; |
| 340 | } |
| 341 | |
Akron | 5c829e9 | 2017-05-12 18:10:00 +0200 | [diff] [blame] | 342 | |
| 343 | #vc-choose > span.rewritten { |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 344 | &::after { |
Akron | 5c829e9 | 2017-05-12 18:10:00 +0200 | [diff] [blame] | 345 | color: $dark-orange; |
| 346 | padding: 0; |
| 347 | padding-left: 4px; |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 348 | font: { |
| 349 | family: FontAwesome; |
| 350 | style: normal; |
| 351 | weight: normal; |
| 352 | } |
| 353 | content: $fa-rewrite; |
| 354 | text-decoration: underline; |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 355 | } |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 356 | } |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 357 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 358 | div#vc-view > div.vc { |
| 359 | border: 2px solid $dark-green; |
| 360 | background-color: $nearly-white; |
| 361 | > div:first-child { |
| 362 | margin: 1.3em; |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 363 | } |
| 364 | } |
| 365 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 366 | div.panel.vcinfo { |
| 367 | padding: 3pt 0pt 3pt 3pt; |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 368 | background-color: $dark-green; |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 369 | /* |
| 370 | div.button-group { |
| 371 | display: inline-block; |
| 372 | margin-right: .5em; |
| 373 | > span { |
| 374 | position: relative; |
| 375 | box-shadow: none; |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 376 | } |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 377 | } |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 378 | */ |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 379 | } |
| 380 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 381 | /* |
| 382 | .button-group.vcstatistic{ |
| 383 | position:relative; |
| 384 | } |
| 385 | */ |