Ticket #25640: 25640.diff
File 25640.diff, 9.3 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentyfourteen/editor-style.css
278 278 279 279 a:active, 280 280 a:hover { 281 color: #5 ff23d;281 color: #55d737; 282 282 outline: 0; 283 283 } 284 284 -
wp-content/themes/twentyfourteen/inc/customizer.php
55 55 function twentyfourteen_generate_accent_colors( $color ) { 56 56 $color = sanitize_hex_color( $color ); 57 57 58 set_theme_mod( 'accent_lighter', twentyfourteen_adjust_color( $color, 14) );59 set_theme_mod( 'accent_much_lighter', twentyfourteen_adjust_color( $color, 71) );58 set_theme_mod( 'accent_lighter', twentyfourteen_adjust_color( $color, 29 ) ); 59 set_theme_mod( 'accent_much_lighter', twentyfourteen_adjust_color( $color, 49 ) ); 60 60 61 61 return $color; 62 62 } … … 115 115 $accent_much_lighter = get_theme_mod( 'accent_much_lighter' ); 116 116 117 117 $css = '/* Custom accent color. */ 118 h1 a:hover,119 h2 a:hover,120 h3 a:hover,121 h4 a:hover,122 h5 a:hover,123 h6 a:hover,124 118 a, 125 .entry-title a:hover,126 .cat-links a:hover,127 .site-content .post-navigation a:hover,128 .site-content .image-navigation a:hover,129 .comment-author a:hover,130 .comment-metadata a:hover,131 .comment-list .trackback a:hover,132 .comment-list .pingback a:hover,133 119 .paging-navigation .page-numbers.current, 134 .content-sidebar.widget-area a:hover,135 120 .content-sidebar .widget_twentyfourteen_ephemera .post-format-archive-link { 136 121 color: ' . $accent_color . '; 137 122 } 138 123 139 124 button, 140 html input[type="button"], 125 .contributor-posts-link, 126 input[type="button"], 141 127 input[type="reset"], 142 128 input[type="submit"], 143 .hentry .mejs-controls .mejs-time-rail .mejs-time-current,144 129 .header-extra, 145 130 .search-toggle, 146 131 .primary-navigation ul ul, 147 132 .primary-navigation li:hover > a, 148 . page-links a:hover,133 .hentry .mejs-controls .mejs-time-rail .mejs-time-current, 149 134 .widget_calendar tbody a { 150 135 background-color: ' . $accent_color . '; 151 136 } … … 158 143 background: ' . $accent_color . '; 159 144 } 160 145 161 .page-links a:hover,162 146 .paging-navigation .page-numbers.current { 163 147 border-color: ' . $accent_color . '; 164 148 } 165 149 166 150 /* Generated variant of custom accent color: slightly lighter. */ 167 .search-toggle:hover,168 .search-toggle.active,169 .search-box,170 151 button:hover, 171 html input[type="button"]:hover, 152 button:focus, 153 .contributor-posts-link:hover, 154 input[type="button"]:hover, 155 input[type="button"]:focus, 172 156 input[type="reset"]:hover, 157 input[type="reset"]:focus, 173 158 input[type="submit"]:hover, 174 button:focus,175 html input[type="button"]:focus,176 input[type="reset"]:focus,177 159 input[type="submit"]:focus, 160 .search-toggle:hover, 161 .search-toggle.active, 162 .search-box, 178 163 .widget_calendar tbody a:hover { 179 164 background-color: ' . $accent_lighter . '; 180 165 } 181 166 182 167 /* Generated variant of custom accent color: much lighter. */ 183 168 button:active, 184 html input[type="button"]:active, 169 .contributor-posts-link:active, 170 input[type="button"]:active, 185 171 input[type="reset"]:active, 186 input[type="submit"]:active { 172 input[type="submit"]:active, 173 .page-links a:hover { 187 174 background-color: ' . $accent_much_lighter . '; 188 175 } 189 176 190 177 a:hover, 191 178 a:focus, 192 179 a:active, 193 . primary-navigation li.current_page_item > a,194 . primary-navigation li.current-menu-item > a,180 .site-navigation .current_page_item > a, 181 .site-navigation .current-menu-item > a, 195 182 .secondary-navigation a:hover, 196 #secondary .current_page_item > a, 197 #secondary .current-menu-item > a, 198 .featured-content a:hover, 199 .featured-content .more-link, 200 .widget-area a:hover { 183 .entry-title a:hover, 184 .cat-links a:hover, 185 .post-navigation a:hover, 186 .image-navigation a:hover, 187 .comment-author a:hover, 188 .comment-list .pingback a:hover, 189 .comment-list .trackback a:hover, 190 .comment-metadata a:hover, 191 .footer-sidebar a:hover, 192 .primary-sidebar a:hover, 193 .content-sidebar .widget_twentyfourteen_ephemera .post-format-archive-link:hover, 194 .featured-content a:hover { 201 195 color: ' . $accent_much_lighter . '; 196 } 197 198 .page-links a:hover, 199 .paging-navigation a:hover { 200 border-color: ' . $accent_much_lighter . '; 202 201 }'; 203 202 204 203 wp_add_inline_style( 'twentyfourteen-style', $css ); -
wp-content/themes/twentyfourteen/style.css
129 129 a:hover, 130 130 a:focus, 131 131 a:active { 132 color: #5 ff23d;132 color: #55d737; 133 133 } 134 134 135 135 h1, … … 404 404 input[type="radio"], 405 405 input[type="reset"], 406 406 input[type="search"], 407 input[type="submit"] 407 input[type="submit"], 408 408 input[type="text"], 409 409 input[type="url"], 410 410 textarea { … … 478 478 input[type="reset"]:focus, 479 479 input[type="submit"]:hover, 480 480 input[type="submit"]:focus { 481 background-color: # 35921f;481 background-color: #41a62a; 482 482 color: #fff; 483 483 } 484 484 … … 487 487 input[type="button"]:active, 488 488 input[type="reset"]:active, 489 489 input[type="submit"]:active { 490 background-color: #5 ff23d;490 background-color: #55d737; 491 491 } 492 492 493 493 /* Input Fields */ … … 830 830 831 831 .search-toggle:hover, 832 832 .search-toggle.active { 833 background-color: # 35921f;833 background-color: #41a62a; 834 834 } 835 835 836 836 .search-toggle:before { … … 857 857 } 858 858 859 859 .search-box { 860 background-color: # 35921f;860 background-color: #41a62a; 861 861 } 862 862 863 863 .search-box .search-field { … … 898 898 899 899 .site-navigation .current_page_item > a, 900 900 .site-navigation .current-menu-item > a { 901 color: #5 ff23d;901 color: #55d737; 902 902 } 903 903 904 904 .site-navigation ul { … … 997 997 } 998 998 999 999 .secondary-navigation a:hover { 1000 color: #5 ff23d;1000 color: #55d737; 1001 1001 } 1002 1002 1003 1003 .secondary-navigation ul { … … 1187 1187 } 1188 1188 1189 1189 .entry-title a:hover { 1190 color: # 24890d;1190 color: #55d737; 1191 1191 } 1192 1192 1193 1193 … … 1233 1233 } 1234 1234 1235 1235 .cat-links a:hover { 1236 color: # 24890d;1236 color: #55d737; 1237 1237 } 1238 1238 1239 1239 .byline { … … 1440 1440 } 1441 1441 1442 1442 .page-links a:hover { 1443 background: # 24890d;1444 border: 1px solid # 24890d;1443 background: #55d737; 1444 border: 1px solid #55d737; 1445 1445 color: #fff; 1446 1446 } 1447 1447 … … 1686 1686 1687 1687 .post-navigation a:hover, 1688 1688 .image-navigation a:hover { 1689 color: # 24890d;1689 color: #55d737; 1690 1690 } 1691 1691 1692 1692 /* Paging Navigation */ … … 1722 1722 1723 1723 .paging-navigation a:hover { 1724 1724 background-color: #f5f5f5; 1725 border-top: 5px solid # 24890d;1725 border-top: 5px solid #55d737; 1726 1726 color: #2b2b2b; 1727 1727 } 1728 1728 … … 1910 1910 .comment-list .pingback a:hover, 1911 1911 .comment-list .trackback a:hover, 1912 1912 .comment-metadata a:hover { 1913 color: # 24890d;1913 color: #55d737; 1914 1914 text-decoration: none; 1915 1915 } 1916 1916 … … 1964 1964 padding-left: 36px; 1965 1965 } 1966 1966 1967 1968 1969 1967 .comment-edit-link { 1970 1968 margin-left: 10px; 1971 1969 } … … 2032 2030 display: block; 2033 2031 } 2034 2032 2035 .comment-form input[type=text] { 2033 .comment-form input[type="text"], 2034 .comment-form input[type="email"], 2035 .comment-form input[type="url"] { 2036 2036 width: 100%; 2037 2037 } 2038 2038 … … 2071 2071 * ----------------------------------------------------------------------------- 2072 2072 */ 2073 2073 2074 /* Primary Sidebar */2074 /* Primary Sidebar, Footer Sidebar */ 2075 2075 2076 2076 #secondary { 2077 2077 background-color: #000; … … 2096 2096 padding-top: 48px; 2097 2097 } 2098 2098 2099 .widget-area p { 2100 margin-bottom: 18px; 2101 } 2102 2103 .widget-area a { 2099 .footer-sidebar a, 2100 .primary-sidebar a { 2104 2101 color: rgba(255, 255, 255, 0.75); 2105 2102 } 2106 2103 2107 .widget-area a:hover { 2108 color: #5ff23d; 2104 .footer-sidebar a:hover, 2105 .primary-sidebar a:hover { 2106 color: #55d737; 2109 2107 } 2110 2108 2111 .widget-area .widget-title, 2112 .widget-area .widget-title a, 2113 .widget-area .widget-title a:hover { 2109 .footer-sidebar .widget-title, 2110 .footer-sidebar .widget-title a, 2111 .footer-sidebar .widget-title a:hover, 2112 .primary-sidebar .widget-title, 2113 .primary-sidebar .widget-title a, 2114 .primary-sidebar .widget-title a:hover { 2114 2115 color: #fff; 2115 2116 } 2116 2117 … … 2130 2131 position: relative; 2131 2132 } 2132 2133 2133 .content-sidebar.widget-area a {2134 color: #2b2b2b;2135 }2136 2134 2137 .content-sidebar.widget-area a:hover {2138 color: #24890d;2139 }2140 2141 2142 2135 /** 2143 2136 * 7.1 Widgets 2144 2137 * ----------------------------------------------------------------------------- … … 2150 2143 overflow: hidden; 2151 2144 } 2152 2145 2146 .widget p { 2147 margin-bottom: 18px; 2148 } 2149 2153 2150 .widget ul, 2154 2151 .widget ol { 2155 2152 list-style: none; … … 2234 2231 } 2235 2232 2236 2233 .widget_calendar tbody a:hover { 2237 background-color: # 35921f;2234 background-color: #41a62a; 2238 2235 } 2239 2236 2240 .widget-area .widget_calendar tbody a:hover {2241 color: #fff; /* Override custom accent color with more specific selector. */2242 }2243 2244 2237 .widget_calendar #prev { 2245 2238 padding-left: 5px; 2246 2239 } … … 2445 2438 background-color: rgba(0, 0, 0, 0.02); 2446 2439 } 2447 2440 2448 .content-sidebar .widget_calendar tbody a, 2449 .content-sidebar.widget-area .widget_calendar tbody a:hover { 2450 color: #fff; /* Override custom accent color with more specific selector. */ 2451 } 2441 /* Ephemera widget*/ 2452 2442 2453 /* Ephemera widget*/2454 2443 .content-sidebar .widget_twentyfourteen_ephemera .widget-title { 2455 2444 line-height: 1.2857142857; 2456 2445 padding-top: 1px; … … 2526 2515 } 2527 2516 2528 2517 .content-sidebar .widget_twentyfourteen_ephemera .post-format-archive-link:hover { 2529 color: #5 ff23d;2518 color: #55d737; 2530 2519 } 2531 2520 2532 2521 … … 2615 2604 } 2616 2605 2617 2606 .featured-content a:hover { 2618 color: #5 ff23d;2607 color: #55d737; 2619 2608 } 2620 2609 2621 2610 .featured-content .entry-meta {