Skip to content

Commit 980fa87

Browse files
committed
Editor: Improve spacing and alignment of visibility controls.
Adds vertical spacing for visibility sub-controls and aligns the element border to the text line to decrease visual complexity. Props poligilad, tuzla, fcoveram, joedolson. Fixes #65530. git-svn-id: https://develop.svn.wordpress.org/trunk@62605 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8310def commit 980fa87

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

src/wp-admin/css/edit.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,45 @@ form#tags-filter {
712712
margin-top: 3px;
713713
}
714714

715+
#post-visibility-select {
716+
--post-visibility-control-gap: 3px;
717+
718+
margin-left: var(--post-visibility-control-gap);
719+
}
720+
721+
#post-visibility-select input#post_password {
722+
box-sizing: border-box;
723+
width: 100%;
724+
margin-top: 3px;
725+
}
726+
727+
#post-visibility-select input[type="radio"],
728+
#post-visibility-select input#sticky {
729+
margin-top: 2px;
730+
margin-right: var(--post-visibility-control-gap);
731+
margin-bottom: 5px;
732+
vertical-align: middle;
733+
}
734+
735+
#post-visibility-select #sticky-span,
736+
#post-visibility-select #password-span {
737+
display: block;
738+
margin-left: calc(1rem + var(--post-visibility-control-gap) + 0.25em);
739+
margin-top: 2px;
740+
}
741+
742+
#post-visibility-select #sticky-span {
743+
margin-bottom: 2px;
744+
}
745+
746+
#post-visibility-select #password-span {
747+
margin-bottom: 6px;
748+
}
749+
750+
#post-visibility-select p {
751+
margin: 12px 0 0;
752+
}
753+
715754
#linksubmitdiv .inside, /* Old Link Manager back-compat. */
716755
#poststuff #submitdiv .inside {
717756
margin: 0;
@@ -1894,6 +1933,10 @@ table.links-table {
18941933
line-height: 280%;
18951934
}
18961935

1936+
#post-visibility-select #password-span {
1937+
line-height: 1.5;
1938+
}
1939+
18971940
.wp-core-ui .save-post-visibility,
18981941
.wp-core-ui .save-timestamp {
18991942
vertical-align: middle;

0 commit comments

Comments
 (0)