forked from mirai-mamori/Sakurairo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin_addcss.php
144 lines (137 loc) · 3.92 KB
/
admin_addcss.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<style>
.csf-header-left {
margin-top: -29px;
}
/* 圆角 */
.csf-theme-light .csf-container {
border: 0px solid #ccd0d4;
box-shadow: 0 0 15px rgba(0,0,0,.04);
}
.csf-field .csf--transparent-wrap {
top: 5px;
border-radius: 10px;
}
.csf-field-tabbed .csf-tabbed-content{
border-radius: 0 10px 10px 10px;
}
.csf-field-tabbed .csf-tabbed-nav a,
.csf-field-tabbed .csf-tabbed-nav a.csf-tabbed-active {
border-radius: 10px 10px 0 0;
}
.csf-field-heading,
.csf-field-subheading,.csf-submessage-success,.csf-submessage-danger,
.wp-picker-container .iris-picker,
.csf-submessage-info {
border-radius: 10px;
margin: 12px;
}
.csf-field-image_select .csf--active figure,.csf-field-image_select img,.csf-field-image_select figure,
.csf-field-slider .ui-slider-handle,
.csf-image-preview,.csf-image-preview i
{
border-radius: 10px;
}
.csf-form-warning,.csf-form-success,
.csf-field-code_editor .cm-s-default,
.csf-image-preview img{
border-radius: 5px;
}
.csf-field+.csf-field {
border-top: 0px solid #eee;
}
.csf-field-image_select figure:before {
top: 5px;
left: 5px;
line-height: 17px;
border-radius: 10px;
}
/* 顶栏 */
.csf-theme-light .csf-header-inner {
border-bottom: 0px;
/* background: linear-gradient(#fefefe, <?php echo iro_opt('admin_first_class_color'); ?> ); */
border-radius: 10px 10px 0 0;
}
/* 底栏 */
.csf-theme-light .csf-footer {
color: #555;
border-top: 0px;
/* background: linear-gradient(<?php echo iro_opt('admin_first_class_color'); ?> ,#f5f5f5); */
border-radius: 0 0 10px 10px;
}
<?php if (iro_opt('admin_left_style') == "v1") : ?>
/* 侧边栏颜色 */
.csf-theme-light .csf-nav ul li a {
font-weight: 500;
/* color: <?php echo iro_opt('admin_text_color'); ?>; */
/* background-color: <?php echo iro_opt('admin_first_class_color'); ?>; */
border-radius: 10px;
}
.csf-theme-light .csf-nav-normal>ul li .csf-active{
border-right-color: #f5f5f5;
}
.csf-theme-light .csf-nav ul ul li a {
/* background-color: <?php echo iro_opt('admin_second_class_color'); ?>; */
border-radius: 10px;
}
.csf-theme-light .csf-nav ul li a:hover {
color: <?php echo iro_opt('admin_text_color'); ?>;
background-color: <?php echo iro_opt('admin_second_class_color'); ?>;
border-radius: 10px;
}
.csf-theme-light .csf-nav ul li .csf-active {
color: <?php echo iro_opt('admin_text_color'); ?>;
background-color: <?php echo iro_opt('admin_first_class_color'); ?>;
border-radius: 10px;
}
/* 图标与字间距 */
.csf-nav .csf-tab-icon {
margin-right: 4px;
}
.csf-theme-light .csf-nav-normal>ul li a {
border-top: 3px solid #f5f5f5;
border-bottom: 3px solid #f5f5f5;
border-right: 4px solid #f5f5f5;
border-left: 4px solid #f5f5f5;
}
.csf-theme-light .csf-nav-background {
/* background-color: <?php echo iro_opt('admin_first_class_color'); ?>; */
border-right: 0px solid <?php echo iro_opt('admin_first_class_color'); ?>;
width: 227px;
}
<?php endif; ?>
<?php if (iro_opt('admin_left_style') == "v2") : ?>
/* 侧边栏颜色2 */
.csf-theme-light .csf-nav ul li a:hover {
color: <?php echo iro_opt('admin_text_color'); ?>;
border-left: <?php echo iro_opt('admin_first_class_color'); ?> 4px solid;
}
.csf-theme-light .csf-nav ul li .csf-active {
color: <?php echo iro_opt('admin_text_color'); ?>;
border-left: <?php echo iro_opt('admin_first_class_color'); ?> 4px solid;
}
.csf-theme-light .csf-nav-normal>ul li a {
border: 0px solid #f5f5f5;
}
.csf-theme-light .csf-nav-background {
border-right: 0px solid <?php echo iro_opt('admin_first_class_color'); ?>;
width: 227px;
}
<?php endif; ?>
/* 侧边栏动画 */
.csf-nav ul li.csf-tab-expanded ul {
max-height: 666px;
transition: max-height .9s;
display: block !important
}
.csf-nav ul ul {
max-height: 0;
overflow: hidden;
transition: max-height .6s;
display: block !important;
}
.csf-nav {
position: -webkit-sticky;
position: sticky;
top: 125px;
}
</style>