mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
RTL CSS generation: Switch from CSSJanus to RTLCSS.
CSSJanus (introduced in [26107]), we had a great time with you, but sadly you don't like our fancy CSS. RTLCSS is a framework for converting CSS from LTR to RTL, same as CSSJanus, with support for more CSS properties like `transform`, `transition` or multiple box and text shadows. Changes: * devDependencies: Remove `grunt-cssjanus`, add `grunt-rtlcss`. * RTLCSS uses `/* rtl:ignore */` to ignore a rule, switch existing `/* @noflip */` to the new directive. * RTLCSS supports the `transform` property, means we can remove some ignore rules. * RTLCSS supports string maps for custom replace rules. This commit includes a rule `import-rtl-stylesheet` which replaces ".css" with "-rtl.css" in URLs. Notes for core development: * The file generation task is still `grunt rtl`. * If you have used `grunt cssjanus` before, use `grunt rtlcss` now. * Remember the new directive `/* rtl:ignore */`. fixes #31332. Build: https://build.trac.wordpress.org/changeset/31554 git-svn-id: https://develop.svn.wordpress.org/trunk@31573 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2112,12 +2112,12 @@ i.mce-i-hr:before {
|
||||
font-family: Tahoma, sans-serif;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.mce-rtl .mce-flow-layout .mce-flow-layout-item > div {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.mce-rtl .mce-listbox i.mce-caret {
|
||||
left: 6px;
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@
|
||||
bottom: -5px;
|
||||
left: 0;
|
||||
}
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.ui-resizable-e {
|
||||
cursor: e-resize;
|
||||
width: 7px;
|
||||
@@ -136,7 +136,7 @@
|
||||
top: 0;
|
||||
height: 100%;
|
||||
}
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.ui-resizable-w {
|
||||
cursor: w-resize;
|
||||
width: 7px;
|
||||
@@ -144,7 +144,7 @@
|
||||
top: 0;
|
||||
height: 100%;
|
||||
}
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.ui-resizable-se {
|
||||
cursor: se-resize;
|
||||
width: 12px;
|
||||
@@ -152,7 +152,7 @@
|
||||
right: 1px;
|
||||
bottom: 1px;
|
||||
}
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.ui-resizable-sw {
|
||||
cursor: sw-resize;
|
||||
width: 9px;
|
||||
@@ -160,7 +160,7 @@
|
||||
left: -5px;
|
||||
bottom: -5px;
|
||||
}
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.ui-resizable-nw {
|
||||
cursor: nw-resize;
|
||||
width: 9px;
|
||||
@@ -168,7 +168,7 @@
|
||||
left: -5px;
|
||||
top: -5px;
|
||||
}
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.ui-resizable-ne {
|
||||
cursor: ne-resize;
|
||||
width: 9px;
|
||||
|
||||
@@ -886,13 +886,11 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
.wp-core-ui .attachment .thumbnail img {
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
.wp-core-ui .attachment .thumbnail .centered {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
|
||||
@@ -110,11 +110,11 @@
|
||||
padding-bottom: 13px;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.wp-pointer-left {
|
||||
padding-left: 13px;
|
||||
}
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.wp-pointer-right {
|
||||
margin-left: -13px;
|
||||
padding-right: 13px;
|
||||
@@ -168,14 +168,14 @@
|
||||
content: ' ';
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.wp-pointer-left .wp-pointer-arrow {
|
||||
left: 0;
|
||||
border-width: 13px 13px 13px 0;
|
||||
border-right-color: #ccc;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.wp-pointer-left .wp-pointer-arrow-inner {
|
||||
left: 1px;
|
||||
margin-left: -13px;
|
||||
@@ -186,14 +186,14 @@
|
||||
content: ' ';
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.wp-pointer-right .wp-pointer-arrow {
|
||||
right: 0;
|
||||
border-width: 13px 0 13px 13px;
|
||||
border-left-color: #ccc;
|
||||
}
|
||||
|
||||
/* @noflip */
|
||||
/* rtl:ignore */
|
||||
.wp-pointer-right .wp-pointer-arrow-inner {
|
||||
right: 1px;
|
||||
margin-right: -13px;
|
||||
|
||||
Reference in New Issue
Block a user