Menus: Improve the HTML semantics of the "Menu Settings" section.

- removes the previous markup based on a definition list
- groups checkboxes in `fieldset` elements with a `legend`
- simplifies the CSS lowering selectors specificity

Props xavortm.

Fixes #38023.


git-svn-id: https://develop.svn.wordpress.org/trunk@38912 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrea Fercia
2016-10-25 17:28:40 +00:00
parent 6d8e277152
commit 590a7de43b
2 changed files with 32 additions and 23 deletions
+21 -14
View File
@@ -109,24 +109,28 @@ ul.add-menu-item-tabs li {
margin-top: 2em;
}
.menu-settings dl {
.menu-settings-group {
margin: 0 0 10px;
overflow: hidden;
padding-left: 18%;
padding-left: 20%;
}
.menu-settings dd {
.menu-settings-group:last-of-type {
margin-bottom: 0;
}
.menu-settings-input {
float: left;
margin: 0;
width: 100%;
}
.menu-settings dt {
.menu-settings-group-name {
float: left;
clear: both;
width: 21.951%;
width: 25%;
padding: 3px 0 0;
margin-left: -21.951%;
margin-left: -25%; /* 20 container left padding x ( 100 container % width / 80 this % width ) */
}
.menu-settings label {
@@ -869,23 +873,26 @@ body.menu-max-depth-11 { min-width: 1280px !important; }
width: 25px;
}
.menu-settings dl {
.menu-settings-group {
padding-left: 0;
}
.menu-settings dd {
float: none;
width: 100%;
margin-bottom: 15px;
}
.menu-settings dt {
.menu-settings-group-name {
float: none;
width: auto;
margin-left: 0;
margin-bottom: 15px;
}
.menu-settings-input {
float: none;
margin-bottom: 15px;
}
.menu-edit .checkbox-input {
margin-top: 0;
}
.manage-menus select {
margin: 0.5em 0;
}