Last active
December 15, 2015 16:09
-
-
Save Dianakc/e5e97e0eb5d8a811a975 to your computer and use it in GitHub Desktop.
Add custom CSS in admin panel.
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
<?php | |
function dkc_add_css_on_pages() { | |
echo ' | |
#csp-dialog-msgid[style], #csp-dialog-msgid-plural[style] {font-size:14px!important; font-family:"Lucida Console"!important; color:#333; padding:10px;background:#D8E8F5;border:none;line-height:18px!important } | |
#csp-dialog-msgstr[style], #csp-dialog-msgstr-0[style], #csp-dialog-msgstr-1[style] {font-size:14px!important; font-family:"Lucida Console"!important; color:#000; background:#FAFCFE;border:none;padding:10px;line-height:18px!important } | |
#csp-dialog-msgstr[style]:focus, #csp-dialog-msgstr-0[style]:focus, #csp-dialog-msgstr-1[style]:focus {font-size:14px!important;-webkit-box-shadow: 0px 1px 0px 2px #A6BFD3; box-shadow: 0px 1px 0px 2px #A6BFD3;: 0px 0px 10px 2px #A6BFD3;background:#f7f7f7} | |
#csp-dialog-body strong {color:#85B7E0} | |
'; | |
} | |
add_action('admin_head', 'dkc_add_css_on_pages'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment