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 Built from https://develop.svn.wordpress.org/trunk@31573 git-svn-id: http://core.svn.wordpress.org/trunk@31554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -8,7 +8,7 @@ buttons in the following files are updated.
|
||||
|
||||
WordPress-style Buttons
|
||||
=======================
|
||||
Create a button by adding the %60.button` class to an element. For backwards
|
||||
Create a button by adding the `.button` class to an element. For backwards
|
||||
compatibility, we support several other classes (such as `.button-secondary`),
|
||||
but these will *not* work with the stackable classes described below.
|
||||
|
||||
@@ -192,7 +192,7 @@ TABLE OF CONTENTS:
|
||||
background: #f7f7f7 !important;
|
||||
-webkit-box-shadow: none !important;
|
||||
box-shadow: none !important;
|
||||
text-shadow: 0 -1px 0 #fff !important;
|
||||
text-shadow: 0 1px 0 #fff !important;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
@@ -254,7 +254,7 @@ TABLE OF CONTENTS:
|
||||
border-color: #1b607f !important;
|
||||
-webkit-box-shadow: none !important;
|
||||
box-shadow: none !important;
|
||||
text-shadow: 0 1px 0 rgba( 0, 0, 0, 0.1 ) !important;
|
||||
text-shadow: 0 -1px 0 rgba( 0, 0, 0, 0.1 ) !important;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user