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:
parent
7656a776af
commit
4e7a4deca6
27
Gruntfile.js
27
Gruntfile.js
@ -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
|
saveUnmodified: false
|
||||||
},
|
},
|
||||||
core: {
|
core: {
|
||||||
@ -201,7 +223,10 @@ module.exports = function(grunt) {
|
|||||||
ext: '-rtl.css',
|
ext: '-rtl.css',
|
||||||
src: [
|
src: [
|
||||||
'wp-admin/css/*.css',
|
'wp-admin/css/*.css',
|
||||||
'wp-includes/css/*.css'
|
'wp-includes/css/*.css',
|
||||||
|
|
||||||
|
// Exceptions
|
||||||
|
'!wp-includes/css/dashicons.css'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
|
@ -162,10 +162,6 @@ body {
|
|||||||
z-index: 0;
|
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:focus:after,
|
||||||
#customize-theme-controls .control-section.control-panel > h3.accordion-section-title:hover:after {
|
#customize-theme-controls .control-section.control-panel > h3.accordion-section-title:hover:after {
|
||||||
background: #ddd;
|
background: #ddd;
|
||||||
@ -262,10 +258,6 @@ body {
|
|||||||
left: 13px;
|
left: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rtl .control-panel-back:before {
|
|
||||||
content: "\f345";
|
|
||||||
}
|
|
||||||
|
|
||||||
.in-sub-panel .control-panel-back {
|
.in-sub-panel .control-panel-back {
|
||||||
left: 0;
|
left: 0;
|
||||||
}
|
}
|
||||||
@ -940,10 +932,6 @@ p.customize-section-description {
|
|||||||
content: "\f345";
|
content: "\f345";
|
||||||
}
|
}
|
||||||
|
|
||||||
.rtl .control-panel-back.themes-panel-back:before {
|
|
||||||
content: "\f341";
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Details View */
|
/* Details View */
|
||||||
.wp-customizer .theme-overlay {
|
.wp-customizer .theme-overlay {
|
||||||
display: none;
|
display: none;
|
||||||
@ -988,7 +976,7 @@ p.customize-section-description {
|
|||||||
right: 0;
|
right: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -499,14 +499,12 @@
|
|||||||
font-weight: 300;
|
font-weight: 300;
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-overlay .theme-header .left:before,
|
.theme-overlay .theme-header .left:before {
|
||||||
.rtl .theme-overlay .theme-header .right:before {
|
content: "\f341";
|
||||||
content: '\f341';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.theme-overlay .theme-header .right:before,
|
.theme-overlay .theme-header .right:before {
|
||||||
.rtl .theme-overlay .theme-header .left:before {
|
content: "\f345";
|
||||||
content: '\f345';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1462,14 +1460,6 @@ body.full-overlay-active {
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.rtl .theme-install-overlay .previous-theme:before {
|
|
||||||
content: "\f345";
|
|
||||||
}
|
|
||||||
|
|
||||||
.rtl .theme-install-overlay .next-theme:before {
|
|
||||||
content: "\f341";
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Collapse Button */
|
/* Collapse Button */
|
||||||
.wp-full-overlay a.collapse-sidebar {
|
.wp-full-overlay a.collapse-sidebar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user