Fix admin bar in iOS5 iPads, props georgestephanis, fixes #18654

git-svn-id: http://svn.automattic.com/wordpress/trunk@19338 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-11-18 17:16:26 +00:00
parent 396d5a0184
commit 6e1be9f5fb
5 changed files with 35 additions and 6 deletions

View File

@ -1 +1 @@
#wpadminbar *{font-family:Tahoma,Arial,Helvetica,sans-serif;}#wpadminbar{direction:rtl;font-family:Tahoma,Arial,Helvetica,sans-serif;left:auto;right:0;}#wpadminbar ul,#wpadminbar ul li{background:none;list-style:none;margin:0;padding:0;position:relative;z-index:99999;}#wpadminbar .quicklinks{border-left:0;border-right:1px solid transparent;}#wpadminbar .quicklinks ul{text-align:right;}#wpadminbar li{float:right;}#wpadminbar .quicklinks>ul>li{border-right:0;border-left:1px solid #555;}#wpadminbar .quicklinks>ul>li>a{border-right:0;border-left:1px solid #333;}#wpadminbar .quicklinks>ul>li.opposite{border-right:1px solid #333;border-left:0;}#wpadminbar .quicklinks>ul>li.opposite>a{border-right:1px solid #555;border-left:0;}#wpadminbar .quicklinks .menupop ul,#wpadminbar .shortlink-input{margin:0 -1px 0 0;}#wpadminbar .quicklinks .opposite.menupop ul{right:auto;left:0;margin:0 0 0 -1px;}#wpadminbar .quicklinks .menupop li.hover>ul{margin-left:0;}#wpadminbar .quicklinks .opposite.menupop li.hover>ul{margin-right:0;right:inherit;left:100%;}#wpadminbar .opposite.menupop li a>span{padding:0 1.5em 0 0;}#wpadminbar .quicklinks .menupop li.secondary>ul,#wpadminbar .quicklinks .opposite.menupop li.secondary>ul{left:auto;}#wpadminbar li.opposite{float:left;}#wpadminbar ul li:last-child,#wpadminbar ul li:last-child a{border-left:0;}#wpadminbar #wp-admin-bar-my-account.with-avatar .user-info-item{margin-right:88px;margin-left:16px;}#wpadminbar #wp-admin-bar-my-account .user-info-item>a{padding-left:0;padding-right:8px;}#wp-admin-bar-my-account .user-info .avatar{left:auto;right:-72px;}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{margin:-2px 6px 0 0;}#wpadminbar .quicklinks li img.blavatar{margin:-3px 0 0 4px;}#wpadminbar #adminbarsearch{float:left;}#wpadminbar #adminbarsearch .adminbar-input{float:right;font-family:Tahoma,Arial,Helvetica,sans-serif;padding:0 24px 0 3px;margin:0 0 0 3px;background-position:98% 2px;}#wpadminbar #adminbarsearch .adminbar-button{display:none;}#wpadminbar .wp-admin-bar-logo>a{padding-left:1em;padding-right:24px;}#wpadminbar .ab-comments-icon{float:right;}#wpadminbar .ab-comments-icon-body{margin:3px -2px 0 4px;}#wpadminbar a .ab-comments-icon-arrow{left:auto;right:1px;border-left:0;border-right:4px solid #999;}#wpadminbar a:hover .ab-comments-icon-arrow{border-right-color:#bbb;}* html #wpadminbar .quicklinks ul li a{float:right;}
#wpadminbar *{font-family:Tahoma,Arial,Helvetica,sans-serif;}#wpadminbar{direction:rtl;font-family:Tahoma,Arial,Helvetica,sans-serif;left:auto;right:0;}#wpadminbar ul,#wpadminbar ul li{background:none;list-style:none;margin:0;padding:0;position:relative;z-index:99999;}#wpadminbar .quicklinks{border-left:0;border-right:1px solid transparent;}#wpadminbar .quicklinks ul{text-align:right;}#wpadminbar li{float:right;}#wpadminbar .quicklinks>ul>li{border-right:0;border-left:1px solid #555;}#wpadminbar .quicklinks>ul>li>a{border-right:0;border-left:1px solid #333;}#wpadminbar .quicklinks>ul>li.opposite{border-right:1px solid #333;border-left:0;}#wpadminbar .quicklinks>ul>li.opposite>a{border-right:1px solid #555;border-left:0;}#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper{right:auto;left:0;}#wpadminbar .quicklinks .ab-top-secondary>li{border-left:0;border-right:1px solid #333;float:left;}#wpadminbar .quicklinks .menupop ul,#wpadminbar .shortlink-input{margin:0 -1px 0 0;}#wpadminbar .quicklinks .opposite.menupop ul{right:auto;left:0;margin:0 0 0 -1px;}#wpadminbar .quicklinks .menupop li.hover>ul{margin-left:0;}#wpadminbar .quicklinks .opposite.menupop li.hover>ul{margin-right:0;right:inherit;left:100%;}#wpadminbar .opposite.menupop li a>span{padding:0 1.5em 0 0;}#wpadminbar .quicklinks .menupop li.secondary>ul,#wpadminbar .quicklinks .opposite.menupop li.secondary>ul{left:auto;}#wpadminbar li.opposite{float:left;}#wpadminbar .ab-top-secondary{right:auto;left:0;}#wpadminbar ul li:last-child,#wpadminbar ul li:last-child a{border-left:0;}#wpadminbar #wp-admin-bar-my-account.with-avatar .user-info-item{margin-right:88px;margin-left:16px;}#wpadminbar #wp-admin-bar-my-account .user-info-item>a{padding-left:0;padding-right:8px;}#wp-admin-bar-my-account .user-info .avatar{left:auto;right:-72px;}#wpadminbar .quicklinks li#wp-admin-bar-my-account.with-avatar>a img{margin:-2px 6px 0 0;}#wpadminbar .quicklinks li img.blavatar{margin:-3px 0 0 4px;}#wpadminbar #adminbarsearch{float:left;}#wpadminbar #adminbarsearch .adminbar-input{float:right;font-family:Tahoma,Arial,Helvetica,sans-serif;padding:0 24px 0 3px;margin:0 0 0 3px;background-position:98% 2px;}#wpadminbar #adminbarsearch .adminbar-button{display:none;}#wpadminbar .wp-admin-bar-logo>a{padding-left:1em;padding-right:24px;}#wpadminbar .ab-comments-icon{float:right;}#wpadminbar .ab-comments-icon-body{margin:3px -2px 0 4px;}#wpadminbar a .ab-comments-icon-arrow{left:auto;right:1px;border-left:0;border-right:4px solid #999;}#wpadminbar a:hover .ab-comments-icon-arrow{border-right-color:#bbb;}* html #wpadminbar .quicklinks ul li a{float:right;}

