Skip to content

Commit 91dd033

Browse files
UI tweaks
1 parent 613a346 commit 91dd033

File tree

3 files changed

+32
-13
lines changed

3 files changed

+32
-13
lines changed

src/block/design-library/edit.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -397,11 +397,11 @@ const Edit = props => {
397397
<VStack spacing={ 8 }>
398398
{ isDialogOpen === DIALOG_OPTIONS.REMOVE_BLOCKS && <>
399399
<div>
400-
<span>
400+
<p>
401401
{ __( 'Adding this page design will replace all existing blocks in the editor. Are you sure you want to continue?', i18n ) }
402-
</span>
402+
</p>
403403
</div>
404-
<Flex direction="column" align="flex-end">
404+
<Flex direction="column" align="stretch">
405405
<Button
406406
__next40pxDefaultSize
407407
variant="primary"
@@ -453,29 +453,32 @@ const Edit = props => {
453453
</> }
454454
{ isDialogOpen === DIALOG_OPTIONS.DISABLED_BLOCKS && <>
455455
<div>
456-
<span>{ __( 'The designs you have selected contain the following disabled blocks:', i18n ) }</span>
456+
<p>{ __( 'The designs you have selected contain the following disabled blocks:', i18n ) }</p>
457457
<ul>
458458
{ disabledBlocksRef.current && [ ...disabledBlocksRef.current ].map( ( block, i ) => <li key={ i }>{ block }</li> ) }
459459
</ul>
460-
<span> { __( 'These blocks can be enabled in the Stackable settings page. Do you want to keep the disabled blocks or substitute them with other Stackable or core blocks?', i18n ) }</span>
460+
<p> { __( 'These blocks can be enabled in the Stackable settings page. Do you want to keep the disabled blocks or substitute them with other Stackable or core blocks?', i18n ) }</p>
461461
</div>
462-
<Flex direction="column" align="flex-end">
462+
<Flex direction="column" align="stretch">
463463
<Button
464464
__next40pxDefaultSize
465+
style={ { textAlign: 'center' } }
465466
variant="primary"
466467
onClick={ () => onClickPrimary() }
467468
>
468469
{ __( 'Add patterns and substitute blocks', i18n ) }
469470
</Button>
470471
<Button
471472
__next40pxDefaultSize
473+
style={ { textAlign: 'center', marginBottom: '16px' } }
472474
variant="secondary"
473475
onClick={ () => onClickSecondary() }
474476
>
475477
{ __( 'Add patterns only (no substitutes)', i18n ) }
476478
</Button>
477479
<Button
478480
__next40pxDefaultSize
481+
style={ { textAlign: 'center', marginBottom: '16px' } }
479482
variant="tertiary"
480483
onClick={ () => onClickTertiary() }
481484
>

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.ugb-design-library-items {
22
page-break-inside: avoid;
33
break-inside: avoid;
4-
gap: 30px;
4+
gap: 32px;
55
display: grid;
66
grid-template-columns: 1fr 1fr 1fr;
77
align-items: center;
@@ -38,9 +38,19 @@
3838
transition: all 0.3s cubic-bezier(0.2, 0.6, 0.4, 1);
3939
overflow: hidden;
4040
border-radius: 8px;
41-
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
41+
// box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
42+
border: 1px solid #0000001a;
43+
box-shadow: none;
44+
.ugb-button-component {
45+
transition: all 0.4s cubic-bezier(0.2, 0.6, 0.4, 1);
46+
opacity: 0;
47+
}
4248
&:hover {
43-
box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
49+
// box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
50+
box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
51+
.ugb-button-component {
52+
opacity: 1;
53+
}
4454
}
4555
footer {
4656
line-height: 18px;
@@ -121,7 +131,7 @@
121131
height: 24px;
122132
width: 24px;
123133
background: #fff;
124-
border: 1px solid #777;
134+
border: 1px solid #ccc;
125135
border-radius: 24px;
126136
}
127137
.dashicon {

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ div.ugb-modal-design-library__enable-background {
275275
.stk-design-library-tabs {
276276
margin: 0 auto;
277277
margin-bottom: 0 !important;
278-
height: calc( 100% + 1px);
278+
height: calc(100% + 1px);
279279

280280
.components-base-control__field {
281281
&,
@@ -409,11 +409,17 @@ div.ugb-modal-design-library__enable-background {
409409
}
410410

411411
.ugb-design-library__confirm-dialog {
412-
max-width: 800px;
412+
max-width: 500px;
413413
ul {
414-
list-style: circle;
414+
list-style: disc;
415415
margin-inline-start: 20px;
416416
}
417+
button {
418+
justify-content: center;
419+
}
420+
p:first-child {
421+
margin-top: 0;
422+
}
417423
}
418424

419425
.ugb-design-library__manage-scheme {

0 commit comments

Comments
 (0)