-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolorcase.php
241 lines (221 loc) · 7.2 KB
/
colorcase.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<?php
$color_locations = array(
'sections' => array(
'General' => array(
'Background' => array(
'selector' => 'body',
'attribute' => 'background-color',
'default' => '#e7e7e7',
),
),
'Header' => array(
'Background' => array(
'selector' => '.site-header',
'attribute' => 'background-color',
'default' => '#fff',
),
'Site Title' => array(
'selector' => '.site-header .site-title a',
'attribute' => 'color',
'default' => '#000',
),
'Site Description' => array(
'selector' => '.site-header .site-description',
'attribute' => 'color',
'default' => '#777',
),
),
'Navigation' => array(
'Background' => array(
'selector' => '.main-navigation-container, .main-navigation li.menu-item-has-children:hover > ul',
'attribute' => 'background-color',
'default' => '#222',
),
'Link Text' => array(
'selector' => '.main-navigation-container li > a',
'attribute' => 'color',
'default' => '#c8c8c8',
),
'Hover Link Text' => array(
'selector' => '.main-navigation-container li:hover > a, .main-navigation-container li:focus > a',
'attribute' => 'color',
'default' => '#fff',
),
'Hover Link Background' => array(
'selector' => '.main-navigation-container li:hover > a, .main-navigation-container li:focus > a',
'attribute' => 'background-color',
'default' => '#3c3c3c',
),
'Active Link Text' => array(
'selector' => '.main-navigation-container li.current_page_item > a',
'attribute' => 'color',
'default' => '#777',
),
'Active Link Background' => array(
'selector' => '.main-navigation-container li.current_page_item > a',
'attribute' => 'background-color',
'default' => '#777',
),
),
'Content' => array(
'Background' => array(
'selector' => '.hentry',
'attribute' => 'background-color',
'default' => '#fff',
),
'Page Title Color' => array(
'selector' => '.content-area .entry-title, .content-area .entry-title a',
'attribute' => 'color',
'default' => '#222',
),
'Text Color' => array(
'selector' => '.hentry',
'attribute' => 'color',
'default' => '#444',
),
'Link Color' => array(
'selector' => '.content-area a',
'attribute' => 'color',
'default' => '#e91f2e',
),
'Link Hover Color' => array(
'selector' => '.content-area a:hover, .content-area a:focus',
'attribute' => 'color',
'default' => '#c21322',
),
),
'Comments' => array(
'Background' => array(
'selector' => '.comments-area',
'attribute' => 'background-color',
'default' => '#fff',
),
'Text Color' => array(
'selector' => '.comments-area, .comments-title, .comment-reply-title, .form-allowed-tags, .form-allowed-tags abbr, .form-allowed-tags code',
'attribute' => 'color',
'default' => '#444',
),
'Link Color' => array(
'selector' => '.comments-area a',
'attribute' => 'color',
'default' => '#e91f2e',
),
'Link Hover Color' => array(
'selector' => '.comments-area a:hover, .comments-area a:focus',
'attribute' => 'color',
'default' => '#c21322',
),
'Button Background' => array(
'selector' => '.comments-area input[type="submit"]',
'attribute' => 'background-color',
'default' => '#e91f2e',
),
'Button Background Hover' => array(
'selector' => '.comments-area input[type="submit"]:hover',
'attribute' => 'background-color',
'default' => '#c21322',
),
'Button Text' => array(
'selector' => '.comments-area input[type="submit"]',
'attribute' => 'color',
'default' => '#fff',
),
'Button Text Hover' => array(
'selector' => '.comments-area input[type="submit"]:hover',
'attribute' => 'color',
'default' => '#fff',
),
),
'Sidebar' => array(
'Background' => array(
'selector' => '#secondary .widget, #tertiary .widget',
'attribute' => 'background-color',
'default' => '#fff',
),
'Title Color' => array(
'selector' => '#secondary .widget-title, #tertiary .widget-title',
'attribute' => 'color',
'default' => '#222',
),
'Text Color' => array(
'selector' => '#secondary, #secondary abbr, #tertiary, #tertiary abbr',
'attribute' => 'color',
'default' => '#444',
),
'List Divider' => array(
'selector' => '#secondary .widget li, #tertiary .widget li',
'attribute' => 'border-bottom-color',
'default' => '#e7e7e7',
),
'Link Color' => array(
'selector' => '#secondary a, #tertiary a',
'attribute' => 'color',
'default' => '#e91f2e',
),
'Link Hover Color' => array(
'selector' => '#secondary a:hover, #secondary a:focus, #tertiary a:hover, #tertiary a:focus',
'attribute' => 'color',
'default' => '#c21322',
),
),
'Footer' => array(
'Background' => array(
'selector' => '.site-info-wrapper',
'attribute' => 'background-color',
'default' => '#fff',
),
'Text Color' => array(
'selector' => '.site-info-wrapper',
'attribute' => 'color',
'default' => '#222',
),
'Link Color' => array(
'selector' => '.site-info-wrapper a',
'attribute' => 'color',
'default' => '#222',
),
'Link Hover Color' => array(
'selector' => '.site-info-wrapper a:hover, .site-info-wrapper a:focus',
'attribute' => 'color',
'default' => '#222',
),
'Social Link Icon' => array(
'selector' => '.site-info-wrapper .site-info .social-menu a',
'attribute' => 'color',
'default' => '#fff',
),
'Social Link Icon Hover' => array(
'selector' => '.site-info-wrapper .site-info .social-menu a:hover, .site-info-wrapper .site-info .social-menu a:focus',
'attribute' => 'color',
'default' => '#fff',
),
'Social Link Background' => array(
'selector' => '.site-info-wrapper .site-info .social-menu a',
'attribute' => 'background-color',
'default' => '#222',
),
'Social Link Background Hover' => array(
'selector' => '.site-info-wrapper .site-info .social-menu a:hover, .site-info-wrapper .site-info .social-menu a:focus',
'attribute' => 'background-color',
'default' => '#e91f2e',
),
),
),
'palettes' => array(
'Default' => array(
'Sidebar' => array(
'Background Color' => '#FFFFFF',
'Text Color' => '#333333',
'Link Color' => '#333333',
'Link Hover Color' => '#707070',
),
'Content' => array(
'Background Color' => '#FFFFFF',
'Text Color' => '#333333',
'Link Color' => '#333333',
'Link Hover Color' => '#707070',
),
),
),
);
add_theme_support( 'colorcase', $color_locations );