|
1 | 1 | .ugb-block-styles-controls { |
2 | | - padding: 8px 16px; |
3 | | - &.components-panel__body { |
4 | | - border-top: none; |
5 | | - margin-bottom: 1px; |
6 | | - } |
| 2 | + padding: 0 16px 8px 8px; |
| 3 | + position: relative; |
| 4 | + border-top: none !important; |
7 | 5 |
|
8 | | - .ugb-block-styles-controls__label { |
9 | | - display: inline-flex; |
10 | | - align-items: center; |
11 | | - height: 24px; |
12 | | - gap: 6px; |
13 | | - } |
14 | | - |
15 | | - .components-base-control__field { |
16 | | - display: grid; |
17 | | - grid-template-columns: 1fr auto; |
18 | | - row-gap: 4px; |
| 6 | + .ugb-block-styles-controls__wrapper { |
19 | 7 | position: relative; |
20 | 8 |
|
21 | | - > .components-base-control__label { |
22 | | - margin-bottom: 0; |
23 | | - align-self: center; |
24 | | - } |
25 | | - |
26 | | - > .ugb-block-styles__actions { |
27 | | - display: flex; |
28 | | - align-items: center; |
29 | | - gap: 4px; |
30 | | - :where(.ugb-button-component:has(.dashicons-update-alt)) { |
31 | | - background: #fff; |
32 | | - gap: 0; |
33 | | - padding: 2px 8px 2px 2px; |
34 | | - } |
| 9 | + .ugb-block-styles-controls__block-style-button { |
| 10 | + padding-right: 6px; |
35 | 11 | } |
36 | 12 |
|
37 | | - > .components-base-control:has(.ugb-block-styles__select-control) { |
38 | | - grid-column: 1/3; |
39 | | - margin-bottom: 0; |
40 | | - .components-base-control__field { |
41 | | - margin-bottom: 0; |
42 | | - } |
43 | | - } |
| 13 | + &.has-modified { |
| 14 | + padding-right: 28px; |
44 | 15 |
|
45 | | - > .ugb-block-styles__select-control { |
46 | | - &.has-modified { |
47 | | - padding-right: 28px; |
48 | | - } |
49 | | - > .ugb-button-component { |
50 | | - background: #fff; |
51 | | - width: 100%; |
52 | | - border: 1px solid #00000070; |
53 | | - padding: 0px 8px; |
54 | | - height: 32px; |
55 | | - border-radius: 2px; |
56 | | - |
57 | | - &:focus:not(:disabled) { |
58 | | - box-shadow: 0 0 0 1px var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9)); |
59 | | - } |
60 | | - |
61 | | - > .ugb-block-styles__dropdown-icon { |
62 | | - margin-right: 0; |
63 | | - margin-left: auto; |
64 | | - display: inline-flex; |
65 | | - gap: 4px; |
66 | | - } |
| 16 | + .stk-control__reset-button { |
| 17 | + right: 0; |
| 18 | + top: 0; |
| 19 | + color: var(--stk-skin-error); |
67 | 20 | } |
68 | 21 | } |
69 | | - |
70 | | - > .stk-control__reset-button { |
71 | | - right: unset; |
72 | | - top: unset; |
73 | | - bottom: 4px; |
74 | | - color: var(--stk-skin-error); |
75 | | - } |
76 | 22 | } |
77 | 23 |
|
78 | 24 | .ugb-button-component.has-icon:hover { |
|
120 | 66 | gap: 8px; |
121 | 67 | justify-content: flex-end; |
122 | 68 | } |
| 69 | + |
| 70 | +.ugb-block-styles-controls__popover { |
| 71 | + .ugb-block-styles-controls__list .components-button:focus:not(:disabled) { |
| 72 | + box-shadow: none; |
| 73 | + outline: 1px solid #e0e0e0; |
| 74 | + } |
| 75 | + .components-button { |
| 76 | + width: 100%; |
| 77 | + position: relative; |
| 78 | + padding: 0 4px; |
| 79 | + height: 28px; |
| 80 | + outline: 1px solid #e0e0e0; |
| 81 | + |
| 82 | + &.ugb-block-styles-controls__selected { |
| 83 | + outline: 2px solid var(--stk-skin-dark) !important; |
| 84 | + } |
| 85 | + |
| 86 | + .dashicons-lock { |
| 87 | + position: absolute; |
| 88 | + right: 8px; |
| 89 | + } |
| 90 | + } |
| 91 | + |
| 92 | + .components-panel__body-description { |
| 93 | + margin: 0; |
| 94 | + } |
| 95 | + |
| 96 | + .ugb-block-styles-controls__selected-icon { |
| 97 | + position: absolute; |
| 98 | + } |
| 99 | + .ugb-block-styles-controls__label { |
| 100 | + margin-inline-start: 24px; |
| 101 | + } |
| 102 | + |
| 103 | + .ugb-block-styles-controls__action { |
| 104 | + margin: 0 auto; |
| 105 | + display: inline-flex; |
| 106 | + align-items: center; |
| 107 | + gap: 4px; |
| 108 | + } |
| 109 | + |
| 110 | + .ugb-control-separator { |
| 111 | + width: 100% !important; |
| 112 | + margin: 0 auto !important; |
| 113 | + } |
| 114 | +} |
0 commit comments