mirror of
https://github.com/mashirozx/sakura.git
synced 2024-11-23 07:18:12 +08:00
53 lines
13 KiB
PHP
53 lines
13 KiB
PHP
|
<?php
|
||
|
/*
|
||
|
* https://2heng.xin/wp-content/themes/Sakura/inc/dash-schame.php?color_1=&color_2=&color_3=&color_4=
|
||
|
*/
|
||
|
|
||
|
ini_set('display_errors', true);
|
||
|
error_reporting(E_ALL);
|
||
|
|
||
|
header("Content-type: text/css; charset: UTF-8");
|
||
|
#header('Access-Control-Allow-Origin: *');
|
||
|
|
||
|
function _get($str){
|
||
|
$val = !empty($_GET[$str]) ? $_GET[$str] : null;
|
||
|
return $val;
|
||
|
}
|
||
|
|
||
|
if(_get('color_1')==NULL) {
|
||
|
$color_1="#e5e5e5";
|
||
|
} else {
|
||
|
$color_1="#"._get('color_1');
|
||
|
}
|
||
|
|
||
|
if(_get('color_2')==NULL) {
|
||
|
$color_2="#999";
|
||
|
} else {
|
||
|
$color_2="#"._get('color_2');
|
||
|
}
|
||
|
|
||
|
if(_get('color_3')==NULL) {
|
||
|
$color_3="#d64e07";
|
||
|
} else {
|
||
|
$color_3="#"._get('color_3');
|
||
|
}
|
||
|
|
||
|
if(_get('color_4')==NULL) {
|
||
|
$color_4="#04a4cc";
|
||
|
} else {
|
||
|
$color_4="#"._get('color_4');
|
||
|
}
|
||
|
|
||
|
if(_get('rules')==NULL) {
|
||
|
$rules="";
|
||
|
} else {
|
||
|
$rules=urldecode(_get('rules'));
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
|
||
|
/*! This file is auto-generated */
|
||
|
body{background:#f1f1f1}a{color:#0073aa}a:active,a:focus,a:hover{color:#0096dd}#media-upload a.del-link:hover,.subsubsub a.current:hover,.subsubsub a:hover,div.dashboard-widget-submit input:hover{color:#0096dd}input[type=checkbox]:checked:before{color:<?php echo $color_2; ?>}input[type=radio]:checked:before{background:<?php echo $color_2; ?>}.wp-core-ui input[type=reset]:active,.wp-core-ui input[type=reset]:hover{color:#0096dd}.wp-core-ui .button-primary{background:<?php echo $color_3; ?>;border-color:#b78b66 #ae7d55 #ae7d55;color:#fff;box-shadow:0 1px 0 #ae7d55;text-shadow:0 -1px 1px #ae7d55,1px 0 1px #ae7d55,0 1px 1px #ae7d55,-1px 0 1px #ae7d55}.wp-core-ui .button-primary:focus,.wp-core-ui .button-primary:hover{background:#ccad93;border-color:#ae7d55;color:#fff;box-shadow:0 1px 0 #ae7d55}.wp-core-ui .button-primary:focus{box-shadow:inset 0 1px 0 #b78b66,0 0 2px 1px #33b3db}.wp-core-ui .button-primary.active,.wp-core-ui .button-primary.active:focus,.wp-core-ui .button-primary.active:hover,.wp-core-ui .button-primary:active{background:#b78b66;border-color:#ae7d55;box-shadow:inset 0 2px 0 #ae7d55}.wp-core-ui .button-primary.button-primary-disabled,.wp-core-ui .button-primary.disabled,.wp-core-ui .button-primary:disabled,.wp-core-ui .button-primary[disabled]{color:#d1ccc7!important;background:#ba906d!important;border-color:#ae7d55!important;text-shadow:none!important}.wp-core-ui .button-primary.button-hero{box-shadow:0 2px 0 #ae7d55!important}.wp-core-ui .button-primary.button-hero:active{box-shadow:inset 0 3px 0 #ae7d55!important}.wp-core-ui .wp-ui-primary{color:#fff;background-color:<?php echo $color_2; ?>}.wp-core-ui .wp-ui-text-primary{color:<?php echo $color_2; ?>}.wp-core-ui .wp-ui-highlight{color:#fff;background-color:<?php echo $color_3; ?>}.wp-core-ui .wp-ui-text-highlight{color:<?php echo $color_3; ?>}.wp-core-ui .wp-ui-notification{color:#fff;background-color:<?php echo $color_4; ?>}.wp-core-ui .wp-ui-text-notification{color:<?php echo $color_4; ?>}.wp-core-ui .wp-ui-text-icon{color:#f3f2f1}.wrap .add-new-h2:hover,.wrap .page-title-action:hover{color:#fff;background-color:<?php echo $color_2; ?>}.view-switch a.current:before{color:<?php echo $color_2; ?>}.view-switch a:hover:before{color:<?php echo $color_4; ?>}#adminmenu,#adminmenuback,#adminmenuwrap{background:<?php echo $color_2; ?>}#adminmenu a{color:#fff}#adminmenu div.wp-menu-image:before{color:#f3f2f1}#adminmenu a:hover,#adminmenu li.menu-top:hover,#adminmenu li.opensub>a.menu-top,#adminmenu li>a.menu-top:focus{color:#fff;background-color:<?php echo $color_3; ?>}#adminmenu li.menu-top:hover div.wp-menu-image:before,#adminmenu li.opensub>a.menu-top div.wp-menu-image:before{color:#fff}.about-wrap .nav-tab-active,.nav-tab-active,.nav-tab-active:hover{background-color:#f1f1f1;border-bottom-color:#f1f1f1}#adminmenu .wp-has-current-submenu .wp-submenu,#adminmenu .wp-has-current-submenu.opensub .wp-submenu,#adminmenu .wp-submenu,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu,.folded #adminmenu .wp-has-current-submenu .wp-submenu{background:<?php echo $color_1; ?>}#adminmenu li.wp-has-submenu.wp-not-current-submenu.opensub:hover:after{border-right-color:<?php echo $color_1; ?>}#adminmenu .wp-submenu .wp-submenu-head{color:#cdcbc9}#adminmenu .wp-has-current-submenu .wp-submenu a,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a,#adminmenu .wp-submenu a,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a,.folded #adminmenu .wp-has-current-submenu .wp-submenu a{color:#cdcbc9}#adminmenu .wp-has-current-submenu .wp-submenu a:focus,#adminmenu .wp-has-current-submenu .wp-submenu a:hover,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:focus,#adminmenu .wp-has-current-submenu.opensub .wp-submenu a:hover,#adminmenu .wp-submenu a:focus,#adminmenu .wp-submenu a:hover,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:focus,#adminmenu a.wp-has-current-submenu:focus+.wp-submenu a:hover,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:focus,.folded #adminmenu .wp-has-current-submenu .wp-submenu a:hover{color:<?php echo $color_3; ?>}#admi
|
||
|
|
||
|
|