Theme Customizer: Flex-width friendly UI, improved typographical hierarchy. see #19910.

git-svn-id: http://core.svn.wordpress.org/trunk@20777 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
koopersmith 2012-05-12 00:48:20 +00:00
parent c183c30303
commit eb44b211af
3 changed files with 54 additions and 63 deletions

View File

@ -172,8 +172,8 @@ class WP_Customize_Control {
case 'checkbox': case 'checkbox':
?> ?>
<label> <label>
<span class="customize-control-title"><?php echo esc_html( $this->label ); ?></span>
<input type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); checked( $this->value() ); ?> /> <input type="checkbox" value="<?php echo esc_attr( $this->value() ); ?>" <?php $this->link(); checked( $this->value() ); ?> />
<?php echo esc_html( $this->label ); ?>
</label> </label>
<?php <?php
break; break;

View File

@ -23,19 +23,6 @@
margin-left: 10px; margin-left: 10px;
} }
.customize-control-content {
float: left;
}
.customize-control-text input,
.customize-control-select select,
.customize-control-checkbox input,
.customize-control-color .color-picker,
.customize-control-upload div {
float: right;
clear: left;
}
.customize-control-text input { .customize-control-text input {
float: left; float: left;
} }

View File

@ -34,29 +34,38 @@ body {
overflow: hidden; overflow: hidden;
} }
.control-section {
border: 0;
}
.control-section .customize-section-title { .control-section .customize-section-title {
padding: 8px 20px; padding: 10px 20px;
border-top: 1px solid #fff; font-size: 15px;
border-bottom: 1px solid #dfdfdf; font-family: Georgia, "Times New Roman", "Bitstream Charter", Times, serif;
font-size: 13px; font-weight: normal;
text-shadow: 0 1px 0 #fff;
background-color: #f5f5f5;
background-image: -webkit-linear-gradient( top, #f5f5f5, #eee );
background-image: -moz-linear-gradient( top, #f5f5f5, #eee );
background-image: -ms-linear-gradient( top, #f5f5f5, #eee );
background-image: -o-linear-gradient( top, #f5f5f5, #eee );
background-image: linear-gradient( top, #f5f5f5, #eee );
} }
.control-section .customize-section-title:hover { .control-section .customize-section-title:hover {
background-color: #efefef; color: #222;
background-image: -webkit-linear-gradient( top, #f5f5f5, #eee ); background-color: #f9f9f9;
background-image: -moz-linear-gradient( top, #f5f5f5, #eee ); background-image: -webkit-linear-gradient( top, #f9f9f9, #f1f1f1 );
background-image: -ms-linear-gradient( top, #f5f5f5, #eee ); background-image: -moz-linear-gradient( top, #f9f9f9, #f1f1f1 );
background-image: -o-linear-gradient( top, #f5f5f5, #eee ); background-image: -ms-linear-gradient( top, #f9f9f9, #f1f1f1 );
background-image: linear-gradient( top, #f5f5f5, #eee ); background-image: -o-linear-gradient( top, #f9f9f9, #f1f1f1 );
box-shadow: inset -11px 0 8px -8px rgba( 0, 0, 0, 0.1 ); background-image: linear-gradient( top, #f9f9f9, #f1f1f1 );
} }
.control-section .customize-section-content { .control-section .customize-section-content {
border-top: 1px solid #fff;
}
.control-section.open .customize-section-title {
border-bottom: 1px solid #e5e5e5;
}
.control-section.open .customize-section-title:hover {
border-bottom: 1px solid #dfdfdf; border-bottom: 1px solid #dfdfdf;
} }
@ -68,9 +77,9 @@ body {
content: ''; content: '';
width: 0; width: 0;
height: 0; height: 0;
border-color: #ccc transparent transparent transparent; border-color: #ccc transparent;
border-style: solid; border-style: solid;
border-width: 6px; border-width: 6px 6px 0;
position: absolute; position: absolute;
top: 25px; top: 25px;
right: 20px; right: 20px;
@ -78,12 +87,16 @@ body {
} }
.customize-section.open .customize-section-title:after { .customize-section.open .customize-section-title:after {
margin-top: -7px; margin-top: -1px;
border-color: transparent transparent #ccc transparent; border-width: 0 6px 6px;
}
.customize-section-title:hover:after {
border-color: #aaa transparent;
} }
.control-section .customize-section-title:after { .control-section .customize-section-title:after {
top: 13px; top: 15px;
} }
#customize-info { #customize-info {
@ -140,49 +153,43 @@ body {
} }
.customize-control { .customize-control {
width: 100%;
float: left; float: left;
clear: both; clear: both;
margin-bottom: 4px; margin-bottom: 8px;
} }
.customize-control-title { .customize-control-title {
clear: left; display: block;
float: left; line-height: 24px;
min-width: 110px; font-weight: bold;
margin-right: 10px;
line-height: 28px;
} }
.customize-control-content { .customize-control select,
float: right; .customize-control input[type="text"],
width: 140px; .customize-control input[type="radio"],
} .customize-control input[type="checkbox"],
.customize-control-text input,
.customize-control-select select,
.customize-control-checkbox input,
.customize-control-color .color-picker, .customize-control-color .color-picker,
.customize-control-checkbox label,
.customize-control-upload div { .customize-control-upload div {
float: left;
clear: right;
line-height: 28px; line-height: 28px;
} }
.customize-control-text input { .customize-control input[type="text"] {
float: right; width: 98%;
width: 138px;
line-height: 18px; line-height: 18px;
margin: 1px; margin: 0;
} }
.customize-control-select select { .customize-control select {
width: 138px; min-width: 50%;
max-width: 100%;
height: 28px; height: 28px;
line-height: 28px; line-height: 28px;
} }
.customize-control-checkbox input { .customize-control-checkbox input {
margin-top: 8px; margin-right: 5px;
} }
.customize-control-radio { .customize-control-radio {
@ -212,9 +219,6 @@ body {
/* /*
* Style for custom settings * Style for custom settings
*/ */
.customize-section select {
max-width: 150px;
}
/* /*
* Dropdowns * Dropdowns
@ -356,8 +360,8 @@ body {
} }
.customize-control-color .farbtastic-placeholder { .customize-control-color .farbtastic-placeholder {
width: 235px; width: 100%;
margin: 5px 0 10px 25px; margin: 5px 0 10px;
float: left; float: left;
} }