Ticket #40184: 40184.diff
File 40184.diff, 2.2 KB (added by , 8 years ago) |
---|
-
src/wp-content/themes/twentyseventeen/functions.php
542 542 add_filter( 'frontpage_template', 'twentyseventeen_front_page_template' ); 543 543 544 544 /** 545 * Modifies tag cloud widget arguments to have all tags in the widget same font size and use list format for better accessibility. 546 * 547 * @since Twenty Seventeen 1.2 548 * 549 * @param array $args Arguments for tag cloud widget. 550 * @return array A new modified arguments. 551 */ 552 function twentyseventeen_widget_tag_cloud_args( $args ) { 553 $args['largest'] = 1; 554 $args['smallest'] = 1; 555 $args['unit'] = 'em'; 556 $args['format'] = 'list'; 557 return $args; 558 } 559 add_filter( 'widget_tag_cloud_args', 'twentyseventeen_widget_tag_cloud_args' ); 560 561 /** 545 562 * Implement the Custom Header feature. 546 563 */ 547 564 require get_parent_theme_file_path( '/inc/custom-header.php' ); -
src/wp-content/themes/twentyseventeen/style.css
2538 2538 padding: 0.5em 0; 2539 2539 } 2540 2540 2541 .widget ul li + li {2541 .widget:not(.widget_tag_cloud) ul li + li { 2542 2542 margin-top: -1px; 2543 2543 } 2544 2544 … … 2695 2695 2696 2696 /* Tag cloud widget */ 2697 2697 2698 .tagcloud ul li { 2699 float: left; 2700 border-top: 0; 2701 border-bottom: 0; 2702 padding: 0; 2703 margin: 4px 4px 0 0; 2704 } 2705 2698 2706 .tagcloud, 2699 2707 .widget_tag_cloud, 2700 2708 .wp_widget_tag_cloud { … … 2707 2715 border: 1px solid #ddd; 2708 2716 -webkit-box-shadow: none; 2709 2717 box-shadow: none; 2710 display: inline-block; 2711 float: left; 2712 font-size: 14px !important; /* !important to overwrite inline styles */ 2713 font-size: 0.875rem !important; 2714 margin: 4px 4px 0 0 !important; 2715 padding: 4px 10px 5px !important; 2718 display: block; 2719 padding: 4px 10px 5px; 2716 2720 position: relative; 2717 2721 -webkit-transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out; 2718 2722 transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out, color 0.3s ease-in-out;