Skip to content

Commit f695caa

Browse files
committed
Administration: Resize classic editor slug field for new theme.
Reduces the size and improves the alignment of the post slug field following the re-design of form elements as part of the new admin theme. Props wildworks, sabernhardt, audrasjb, dhruvang21, shailu25, joedolson, khushdoms, tusharaddweb. Fixes #65063. git-svn-id: https://develop.svn.wordpress.org/trunk@62263 602fd350-edb4-49c9-b593-d223f7449a82
1 parent b95a327 commit f695caa

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

src/js/_enqueues/admin/post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ jQuery( function($) {
10281028
revert_e = $el.html();
10291029

10301030
buttons.html(
1031-
'<button type="button" class="save button button-small">' + __( 'OK' ) + '</button> ' +
1031+
'<button type="button" class="save button button-compact">' + __( 'OK' ) + '</button> ' +
10321032
'<button type="button" class="cancel button-link">' + __( 'Cancel' ) + '</button>'
10331033
);
10341034

src/wp-admin/css/edit.css

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ input#link_url {
121121
#edit-slug-box .cancel {
122122
margin-right: 10px;
123123
padding: 0;
124-
font-size: 11px;
125124
}
126125

127126
#comment-link-box {
@@ -140,7 +139,7 @@ input#link_url {
140139
#editable-post-name input {
141140
font-size: 13px;
142141
font-weight: 400;
143-
height: 24px;
142+
min-height: 32px;
144143
margin: 0;
145144
width: 16em;
146145
}
@@ -1068,6 +1067,10 @@ form#tags-filter {
10681067
#edit-slug-box {
10691068
padding: 0;
10701069
}
1070+
1071+
#editable-post-name input {
1072+
min-height: 40px;
1073+
}
10711074
}
10721075

10731076
@media only screen and (max-width: 1004px) {

src/wp-includes/css/buttons.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,7 @@ TABLE OF CONTENTS:
380380

381381
.wp-core-ui .button,
382382
.wp-core-ui .button.button-large,
383+
.wp-core-ui .button.button-compact,
383384
.wp-core-ui .button.button-small,
384385
input#publish,
385386
input#save-post,

0 commit comments

Comments
 (0)