Make WordPress Core

Changeset 31573 for trunk/package.json


Ignore:
Timestamp:
02/27/2015 01:40:03 PM (12 years ago)
Author:
ocean90
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package.json

    r31557 r31573  
    2323    "grunt-contrib-uglify": "~0.6.0",
    2424    "grunt-contrib-watch": "~0.6.1",
    25     "grunt-cssjanus": "~0.2.4",
    2625    "grunt-jsvalidate": "~0.2.2",
    2726    "grunt-legacy-util": "^0.2.0",
    2827    "grunt-patch-wordpress": "~0.3.0",
     28    "grunt-rtlcss": "~1.5.1",
    2929    "grunt-sass": "~0.16.0",
    3030    "matchdep": "~0.3.0"
Note: See TracChangeset for help on using the changeset viewer.