Code Editors: Minor style improvements.

props melchoyce.
see #42214.

Built from https://develop.svn.wordpress.org/trunk@41882


git-svn-id: http://core.svn.wordpress.org/trunk@41716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2017-10-16 21:36:48 +00:00
parent af960204b6
commit bb66a52a14
5 changed files with 51 additions and 31 deletions

View File

@ -2215,7 +2215,7 @@ h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */
} }
#template > div { #template > div {
margin-left: 190px; margin-left: 16em;
} }
#template .notice { #template .notice {
margin-top: 1em; margin-top: 1em;
@ -3033,27 +3033,33 @@ img {
#template textarea, #template textarea,
#template .CodeMirror { #template .CodeMirror {
width: 97%; width: 100%;
height: calc( 100vh - 280px ); min-height: 60vh;
height: calc( 100vh - 295px );
border: 1px solid #ddd;
} }
#templateside > h2 { #templateside > h2 {
padding-top: 6px; padding-top: 6px;
padding-bottom: 6px; padding-bottom: 7px;
margin: 0; margin: 0;
border-bottom: solid 1px #ccc;
} }
#templateside ol, #templateside ol,
#templateside ul { #templateside ul {
margin: .5em 0; margin: 0;
padding: 0; padding: 0;
} }
#templateside > ul { #templateside > ul {
box-sizing: border-box;
margin-top: 0; margin-top: 0;
overflow: auto; overflow: auto;
padding: 2px; padding: 0;
height: calc(100vh - 280px); min-height: calc(60vh + 2px);
height: calc(100vh - 293px);
background-color: #f7f7f7;
border: 1px solid #ddd;
border-right: none;
} }
#templateside ul ul { #templateside ul ul {
padding-right: 12px; padding-right: 12px;
@ -3101,7 +3107,7 @@ img {
} }
[role="treeitem"].hover, [role="treeitem"].hover,
[role="treeitem"] .folder-label.hover { [role="treeitem"] .folder-label.hover {
background-color: #DDDDDD; background-color: #eaeaea;
} }
.tree-folder { .tree-folder {
@ -3150,7 +3156,7 @@ img {
.tree-folder > .current-file::before { .tree-folder > .current-file::before {
right: 4px; right: 4px;
height: 15px; height: 15px;
width: 6px; width: 0px;
border-right: none; border-right: none;
top: 3px; top: 3px;
} }
@ -3213,7 +3219,7 @@ img {
} }
#templateside { #templateside {
float: left; float: left;
width: 190px; width: 16em;
word-wrap: break-word; word-wrap: break-word;
} }
@ -3232,10 +3238,14 @@ img {
#templateside li a, #templateside li a,
.theme-editor-php .highlight { .theme-editor-php .highlight {
display: block; display: block;
padding: 3px 12px 3px 3px; padding: 3px 12px 3px 0;
text-decoration: none; text-decoration: none;
} }
#templateside li > a:first-of-type {
padding-top: 0;
}
.theme-editor-php .highlight { .theme-editor-php .highlight {
margin: -3px -12px -3px 3px; margin: -3px -12px -3px 3px;
} }
@ -3710,7 +3720,7 @@ img {
} }
.wp-responsive-open #wpbody { .wp-responsive-open #wpbody {
left: -190px; left: -16em;
} }
code { code {

File diff suppressed because one or more lines are too long

View File

@ -2215,7 +2215,7 @@ h1.nav-tab-wrapper, /* Back-compat for pre-4.4 */
} }
#template > div { #template > div {
margin-right: 190px; margin-right: 16em;
} }
#template .notice { #template .notice {
margin-top: 1em; margin-top: 1em;
@ -3033,27 +3033,33 @@ img {
#template textarea, #template textarea,
#template .CodeMirror { #template .CodeMirror {
width: 97%; width: 100%;
height: calc( 100vh - 280px ); min-height: 60vh;
height: calc( 100vh - 295px );
border: 1px solid #ddd;
} }
#templateside > h2 { #templateside > h2 {
padding-top: 6px; padding-top: 6px;
padding-bottom: 6px; padding-bottom: 7px;
margin: 0; margin: 0;
border-bottom: solid 1px #ccc;
} }
#templateside ol, #templateside ol,
#templateside ul { #templateside ul {
margin: .5em 0; margin: 0;
padding: 0; padding: 0;
} }
#templateside > ul { #templateside > ul {
box-sizing: border-box;
margin-top: 0; margin-top: 0;
overflow: auto; overflow: auto;
padding: 2px; padding: 0;
height: calc(100vh - 280px); min-height: calc(60vh + 2px);
height: calc(100vh - 293px);
background-color: #f7f7f7;
border: 1px solid #ddd;
border-left: none;
} }
#templateside ul ul { #templateside ul ul {
padding-left: 12px; padding-left: 12px;
@ -3101,7 +3107,7 @@ img {
} }
[role="treeitem"].hover, [role="treeitem"].hover,
[role="treeitem"] .folder-label.hover { [role="treeitem"] .folder-label.hover {
background-color: #DDDDDD; background-color: #eaeaea;
} }
.tree-folder { .tree-folder {
@ -3150,7 +3156,7 @@ img {
.tree-folder > .current-file::before { .tree-folder > .current-file::before {
left: 4px; left: 4px;
height: 15px; height: 15px;
width: 6px; width: 0px;
border-left: none; border-left: none;
top: 3px; top: 3px;
} }
@ -3213,7 +3219,7 @@ img {
} }
#templateside { #templateside {
float: right; float: right;
width: 190px; width: 16em;
word-wrap: break-word; word-wrap: break-word;
} }
@ -3232,10 +3238,14 @@ img {
#templateside li a, #templateside li a,
.theme-editor-php .highlight { .theme-editor-php .highlight {
display: block; display: block;
padding: 3px 3px 3px 12px; padding: 3px 0 3px 12px;
text-decoration: none; text-decoration: none;
} }
#templateside li > a:first-of-type {
padding-top: 0;
}
.theme-editor-php .highlight { .theme-editor-php .highlight {
margin: -3px 3px -3px -12px; margin: -3px 3px -3px -12px;
} }
@ -3710,7 +3720,7 @@ img {
} }
.wp-responsive-open #wpbody { .wp-responsive-open #wpbody {
right: -190px; right: -16em;
} }
code { code {

File diff suppressed because one or more lines are too long

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9-beta2-41881'; $wp_version = '4.9-beta2-41882';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.