Skip to content

Commit 4f9315f

Browse files
committed
clean up customizer sizes
1 parent e6888a9 commit 4f9315f

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

src/wp-admin/css/customize-controls.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ body {
7070

7171
#customize-save-button-wrapper {
7272
float: right;
73-
margin-top: 9px;
73+
margin-top: 3px; /* Vertically center 40px button in 45px header */
7474
}
7575

7676
body:not(.ready) #customize-save-button-wrapper .save {
@@ -185,7 +185,7 @@ body.trashing #publish-settings {
185185
}
186186

187187
#customize-header-actions .spinner {
188-
margin-top: 13px;
188+
margin-top: 13px; /* Vertically center 20px spinner in 45px header */
189189
margin-right: 4px;
190190
}
191191

@@ -1796,7 +1796,7 @@ p.customize-section-description {
17961796
position: absolute;
17971797
right: 10px;
17981798
top: 50%;
1799-
margin-top: -14px;
1799+
margin-top: -20px; /* Half of 40px button height for vertical centering */
18001800
font-weight: 400;
18011801
}
18021802

@@ -2725,7 +2725,7 @@ body.adding-widget .add-new-widget:before,
27252725
#available-widgets-filter input,
27262726
#available-menu-items-search input {
27272727
width: 100%;
2728-
min-height: 32px;
2728+
min-height: 40px;
27292729
margin: 1px 0;
27302730
padding: 0 30px;
27312731
}
@@ -2739,7 +2739,7 @@ body.adding-widget .add-new-widget:before,
27392739
#available-widgets-filter .search-icon {
27402740
display: block;
27412741
position: absolute;
2742-
bottom: 15px; /* 13 container padding +1 input margin +1 input border */
2742+
bottom: 19px; /* 13 container padding +1 input margin +1 input border +4 centering in 40px input */
27432743
left: 16px;
27442744
width: 30px;
27452745
height: 30px;
@@ -2751,7 +2751,7 @@ body.adding-widget .add-new-widget:before,
27512751
#available-widgets-filter .clear-results,
27522752
#available-menu-items-search .accordion-section-title .clear-results {
27532753
position: absolute;
2754-
top: 36px; /* 13 container padding +1 input margin +1 input border */
2754+
top: 40px; /* 13 container padding +1 input margin +1 input border +4 centering in 40px input */
27552755
right: 16px;
27562756
width: 30px;
27572757
height: 30px;
@@ -3089,7 +3089,7 @@ body.adding-widget .add-new-widget:before,
30893089
}
30903090

30913091
#available-menu-items-search .clear-results {
3092-
top: 36px;
3092+
top: 40px;
30933093
right: 16px;
30943094
}
30953095

src/wp-admin/css/customize-nav-menus.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,7 @@
688688

689689
#available-menu-items-search .spinner {
690690
position: absolute;
691-
bottom: 20px; /* 13 container padding +1 input margin +6 ( ( 32 input height - 20 spinner height ) / 2 ) */
691+
bottom: 24px; /* 13 container padding +1 input margin +10 ( ( 40 input height - 20 spinner height ) / 2 ) */
692692
right: 21px;
693693
margin: 0 !important;
694694
}
@@ -697,7 +697,7 @@
697697
#available-menu-items #available-menu-items-search .accordion-section-content {
698698
position: absolute;
699699
left: 0;
700-
top: 75px; /* below title div / search input */
700+
top: 83px; /* below title div / search input (75 + 8 for 40px input) */
701701
bottom: 0; /* 100% height that still triggers lazy load */
702702
max-height: none;
703703
width: 100%;
@@ -882,12 +882,12 @@ li.assigned-to-menu-location .add-new-menu-item {
882882

883883
@media screen and (max-width: 782px) {
884884
#available-menu-items #available-menu-items-search .accordion-section-content {
885-
top: 63px;
885+
top: 71px; /* 63 + 8 for 40px input */
886886
}
887887
}
888888

889889
@media screen and (max-width: 640px) {
890890
#available-menu-items #available-menu-items-search .accordion-section-content {
891-
top: 146px;
891+
top: 154px; /* 146 + 8 for 40px input */
892892
}
893893
}

src/wp-admin/css/themes.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ body.full-overlay-active {
15011501
}
15021502

15031503
.wp-full-overlay-sidebar .wp-full-overlay-header a.back {
1504-
margin-top: 9px;
1504+
margin-top: 3px; /* Vertically center 40px button in 45px header */
15051505
}
15061506

15071507
.wp-full-overlay-sidebar .wp-full-overlay-footer {
@@ -1949,7 +1949,7 @@ body.full-overlay-active {
19491949

19501950
.theme-install-overlay .wp-full-overlay-header .button {
19511951
float: right;
1952-
margin: 8px 10px 0 0;
1952+
margin: 3px 10px 0 0; /* Vertically center 40px button in 45px header */
19531953
}
19541954

19551955
.theme-install-overlay .wp-full-overlay-sidebar {

0 commit comments

Comments
 (0)