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