Skip to content

Commit 3416816

Browse files
committed
update UI
1 parent a4d9eed commit 3416816

File tree

3 files changed

+237
-147
lines changed

3 files changed

+237
-147
lines changed
Lines changed: 58 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,24 @@
11
.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;
75

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 {
197
position: relative;
208

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;
3511
}
3612

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;
4415

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);
6720
}
6821
}
69-
70-
> .stk-control__reset-button {
71-
right: unset;
72-
top: unset;
73-
bottom: 4px;
74-
color: var(--stk-skin-error);
75-
}
7622
}
7723

7824
.ugb-button-component.has-icon:hover {
@@ -120,3 +66,49 @@
12066
gap: 8px;
12167
justify-content: flex-end;
12268
}
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

Comments
 (0)