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