Ticket #38697: 38697.5.diff
File 38697.5.diff, 6.5 KB (added by , 8 years ago) |
---|
-
src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css
diff --git src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css src/wp-content/themes/twentyseventeen/assets/css/colors-dark.css index 7b747a8..fd5e9fa 100644
body.colors-dark, 236 236 color: #ddd; 237 237 } 238 238 239 .colors-dark .wp-custom-header-video-button { 240 background-color: rgba( 221, 221, 221, 0.3 ); /* Equivilant to #ddd */ 241 border-color: rgba( 0, 0, 0, 0.15 ); /* Equivalent to #000 */ 242 } 243 244 .colors-dark .wp-custom-header-video-button:hover, 245 .colors-dark .wp-custom-header-video-button:focus { 246 background-color: rgba( 221, 221, 221, 0.8 ); /* Equivilant to #ddd */ 247 border-color: rgba( 0, 0, 0, 0.3 ); /* Equivalent to #000 */ 248 } 249 239 250 .colors-dark h2, 240 251 .colors-dark blockquote, 241 252 .colors-dark input[type="text"], … … body.colors-dark, 480 491 box-shadow: 0 0 0 8px #222; 481 492 } 482 493 483 .colors-dark .entry-footer .edit-link a.post-edit-link { 494 .colors-dark .entry-footer .edit-link a.post-edit-link, 495 .colors-dark .wp-custom-header-video-button:hover, 496 .colors-dark .wp-custom-header-video-button:focus { 484 497 color: #000; 485 498 } 486 499 500 .colors-dark .wp-custom-header-video-button { 501 color: rgba( 0, 0, 0, 0.5 ); /* Equivalent to #000 */ 502 } 503 487 504 .colors-dark .menu-toggle, 488 505 .colors-dark .menu-toggle:hover, 489 506 .colors-dark .menu-toggle:focus, -
src/wp-content/themes/twentyseventeen/assets/images/svg-icons.svg
diff --git src/wp-content/themes/twentyseventeen/assets/images/svg-icons.svg src/wp-content/themes/twentyseventeen/assets/images/svg-icons.svg index b3fc4e6..eb579db 100644
138 138 <symbol id="icon-arrow-right" viewBox="0 0 43 32"> 139 139 <path class="path1" d="M0.356 17.956c0.178 0.178 0.533 0.356 0.711 0.356h33.778l-10.311 10.489c-0.178 0.178-0.356 0.533-0.356 0.711 0 0.356 0.178 0.533 0.356 0.711l1.6 1.6c0.178 0.178 0.533 0.356 0.711 0.356s0.533-0.178 0.711-0.356l14.756-14.933c0.178-0.356 0.356-0.711 0.356-0.889s-0.178-0.533-0.356-0.711l-14.756-14.933c0-0.178-0.356-0.356-0.533-0.356s-0.533 0.178-0.711 0.356l-1.6 1.6c-0.178 0.178-0.356 0.533-0.356 0.711s0.178 0.533 0.356 0.711l10.311 10.489h-33.778c-0.178 0-0.533 0.178-0.711 0.356-0.356 0.178-0.533 0.356-0.533 0.711v2.311c0 0.178 0.178 0.533 0.356 0.711z"></path> 140 140 </symbol> 141 <symbol id="icon-play" viewBox="0 0 22 28"> 142 <path d="M21.625 14.484l-20.75 11.531c-0.484 0.266-0.875 0.031-0.875-0.516v-23c0-0.547 0.391-0.781 0.875-0.516l20.75 11.531c0.484 0.266 0.484 0.703 0 0.969z"></path> 143 </symbol> 144 <symbol id="icon-pause" viewBox="0 0 24 28"> 145 <path d="M24 3v22c0 0.547-0.453 1-1 1h-8c-0.547 0-1-0.453-1-1v-22c0-0.547 0.453-1 1-1h8c0.547 0 1 0.453 1 1zM10 3v22c0 0.547-0.453 1-1 1h-8c-0.547 0-1-0.453-1-1v-22c0-0.547 0.453-1 1-1h8c0.547 0 1 0.453 1 1z"></path> 146 </symbol> 141 147 </defs> 142 148 </svg> -
src/wp-content/themes/twentyseventeen/inc/color-patterns.php
diff --git src/wp-content/themes/twentyseventeen/inc/color-patterns.php src/wp-content/themes/twentyseventeen/inc/color-patterns.php index c3913e1..f62f643 100644
function twentyseventeen_custom_colors_css() { 148 148 color: hsl( ' . $hue . ', ' . $saturation . ', 13% ); /* base: #222; */ 149 149 } 150 150 151 .colors-custom .wp-custom-header-video-button { 152 background-color: hsla( ' . $hue . ', ' . $saturation . ', 15%, 0.3 ); /* base: #222; */ 153 } 154 155 .colors-custom .wp-custom-header-video-button:hover, 156 .colors-custom .wp-custom-header-video-button:focus { 157 background-color: hsla( ' . $hue . ', ' . $saturation . ', 15%, 0.8 ); /* base: #222; */ 158 } 159 151 160 .colors-custom .entry-content a:focus, 152 161 .colors-custom .entry-content a:hover, 153 162 .colors-custom .entry-summary a:focus, -
src/wp-content/themes/twentyseventeen/inc/custom-header.php
diff --git src/wp-content/themes/twentyseventeen/inc/custom-header.php src/wp-content/themes/twentyseventeen/inc/custom-header.php index c137ccc..fbf38ed 100644
function twentyseventeen_header_style() { 94 94 <?php 95 95 } 96 96 endif; // End of twentyseventeen_header_style. 97 98 /** 99 * Customize video play/pause button in the custom header. 100 */ 101 function twentyseventeen_video_controls( $settings ) { 102 $settings['l10n']['play'] = '<span class="screen-reader-text">' . __( 'Play background video', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'play' ) ); 103 $settings['l10n']['pause'] = '<span class="screen-reader-text">' . __( 'Pause background video', 'twentyseventeen' ) . '</span>' . twentyseventeen_get_svg( array( 'icon' => 'pause' ) ); 104 return $settings; 105 } 106 add_filter( 'header_video_settings', 'twentyseventeen_video_controls' ); -
src/wp-content/themes/twentyseventeen/rtl.css
diff --git src/wp-content/themes/twentyseventeen/rtl.css src/wp-content/themes/twentyseventeen/rtl.css index 84a7460..059355a 100644
input[type="checkbox"] { 95 95 96 96 /* Front Page */ 97 97 98 .wp-custom-header-video-button { 99 left: 30px; 100 right: auto; 101 } 102 98 103 .twentyseventeen-panel .recent-posts .entry-header .edit-link { 99 104 margin-left: 0; 100 105 margin-right: 1em; 101 106 } 102 107 103 104 108 /* Blog, Archive, Search */ 105 109 106 110 .blog .entry-meta a.post-edit-link, -
src/wp-content/themes/twentyseventeen/style.css
diff --git src/wp-content/themes/twentyseventeen/style.css src/wp-content/themes/twentyseventeen/style.css index 1610482..9e122ba 100644
body:not(.title-tagline-hidden) .site-branding-text { 1680 1680 transform: translateX(-50%) translateY(-50%); 1681 1681 } 1682 1682 1683 .wp-custom-header-video-button { 1684 background-color: rgba( 34, 34, 34, 0.3 ); 1685 border: 1px solid rgba( 255, 255, 255, 0.3 ); 1686 -webkit-border-radius: 2px; 1687 border-radius: 2px; 1688 color: rgba( 255, 255, 255, 0.5 ); 1689 height: 45px; 1690 overflow: hidden; 1691 padding: 0; 1692 position: fixed; 1693 right: 30px; 1694 top: 30px; 1695 -webkit-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out; 1696 transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out; 1697 width: 45px; 1698 } 1699 1700 .admin-bar .wp-custom-header-video-button { 1701 top: 62px; 1702 } 1703 1704 .wp-custom-header-video-button:hover, 1705 .wp-custom-header-video-button:focus { 1706 border-color: rgba( 255, 255, 255, 0.5 ); 1707 background-color: rgba( 34, 34, 34, 0.8 ); 1708 color: #fff; 1709 } 1710 1683 1711 .has-header-image:not(.twentyseventeen-front-page):not(.home) .custom-header-image img { 1684 1712 bottom: 0; 1685 1713 position: absolute;