Stop using .rtl classes, instead relying on flipping LTR CSS to RTL.
props yoavf. fixes #24977. git-svn-id: https://develop.svn.wordpress.org/trunk@26243 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b95580d5ed
commit
e52857484a
@ -131,13 +131,6 @@ module.exports = function(grunt) {
|
||||
src: [
|
||||
'wp-admin/css/*.css',
|
||||
'wp-includes/css/*.css',
|
||||
// Temporary exceptions while .rtl body classes are in use
|
||||
'!wp-admin/css/colors-fresh.css',
|
||||
'!wp-admin/css/install.css',
|
||||
'!wp-includes/css/editor.css',
|
||||
'!wp-includes/css/wp-pointer.css',
|
||||
// Farbtastic is deprecated, uses .rtl classes.
|
||||
'!wp-admin/css/farbtastic.css'
|
||||
]
|
||||
},
|
||||
dynamic: {
|
||||
|
@ -2103,69 +2103,3 @@ body.login {
|
||||
background: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
/*------------------------------------------------------------------------------
|
||||
2.0 - Right to Left Styles
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
.rtl .bar {
|
||||
border-right-color: transparent;
|
||||
border-left-color: #99d;
|
||||
}
|
||||
|
||||
.rtl #adminmenu .wp-submenu .wp-submenu-head {
|
||||
border-right-color: transparent;
|
||||
border-left-color: #dfdfdf;
|
||||
}
|
||||
|
||||
.rtl #adminmenu .wp-submenu,
|
||||
.rtl.folded #adminmenu .wp-has-current-submenu .wp-submenu {
|
||||
-webkit-box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 );
|
||||
box-shadow: -2px 2px 5px rgba( 0, 0, 0, 0.4 );
|
||||
}
|
||||
|
||||
.rtl #adminmenu .wp-has-current-submenu .wp-submenu {
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
.rtl ul#adminmenu a.wp-has-current-submenu:after,
|
||||
.rtl ul#adminmenu > li.current > a.current:after {
|
||||
border-right-color: transparent;
|
||||
border-left-color: #eee;
|
||||
}
|
||||
|
||||
/* Flyout Menu Arrow */
|
||||
.rtl #adminmenu li.wp-has-submenu.wp-not-current-submenu:hover:after,
|
||||
.rtl #adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after {
|
||||
border-right-color: transparent;
|
||||
border-left-color: #333;
|
||||
}
|
||||
|
||||
.rtl #post-body .misc-pub-section {
|
||||
border-right-color: transparent;
|
||||
border-left-color: #eee;
|
||||
}
|
||||
|
||||
.rtl div.updated,
|
||||
.rtl .login .message {
|
||||
border-left: none;
|
||||
border-right: 4px solid #7ad03a;
|
||||
}
|
||||
|
||||
.rtl .plugins .active th.check-column,
|
||||
.rtl tr.active + tr.plugin-update-tr .plugin-update {
|
||||
border-left: none;
|
||||
border-right: 4px solid #2ea2cc;
|
||||
}
|
||||
|
||||
.rtl .plugins .update th.check-column,
|
||||
.rtl tr.plugin-update-tr .plugin-update {
|
||||
border-left: none;
|
||||
border-right: 4px solid #d54e21;
|
||||
}
|
||||
|
||||
.rtl #the-comment-list .unapproved th.check-column {
|
||||
border-left: none;
|
||||
border-right: 4px solid #d54e21;
|
||||
}
|
||||
|
@ -39,14 +39,3 @@
|
||||
overflow: hidden;
|
||||
background: url(../images/marker.png) no-repeat;
|
||||
}
|
||||
|
||||
/* farbtastic-rtl */
|
||||
.rtl .farbtastic .color,
|
||||
.rtl .farbtastic .overlay {
|
||||
left: 0;
|
||||
right: 47px;
|
||||
}
|
||||
|
||||
.rtl .farbtastic .marker {
|
||||
margin: -8px -8px 0 0;
|
||||
}
|
||||
|
@ -223,41 +223,15 @@ textarea {
|
||||
background-color: #ffebe8;
|
||||
}
|
||||
|
||||
/* install-rtl */
|
||||
body.rtl {
|
||||
font-family: Tahoma, arial;
|
||||
}
|
||||
|
||||
.rtl h1 {
|
||||
font-family: arial;
|
||||
margin: 5px -4px 0 0;
|
||||
}
|
||||
|
||||
.rtl ul,
|
||||
.rtl ol {
|
||||
padding: 5px 22px 5px 5px;
|
||||
}
|
||||
|
||||
.rtl .step,
|
||||
.rtl th,
|
||||
.rtl .form-table th {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.rtl .submit input,
|
||||
.rtl .button,
|
||||
.rtl .button-secondary {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.rtl #dbname,
|
||||
.rtl #uname,
|
||||
.rtl #pwd,
|
||||
.rtl #dbhost,
|
||||
.rtl #prefix,
|
||||
.rtl #user_login,
|
||||
.rtl #admin_email,
|
||||
.rtl #pass1,
|
||||
.rtl #pass2 {
|
||||
/* @noflip */
|
||||
#dbname,
|
||||
#uname,
|
||||
#pwd,
|
||||
#dbhost,
|
||||
#prefix,
|
||||
#user_login,
|
||||
#admin_email,
|
||||
#pass1,
|
||||
#pass2 {
|
||||
direction: ltr;
|
||||
}
|
||||
|
@ -108,8 +108,7 @@ TABLE OF CONTENTS:
|
||||
-moz-box-shadow: none;
|
||||
-webkit-box-shadow: none;
|
||||
box-shadow: none;
|
||||
padding-left: 2px;
|
||||
padding-right: 2px;
|
||||
padding: 0 2px 1px;
|
||||
width: auto;
|
||||
}
|
||||
|
||||
|
@ -163,10 +163,6 @@
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.rtl .wp_themeSkin .mceStatusbar {
|
||||
padding: 0 8px 0 0;
|
||||
}
|
||||
|
||||
.wp_themeSkin .mceStatusbar * {
|
||||
color: #555;
|
||||
}
|
||||
@ -176,10 +172,6 @@
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.rtl .wp_themeSkin .mceStatusbar div {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.wp_themeSkin .mceStatusbar a.mceResize {
|
||||
display: block;
|
||||
float: right;
|
||||
@ -189,10 +181,6 @@
|
||||
cursor: se-resize;
|
||||
}
|
||||
|
||||
.rtl .wp_themeSkin .mceStatusbar a.mceResize {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.wp_themeSkin .mceStatusbar a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
@ -1113,10 +1101,6 @@ span.mce_ltr:before {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.rtl .wp-editor-tools {
|
||||
padding: 0 0 0 10px;
|
||||
}
|
||||
|
||||
.wp-editor-container textarea.wp-editor-area {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
@ -1142,10 +1126,6 @@ span.mce_ltr:before {
|
||||
padding: 3px 8px 4px;
|
||||
}
|
||||
|
||||
html[dir="rtl"] .wp-switch-editor {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.wp-switch-editor:active {
|
||||
background-color: #f1f1f1;
|
||||
}
|
||||
@ -1185,20 +1165,10 @@ html[dir="rtl"] .wp-switch-editor {
|
||||
margin-bottom: 1px;
|
||||
}
|
||||
|
||||
.rtl .wp-media-buttons .button {
|
||||
margin-right: 0;
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
.wp-media-buttons .insert-media {
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.rtl .wp-media-buttons .insert-media {
|
||||
padding-left: 7px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.wp-media-buttons a {
|
||||
text-decoration: none;
|
||||
color: #464646;
|
||||
@ -1703,6 +1673,7 @@ html[dir="rtl"] .wp-switch-editor {
|
||||
.ui-dialog {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
/* @noflip */
|
||||
left: 0;
|
||||
padding: .2em;
|
||||
outline: 0;
|
||||
@ -1824,80 +1795,6 @@ html[dir="rtl"] .wp-switch-editor {
|
||||
filter: alpha(opacity=60);
|
||||
}
|
||||
|
||||
.rtl .wp-dialog .ui-dialog-titlebar-close {
|
||||
right: auto;
|
||||
left: 6px;
|
||||
}
|
||||
|
||||
/*
|
||||
RTL
|
||||
*/
|
||||
.rtl #wp-link #internal-toggle {
|
||||
padding-right: 18px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.rtl #wp-link #link-options label span,
|
||||
.rtl #wp-link #search-panel label span.search-label {
|
||||
text-align: left;
|
||||
padding-right: 0;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.rtl #wp-link #link-options label #url-field {
|
||||
direction: ltr;
|
||||
}
|
||||
|
||||
.rtl #wp-link .link-search-field,
|
||||
.rtl #wp-link .link-search-wrapper span {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rtl #wp-link .link-target {
|
||||
margin-right: 87px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.rtl #wp-link .item-info {
|
||||
left: 5px;
|
||||
right: auto;
|
||||
top: 4px;
|
||||
bottom: 0;
|
||||
}
|
||||
|
||||
.rtl #wp-link #search-panel {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rtl #wp-link-cancel {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rtl #wp-link-update {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rtl #wp-link .toggle-arrow {
|
||||
background-position: top right;
|
||||
}
|
||||
|
||||
.rtl #wp-link .toggle-arrow-active {
|
||||
background-position: center right;
|
||||
}
|
||||
|
||||
.rtl .wp_themeSkin .mceListBox .mceText {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.rtl .wp_themeSkin .mceNoIcons a .mceText {
|
||||
padding-right: 10px;
|
||||
padding-left: 25px;
|
||||
}
|
||||
|
||||
.rtl .mceListBoxMenu.mceNoIcons {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
/* TinyMCE modal */
|
||||
.clearlooks2 .mceTop {
|
||||
border-bottom: 1px solid #ccc;
|
||||
@ -2280,92 +2177,6 @@ RTL
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Distraction Free Writing - RTL
|
||||
* =Overlay Styles
|
||||
-------------------------------------------------------------- */
|
||||
|
||||
/* No RTL for now, this space intentionally left blank */
|
||||
|
||||
/* =Overlay Body
|
||||
-------------------------------------------------------------- */
|
||||
.rtl #wp-fullscreen-tagline {
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* =Top bar
|
||||
-------------------------------------------------------------- */
|
||||
.rtl #fullscreen-topbar {
|
||||
left:auto;
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.rtl #wp-fullscreen-mode-bar,
|
||||
.rtl #wp-fullscreen-button-bar,
|
||||
.rtl #wp-fullscreen-close,
|
||||
.rtl #wp-fullscreen-count {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rtl #wp-fullscreen-save {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rtl #wp-fullscreen-save {
|
||||
padding: 2px 5px 0 2px;
|
||||
}
|
||||
|
||||
.rtl #wp-fullscreen-buttons > div {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.rtl #wp-fullscreen-mode-bar {
|
||||
padding: 1px 0 0 14px;
|
||||
}
|
||||
|
||||
.rtl #wp-fullscreen-modes a {
|
||||
float: right;
|
||||
border-width: 1px 0 1px 1px;
|
||||
}
|
||||
|
||||
.rtl #wp-fullscreen-modes a:first-child {
|
||||
-webkit-border-top-left-radius: 0;
|
||||
-webkit-border-top-right-radius: 3px;
|
||||
-webkit-border-bottom-left-radius: 0;
|
||||
-webkit-border-bottom-right-radius: 3px;
|
||||
border-width: 1px;
|
||||
border-top-left-radius: 0;
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-left-radius: 0;
|
||||
border-bottom-right-radius: 3px;
|
||||
}
|
||||
|
||||
.rtl #wp-fullscreen-modes a:last-child {
|
||||
-webkit-border-top-right-radius: 0;
|
||||
-webkit-border-top-left-radius: 3px;
|
||||
-webkit-border-bottom-right-radius: 0;
|
||||
-webkit-border-bottom-left-radius: 3px;
|
||||
border-top-right-radius: 0;
|
||||
border-top-left-radius: 3px;
|
||||
border-bottom-right-radius: 0;
|
||||
border-bottom-left-radius: 3px;
|
||||
}
|
||||
|
||||
.rtl #wp-fullscreen-save img,
|
||||
.rtl #wp-fullscreen-save span {
|
||||
padding-right: 0;
|
||||
padding-left: 4px;
|
||||
}
|
||||
|
||||
/* =Thickbox Adjustments
|
||||
-------------------------------------------------------------- */
|
||||
/* No RTL for now, this space intentionally left blank */
|
||||
|
||||
|
||||
/* =TinyMCE Adjustments
|
||||
-------------------------------------------------------------- */
|
||||
/* No RTL for now, this space intentionally left blank */
|
||||
|
||||
|
||||
/* HiDPI */
|
||||
@media print,
|
||||
(-o-min-device-pixel-ratio: 5/4),
|
||||
|
@ -129,6 +129,7 @@
|
||||
bottom: -5px;
|
||||
left: 0;
|
||||
}
|
||||
/* @noflip */
|
||||
.ui-resizable-e {
|
||||
cursor: e-resize;
|
||||
width: 7px;
|
||||
@ -136,6 +137,7 @@
|
||||
top: 0;
|
||||
height: 100%;
|
||||
}
|
||||
/* @noflip */
|
||||
.ui-resizable-w {
|
||||
cursor: w-resize;
|
||||
width: 7px;
|
||||
@ -143,6 +145,7 @@
|
||||
top: 0;
|
||||
height: 100%;
|
||||
}
|
||||
/* @noflip */
|
||||
.ui-resizable-se {
|
||||
cursor: se-resize;
|
||||
width: 12px;
|
||||
@ -150,6 +153,7 @@
|
||||
right: 1px;
|
||||
bottom: 1px;
|
||||
}
|
||||
/* @noflip */
|
||||
.ui-resizable-sw {
|
||||
cursor: sw-resize;
|
||||
width: 9px;
|
||||
@ -157,6 +161,7 @@
|
||||
left: -5px;
|
||||
bottom: -5px;
|
||||
}
|
||||
/* @noflip */
|
||||
.ui-resizable-nw {
|
||||
cursor: nw-resize;
|
||||
width: 9px;
|
||||
@ -164,6 +169,7 @@
|
||||
left: -5px;
|
||||
top: -5px;
|
||||
}
|
||||
/* @noflip */
|
||||
.ui-resizable-ne {
|
||||
cursor: ne-resize;
|
||||
width: 9px;
|
||||
@ -185,6 +191,7 @@
|
||||
.ui-dialog {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
/* @noflip */
|
||||
left: 0;
|
||||
padding: .2em;
|
||||
outline: 0;
|
||||
|
@ -98,10 +98,11 @@
|
||||
padding-bottom: 13px;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
.wp-pointer-left {
|
||||
padding-left: 13px;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
.wp-pointer-right {
|
||||
padding-right: 13px;
|
||||
}
|
||||
@ -133,45 +134,16 @@
|
||||
border-top-color: #fff;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
.wp-pointer-left .wp-pointer-arrow {
|
||||
left: 0;
|
||||
border-width: 17px 15px 17px 0;
|
||||
border-right-color: #fff;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
.wp-pointer-right .wp-pointer-arrow {
|
||||
right:0;
|
||||
border-width: 17px 0 17px 15px;
|
||||
border-left-color: #fff;
|
||||
}
|
||||
|
||||
/* - RTL
|
||||
------------------------------------------------------------------------------*/
|
||||
|
||||
.rtl .wp-pointer-content h3 {
|
||||
padding-right: 60px;
|
||||
padding-left: 18px;
|
||||
}
|
||||
|
||||
.rtl .wp-pointer-content h3:before {
|
||||
right: 15px;
|
||||
}
|
||||
|
||||
.rtl .wp-pointer-buttons a {
|
||||
float: left;
|
||||
}
|
||||
|
||||
.rtl .wp-pointer-buttons a.close {
|
||||
padding-right:3px;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.rtl .wp-pointer-buttons a.close:before {
|
||||
right:-10px;
|
||||
}
|
||||
|
||||
.rtl .wp-pointer-top .wp-pointer-arrow,
|
||||
.rtl .wp-pointer-bottom .wp-pointer-arrow,
|
||||
.rtl .wp-pointer-undefined .wp-pointer-arrow {
|
||||
right: 50px;
|
||||
}
|
||||
|
@ -552,7 +552,7 @@ function wp_default_styles( &$styles ) {
|
||||
|
||||
$suffix = SCRIPT_DEBUG ? '' : '.min';
|
||||
|
||||
$rtl_styles = array( 'wp-admin', 'ie', 'media', 'admin-bar', 'customize-controls', 'media-views', 'wp-color-picker' );
|
||||
$rtl_styles = array( 'wp-admin', 'ie', 'media', 'admin-bar', 'customize-controls', 'media-views', 'wp-color-picker', 'wp-pointer', 'editor-buttons', 'farbtastic', 'wp-auth-check', 'wp-jquery-ui-dialog', 'media-views', 'buttons', 'install', 'colors' );
|
||||
|
||||
$styles->add( 'wp-admin', "/wp-admin/css/wp-admin$suffix.css", array( 'open-sans', 'dashicons' ) );
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user