View File

@ -36,25 +36,38 @@
border-right: 0;
border-left: 1px solid #555;
}
#wpadminbar .quicklinks > ul > li > a {
border-right: 0;
border-left: 1px solid #333;
}
#wpadminbar .quicklinks > ul > li.opposite {
border-right: 1px solid #333;
border-left: 0;
}
#wpadminbar .quicklinks > ul > li.opposite > a {
border-right: 1px solid #555;
border-left: 0;
}
#wpadminbar .ab-top-secondary .menupop .ab-sub-wrapper {
right: auto;
left: 0;
}
#wpadminbar .quicklinks .ab-top-secondary > li {
border-left: 0;
border-right: 1px solid #333;
float:left;
}
#wpadminbar .quicklinks .menupop ul,
#wpadminbar .shortlink-input {
margin: 0 -1px 0 0;
}
#wpadminbar .quicklinks .opposite.menupop ul {
right: auto;
left: 0;
@ -84,6 +97,11 @@
float: left;
}
#wpadminbar .ab-top-secondary {
right: auto;
left: 0;
}
#wpadminbar ul li:last-child,
#wpadminbar ul li:last-child a {
border-left: 0;
@ -116,7 +134,6 @@
float: left;
}
#wpadminbar #adminbarsearch .adminbar-input {
float: right;
font-family: Tahoma, Arial, Helvetica, sans-serif;
@ -141,9 +158,11 @@
/**
* Comments icon
*/
#wpadminbar .ab-comments-icon {
float: right;
}
#wpadminbar .ab-comments-icon-body {
margin: 3px -2px 0 4px;
}
@ -155,16 +174,15 @@
border-left: 0;
border-right: 4px solid #999;
}
#wpadminbar a:hover .ab-comments-icon-arrow {
border-right-color: #bbb;
}
/**
* IE 6-targeted rules
*/
* html #wpadminbar .quicklinks ul li a {
float: right;
}

File diff suppressed because one or more lines are too long

View File

@ -275,6 +275,17 @@
#wpadminbar .ab-top-secondary {
float: right;
position: fixed;
right: 0;
top: 0;
background-color: #464646; /* Fallback */
background-image: -ms-linear-gradient(bottom, #373737, #464646 5px); /* IE10 */
background-image: -moz-linear-gradient(bottom, #373737, #464646 5px); /* Firefox */
background-image: -o-linear-gradient(bottom, #373737, #464646 5px); /* Opera */
background-image: -webkit-gradient(linear, left bottom, left top, from(#373737), to(#464646)); /* old Webkit */
background-image: -webkit-linear-gradient(bottom, #373737, #464646 5px); /* new Webkit */
background-image: linear-gradient(bottom, #373737, #464646 5px); /* proposed W3C Markup */
}
#wpadminbar ul li:last-child,

View File

@ -454,7 +454,7 @@ function wp_default_styles( &$styles ) {
$styles->add( 'farbtastic', '/wp-admin/css/farbtastic.css', array(), '1.3u1' );
$styles->add( 'jcrop', '/wp-includes/js/jcrop/jquery.Jcrop.css', array(), '0.9.8' );
$styles->add( 'imgareaselect', '/wp-includes/js/imgareaselect/imgareaselect.css', array(), '0.9.1' );
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20111117a' );
$styles->add( 'admin-bar', "/wp-includes/css/admin-bar$suffix.css", array(), '20111118' );
$styles->add( 'wp-jquery-ui-dialog', "/wp-includes/css/jquery-ui-dialog$suffix.css", array(), '20111107' );
$styles->add( 'editor-buttons', "/wp-includes/css/editor-buttons$suffix.css", array(), '20111114' );
$styles->add( 'wp-pointer', "/wp-includes/css/wp-pointer$suffix.css", array(), '20111114' );