Created
September 1, 2019 13:31
-
-
Save hamedmoody/ec00422cd80a0df39791945481d54f21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action( 'admin_head', function(){ | |
if( ! is_rtl() ){ | |
return; | |
} | |
?> | |
<style type="text/css"> | |
.components-color-picker__saturation-white { | |
background: linear-gradient(480deg,#fff,hsla(0,0%,100%,0)) !important; | |
} | |
.components-color-picker__hue-gradient { | |
background: linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red) !important; | |
} | |
.components-color-picker__inputs-fields { | |
direction: ltr; | |
} | |
.components-color-picker__hue-pointer { | |
right: initial; | |
} | |
div[data-type='core/paragraph'] .editor-block-toolbar.block-editor-block-toolbar div:nth-child(2) { | |
direction: ltr; | |
} | |
</style> | |
<?php | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment