Changeset 38999
- Timestamp:
- 10/28/2016 09:52:38 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/inc/color-patterns.php
r38996 r38999 12 12 */ 13 13 function twentyseventeen_custom_colors_css() { 14 $hue = get_theme_mod( 'colorscheme_hue', 250);14 $hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) ); 15 15 16 16 /** … … 21 21 * @param $saturation integer 22 22 */ 23 $saturation = a pply_filters( 'twentyseventeen_custom_colors_saturation', 50);23 $saturation = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) ); 24 24 $reduced_saturation = ( .8 * $saturation ) . '%'; 25 25 $saturation = $saturation . '%'; … … 87 87 .colors-custom .widget ul li a:focus, 88 88 .colors-custom .widget ul li a:hover { 89 color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 0% ); /* base: #000; */89 color: hsl( ' . $hue . ', ' . $saturation . ', 0% ); /* base: #000; */ 90 90 } 91 91 … … 96 96 .colors-custom .posts-navigation a, 97 97 .colors-custom .widget_authors a strong { 98 -webkit-box-shadow: inset 0 -1px 0 hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 6% ); /* base: rgba(15, 15, 15, 1); */99 box-shadow: inset 0 -1px 0 hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 6% ); /* base: rgba(15, 15, 15, 1); */98 -webkit-box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */ 99 box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */ 100 100 } 101 101 … … 104 104 .colors-custom input[type="submit"], 105 105 .colors-custom .entry-footer .edit-link a.post-edit-link { 106 background-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 13% ); /* base: #222; */106 background-color: hsl( ' . $hue . ', ' . $saturation . ', 13% ); /* base: #222; */ 107 107 } 108 108 … … 146 146 .colors-custom .site-content .site-content-light, 147 147 .colors-custom .twentyseventeen-panel .recent-posts .entry-header .edit-link { 148 color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 13% ); /* base: #222; */148 color: hsl( ' . $hue . ', ' . $saturation . ', 13% ); /* base: #222; */ 149 149 } 150 150 … … 201 201 .colors-custom .widget ul li a:focus, 202 202 .colors-custom .widget ul li a:hover { 203 -webkit-box-shadow: inset 0 0 0 hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ) . ', 13% ), 0 3px 0 hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 13% );204 box-shadow: inset 0 0 0 hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ) . ', 13% ), 0 3px 0 hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 13% );203 -webkit-box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation . ', 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% ); 204 box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation. ' , 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% ); 205 205 } 206 206 … … 222 222 .colors-custom .comment-body, 223 223 .colors-custom .site-content .wp-playlist-light .wp-playlist-current-item .wp-playlist-item-album { 224 color: hsl( ' . esc_attr( $hue ). ', ' . $reduced_saturation . ', 20% ); /* base: #333; */224 color: hsl( ' . $hue . ', ' . $reduced_saturation . ', 20% ); /* base: #333; */ 225 225 } 226 226 227 227 .colors-custom .social-navigation a:hover, 228 228 .colors-custom .social-navigation a:focus { 229 background: hsl( ' . esc_attr( $hue ). ', ' . $reduced_saturation . ', 20% ); /* base: #333; */229 background: hsl( ' . $hue . ', ' . $reduced_saturation . ', 20% ); /* base: #333; */ 230 230 } 231 231 … … 247 247 .colors-custom textarea:focus, 248 248 .bypostauthor > .comment-body > .comment-meta > .comment-author .avatar { 249 border-color: hsl( ' . esc_attr( $hue ). ', ' . $reduced_saturation . ', 20% ); /* base: #333; */249 border-color: hsl( ' . $hue . ', ' . $reduced_saturation . ', 20% ); /* base: #333; */ 250 250 } 251 251 … … 275 275 .colors-custom .wp-caption, 276 276 .colors-custom .gallery-caption { 277 color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 40% ); /* base: #666; */277 color: hsl( ' . $hue . ', ' . $saturation . ', 40% ); /* base: #666; */ 278 278 } 279 279 280 280 .colors-custom abbr, 281 281 .colors-custom acronym { 282 border-bottom-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 40% ); /* base: #666; */282 border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 40% ); /* base: #666; */ 283 283 } 284 284 … … 300 300 .colors-custom .main-navigation a:hover, 301 301 .colors-custom .site-content .wp-playlist-light .wp-playlist-current-item .wp-playlist-item-artist { 302 color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 46% ); /* base: #767676; */302 color: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */ 303 303 } 304 304 … … 333 333 .colors-custom input[type="submit"].secondary:focus, 334 334 .colors-custom hr { 335 background: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 73% ); /* base: #bbb; */335 background: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */ 336 336 } 337 337 … … 360 360 .colors-custom .wp_widget_tag_cloud a:hover, 361 361 .colors-custom .wp_widget_tag_cloud a:focus { 362 border-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 73% ); /* base: #bbb; */362 border-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */ 363 363 } 364 364 365 365 .colors-custom thead th { 366 border-bottom-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 73% ); /* base: #bbb; */366 border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */ 367 367 } 368 368 369 369 .colors-custom .entry-footer .cat-links .icon, 370 370 .colors-custom .entry-footer .tags-links .icon { 371 color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 73% ); /* base: #bbb; */371 color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */ 372 372 } 373 373 … … 379 379 .colors-custom .prev.page-numbers, 380 380 .colors-custom .next.page-numbers { 381 background-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 87% ); /* base: #ddd; */381 background-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */ 382 382 } 383 383 … … 385 385 .colors-custom .widget.widget_tag_cloud a, 386 386 .colors-custom .wp_widget_tag_cloud a { 387 border-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 87% ); /* base: #ddd; */387 border-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */ 388 388 } 389 389 390 390 .colors-custom.twentyseventeen-front-page article:not(.has-post-thumbnail):not(:first-child), 391 391 .colors-custom .widget ul li { 392 border-top-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 87% ); /* base: #ddd; */392 border-top-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */ 393 393 } 394 394 395 395 .colors-custom .widget ul li { 396 border-bottom-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 87% ); /* base: #ddd; */396 border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */ 397 397 } 398 398 … … 400 400 .colors-custom mark, 401 401 .colors-custom ins { 402 background: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 93% ); /* base: #eee; */402 background: hsl( ' . $hue . ', ' . $saturation . ', 93% ); /* base: #eee; */ 403 403 } 404 404 … … 409 409 .colors-custom .entry-footer, 410 410 .colors-custom .site-footer { 411 border-top-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 93% ); /* base: #eee; */411 border-top-color: hsl( ' . $hue . ', ' . $saturation . ', 93% ); /* base: #eee; */ 412 412 } 413 413 … … 418 418 .colors-custom .site-content .wp-playlist-light .wp-playlist-item, 419 419 .colors-custom tr { 420 border-bottom-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 93% ); /* base: #eee; */420 border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 93% ); /* base: #eee; */ 421 421 } 422 422 423 423 .colors-custom .site-content .wp-playlist-light { 424 border-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 93% ); /* base: #eee; */424 border-color: hsl( ' . $hue . ', ' . $saturation . ', 93% ); /* base: #eee; */ 425 425 } 426 426 427 427 .colors-custom .site-header, 428 428 .colors-custom .single-featured-image-header { 429 background-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 98% ); /* base: #fafafa; */429 background-color: hsl( ' . $hue . ', ' . $saturation . ', 98% ); /* base: #fafafa; */ 430 430 } 431 431 … … 447 447 .colors-custom.has-header-image .site-title a, 448 448 .colors-custom.has-header-image .site-description { 449 color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 100% ); /* base: #fff; */449 color: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */ 450 450 } 451 451 … … 453 453 .colors-custom .navigation-top, 454 454 .colors-custom .main-navigation ul { 455 background: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 100% ); /* base: #fff; */455 background: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */ 456 456 } 457 457 458 458 .colors-custom .widget ul li a, 459 459 .colors-custom .site-footer .widget-area ul li a { 460 -webkit-box-shadow: inset 0 -1px 0 hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 100% ); /* base: rgba(255, 255, 255, 1); */461 box-shadow: inset 0 -1px 0 hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 100% ); /* base: rgba(255, 255, 255, 1); */460 -webkit-box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: rgba(255, 255, 255, 1); */ 461 box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: rgba(255, 255, 255, 1); */ 462 462 } 463 463 … … 515 515 .colors-custom .nav-links .nav-previous .nav-title .icon, 516 516 .colors-custom .nav-links .nav-next .nav-title .icon { 517 color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 20% ); /* base: #222; */517 color: hsl( ' . $hue . ', ' . $saturation . ', 20% ); /* base: #222; */ 518 518 } 519 519 520 520 .colors-custom .main-navigation li li:hover, 521 521 .colors-custom .main-navigation li li.focus { 522 background: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 46% ); /* base: #767676; */522 background: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */ 523 523 } 524 524 525 525 .colors-custom .navigation-top .menu-scroll-down { 526 color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 46% ); /* base: #767676; */;526 color: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */; 527 527 } 528 528 529 529 .colors-custom abbr[title] { 530 border-bottom-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 46% ); /* base: #767676; */;530 border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */; 531 531 } 532 532 533 533 .colors-custom .main-navigation ul ul { 534 border-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 73% ); /* base: #bbb; */535 background: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 100% ); /* base: #fff; */534 border-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */ 535 background: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */ 536 536 } 537 537 538 538 .colors-custom .main-navigation ul li.menu-item-has-children:before, 539 539 .colors-custom .main-navigation ul li.page_item_has_children:before { 540 border-bottom-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 73% ); /* base: #bbb; */540 border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */ 541 541 } 542 542 543 543 .colors-custom .main-navigation ul li.menu-item-has-children:after, 544 544 .colors-custom .main-navigation ul li.page_item_has_children:after { 545 border-bottom-color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 100% ); /* base: #fff; */545 border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */ 546 546 } 547 547 … … 555 555 .colors-custom .main-navigation li li.current_page_item a:focus, 556 556 .colors-custom .main-navigation li li.current-menu-item a:focus { 557 color: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ). ', 100% ); /* base: #fff; */557 color: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */ 558 558 } 559 559 }';
Note: See TracChangeset
for help on using the changeset viewer.