Darken the hover/on states for the customizer section titles. Switch Collapse arrow and label. Improve text contrast. props helenyhou. fixes #20828.

git-svn-id: http://core.svn.wordpress.org/trunk@21006 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2012-06-05 20:57:02 +00:00
parent e14451d9f6
commit 729e723e1d
4 changed files with 50 additions and 34 deletions

View File

@ -12,6 +12,19 @@ body {
margin: 0; margin: 0;
} }
.control-section.customize-section:hover,
.control-section.customize-section.open {
border-top-color: #808080;
}
.control-section.customize-section:hover {
border-bottom-color: #6d6d6d;
}
.customize-section.open:hover {
border-bottom-color: #dfdfdf;
}
.customize-section:last-child { .customize-section:last-child {
box-shadow: 0 1px 0 0px #fff; box-shadow: 0 1px 0 0px #fff;
} }
@ -53,27 +66,26 @@ body {
background-image: linear-gradient( top, #f5f5f5, #eee ); background-image: linear-gradient( top, #f5f5f5, #eee );
} }
.control-section .customize-section-title:hover { .control-section:hover .customize-section-title,
color: #222; .control-section .customize-section-title:hover,
background-color: #e6e6e6; .control-section.open .customize-section-title {
background-image: -webkit-linear-gradient( top, #e9e9e9, #e4e4e4 ); color: #fff;
background-image: -moz-linear-gradient( top, #e9e9e9, #e4e4e4 ); text-shadow: 0 -1px 0 #333;
background-image: -ms-linear-gradient( top, #e9e9e9, #e4e4e4 ); background-color: #808080;
background-image: -o-linear-gradient( top, #e9e9e9, #e4e4e4 ); background-image: -webkit-linear-gradient( top, #808080, #6d6d6d );
background-image: linear-gradient( top, #e9e9e9, #e4e4e4 ); background-image: -moz-linear-gradient( top, #808080, #6d6d6d );
background-image: -ms-linear-gradient( top, #808080, #6d6d6d );
background-image: -o-linear-gradient( top, #808080, #6d6d6d );
background-image: linear-gradient( top, #808080, #6d6d6d );
} }
.control-section.open .customize-section-title { .control-section.open .customize-section-title {
border-bottom: 1px solid #e5e5e5; border-bottom: 1px solid #6d6d6d;
}
.control-section.open .customize-section-title:hover {
border-bottom: 1px solid #dfdfdf;
} }
.customize-section.open .customize-section-content { .customize-section.open .customize-section-content {
display: block; display: block;
background: #fff; background: #fdfdfd;
} }
.customize-section-title:after { .customize-section-title:after {
@ -97,6 +109,10 @@ body {
border-color: #aaa transparent; border-color: #aaa transparent;
} }
.control-section .customize-section-title:hover:after {
border-color: #eee transparent;
}
.control-section .customize-section-title:after { .control-section .customize-section-title:after {
top: 15px; top: 15px;
} }
@ -293,7 +309,7 @@ body {
.customize-control .dropdown-status { .customize-control .dropdown-status {
display: none; display: none;
max-width: 112px; max-width: 112px;
color: #999; color: #777;
} }
/* /*
@ -412,7 +428,7 @@ body {
padding-bottom: 4px; padding-bottom: 4px;
color: #777; color: #777;
background: #fff; background: #fdfdfd;
border-color: #dfdfdf; border-color: #dfdfdf;
-webkit-border-radius: 3px 3px 0 0; -webkit-border-radius: 3px 3px 0 0;
border-radius: 3px 3px 0 0 ; border-radius: 3px 3px 0 0 ;

View File

@ -1591,18 +1591,18 @@ table .column-rating {
/* Collapse Button */ /* Collapse Button */
.wp-full-overlay .collapse-sidebar { .wp-full-overlay .collapse-sidebar {
right: auto; right: 0;
left: 15px; left: auto;
margin-right: 15px;
} }
.wp-full-overlay.collapsed .collapse-sidebar { .wp-full-overlay.collapsed .collapse-sidebar {
right: auto; right: 100%;
left: -45px;
} }
.wp-full-overlay .collapse-sidebar-arrow { .wp-full-overlay .collapse-sidebar-arrow {
margin-left: 0;
margin-right: 2px; margin-right: 2px;
margin-left: 0;
background: transparent url('../../wp-admin/images/arrows.png') no-repeat 0 -108px; background: transparent url('../../wp-admin/images/arrows.png') no-repeat 0 -108px;
} }
@ -1611,11 +1611,10 @@ table .column-rating {
} }
.wp-full-overlay .collapse-sidebar-label { .wp-full-overlay .collapse-sidebar-label {
text-align: left; right: 100%;
right: auto; left: auto;
left: 100%; margin-right: 10px;
margin-right: 0; margin-left: 0;
margin-left: 10px;
} }
/*------------------------------------------------------------------------------ /*------------------------------------------------------------------------------

View File

@ -5353,11 +5353,12 @@ body.full-overlay-active {
.wp-full-overlay .collapse-sidebar { .wp-full-overlay .collapse-sidebar {
position: absolute; position: absolute;
bottom: 12px; bottom: 12px;
right: 15px; left: 0;
z-index: 50; z-index: 50;
display: block; display: block;
width: 19px; width: 19px;
height: 19px; height: 19px;
margin-left: 15px;
padding: 0; padding: 0;
border-radius: 50%; border-radius: 50%;
text-decoration: none; text-decoration: none;
@ -5365,10 +5366,11 @@ body.full-overlay-active {
.wp-full-overlay.collapsed .collapse-sidebar { .wp-full-overlay.collapsed .collapse-sidebar {
position: absolute; position: absolute;
right: -35px; left: 100%;
} }
.wp-full-overlay .collapse-sidebar-arrow { .wp-full-overlay .collapse-sidebar-arrow {
position: absolute;
margin-top: 2px; margin-top: 2px;
margin-left: 2px; margin-left: 2px;
display: block; display: block;
@ -5382,12 +5384,11 @@ body.full-overlay-active {
} }
.wp-full-overlay .collapse-sidebar-label { .wp-full-overlay .collapse-sidebar-label {
text-align: right;
position: absolute; position: absolute;
right: 100%; left: 100%;
color: #aaa; color: #808080;
line-height: 20px; line-height: 20px;
margin-right: 10px; margin-left: 10px;
} }
.wp-full-overlay.collapsed .collapse-sidebar-label { .wp-full-overlay.collapsed .collapse-sidebar-label {
@ -5395,7 +5396,7 @@ body.full-overlay-active {
} }
.wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-label { .wp-full-overlay .collapse-sidebar:hover .collapse-sidebar-label {
color: #999; color: #666;
} }
/* Animations */ /* Animations */

View File

@ -96,8 +96,8 @@ do_action( 'customize_controls_print_scripts' );
<div id="customize-footer-actions" class="wp-full-overlay-footer"> <div id="customize-footer-actions" class="wp-full-overlay-footer">
<a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>"> <a href="#" class="collapse-sidebar button-secondary" title="<?php esc_attr_e('Collapse Sidebar'); ?>">
<span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
<span class="collapse-sidebar-arrow"></span> <span class="collapse-sidebar-arrow"></span>
<span class="collapse-sidebar-label"><?php _e('Collapse'); ?></span>
</a> </a>
</div> </div>
</form> </form>