Skip to content

Instantly share code, notes, and snippets.

@hamedmoody
Created September 1, 2019 13:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hamedmoody/ec00422cd80a0df39791945481d54f21 to your computer and use it in GitHub Desktop.
Save hamedmoody/ec00422cd80a0df39791945481d54f21 to your computer and use it in GitHub Desktop.
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