diff --git src/wp-content/themes/twentyfourteen/style.css src/wp-content/themes/twentyfourteen/style.css
index 72b320f..d5c2c2f 100644
|
|
span + .edit-link:before, |
1045 | 1045 | outline: 1px dotted; |
1046 | 1046 | } |
1047 | 1047 | |
1048 | | .secondary-navigation .customize-partial-edit-shortcut:before, |
1049 | | .footer-sidebar .widget:first-child .customize-partial-edit-shortcut:before { |
| 1048 | .secondary-navigation .customize-partial-edit-shortcut button, |
| 1049 | .footer-sidebar .widget:first-child .customize-partial-edit-shortcut button { |
1050 | 1050 | left: 0; |
1051 | 1051 | } |
1052 | 1052 | |
diff --git src/wp-content/themes/twentyseventeen/inc/color-patterns.php src/wp-content/themes/twentyseventeen/inc/color-patterns.php
index d14e0b1..0a20a03 100644
|
|
body.colors-custom, |
317 | 317 | .colors-custom .next.page-numbers:hover, |
318 | 318 | .colors-custom .site-content .wp-playlist-light .wp-playlist-item:hover, |
319 | 319 | .colors-custom .site-content .wp-playlist-light .wp-playlist-item:focus, |
320 | | .colors-custom .customize-partial-edit-shortcut:before { |
| 320 | .colors-custom .customize-partial-edit-shortcut button { |
321 | 321 | background: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ) . ', 46% ); /* base: #767676; */ |
322 | 322 | } |
323 | 323 | |
diff --git src/wp-content/themes/twentyseventeen/style.css src/wp-content/themes/twentyseventeen/style.css
index acd1b61..8489fe1 100644
|
|
object { |
2973 | 2973 | } |
2974 | 2974 | |
2975 | 2975 | /* Add some space around the visual edit shortcut buttons. */ |
2976 | | .twentyseventeen-panel .customize-partial-edit-shortcut:before { |
| 2976 | .twentyseventeen-panel .customize-partial-edit-shortcut button { |
2977 | 2977 | top: 30px; |
2978 | 2978 | left: 30px; |
2979 | 2979 | } |
… |
… |
object { |
2989 | 2989 | } |
2990 | 2990 | |
2991 | 2991 | /* Prevent icon colors from clashing with color schemes. */ |
2992 | | .colors-custom .customize-partial-edit-shortcut:before { |
| 2992 | .colors-custom .customize-partial-edit-shortcut button { |
2993 | 2993 | text-shadow: 0 -1px 1px rgba(0,0,0,.2), |
2994 | 2994 | 1px 0 1px rgba(0,0,0,.2), |
2995 | 2995 | 0 1px 1px rgba(0,0,0,.2), |
diff --git src/wp-includes/css/customize-preview.css src/wp-includes/css/customize-preview.css
index fee3b7b..4a67587 100644
|
|
|
12 | 12 | } |
13 | 13 | |
14 | 14 | /* Make shortcut buttons essentially invisible */ |
15 | | .widget button.customize-partial-edit-shortcut, |
| 15 | .widget .customize-partial-edit-shortcut, |
16 | 16 | .customize-partial-edit-shortcut { |
17 | | position: relative; |
| 17 | position: absolute; |
18 | 18 | float: left; |
19 | 19 | width: 1px; /* required to have a size to be focusable in Safari */ |
20 | 20 | height: 1px; |
… |
… |
|
28 | 28 | z-index: 5; |
29 | 29 | } |
30 | 30 | |
31 | | .customize-partial-edit-shortcut:active { |
| 31 | .widget .customize-partial-edit-shortcut button:active, |
| 32 | .customize-partial-edit-shortcut button:active { |
32 | 33 | padding: 0; |
33 | 34 | border: 0; |
34 | 35 | } |
35 | 36 | |
36 | 37 | /* Styles for the actual shortcut */ |
37 | | .customize-partial-edit-shortcut:before { |
| 38 | .widget .customize-partial-edit-shortcut button, |
| 39 | .customize-partial-edit-shortcut button { |
38 | 40 | position: absolute; |
39 | 41 | left: -36px; |
40 | 42 | color: #fff; |
41 | 43 | width: 30px; |
42 | 44 | height: 30px; |
| 45 | min-width: 30px; |
| 46 | min-height: 30px; |
43 | 47 | font-size: 18px; |
44 | | font-family: dashicons; |
45 | | content: '\f464'; |
46 | 48 | z-index: 5; |
47 | 49 | background-color: #0085ba; |
| 50 | background: #0085ba; |
48 | 51 | border-radius: 50%; |
49 | 52 | border: 2px solid #fff; |
50 | 53 | box-shadow: 0 2px 1px rgba(46,68,83,0.15); |
… |
… |
|
65 | 68 | -1px 0 1px #006799; |
66 | 69 | } |
67 | 70 | |
68 | | .customize-partial-edit-shortcut:hover:before, |
69 | | .customize-partial-edit-shortcut:focus:before { |
| 71 | .customize-partial-edit-shortcut button svg { |
| 72 | fill: #fff; |
| 73 | min-width: 20px; |
| 74 | min-height: 20px; |
| 75 | } |
| 76 | |
| 77 | .customize-partial-edit-shortcut button:hover, |
| 78 | .customize-partial-edit-shortcut button:focus { |
70 | 79 | background: #008ec2; /* matches primary buttons */ |
71 | 80 | border-color: #191e23; /* provides visual focus style with 4.5 contrast against background color */ |
72 | 81 | } |
73 | 82 | |
74 | | body.customize-partial-edit-shortcuts-shown .customize-partial-edit-shortcut:before { |
| 83 | body.customize-partial-edit-shortcuts-shown .customize-partial-edit-shortcut button { |
75 | 84 | animation-name: customize-partial-edit-shortcut-bounce-appear; |
76 | 85 | pointer-events: auto; |
77 | 86 | } |
78 | | body.customize-partial-edit-shortcuts-hidden .customize-partial-edit-shortcut:before { |
| 87 | body.customize-partial-edit-shortcuts-hidden .customize-partial-edit-shortcut button { |
79 | 88 | animation-name: customize-partial-edit-shortcut-bounce-disappear; |
80 | 89 | pointer-events: none; |
81 | 90 | } |
82 | 91 | |
83 | | .page-sidebar-collapsed .customize-partial-edit-shortcut:before, |
84 | | .customize-partial-edit-shortcut-hidden:before { |
| 92 | .page-sidebar-collapsed .customize-partial-edit-shortcut button, |
| 93 | .customize-partial-edit-shortcut-hidden .customize-partial-edit-shortcut button { |
85 | 94 | visibility: hidden; |
86 | 95 | } |
87 | 96 | |
88 | | .customize-partial-edit-shortcut-left-margin:before { |
| 97 | .customize-partial-edit-shortcut-left-margin .customize-partial-edit-shortcut button { |
89 | 98 | left: 0; |
90 | 99 | } |
91 | 100 | |
… |
… |
body.customize-partial-edit-shortcuts-hidden .customize-partial-edit-shortcut:be |
144 | 153 | } |
145 | 154 | |
146 | 155 | @media screen and (max-width:800px) { |
147 | | .customize-partial-edit-shortcut:before { |
| 156 | .customize-partial-edit-shortcut button { |
148 | 157 | left: -18px; /* Assume there will be less of a margin available on smaller screens */ |
149 | 158 | } |
150 | 159 | } |
diff --git src/wp-includes/js/customize-selective-refresh.js src/wp-includes/js/customize-selective-refresh.js
index bfbb2ef..5c6f120 100644
|
|
wp.customize.selectiveRefresh = ( function( $, api ) { |
214 | 214 | * @return {jQuery} The edit shortcut button element. |
215 | 215 | */ |
216 | 216 | createEditShortcut: function() { |
217 | | var partial = this, shortcutTitle; |
| 217 | var partial = this, shortcutTitle, $buttonContainer, $button, $image; |
218 | 218 | shortcutTitle = partial.getEditShortcutTitle(); |
219 | | return $( '<button>', { |
| 219 | $buttonContainer = $( '<span>', { |
| 220 | 'class': 'customize-partial-edit-shortcut ' + partial.getEditShortcutClassName() |
| 221 | } ); |
| 222 | $button = $( '<button>', { |
220 | 223 | 'aria-label': shortcutTitle, |
221 | 224 | 'title': shortcutTitle, |
222 | | 'type': 'button', |
223 | | 'class': 'customize-partial-edit-shortcut ' + partial.getEditShortcutClassName() |
| 225 | 'class': 'customize-partial-edit-shortcut-button' |
224 | 226 | } ); |
| 227 | $image = $( '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M13.89 3.39l2.71 2.72c.46.46.42 1.24.03 1.64l-8.01 8.02-5.56 1.16 1.16-5.58s7.6-7.63 7.99-8.03c.39-.39 1.22-.39 1.68.07zm-2.73 2.79l-5.59 5.61 1.11 1.11 5.54-5.65zm-2.97 8.23l5.58-5.6-1.07-1.08-5.59 5.6z"/></svg>' ); |
| 228 | $button.append( $image ); |
| 229 | $buttonContainer.append( $button ); |
| 230 | return $buttonContainer; |
225 | 231 | }, |
226 | 232 | |
227 | 233 | /** |