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 | |
| 236 | div.value { |
| 237 | position: absolute; |
| 238 | display: inline-block; |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 239 | z-index: 8000; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 240 | @include choose-item; |
| 241 | box-shadow: $choose-box-shadow; |
| 242 | padding: 4pt; |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 243 | margin-top: -6pt; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 244 | border: { |
| 245 | width: $border-size; |
| 246 | style: solid; |
| 247 | radius: $standard-border-radius; |
| 248 | } |
| 249 | input { |
| 250 | border-width: 0; |
| 251 | } |
| 252 | > div { |
| 253 | padding: 2pt; |
| 254 | cursor: pointer; |
| 255 | font: { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 256 | size: 80%; |
| 257 | style: italic; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 258 | } |
| 259 | display: inline-block; |
| 260 | @include choose-item; |
| 261 | border: { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 262 | width: $border-size; |
| 263 | style: solid; |
| 264 | radius: $standard-border-radius; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 265 | } |
| 266 | |
| 267 | &:hover { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 268 | @include choose-hover; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 269 | } |
| 270 | } |
| 271 | &.regex { |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 272 | > input { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 273 | font-style: italic; |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 274 | } |
| 275 | |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 276 | > div { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 277 | @include choose-active; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 278 | } |
| 279 | } |
| 280 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 281 | } |
| 282 | |
| 283 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 284 | /** |
| 285 | * The z-index cascade for groups. |
| 286 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 287 | $dg-index : 30; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 288 | .docGroup { |
| 289 | > .operators { |
| 290 | z-index: $dg-index; |
| 291 | } |
| 292 | .docGroup { |
| 293 | > .operators { |
| 294 | z-index: $dg-index + 1; |
| 295 | } |
| 296 | .docGroup { |
| 297 | > .operators { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 298 | z-index: $dg-index + 2; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 299 | } |
| 300 | .docGroup { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 301 | > .operators { |
| 302 | z-index: $dg-index + 3; |
| 303 | } |
| 304 | .docGroup { |
| 305 | > .operators { |
| 306 | z-index: $dg-index + 4; |
| 307 | } |
| 308 | .docGroup { |
| 309 | > .operators { |
| 310 | z-index: $dg-index + 5; |
| 311 | } |
| 312 | .docGroup { |
| 313 | > .operators { |
| 314 | z-index: $dg-index + 6; |
| 315 | } |
| 316 | } |
| 317 | } |
| 318 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 319 | } |
| 320 | } |
| 321 | } |
| 322 | } |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 323 | |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 324 | #collection { |
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 325 | line-height: 1em; |
| 326 | border-radius: $standard-border-radius; |
| 327 | } |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 328 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 329 | header #vc-view > div { |
| 330 | margin: 1.3em 0 .5em 0; |
| 331 | } |
| 332 | |
Akron | 5c829e9 | 2017-05-12 18:10:00 +0200 | [diff] [blame] | 333 | |
| 334 | #vc-choose > span.rewritten { |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 335 | &::after { |
Akron | 5c829e9 | 2017-05-12 18:10:00 +0200 | [diff] [blame] | 336 | color: $dark-orange; |
| 337 | padding: 0; |
| 338 | padding-left: 4px; |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 339 | font: { |
| 340 | family: FontAwesome; |
| 341 | style: normal; |
| 342 | weight: normal; |
| 343 | } |
| 344 | content: $fa-rewrite; |
| 345 | text-decoration: underline; |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 346 | } |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 347 | } |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 348 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 349 | div#vc-view > div.vc { |
| 350 | border: 2px solid $dark-green; |
| 351 | background-color: $nearly-white; |
| 352 | > div:first-child { |
| 353 | margin: 1.3em; |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 354 | } |
| 355 | } |
| 356 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 357 | div.panel.vcinfo { |
| 358 | padding: 3pt 0pt 3pt 3pt; |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 359 | background-color: $dark-green; |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 360 | /* |
| 361 | div.button-group { |
| 362 | display: inline-block; |
| 363 | margin-right: .5em; |
| 364 | > span { |
| 365 | position: relative; |
| 366 | box-shadow: none; |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 367 | } |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 368 | } |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 369 | */ |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 370 | } |
| 371 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame] | 372 | /* |
| 373 | .button-group.vcstatistic{ |
| 374 | position:relative; |
| 375 | } |
| 376 | */ |