AddQueryParameterButton.jsx
1 year ago
BlockSettings.jsx
1 year ago
ControlBuilder.jsx
1 year ago
DateQueryControl.jsx
1 year ago
DateTimeControl.jsx
1 year ago
ParameterControl.jsx
1 year ago
ParameterList.jsx
1 year ago
QueryInspectorControls.jsx
1 year ago
SelectQueryParameter.jsx
1 year ago
TaxonomyParameterControl.jsx
1 year ago
editor.scss
1 year ago
editor.scss
71 lines
| 1 | @use 'sass:math'; |
| 2 | @import '../../../common'; |
| 3 | |
| 4 | .gb-datetime-control { |
| 5 | .components-base-control { |
| 6 | margin-bottom: 0 !important; |
| 7 | } |
| 8 | |
| 9 | .components-datetime__time-separator { |
| 10 | border-bottom-color: var(--wp-components-color-gray-600, #949494); |
| 11 | border-top-color: var(--wp-components-color-gray-600, #949494); |
| 12 | } |
| 13 | |
| 14 | .components-datetime__date > :last-child { |
| 15 | grid-template-columns: 0.5fr repeat(5, minmax(0px, 1fr)) 0.5fr; // Copied from Core, adds minmax to prevent layout bug |
| 16 | } |
| 17 | |
| 18 | .components-flex-item:empty { |
| 19 | display: none; |
| 20 | } |
| 21 | |
| 22 | .components-datetime__time-wrapper { |
| 23 | flex-wrap: wrap; |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | $label-margin-bottom: 12px; |
| 28 | |
| 29 | .gb-date-query { |
| 30 | &__inner { |
| 31 | padding-bottom: var(--gap); |
| 32 | padding-top: var(--gap); |
| 33 | } |
| 34 | |
| 35 | .components-base-control__field > .components-base-control__label { |
| 36 | margin-bottom: $label-margin-bottom; |
| 37 | } |
| 38 | |
| 39 | .components-toggle-group-control { |
| 40 | min-height: 35px; |
| 41 | } |
| 42 | |
| 43 | &__toggle.components-button { |
| 44 | padding-left: 0; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | .gb-parameter-component { |
| 49 | position: relative; |
| 50 | |
| 51 | + .gb-parameter-component { |
| 52 | padding-top: 12px; |
| 53 | margin-block-start: 0 !important; |
| 54 | } |
| 55 | |
| 56 | .gb-remove-parameter { |
| 57 | height: auto; |
| 58 | justify-content: flex-end !important; |
| 59 | min-width: auto; |
| 60 | position: absolute; |
| 61 | right: 0; |
| 62 | top: math.div($label-margin-bottom, 2); |
| 63 | |
| 64 | &.components-button.has-icon svg { |
| 65 | margin-right: 0; |
| 66 | height: 15px; |
| 67 | width: 15px; |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 |