diff --git src/wp-admin/css/customize-controls.css src/wp-admin/css/customize-controls.css
index b256106..55cde71 100644
|
|
body { |
20 | 20 | } |
21 | 21 | |
22 | 22 | #customize-controls .description { |
23 | | color: #666666; |
| 23 | color: #555; |
24 | 24 | } |
25 | 25 | |
26 | 26 | #customize-header-actions .button-primary { |
… |
… |
body { |
50 | 50 | overflow-x: hidden; |
51 | 51 | } |
52 | 52 | |
53 | | #customize-info { |
| 53 | #customize-controls .customize-info { |
54 | 54 | border: none; |
55 | 55 | border-top: 1px solid #ddd; |
| 56 | border-bottom: 1px solid #ddd; |
| 57 | margin-bottom: 15px; |
56 | 58 | } |
57 | 59 | |
58 | | #customize-info .accordion-section-title { |
59 | | background-color: #fff; |
60 | | color: #666666; |
| 60 | #customize-controls .customize-info .accordion-section-title { |
| 61 | background: #fff; |
| 62 | color: #555; |
61 | 63 | border-left: none; |
62 | 64 | border-right: none; |
63 | | border-bottom: 1px solid #eeeeee; |
| 65 | border-bottom: none; |
| 66 | cursor: default; |
64 | 67 | } |
65 | 68 | |
66 | | #customize-info.open .accordion-section-title:after, |
67 | | #customize-info .accordion-section-title:hover:after, |
68 | | #customize-info .accordion-section-title:focus:after { |
69 | | color: #555555; |
| 69 | #customize-controls .customize-info.open .accordion-section-title:after, |
| 70 | #customize-controls .customize-info .accordion-section-title:hover:after, |
| 71 | #customize-controls .customize-info .accordion-section-title:focus:after { |
| 72 | color: #333; |
70 | 73 | } |
71 | 74 | |
72 | | #customize-info .preview-notice { |
| 75 | #customize-controls .customize-info .accordion-section-title:after { |
| 76 | display: none; |
| 77 | } |
| 78 | |
| 79 | #customize-controls .customize-info .preview-notice { |
73 | 80 | font-size: 13px; |
74 | 81 | line-height: 24px; |
75 | 82 | } |
76 | 83 | |
77 | | #customize-info .theme-name { |
| 84 | #customize-controls .control-section .customize-section-title h3, |
| 85 | #customize-controls .control-section h3.customize-section-title, |
| 86 | #customize-controls .customize-info .panel-title { |
78 | 87 | font-size: 20px; |
79 | 88 | font-weight: 200; |
80 | 89 | line-height: 24px; |
81 | 90 | display: block; |
| 91 | overflow: hidden; |
| 92 | white-space: nowrap; |
| 93 | text-overflow: ellipsis; |
82 | 94 | } |
83 | 95 | |
84 | | #customize-info .theme-screenshot { |
85 | | width: 258px; |
| 96 | #customize-controls .customize-section-title span.customize-action { |
| 97 | overflow: hidden; |
| 98 | white-space: nowrap; |
| 99 | text-overflow: ellipsis; |
86 | 100 | } |
87 | 101 | |
88 | | #customize-info .theme-description { |
89 | | margin-top: 1em; |
90 | | color: #666666; |
91 | | line-height: 20px; |
| 102 | #customize-controls .customize-info .customize-help-toggle { |
| 103 | position: absolute; |
| 104 | top: 4px; |
| 105 | right: 1px; |
| 106 | padding: 20px 20px 10px 10px; |
| 107 | width: 20px; |
| 108 | height: 20px; |
| 109 | cursor: pointer; |
| 110 | box-shadow: none; |
| 111 | -webkit-appearance: none; |
| 112 | background: transparent; |
| 113 | color: #555; |
| 114 | border: none; |
| 115 | } |
| 116 | |
| 117 | #customize-controls .customize-info .customize-help-toggle:before { |
| 118 | position: absolute; |
| 119 | top: 5px; |
| 120 | left: 5px; |
| 121 | } |
| 122 | |
| 123 | #customize-controls .customize-info.open .customize-help-toggle, |
| 124 | #customize-controls .customize-info .customize-help-toggle:focus, |
| 125 | #customize-controls .customize-info .customize-help-toggle:hover { |
| 126 | color: #0073aa; |
| 127 | } |
| 128 | |
| 129 | #customize-controls .customize-info .customize-panel-description { |
| 130 | color: #555; |
| 131 | display: none; |
| 132 | background: #fff; |
| 133 | padding: 12px 15px; |
| 134 | border-top: 1px solid #ddd; |
| 135 | } |
| 136 | |
| 137 | #customize-controls .customize-info .customize-panel-description p:first-child { |
| 138 | margin-top: 0; |
| 139 | } |
| 140 | |
| 141 | #customize-controls .customize-info .customize-panel-description p:last-child { |
| 142 | margin-bottom: 0; |
| 143 | } |
| 144 | |
| 145 | #customize-controls .current-panel .control-section > h3.accordion-section-title { |
| 146 | padding-right: 30px; |
92 | 147 | } |
93 | 148 | |
94 | 149 | #customize-theme-controls .control-section { |
… |
… |
body { |
96 | 151 | } |
97 | 152 | |
98 | 153 | #customize-theme-controls .accordion-section-title { |
99 | | color: #555555; |
| 154 | color: #555; |
100 | 155 | background-color: #fff; |
101 | | border-bottom: 1px solid #eeeeee; |
| 156 | border-bottom: 1px solid #eee; |
| 157 | } |
| 158 | |
| 159 | #customize-theme-controls .accordion-section-title:after { |
| 160 | content: "\f345"; |
| 161 | } |
| 162 | |
| 163 | .rtl #customize-theme-controls .accordion-section-title:after { |
| 164 | content: "\f341"; |
102 | 165 | } |
103 | 166 | |
104 | 167 | #customize-theme-controls .accordion-section-content { |
105 | | color: #555555; |
106 | | background: #fff; |
| 168 | color: #555; |
| 169 | background: transparent; |
107 | 170 | } |
108 | 171 | |
109 | | #customize-info.open .accordion-section-title, |
110 | | #customize-info .accordion-section-title:hover, |
111 | | #customize-info .accordion-section-title:focus, |
112 | | #customize-theme-controls .control-section:hover > .accordion-section-title, |
113 | | #customize-theme-controls .control-section .accordion-section-title:hover, |
114 | | #customize-theme-controls .control-section.open .accordion-section-title, |
115 | | #customize-theme-controls .control-section .accordion-section-title:focus { |
116 | | color: #23282d; |
117 | | background: #f5f5f5; |
| 172 | #customize-controls .control-section:hover > .accordion-section-title, |
| 173 | #customize-controls .control-section .accordion-section-title:hover, |
| 174 | #customize-controls .control-section.open .accordion-section-title, |
| 175 | #customize-controls .control-section .accordion-section-title:focus { |
| 176 | color: #fff; |
| 177 | background: #0073aa; |
118 | 178 | } |
119 | 179 | |
120 | 180 | .js .control-section:hover .accordion-section-title, |
… |
… |
body { |
128 | 188 | #customize-theme-controls .control-section .accordion-section-title:hover:after, |
129 | 189 | #customize-theme-controls .control-section.open .accordion-section-title:after, |
130 | 190 | #customize-theme-controls .control-section .accordion-section-title:focus:after { |
131 | | color: #555; |
| 191 | color: #fff; |
132 | 192 | } |
133 | 193 | |
134 | | #customize-info.open, |
135 | 194 | #customize-theme-controls .control-section.open { |
136 | | border-bottom: 1px solid #eeeeee; |
| 195 | border-bottom: 1px solid #eee; |
137 | 196 | } |
138 | 197 | |
139 | 198 | #customize-theme-controls .control-section.open .accordion-section-title { |
140 | | border-bottom-color: #eeeeee !important; |
| 199 | border-bottom-color: #eee !important; |
141 | 200 | } |
142 | 201 | |
143 | 202 | #customize-theme-controls .control-section:last-of-type.open, |
… |
… |
body { |
145 | 204 | border-bottom-color: #ddd; |
146 | 205 | } |
147 | 206 | |
148 | | #customize-theme-controls > ul, |
| 207 | #customize-theme-controls > ul { |
| 208 | margin: 0; |
| 209 | } |
| 210 | |
149 | 211 | #customize-theme-controls .accordion-section-content { |
150 | 212 | margin: 0; |
| 213 | position: absolute; |
| 214 | left: 100%; |
| 215 | top: 0; |
| 216 | width: -webkit-calc(100% - 24px); |
| 217 | width: calc(100% - 24px); |
| 218 | padding: 12px; |
| 219 | } |
| 220 | |
| 221 | .customize-section-description-container { |
| 222 | margin-bottom: 15px; |
| 223 | } |
| 224 | |
| 225 | .customize-section-title { |
| 226 | margin: -12px; |
| 227 | border-bottom: 1px solid #ddd; |
| 228 | background: #fff; |
| 229 | } |
| 230 | |
| 231 | #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { |
| 232 | border-bottom: 1px solid #ddd; |
| 233 | padding: 12px 12px 12px 12px; |
| 234 | } |
| 235 | |
| 236 | .ios #customize-theme-controls .customize-themes-panel h3.customize-section-title:first-child { |
| 237 | padding: 12px 12px 13px 12px; |
| 238 | } |
| 239 | |
| 240 | .customize-section-title h3, |
| 241 | h3.customize-section-title { |
| 242 | padding: 10px 10px 12px 14px; |
| 243 | margin: 0; |
| 244 | line-height: 21px; |
| 245 | color: #555; |
| 246 | } |
| 247 | |
| 248 | #customize-theme-controls .control-section .accordion-section-content > li.customize-control:nth-child(2) { |
| 249 | margin-top: 12px; |
| 250 | } |
| 251 | |
| 252 | #customize-theme-controls { |
| 253 | position: relative; |
| 254 | left: 0; |
| 255 | transition: .18s left ease-in-out; |
| 256 | } |
| 257 | |
| 258 | .section-open #customize-info, |
| 259 | .section-open #customize-theme-controls { |
| 260 | left: -100%; |
| 261 | } |
| 262 | |
| 263 | .section-open .control-panel-back { |
| 264 | display: none; |
151 | 265 | } |
152 | 266 | |
153 | 267 | .control-section.control-panel > .accordion-section-title { |
… |
… |
body { |
169 | 283 | |
170 | 284 | #customize-theme-controls .control-section.control-panel > h3.accordion-section-title:focus:after, |
171 | 285 | #customize-theme-controls .control-section.control-panel > h3.accordion-section-title:hover:after { |
172 | | background: #ddd; |
173 | | color: #000; |
| 286 | background: #00a0d2; |
| 287 | color: #fff; |
174 | 288 | border: 1px solid #d9d9d9; |
175 | 289 | border-right: none; |
176 | 290 | margin-top: -12px; |
… |
… |
body { |
184 | 298 | left: 300px; |
185 | 299 | top: 0; |
186 | 300 | width: 300px; |
187 | | border-top: 1px solid #ddd; |
188 | 301 | -webkit-transition: left ease-in-out .18s; |
189 | 302 | transition: left ease-in-out .18s; |
190 | 303 | } |
191 | 304 | |
| 305 | .ios .accordion-sub-container.control-panel-content { |
| 306 | -webkit-transition: left 0s; |
| 307 | transition: left 0s; |
| 308 | } |
| 309 | |
192 | 310 | .accordion-sub-container.control-panel-content.animating { |
193 | 311 | display: block; |
194 | 312 | } |
… |
… |
body { |
242 | 360 | transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; |
243 | 361 | } |
244 | 362 | |
245 | | .ios .control-panel-back { |
| 363 | .customize-panel-back, |
| 364 | .customize-section-back { |
| 365 | display: block; |
| 366 | float: left; |
| 367 | width: 48px; |
| 368 | height: 69px; |
| 369 | padding: 0 24px 0 0; |
| 370 | margin: 0; |
| 371 | background: #fff; |
| 372 | border: none; |
| 373 | border-right: 1px solid #ddd; |
| 374 | box-shadow: none; |
| 375 | cursor: pointer; |
| 376 | -webkit-transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; |
| 377 | transition: left .18s ease-in-out, color .1s ease-in-out, background .1s ease-in-out; |
| 378 | } |
| 379 | |
| 380 | .customize-section-back { |
| 381 | height: 70px; |
| 382 | } |
| 383 | |
| 384 | .ios .control-panel-back, |
| 385 | .ios .customize-panel-back, |
| 386 | .ios .customize-section-back { |
246 | 387 | -webkit-transition: left 0s; |
247 | 388 | transition: left 0s; |
248 | 389 | } |
249 | 390 | |
250 | | .collapsed .control-panel-back { |
| 391 | .collapsed .control-panel-back, |
| 392 | .ios .customize-panel-back { |
251 | 393 | display: none; |
252 | 394 | } |
253 | 395 | |
| 396 | .ios .expanded.in-sub-panel .customize-panel-back { |
| 397 | display: block; |
| 398 | } |
| 399 | |
| 400 | .panel-meta.customize-info .accordion-section-title { |
| 401 | margin-left: 48px; |
| 402 | } |
| 403 | |
| 404 | #customize-controls .panel-meta.customize-info .accordion-section-title:hover { |
| 405 | background: #fff; |
| 406 | color: #555; |
| 407 | } |
| 408 | |
254 | 409 | .customize-overlay-close:focus, |
255 | 410 | .customize-overlay-close:hover, |
256 | 411 | .customize-controls-close:focus, |
… |
… |
body { |
267 | 422 | box-shadow: none; |
268 | 423 | } |
269 | 424 | |
| 425 | .customize-panel-back:hover, |
| 426 | .customize-panel-back:focus, |
| 427 | .customize-section-back:hover, |
| 428 | .customize-section-back:focus { |
| 429 | background: #0073aa; |
| 430 | border-color: #ccc; |
| 431 | color: #fff; |
| 432 | outline: none; |
| 433 | -webkit-box-shadow: none; |
| 434 | box-shadow: none; |
| 435 | } |
| 436 | |
270 | 437 | .customize-overlay-close:before, |
271 | 438 | .customize-controls-close:before { |
272 | 439 | font: normal 22px/45px dashicons; |
… |
… |
body { |
276 | 443 | left: 13px; |
277 | 444 | } |
278 | 445 | |
| 446 | .customize-panel-back:before, |
| 447 | .customize-section-back:before { |
| 448 | font: normal 20px/69px dashicons; |
| 449 | content: "\f341"; |
| 450 | position: relative; |
| 451 | left: 13px; |
| 452 | } |
| 453 | |
279 | 454 | .control-panel-back:before { |
280 | 455 | font: normal 20px/45px dashicons; |
281 | 456 | content: "\f341"; |
… |
… |
body { |
285 | 460 | } |
286 | 461 | |
287 | 462 | .in-sub-panel .control-panel-back { |
288 | | left: 0; |
289 | | } |
290 | | |
291 | | .current-panel > .accordion-section-title { |
292 | | height: 22px; |
| 463 | /* left: 0; @todo decide whether to bring back the back buttons in the header */ |
293 | 464 | } |
294 | 465 | |
295 | 466 | .wp-full-overlay-sidebar .wp-full-overlay-header { |
… |
… |
body { |
345 | 516 | transition: left 0s; |
346 | 517 | } |
347 | 518 | |
348 | | .control-section.control-panel .accordion-section-title .panel-title { |
349 | | font-size: 20px; |
350 | | font-weight: 200; |
351 | | line-height: 24px; |
352 | | display: block; |
353 | | border: none; |
354 | | } |
355 | | |
356 | | .control-section.control-panel .preview-notice { |
357 | | font-size: 13px; |
358 | | line-height: 24px; |
359 | | } |
360 | | |
361 | 519 | p.customize-section-description { |
362 | 520 | font-style: normal; |
| 521 | margin-top: 22px; |
| 522 | margin-bottom: 0; |
363 | 523 | } |
364 | 524 | |
365 | 525 | .customize-control { |
366 | 526 | width: 100%; |
367 | 527 | float: left; |
368 | 528 | clear: both; |
369 | | margin-bottom: 8px; |
| 529 | margin-bottom: 12px; |
370 | 530 | } |
371 | 531 | |
372 | 532 | .customize-control select, |
… |
… |
p.customize-section-description { |
498 | 658 | } |
499 | 659 | |
500 | 660 | .wp-full-overlay-sidebar { |
501 | | background: #eeeeee; |
| 661 | background: #eee; |
502 | 662 | border-right: 1px solid #ddd; |
503 | 663 | } |
504 | 664 | |
… |
… |
p.customize-section-description { |
542 | 702 | line-height: 16px; |
543 | 703 | margin-right: 16px; |
544 | 704 | padding: 4px 5px; |
545 | | border: 2px solid #eeeeee; |
| 705 | border: 2px solid #eee; |
546 | 706 | -webkit-user-select: none; |
547 | 707 | -moz-user-select: none; |
548 | 708 | -ms-user-select: none; |
… |
… |
p.customize-section-description { |
555 | 715 | bottom: 0; |
556 | 716 | right: 0; |
557 | 717 | width: 20px; |
558 | | background: #eeeeee; |
| 718 | background: #eee; |
559 | 719 | } |
560 | 720 | |
561 | 721 | .customize-control .dropdown-arrow:after { |
… |
… |
p.customize-section-description { |
575 | 735 | |
576 | 736 | .customize-control .dropdown-status { |
577 | 737 | color: #32373c; |
578 | | background: #eeeeee; |
| 738 | background: #eee; |
579 | 739 | display: none; |
580 | 740 | max-width: 112px; |
581 | 741 | } |
… |
… |
p.customize-section-description { |
595 | 755 | } |
596 | 756 | |
597 | 757 | .customize-control-color .dropdown .dropdown-content { |
598 | | background-color: #555555; |
| 758 | background-color: #555; |
599 | 759 | border: 1px solid rgba(0, 0, 0, 0.15); |
600 | 760 | } |
601 | 761 | |
… |
… |
p.customize-section-description { |
897 | 1057 | |
898 | 1058 | #customize-theme-controls .control-section-themes .accordion-section-title:hover, |
899 | 1059 | #customize-theme-controls .control-section-themes .accordion-section-title:focus { |
900 | | color: #555555; |
| 1060 | color: #555; |
901 | 1061 | background-color: #fff; |
902 | 1062 | } |
903 | 1063 | |
… |
… |
p.customize-section-description { |
913 | 1073 | padding-right: 100px; /* Space for the button */ |
914 | 1074 | } |
915 | 1075 | |
916 | | .control-section-themes .accordion-section-title span { |
917 | | font-size: small; |
| 1076 | .control-section-themes .accordion-section-title span.customize-action, |
| 1077 | #customize-controls .customize-section-title span.customize-action { |
| 1078 | font-size: 13px; |
918 | 1079 | display: block; |
919 | 1080 | font-weight: 400; |
920 | 1081 | } |
… |
… |
p.customize-section-description { |
928 | 1089 | font-weight: normal; |
929 | 1090 | } |
930 | 1091 | |
| 1092 | .control-section-themes .accordion-section-title:before { |
| 1093 | display: none; |
| 1094 | } |
| 1095 | |
931 | 1096 | .customize-themes-panel { |
932 | 1097 | display: none; |
933 | 1098 | padding: 0 8px; |
… |
… |
p.customize-section-description { |
938 | 1103 | box-sizing: border-box; |
939 | 1104 | } |
940 | 1105 | |
| 1106 | .customize-themes-panel .accordion-section-title:first-child { |
| 1107 | margin-top: 0; |
| 1108 | } |
| 1109 | |
| 1110 | #customize-controls .customize-themes-panel .accordion-section-title:nth-child(2) { |
| 1111 | font-size: 14px; |
| 1112 | font-weight: 600; |
| 1113 | } |
941 | 1114 | |
942 | 1115 | .customize-themes-panel > h2 { |
943 | 1116 | padding: 15px 8px 0 8px; |
… |
… |
p.customize-section-description { |
956 | 1129 | margin-bottom: 8px; |
957 | 1130 | } |
958 | 1131 | |
| 1132 | #customize-theme-controls .themes.accordion-section-content { |
| 1133 | position: relative; |
| 1134 | left: 0; |
| 1135 | padding: 0; |
| 1136 | width: 100%; |
| 1137 | } |
| 1138 | |
959 | 1139 | .wp-customizer .theme-browser .themes { |
960 | 1140 | padding-bottom: 8px; |
961 | 1141 | } |
… |
… |
body.cheatin p { |
1170 | 1350 | margin-bottom: 4px; |
1171 | 1351 | } |
1172 | 1352 | |
1173 | | .adding-widget #customize-header-actions .primary-actions { |
1174 | | display: none; |
1175 | | } |
1176 | | |
1177 | | .adding-widget #customize-header-actions .secondary-actions { |
1178 | | display: block; |
1179 | | } |
1180 | | |
1181 | 1353 | #customize-header-actions .button-primary { |
1182 | 1354 | margin-top: 6px; |
1183 | 1355 | } |
diff --git src/wp-admin/css/customize-widgets.css src/wp-admin/css/customize-widgets.css
index ba95022..3601cae 100644
|
|
|
14 | 14 | display: none; |
15 | 15 | } |
16 | 16 | |
| 17 | .control-section.control-section-sidebar .accordion-section-content.ui-sortable { |
| 18 | overflow: visible; |
| 19 | } |
| 20 | |
17 | 21 | .customize-control-widget_form .widget-top { |
18 | 22 | -webkit-transition: opacity 0.5s; |
19 | 23 | transition: opacity 0.5s; |
… |
… |
body.adding-widget .add-new-widget:before { |
348 | 352 | width: 300px; |
349 | 353 | margin: 0; |
350 | 354 | z-index: 1; |
351 | | background: #fff !important; |
| 355 | background: #eee !important; |
352 | 356 | -webkit-transition: all 0.2s; |
353 | 357 | transition: all 0.2s; |
354 | | border-right: 1px solid #dddddd; |
| 358 | border-right: 1px solid #ddd; |
355 | 359 | } |
356 | 360 | |
357 | 361 | #available-widgets-list { |
… |
… |
body.adding-widget .add-new-widget:before { |
384 | 388 | #available-widgets .widget-tpl { |
385 | 389 | position: relative; |
386 | 390 | padding: 20px 15px 20px 60px; |
| 391 | background: #fff; |
387 | 392 | border-bottom: 1px solid #e4e4e4; |
388 | 393 | cursor: pointer; |
389 | 394 | display: none; |
… |
… |
body.adding-widget .add-new-widget:before { |
391 | 396 | |
392 | 397 | #available-widgets .widget-tpl:hover, |
393 | 398 | #available-widgets .widget-tpl.selected { |
394 | | background: #fafafa; |
| 399 | background: #eee; |
| 400 | border-bottom-color: #ccc; |
395 | 401 | } |
396 | 402 | |
397 | 403 | #available-widgets .widget-top, |
… |
… |
body.adding-widget #customize-preview { |
583 | 589 | #available-widgets [class*="tweet"] .widget-title:before, |
584 | 590 | #available-widgets [class*="twitter"] .widget-title:before { content: "\f301"; } |
585 | 591 | |
| 592 | #available-widgets .customize-section-title { |
| 593 | display: none; |
| 594 | } |
586 | 595 | |
587 | 596 | @media screen and (max-height: 700px) and (min-width: 981px) { |
588 | | .customize-control { |
| 597 | .customize-control-widget { |
589 | 598 | margin-bottom: 0; |
590 | 599 | } |
591 | 600 | .widget-top { |
… |
… |
body.adding-widget #customize-preview { |
628 | 637 | width: 100%; |
629 | 638 | } |
630 | 639 | |
| 640 | #available-widgets .customize-section-title { |
| 641 | display: block; |
| 642 | margin: 0; |
| 643 | } |
| 644 | |
| 645 | #available-widgets .customize-section-back { |
| 646 | height: 69px; |
| 647 | } |
| 648 | |
| 649 | #available-widgets .customize-section-title h3 { |
| 650 | font-size: 20px; |
| 651 | font-weight: 200; |
| 652 | padding: 9px 10px 12px 14px; |
| 653 | margin: 0; |
| 654 | line-height: 24px; |
| 655 | color: #555; |
| 656 | display: block; |
| 657 | overflow: hidden; |
| 658 | white-space: nowrap; |
| 659 | text-overflow: ellipsis; |
| 660 | } |
| 661 | |
| 662 | #available-widgets .customize-section-title .customize-action { |
| 663 | font-size: 13px; |
| 664 | display: block; |
| 665 | font-weight: 400; |
| 666 | overflow: hidden; |
| 667 | white-space: nowrap; |
| 668 | text-overflow: ellipsis; |
| 669 | } |
| 670 | |
631 | 671 | #available-widgets-filter { |
632 | | position: static; |
| 672 | position: relative; |
633 | 673 | width: 100%; |
| 674 | background: #fff; |
634 | 675 | height: auto; |
| 676 | padding: 10px 15px; |
| 677 | } |
| 678 | |
| 679 | #available-widgets-list { |
| 680 | top: 140px; |
635 | 681 | } |
636 | 682 | } |
diff --git src/wp-admin/customize.php src/wp-admin/customize.php
index fc181db..f69d427 100644
|
|
do_action( 'customize_controls_print_scripts' ); |
143 | 143 | |
144 | 144 | <div id="widgets-right"><!-- For Widget Customizer, many widgets try to look for instances under div#widgets-right, so we have to add that ID to a container div in the Customizer for compat --> |
145 | 145 | <div class="wp-full-overlay-sidebar-content" tabindex="-1"> |
146 | | <div id="customize-info" class="accordion-section"> |
147 | | <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>" tabindex="0"> |
| 146 | <div id="customize-info" class="accordion-section customize-info"> |
| 147 | <div class="accordion-section-title" aria-label="<?php esc_attr_e( 'Customizer Options' ); ?>"> |
148 | 148 | <span class="preview-notice"><?php |
149 | | echo sprintf( __( 'You are customizing %s' ), '<strong class="theme-name site-title">' . get_bloginfo( 'name' ) . '</strong>' ); |
| 149 | echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title site-title">' . get_bloginfo( 'name' ) . '</strong>' ); |
150 | 150 | ?></span> |
| 151 | <button class="customize-help-toggle dashicons dashicons-editor-help" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> |
151 | 152 | </div> |
152 | | <div class="accordion-section-content"><?php |
| 153 | <div class="customize-panel-description"><?php |
153 | 154 | _e( 'The Customizer allows you to preview changes to your site before publishing them. You can also navigate to different pages on your site to preview them.' ); |
154 | 155 | ?></div> |
155 | 156 | </div> |
diff --git src/wp-admin/js/customize-controls.js src/wp-admin/js/customize-controls.js
index e211a41..30750f9 100644
|
|
|
443 | 443 | * @since 4.1.0 |
444 | 444 | */ |
445 | 445 | attachEvents: function () { |
446 | | var section = this; |
| 446 | var section = this, |
| 447 | backBtn = section.container.find( '.customize-section-back' ), |
| 448 | sectionTitle = section.container.find( '.accordion-section-title' ).first(); |
447 | 449 | |
448 | 450 | // Expand/Collapse accordion sections on click. |
449 | | section.container.find( '.accordion-section-title' ).on( 'click keydown', function( event ) { |
| 451 | section.container.find( '.accordion-section-title, .customize-section-back' ).on( 'click keydown', function( event ) { |
450 | 452 | if ( api.utils.isKeydownButNotEnterEvent( event ) ) { |
451 | 453 | return; |
452 | 454 | } |
… |
… |
|
454 | 456 | |
455 | 457 | if ( section.expanded() ) { |
456 | 458 | section.collapse(); |
| 459 | backBtn.attr( 'tabindex', '-1' ); |
| 460 | sectionTitle.attr( 'tabindex', '0' ); |
| 461 | sectionTitle.focus(); |
457 | 462 | } else { |
458 | 463 | section.expand(); |
| 464 | sectionTitle.attr( 'tabindex', '-1' ); |
| 465 | backBtn.attr( 'tabindex', '0' ); |
| 466 | backBtn.focus(); |
459 | 467 | } |
460 | 468 | }); |
461 | 469 | }, |
… |
… |
|
499 | 507 | * @param {Object} args |
500 | 508 | */ |
501 | 509 | onChangeExpanded: function ( expanded, args ) { |
502 | | var section = this, |
| 510 | var position, scroll, section = this, |
| 511 | container = section.container.closest( '.wp-full-overlay-sidebar-content' ), |
503 | 512 | content = section.container.find( '.accordion-section-content' ), |
| 513 | overlay = section.container.closest( '.wp-full-overlay' ), |
504 | 514 | expand; |
505 | 515 | |
506 | | if ( expanded ) { |
| 516 | if ( expanded && ! section.container.hasClass( 'open' ) ) { |
507 | 517 | |
508 | 518 | if ( args.unchanged ) { |
509 | 519 | expand = args.completeCallback; |
510 | 520 | } else { |
| 521 | container.scrollTop( 0 ); |
511 | 522 | expand = function () { |
512 | | content.stop().slideDown( args.duration, args.completeCallback ); |
513 | 523 | section.container.addClass( 'open' ); |
| 524 | overlay.addClass( 'section-open' ); |
| 525 | position = content.offset().top; |
| 526 | scroll = container.scrollTop(); |
| 527 | content.css( 'margin-top', ( 45 - position - scroll ) ); |
514 | 528 | }; |
515 | 529 | } |
516 | 530 | |
… |
… |
|
531 | 545 | expand(); |
532 | 546 | } |
533 | 547 | |
534 | | } else { |
| 548 | } else if ( section.container.hasClass( 'open' ) ) { |
535 | 549 | section.container.removeClass( 'open' ); |
536 | | content.slideUp( args.duration, args.completeCallback ); |
| 550 | overlay.removeClass( 'section-open' ); |
| 551 | content.css( 'margin-top', 'inherit' ); |
| 552 | container.scrollTop( 0 ); |
| 553 | section.container.find( '.accordion-section-title' ).focus(); |
537 | 554 | } |
538 | 555 | } |
539 | 556 | }); |
… |
… |
|
718 | 735 | overlay = section.closest( '.wp-full-overlay' ), |
719 | 736 | container = section.closest( '.wp-full-overlay-sidebar-content' ), |
720 | 737 | siblings = container.find( '.open' ), |
721 | | topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ).add( '#customize-info > .accordion-section-title' ), |
| 738 | topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ), |
722 | 739 | customizeBtn = section.find( '.customize-theme' ), |
723 | 740 | changeBtn = section.find( '.change-theme' ), |
724 | 741 | content = section.find( '.control-panel-content' ); |
… |
… |
|
748 | 765 | args.completeCallback(); |
749 | 766 | } |
750 | 767 | } ); |
751 | | topPanel.attr( 'tabindex', '-1' ); |
752 | | changeBtn.attr( 'tabindex', '-1' ); |
753 | 768 | customizeBtn.focus(); |
754 | 769 | } else { |
755 | 770 | siblings.removeClass( 'open' ); |
… |
… |
|
762 | 777 | args.completeCallback(); |
763 | 778 | } |
764 | 779 | } ); |
765 | | topPanel.attr( 'tabindex', '0' ); |
766 | 780 | customizeBtn.attr( 'tabindex', '0' ); |
767 | 781 | changeBtn.focus(); |
768 | 782 | container.scrollTop( 0 ); |
… |
… |
|
1012 | 1026 | } |
1013 | 1027 | }); |
1014 | 1028 | |
| 1029 | // Close panel. |
| 1030 | panel.container.find( '.customize-panel-back' ).on( 'click keydown', function( event ) { |
| 1031 | if ( api.utils.isKeydownButNotEnterEvent( event ) ) { |
| 1032 | return; |
| 1033 | } |
| 1034 | event.preventDefault(); // Keep this AFTER the key filter above |
| 1035 | |
| 1036 | if ( panel.expanded() ) { |
| 1037 | panel.collapse(); |
| 1038 | } |
| 1039 | }); |
| 1040 | |
1015 | 1041 | meta = panel.container.find( '.panel-meta:first' ); |
1016 | 1042 | |
1017 | | meta.find( '> .accordion-section-title' ).on( 'click keydown', function( event ) { |
| 1043 | meta.find( '> .accordion-section-title .customize-help-toggle' ).on( 'click keydown', function( event ) { |
1018 | 1044 | if ( api.utils.isKeydownButNotEnterEvent( event ) ) { |
1019 | 1045 | return; |
1020 | 1046 | } |
… |
… |
|
1024 | 1050 | return; |
1025 | 1051 | } |
1026 | 1052 | |
1027 | | var content = meta.find( '.accordion-section-content:first' ); |
| 1053 | var content = meta.find( '.customize-panel-description:first' ); |
1028 | 1054 | if ( meta.hasClass( 'open' ) ) { |
1029 | 1055 | meta.toggleClass( 'open' ); |
1030 | 1056 | content.slideUp( panel.defaultExpandedArguments.duration ); |
| 1057 | $( this ).attr( 'aria-expanded', false ); |
1031 | 1058 | } else { |
1032 | 1059 | content.slideDown( panel.defaultExpandedArguments.duration ); |
1033 | 1060 | meta.toggleClass( 'open' ); |
| 1061 | $( this ).attr( 'aria-expanded', true ); |
1034 | 1062 | } |
1035 | 1063 | }); |
1036 | 1064 | |
… |
… |
|
1089 | 1117 | // Note: there is a second argument 'args' passed |
1090 | 1118 | var position, scroll, |
1091 | 1119 | panel = this, |
1092 | | section = panel.container.closest( '.accordion-section' ), |
| 1120 | section = panel.container.closest( '.accordion-section' ), // This is actually the panel. |
1093 | 1121 | overlay = section.closest( '.wp-full-overlay' ), |
1094 | 1122 | container = section.closest( '.wp-full-overlay-sidebar-content' ), |
1095 | 1123 | siblings = container.find( '.open' ), |
1096 | | topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ).add( '#customize-info > .accordion-section-title' ), |
1097 | | backBtn = overlay.find( '.control-panel-back' ), |
| 1124 | topPanel = overlay.find( '#customize-theme-controls > ul > .accordion-section > .accordion-section-title' ), |
| 1125 | backBtn = section.find( '.customize-panel-back' ), |
1098 | 1126 | panelTitle = section.find( '.accordion-section-title' ).first(), |
1099 | 1127 | content = section.find( '.control-panel-content' ); |
1100 | 1128 | |
… |
… |
|
2573 | 2601 | var parent, topFocus, |
2574 | 2602 | body = $( document.body ), |
2575 | 2603 | overlay = body.children( '.wp-full-overlay' ), |
2576 | | title = $( '#customize-info .theme-name.site-title' ), |
| 2604 | title = $( '#customize-info .panel-title.site-title' ), |
2577 | 2605 | closeBtn = $( '.customize-controls-close' ), |
2578 | 2606 | saveBtn = $( '#save' ); |
2579 | 2607 | |
… |
… |
|
2588 | 2616 | }); |
2589 | 2617 | |
2590 | 2618 | // Expand/Collapse the main customizer customize info. |
2591 | | $( '#customize-info' ).find( '> .accordion-section-title' ).on( 'click keydown', function( event ) { |
| 2619 | $( '.customize-info' ).find( '> .accordion-section-title .customize-help-toggle' ).on( 'click keydown', function( event ) { |
2592 | 2620 | if ( api.utils.isKeydownButNotEnterEvent( event ) ) { |
2593 | 2621 | return; |
2594 | 2622 | } |
2595 | 2623 | event.preventDefault(); // Keep this AFTER the key filter above |
2596 | 2624 | |
2597 | | var section = $( this ).parent(), |
2598 | | content = section.find( '.accordion-section-content:first' ); |
| 2625 | var section = $( this ).closest( '.accordion-section' ), |
| 2626 | content = section.find( '.customize-panel-description:first' ); |
2599 | 2627 | |
2600 | 2628 | if ( section.hasClass( 'cannot-expand' ) ) { |
2601 | 2629 | return; |
… |
… |
|
2604 | 2632 | if ( section.hasClass( 'open' ) ) { |
2605 | 2633 | section.toggleClass( 'open' ); |
2606 | 2634 | content.slideUp( api.Panel.prototype.defaultExpandedArguments.duration ); |
| 2635 | $( this ).attr( 'aria-expanded', false ); |
2607 | 2636 | } else { |
2608 | 2637 | content.slideDown( api.Panel.prototype.defaultExpandedArguments.duration ); |
2609 | 2638 | section.toggleClass( 'open' ); |
| 2639 | $( this ).attr( 'aria-expanded', true ); |
2610 | 2640 | } |
2611 | 2641 | }); |
2612 | 2642 | |
diff --git src/wp-admin/js/customize-widgets.js src/wp-admin/js/customize-widgets.js
index 729e6a8..eb245ea 100644
|
|
|
176 | 176 | |
177 | 177 | // If the available widgets panel is open and the customize controls are |
178 | 178 | // interacted with (i.e. available widgets panel is blurred) then close the |
179 | | // available widgets panel. |
180 | | $( '#customize-controls, .customize-overlay-close' ).on( 'click keydown', function( e ) { |
| 179 | // available widgets panel. Also close on back button click. |
| 180 | $( '#customize-controls, .customize-overlay-close, #available-widgets .customize-section-title' ).on( 'click keydown', function( e ) { |
181 | 181 | var isAddNewBtn = $( e.target ).is( '.add-new-widget, .add-new-widget *' ); |
182 | 182 | if ( $( 'body' ).hasClass( 'adding-widget' ) && ! isAddNewBtn ) { |
183 | 183 | self.close(); |
… |
… |
|
366 | 366 | this.close( { returnFocus: true } ); |
367 | 367 | } |
368 | 368 | |
369 | | if ( isTab && ( isShift && isSearchFocused || ! isShift && isLastWidgetFocused ) ) { |
| 369 | if ( this.currentSidebarControl && isTab && ( isShift && isSearchFocused || ! isShift && isLastWidgetFocused ) ) { |
370 | 370 | this.currentSidebarControl.container.find( '.add-new-widget' ).focus(); |
371 | 371 | event.preventDefault(); |
372 | 372 | } |
… |
… |
|
1270 | 1270 | |
1271 | 1271 | if ( expanded ) { |
1272 | 1272 | |
1273 | | self.expandControlSection(); |
| 1273 | if ( 'undefined' != typeof api.section( self.section ) && ! api.section( self.section ).expanded() ) { |
| 1274 | self.expandControlSection(); |
| 1275 | } |
1274 | 1276 | |
1275 | 1277 | // Close all other widget controls before expanding this one |
1276 | 1278 | api.control.each( function( otherControl ) { |
diff --git src/wp-includes/class-wp-customize-panel.php src/wp-includes/class-wp-customize-panel.php
index ee9f846..8877882 100644
|
|
class WP_Customize_Panel { |
315 | 315 | */ |
316 | 316 | protected function render_content() { |
317 | 317 | ?> |
318 | | <li class="panel-meta accordion-section control-section<?php if ( empty( $this->description ) ) { echo ' cannot-expand'; } ?>"> |
319 | | <div class="accordion-section-title" tabindex="0"> |
| 318 | <li class="panel-meta customize-info accordion-section <?php if ( empty( $this->description ) ) { echo ' cannot-expand'; } ?>"> |
| 319 | <button class="customize-panel-back" tabindex="-1"><span class="screen-reader-text"><?php _e( 'Back' ); ?></span></button> |
| 320 | <div class="accordion-section-title"> |
320 | 321 | <span class="preview-notice"><?php |
321 | 322 | /* translators: %s is the site/panel title in the Customizer */ |
322 | 323 | echo sprintf( __( 'You are customizing %s' ), '<strong class="panel-title">' . esc_html( $this->title ) . '</strong>' ); |
323 | 324 | ?></span> |
| 325 | <button class="customize-help-toggle dashicons dashicons-editor-help" tabindex="0" aria-expanded="false"><span class="screen-reader-text"><?php _e( 'Help' ); ?></span></button> |
324 | 326 | </div> |
325 | 327 | <?php if ( ! empty( $this->description ) ) : ?> |
326 | | <div class="accordion-section-content description"> |
| 328 | <div class="description customize-panel-description"> |
327 | 329 | <?php echo $this->description; ?> |
328 | 330 | </div> |
329 | 331 | <?php endif; ?> |
diff --git src/wp-includes/class-wp-customize-section.php src/wp-includes/class-wp-customize-section.php
index a27f22b..2805a68 100644
|
|
class WP_Customize_Section { |
305 | 305 | <li id="accordion-section-<?php echo esc_attr( $this->id ); ?>" class="<?php echo esc_attr( $classes ); ?>"> |
306 | 306 | <h3 class="accordion-section-title" tabindex="0"> |
307 | 307 | <?php echo esc_html( $this->title ); ?> |
308 | | <span class="screen-reader-text"><?php _e( 'Press return or enter to expand' ); ?></span> |
| 308 | <span class="screen-reader-text"><?php _e( 'Press return or enter to open' ); ?></span> |
309 | 309 | </h3> |
310 | 310 | <ul class="accordion-section-content"> |
311 | | <?php if ( ! empty( $this->description ) ) : ?> |
312 | | <li class="customize-section-description-container"> |
| 311 | <li class="customize-section-description-container"> |
| 312 | <div class="customize-section-title"> |
| 313 | <button class="customize-section-back" tabindex="-1"> |
| 314 | <span class="screen-reader-text"><?php _e( 'Back' ); ?></span> |
| 315 | </button> |
| 316 | <h3> |
| 317 | <span class="customize-action"><?php if ( $this->panel ) { echo _x( 'Customizing ▸ ', 'Customizer sub-section breadcrumbs.' ) . esc_html( $this->manager->get_panel( $this->panel )->title ); } else { _e( 'Customizing' ); } ?></span> |
| 318 | <?php echo esc_html( $this->title ); ?> |
| 319 | </h3> |
| 320 | </div> |
| 321 | <?php if ( ! empty( $this->description ) ) : ?> |
313 | 322 | <p class="description customize-section-description"><?php echo $this->description; ?></p> |
314 | | </li> |
315 | | <?php endif; ?> |
| 323 | <?php endif; ?> |
| 324 | </li> |
316 | 325 | </ul> |
317 | 326 | </li> |
318 | 327 | <?php |
… |
… |
class WP_Customize_Themes_Section extends WP_Customize_Section { |
353 | 362 | <?php |
354 | 363 | if ( $this->manager->is_theme_active() ) { |
355 | 364 | /* translators: %s: theme name */ |
356 | | printf( __( '<span>Active theme</span> %s' ), $this->title ); |
| 365 | printf( __( '<span class="customize-action">Active theme</span> %s' ), $this->title ); |
357 | 366 | } else { |
358 | 367 | /* translators: %s: theme name */ |
359 | | printf( __( '<span>Previewing theme</span> %s' ), $this->title ); |
| 368 | printf( __( '<span class="customize-action">Previewing theme</span> %s' ), $this->title ); |
360 | 369 | } |
361 | 370 | ?> |
362 | 371 | |
363 | | <button type="button" class="button change-theme"><?php _ex( 'Change', 'theme' ); ?></button> |
| 372 | <button type="button" class="button change-theme" tabindex="0"><?php _ex( 'Change', 'theme' ); ?></button> |
364 | 373 | </h3> |
365 | 374 | <div class="customize-themes-panel control-panel-content themes-php"> |
366 | | <h2> |
| 375 | <h3 class="accordion-section-title customize-section-title"> |
| 376 | <span class="customize-action"><?php _e( 'Customizing' ); ?></span> |
367 | 377 | <?php _e( 'Themes' ); ?> |
368 | 378 | <span class="title-count theme-count"><?php echo count( $this->controls ) + 1 /* Active theme */; ?></span> |
369 | | </h2> |
370 | | |
| 379 | </h3> |
371 | 380 | <h3 class="accordion-section-title customize-section-title"> |
372 | 381 | <?php |
373 | 382 | if ( $this->manager->is_theme_active() ) { |
374 | 383 | /* translators: %s: theme name */ |
375 | | printf( __( '<span>Active theme</span> %s' ), $this->title ); |
| 384 | printf( __( '<span class="customize-action">Active theme</span> %s' ), $this->title ); |
376 | 385 | } else { |
377 | 386 | /* translators: %s: theme name */ |
378 | | printf( __( '<span>Previewing theme</span> %s' ), $this->title ); |
| 387 | printf( __( '<span class="customize-action">Previewing theme</span> %s' ), $this->title ); |
379 | 388 | } |
380 | 389 | ?> |
381 | 390 | <button type="button" class="button customize-theme"><?php _e( 'Customize' ); ?></button> |
diff --git src/wp-includes/class-wp-customize-widgets.php src/wp-includes/class-wp-customize-widgets.php
index bf0d3ec..8e05f7f 100644
|
|
final class WP_Customize_Widgets { |
681 | 681 | ?> |
682 | 682 | <div id="widgets-left"><!-- compatibility with JS which looks for widget templates here --> |
683 | 683 | <div id="available-widgets"> |
| 684 | <div class="customize-section-title"> |
| 685 | <button class="customize-section-back" tabindex="-1"> |
| 686 | <span class="screen-reader-text"><?php _e( 'Back' ); ?></span> |
| 687 | </button> |
| 688 | <h3> |
| 689 | <span class="customize-action"><?php |
| 690 | /* translators: ▸ is the unicode right-pointing triangle, and %s is the section title in the Customizer */ |
| 691 | echo sprintf( __( 'Customizing ▸ %s' ), esc_html( $this->manager->get_panel( 'widgets' )->title ) ); |
| 692 | ?></span> |
| 693 | <?php _e( 'Add a Widget' ); ?> |
| 694 | </h3> |
| 695 | </div> |
684 | 696 | <div id="available-widgets-filter"> |
685 | 697 | <label class="screen-reader-text" for="widgets-search"><?php _e( 'Search Widgets' ); ?></label> |
686 | 698 | <input type="search" id="widgets-search" placeholder="<?php esc_attr_e( 'Search widgets…' ) ?>" /> |