Skip to:
Content

BuddyPress.org

Changeset 10863


Ignore:
Timestamp:
06/01/2016 10:33:42 PM (8 years ago)
Author:
r-a-y
Message:

Revert "Grunt: Modify RTLCSS to generate RTL files for inline CSS template parts."

Using inline CSS as a template part is a no-no. This reverts r10841.

See #7104, #6772.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r10841 r10863  
    66
    77        BP_CSS = [
    8             '**/*.css',
    9             '**/css-*.php'
     8            '**/*.css'
    109        ],
    1110
    1211        // CSS exclusions, for excluding files from certain tasks, e.g. rtlcss
    1312        BP_EXCLUDED_CSS = [
    14             '!**/*-rtl.css',
    15             '!**/*-rtl.php'
     13            '!**/*-rtl.css'
    1614        ],
    1715
     
    108106                dest: SOURCE_DIR,
    109107                extDot: 'last',
    110                 src: BP_CSS.concat( BP_EXCLUDED_CSS, BP_EXCLUDED_MISC ),
    111                 rename: function ( dest, src ) {
    112                     if ( src.endsWith( '.php' ) ) {
    113                         return dest + src.replace( '.php', '-rtl.php' );
    114                     } else {
    115                         return dest + src.replace( '.css', '-rtl.css' );
    116                     }
    117                 }
     108                ext: '-rtl.css',
     109                src: BP_CSS.concat( BP_EXCLUDED_CSS, BP_EXCLUDED_MISC )
    118110            }
    119111        },
Note: See TracChangeset for help on using the changeset viewer.