Skip to content

Commit 6d9170b

Browse files
committed
fix tab design, remove unnecessary styles
1 parent 9cc1006 commit 6d9170b

File tree

2 files changed

+17
-120
lines changed

2 files changed

+17
-120
lines changed

src/components/design-library-list/editor.scss

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
.ugb-design-library-item {
2929
display: grid;
3030
grid-template-columns: 1fr;
31-
// grid-template-rows: auto 40px;
3231
padding: 0;
3332
border: 0;
3433
text-align: start;
@@ -44,9 +43,6 @@
4443
}
4544
footer {
4645
line-height: 18px;
47-
// display: flex;
48-
// align-items: center;
49-
// justify-content: space-between;
5046
}
5147
.ugb-design-library-item__spinner {
5248
position: absolute;
@@ -58,20 +54,6 @@
5854
margin: 0;
5955
}
6056
}
61-
&.ugb--is-busy {
62-
.ugb-design-library-item__image img {
63-
opacity: 0.1;
64-
}
65-
}
66-
.ugb-design-library-item__image {
67-
background: #fff;
68-
position: relative;
69-
}
70-
&.ugb--is-premium {
71-
.ugb-design-library-item__image {
72-
min-height: 240px;
73-
}
74-
}
7557

7658
.ugb-design-control-pro-note {
7759
position: absolute;
@@ -179,45 +161,6 @@
179161
}
180162
}
181163

182-
// .ugb-design-library-item__image {
183-
// width: 100% !important;
184-
// margin: 0 !important;
185-
// outline: none !important;
186-
// display: block;
187-
// }
188-
189-
.ugb-design-library-item__favorite {
190-
border: 0;
191-
padding: 0;
192-
cursor: pointer;
193-
outline: none;
194-
transition: all 0.3 ease-in-out;
195-
.dashicon {
196-
fill: #bbb;
197-
height: 14px;
198-
width: 14px;
199-
}
200-
&:hover {
201-
.dashicon {
202-
fill: #d30c5c;
203-
}
204-
}
205-
206-
&.ugb--is-favorite {
207-
&,
208-
&:hover {
209-
.dashicon {
210-
fill: #d30c5c;
211-
}
212-
}
213-
}
214-
215-
// &.ugb--is-busy {
216-
// .dashicon {
217-
// opacity: 0.3;
218-
// }
219-
// }
220-
}
221164
// new design library styles
222165
.stk-block-design__host {
223166
min-width: 1300px;
@@ -232,10 +175,6 @@
232175
position: relative;
233176
}
234177

235-
:host body {
236-
min-height: 500px;
237-
}
238-
239178
.stk--design-preview-large {
240179
.ugb-design-control-pro-note {
241180
grid-template-columns: 1fr;

src/components/modal-design-library/editor.scss

Lines changed: 17 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -227,53 +227,6 @@
227227
opacity: 0.3;
228228
}
229229

230-
// Display color indicators horizontally.
231-
.ugb-modal-design-library__color-list-wrapper {
232-
display: flex;
233-
flex-wrap: wrap;
234-
flex-direction: row;
235-
justify-content: center;
236-
}
237-
.ugb-modal-design-library__color-list {
238-
margin-bottom: 8px !important;
239-
240-
// Color indicator.
241-
.components-circular-option-picker {
242-
width: 24px;
243-
flex: 0;
244-
margin: 0 10px 10px;
245-
flex-basis: 20px;
246-
}
247-
.components-circular-option-picker__option-wrapper {
248-
height: 22px;
249-
width: 22px;
250-
margin: 0;
251-
.components-circular-option-picker__option {
252-
padding: 0;
253-
}
254-
}
255-
256-
// Check mark when color is active.
257-
.components-circular-option-picker__option.is-pressed + svg {
258-
left: 3px;
259-
top: 3px;
260-
width: 16px;
261-
height: 16px;
262-
}
263-
264-
.components-circular-option-picker__option::after {
265-
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2) !important;
266-
}
267-
268-
// Gray focus outline.
269-
.components-circular-option-picker__option:focus::after {
270-
width: 28px;
271-
height: 28px;
272-
top: -3px;
273-
left: -3px;
274-
}
275-
}
276-
277230
.ugb-modal-design-library__style-options div.components-base-control {
278231
margin-bottom: 0;
279232
}
@@ -316,33 +269,38 @@ div.ugb-modal-design-library__enable-background {
316269

317270
// Design library top tabs, switch between block categories, ui kit and wireframe.
318271
.stk-design-library-tabs {
319-
margin-bottom: 0 !important;
320272
margin: 0 auto;
273+
margin-bottom: 0 !important;
274+
height: calc( 100% + 1px);
275+
276+
.components-base-control__field {
277+
&,
278+
.stk-control-content,
279+
.components-button-group {
280+
height: 100%;
281+
}
282+
}
321283

322284
.components-base-control__field,
323285
.stk-control-label {
324286
margin: 0;
325287
}
326288
.components-button-group {
327-
background: #e0e0e08a;
328-
border-radius: 6px !important;
329289
box-shadow: none !important;
330-
331290
}
291+
332292
.components-button {
333-
height: fit-content;
334-
border: none !important;
335-
box-shadow: none;
293+
height: 100%;
294+
border: 1px solid #e0e0e0;
295+
box-shadow: none !important;
336296
padding: 4px 24px;
337-
margin: 6px;
338-
border-radius: 4px !important;
339-
background: transparent;
297+
border-radius: 0 !important;
340298
&:hover,
341299
&.is-primary:hover,
342300
&.is-primary {
343301
color: #f00069 !important;
344-
background: #fff;
345-
box-shadow: 1px 1px 3px 0px #1e1e1e1e;
302+
background: #e543761a;
303+
border-color: #f00069;
346304
}
347305
}
348306
}

0 commit comments

Comments
 (0)