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; |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 151 | &[data-type=regex] { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 152 | font-style: italic; |
| 153 | &::after, |
| 154 | &::before { |
| 155 | content: '/'; |
| 156 | } |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 157 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 158 | } |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 159 | |
| 160 | /** |
| 161 | * All operators on docs |
| 162 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 163 | > .operators { |
| 164 | display: inline-block; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 165 | margin-left: 10px; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 166 | } |
| 167 | > span.key { |
| 168 | position: relative; |
| 169 | > ul { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 170 | margin: 0; |
| 171 | margin-left: 3.3em; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 172 | } |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | .rewritten { |
| 177 | .rewrite { |
| 178 | margin-left: 4pt; |
| 179 | display: inline-block; |
| 180 | color: $dark-orange; |
| 181 | &::after { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 182 | font: { |
| 183 | family: FontAwesome; |
| 184 | style: normal; |
| 185 | weight: normal; |
| 186 | } |
| 187 | content: $fa-rewrite; |
| 188 | text-decoration: underline; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 189 | } |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 190 | > span { |
| 191 | display: none; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 192 | } |
| 193 | } |
| 194 | } |
| 195 | |
Nils Diewald | 4c22125 | 2015-04-21 20:19:25 +0000 | [diff] [blame] | 196 | .doc > span { |
Nils Diewald | 1fcb2ad | 2015-04-20 19:19:18 +0000 | [diff] [blame] | 197 | cursor: pointer; |
Nils Diewald | 4c22125 | 2015-04-21 20:19:25 +0000 | [diff] [blame] | 198 | &:hover { |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame^] | 199 | // color: $dark-green; |
| 200 | color: $dark-orange; |
Nils Diewald | 4c22125 | 2015-04-21 20:19:25 +0000 | [diff] [blame] | 201 | } |
Nils Diewald | 1fcb2ad | 2015-04-20 19:19:18 +0000 | [diff] [blame] | 202 | } |
| 203 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 204 | /** |
| 205 | * All operators |
| 206 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 207 | .operators { |
| 208 | opacity: 0; |
| 209 | white-space: nowrap; |
| 210 | padding: 0; |
| 211 | font-size: 0; |
| 212 | line-height: 0; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 213 | text-align: center; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 214 | } |
| 215 | |
| 216 | > .docGroup { |
| 217 | margin-left: 0; |
| 218 | } |
| 219 | |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 220 | .doc, .docGroup { |
| 221 | &:hover > .operators { |
| 222 | opacity: 1; |
| 223 | } |
| 224 | } |
| 225 | |
Nils Diewald | 4c22125 | 2015-04-21 20:19:25 +0000 | [diff] [blame] | 226 | .menu { |
| 227 | display: inline-block; |
| 228 | } |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 229 | |
| 230 | div.value { |
| 231 | position: absolute; |
| 232 | display: inline-block; |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 233 | z-index: 8000; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 234 | @include choose-item; |
| 235 | box-shadow: $choose-box-shadow; |
| 236 | padding: 4pt; |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 237 | margin-top: -6pt; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 238 | border: { |
| 239 | width: $border-size; |
| 240 | style: solid; |
| 241 | radius: $standard-border-radius; |
| 242 | } |
| 243 | input { |
| 244 | border-width: 0; |
| 245 | } |
| 246 | > div { |
| 247 | padding: 2pt; |
| 248 | cursor: pointer; |
| 249 | font: { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 250 | size: 80%; |
| 251 | style: italic; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 252 | } |
| 253 | display: inline-block; |
| 254 | @include choose-item; |
| 255 | border: { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 256 | width: $border-size; |
| 257 | style: solid; |
| 258 | radius: $standard-border-radius; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 259 | } |
| 260 | |
| 261 | &:hover { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 262 | @include choose-hover; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 263 | } |
| 264 | } |
| 265 | &.regex { |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 266 | > input { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 267 | font-style: italic; |
Nils Diewald | 9c12506 | 2015-05-05 23:54:17 +0000 | [diff] [blame] | 268 | } |
| 269 | |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 270 | > div { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 271 | @include choose-active; |
Nils Diewald | c4c4b83 | 2015-05-05 16:00:08 +0000 | [diff] [blame] | 272 | } |
| 273 | } |
| 274 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 275 | } |
| 276 | |
| 277 | |
Nils Diewald | 359a72c | 2015-04-20 17:40:29 +0000 | [diff] [blame] | 278 | /** |
| 279 | * The z-index cascade for groups. |
| 280 | */ |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 281 | $dg-index : 30; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 282 | .docGroup { |
| 283 | > .operators { |
| 284 | z-index: $dg-index; |
| 285 | } |
| 286 | .docGroup { |
| 287 | > .operators { |
| 288 | z-index: $dg-index + 1; |
| 289 | } |
| 290 | .docGroup { |
| 291 | > .operators { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 292 | z-index: $dg-index + 2; |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 293 | } |
| 294 | .docGroup { |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 295 | > .operators { |
| 296 | z-index: $dg-index + 3; |
| 297 | } |
| 298 | .docGroup { |
| 299 | > .operators { |
| 300 | z-index: $dg-index + 4; |
| 301 | } |
| 302 | .docGroup { |
| 303 | > .operators { |
| 304 | z-index: $dg-index + 5; |
| 305 | } |
| 306 | .docGroup { |
| 307 | > .operators { |
| 308 | z-index: $dg-index + 6; |
| 309 | } |
| 310 | } |
| 311 | } |
| 312 | } |
Nils Diewald | a944fab | 2015-04-08 21:02:04 +0000 | [diff] [blame] | 313 | } |
| 314 | } |
| 315 | } |
| 316 | } |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 317 | |
Akron | c1457bf | 2015-06-11 19:24:00 +0200 | [diff] [blame] | 318 | #collection { |
Nils Diewald | 7148c6f | 2015-05-04 15:07:53 +0000 | [diff] [blame] | 319 | line-height: 1em; |
| 320 | border-radius: $standard-border-radius; |
| 321 | } |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 322 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame^] | 323 | header #vc-view > div { |
| 324 | margin: 1.3em 0 .5em 0; |
| 325 | } |
| 326 | |
Akron | 5c829e9 | 2017-05-12 18:10:00 +0200 | [diff] [blame] | 327 | |
| 328 | #vc-choose > span.rewritten { |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 329 | &::after { |
Akron | 5c829e9 | 2017-05-12 18:10:00 +0200 | [diff] [blame] | 330 | color: $dark-orange; |
| 331 | padding: 0; |
| 332 | padding-left: 4px; |
Akron | 76c3dd6 | 2018-05-29 20:58:27 +0200 | [diff] [blame] | 333 | font: { |
| 334 | family: FontAwesome; |
| 335 | style: normal; |
| 336 | weight: normal; |
| 337 | } |
| 338 | content: $fa-rewrite; |
| 339 | text-decoration: underline; |
Nils Diewald | fccfbcb | 2015-04-29 20:48:19 +0000 | [diff] [blame] | 340 | } |
Akron | 6bb7158 | 2016-06-10 20:41:08 +0200 | [diff] [blame] | 341 | } |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 342 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame^] | 343 | div#vc-view > div.vc { |
| 344 | border: 2px solid $dark-green; |
| 345 | background-color: $nearly-white; |
| 346 | > div:first-child { |
| 347 | margin: 1.3em; |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 348 | } |
| 349 | } |
| 350 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame^] | 351 | div.panel.vcinfo { |
| 352 | padding: 3pt 0pt 3pt 3pt; |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 353 | background-color: $dark-green; |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame^] | 354 | /* |
| 355 | div.button-group { |
| 356 | display: inline-block; |
| 357 | margin-right: .5em; |
| 358 | > span { |
| 359 | position: relative; |
| 360 | box-shadow: none; |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 361 | } |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 362 | } |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame^] | 363 | */ |
hebasta | e2ff070 | 2018-06-29 14:26:00 +0200 | [diff] [blame] | 364 | } |
| 365 | |
Akron | 2f97912 | 2018-07-25 17:00:23 +0200 | [diff] [blame^] | 366 | /* |
| 367 | .button-group.vcstatistic{ |
| 368 | position:relative; |
| 369 | } |
| 370 | */ |