Build: Let RTLCSS handle swapping the codes for right/left arrows from Dashicons.

Exclude `wp-includes/css/dashicons.css` from core task since we don't want/need a RTL version of it.

fixes #31478.

git-svn-id: https://develop.svn.wordpress.org/trunk@31579 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Dominik Schilling (ocean90) 2015-02-27 20:18:05 +00:00
parent 7656a776af
commit 4e7a4deca6
3 changed files with 31 additions and 28 deletions

View File

@ -192,6 +192,28 @@ module.exports = function(grunt) {
}
]
},
properties : [
{
name: 'swap-dashicons-left-right-arrows',
expr: /content/im,
action: function( prop, value ) {
if ( value === '"\\f141"' ) { // dashicons-arrow-left
value = '"\\f139"';
} else if ( value === '"\\f340"' ) { // dashicons-arrow-left-alt
value = '"\\f344"';
} else if ( value === '"\\f341"' ) { // dashicons-arrow-left-alt2
value = '"\\f345"';
} else if ( value === '"\\f139"' ) { // dashicons-arrow-right
value = '"\\f141"';
} else if ( value === '"\\f344"' ) { // dashicons-arrow-right-alt
value = '"\\f340"';
} else if ( value === '"\\f345"' ) { // dashicons-arrow-right-alt2
value = '"\\f341"';
}
return { prop: prop, value: value };
}
}
],
saveUnmodified: false
},
core: {
@ -201,7 +223,10 @@ module.exports = function(grunt) {
ext: '-rtl.css',
src: [
'wp-admin/css/*.css',
'wp-includes/css/*.css'
'wp-includes/css/*.css',
// Exceptions
'!wp-includes/css/dashicons.css'
]
},
colors: {

View File

@ -162,10 +162,6 @@ body {
z-index: 0;
}
.rtl .control-section.control-panel > .accordion-section-title:after {
content: "\f341";
}
#customize-theme-controls .control-section.control-panel > h3.accordion-section-title:focus:after,
#customize-theme-controls .control-section.control-panel > h3.accordion-section-title:hover:after {
background: #ddd;
@ -262,10 +258,6 @@ body {
left: 13px;
}
.rtl .control-panel-back:before {
content: "\f345";
}
.in-sub-panel .control-panel-back {
left: 0;
}
@ -940,10 +932,6 @@ p.customize-section-description {
content: "\f345";
}
.rtl .control-panel-back.themes-panel-back:before {
content: "\f341";
}
/* Details View */
.wp-customizer .theme-overlay {
display: none;
@ -988,7 +976,7 @@ p.customize-section-description {
right: 0;
top: 0;
bottom: 0;
}
}
}

View File

@ -499,14 +499,12 @@
font-weight: 300;
}
.theme-overlay .theme-header .left:before,
.rtl .theme-overlay .theme-header .right:before {
content: '\f341';
.theme-overlay .theme-header .left:before {
content: "\f341";
}
.theme-overlay .theme-header .right:before,
.rtl .theme-overlay .theme-header .left:before {
content: '\f345';
.theme-overlay .theme-header .right:before {
content: "\f345";
}
@ -1462,14 +1460,6 @@ body.full-overlay-active {
pointer-events: none;
}
.rtl .theme-install-overlay .previous-theme:before {
content: "\f345";
}
.rtl .theme-install-overlay .next-theme:before {
content: "\f341";
}
/* Collapse Button */
.wp-full-overlay a.collapse-sidebar {
position: absolute;