|
@@ -0,0 +1,768 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+add_filter( 'typekit_add_font_category_rules', function( $category_rules ) {
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'a,
|
|
|
+ abbr,
|
|
|
+ acronym,
|
|
|
+ address,
|
|
|
+ applet,
|
|
|
+ big,
|
|
|
+ blockquote,
|
|
|
+ body,
|
|
|
+ caption,
|
|
|
+ cite,
|
|
|
+ code,
|
|
|
+ dd,
|
|
|
+ del,
|
|
|
+ dfn,
|
|
|
+ div,
|
|
|
+ dl,
|
|
|
+ dt,
|
|
|
+ em,
|
|
|
+ fieldset,
|
|
|
+ font,
|
|
|
+ form,
|
|
|
+ h3,
|
|
|
+ h5,
|
|
|
+ html,
|
|
|
+ iframe,
|
|
|
+ ins,
|
|
|
+ kbd,
|
|
|
+ label,
|
|
|
+ legend,
|
|
|
+ li,
|
|
|
+ object,
|
|
|
+ ol,
|
|
|
+ p,
|
|
|
+ pre,
|
|
|
+ q,
|
|
|
+ s,
|
|
|
+ samp,
|
|
|
+ small,
|
|
|
+ span,
|
|
|
+ strike,
|
|
|
+ strong,
|
|
|
+ sub,
|
|
|
+ sup,
|
|
|
+ table,
|
|
|
+ tbody,
|
|
|
+ td,
|
|
|
+ tfoot,
|
|
|
+ th,
|
|
|
+ thead,
|
|
|
+ tr,
|
|
|
+ tt,
|
|
|
+ ul,
|
|
|
+ var',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'inherit' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'inherit' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'inherit' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ 'h1,
|
|
|
+ h1 a,
|
|
|
+ h2,
|
|
|
+ h2 a,
|
|
|
+ h4,
|
|
|
+ h4 a,
|
|
|
+ h6,
|
|
|
+ h6 a',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'inherit' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '100%' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'inherit' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'inherit' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'caption,
|
|
|
+ td,
|
|
|
+ th',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'body,
|
|
|
+ button,
|
|
|
+ input,
|
|
|
+ select,
|
|
|
+ textarea',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => '"Libre Baskerville", Baskerville, "Book Antiqua", Georgia, Times, serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '18px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ 'h1',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => '"Playfair Display", Georgia, serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '44px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ 'h2',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '21px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ 'h3',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '25px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ 'h4',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '16px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ 'h5',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '21px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ 'h6',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'b,
|
|
|
+ strong',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'bold' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'cite,
|
|
|
+ dfn,
|
|
|
+ em,
|
|
|
+ i',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'blockquote',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => '"Playfair Display", Georgia, serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '36px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'blockquote::before',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '208px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'blockquote cite',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '16px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'blockquote.alignleft,
|
|
|
+ blockquote.alignright',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '27px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'sub,
|
|
|
+ sup',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '75%' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'small',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '75%' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'big',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '125%' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.wp-caption strong,
|
|
|
+ b em,
|
|
|
+ b i,
|
|
|
+ em b,
|
|
|
+ em strong,
|
|
|
+ i b,
|
|
|
+ i strong,
|
|
|
+ strong em,
|
|
|
+ strong i',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '0.8em' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'bold' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'b code,
|
|
|
+ em code,
|
|
|
+ i code,
|
|
|
+ strong code',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'dt',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'bold' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'table',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '0.85em' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'th',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'thead th',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'bold' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'button,
|
|
|
+ input,
|
|
|
+ select,
|
|
|
+ textarea',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '100%' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'input[type="email"],
|
|
|
+ input[type="password"],
|
|
|
+ input[type="search"],
|
|
|
+ input[type="text"],
|
|
|
+ input[type="url"],
|
|
|
+ textarea',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'button,
|
|
|
+ input[type="submit"]',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '12px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'label',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '18px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.post-password-form label',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '12px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'label span',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '0.9em' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ '.site-branding h1',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => '"Playfair Display"' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '36px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => '700' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ '.title-block h1',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#site-navigation .search-form .search-submit,
|
|
|
+ #site-navigation .search-form label',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '18px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#site-navigation .search-form label:hover',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#colophon .site-info',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '[class*="navigation"] .next a,
|
|
|
+ [class*="navigation"] .previous a',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.next .meta-nav,
|
|
|
+ .previous .meta-nav',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '12px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.next .meta-nav a,
|
|
|
+ .previous .meta-nav a',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.entry-meta',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ '.entry-title,
|
|
|
+ .entry-title a',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => '"Playfair Display"' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '44px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ '.emphasis:first-letter,
|
|
|
+ .format-standard:not(.post-password-required) .entry-content > p:not(.no-emphasis):first-of-type:first-letter,
|
|
|
+ .page:not(.post-password-required) .entry-content > p:not(.no-emphasis):first-of-type:first-letter',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => '"Playfair Display"' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '121px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => '700' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.emphasis:first-line,
|
|
|
+ .format-standard:not(.post-password-required) .entry-content > p:not(.no-emphasis):first-of-type:first-line,
|
|
|
+ .page:not(.post-password-required) .entry-content > p:not(.no-emphasis):first-of-type:first-line',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => '"Playfair Display SC"' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '1em' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal !important' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'bold' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.more-link,
|
|
|
+ .more-link:visited',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => '"Playfair Display"' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '21px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.more-link:after,
|
|
|
+ .more-link:before',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '1.5em' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.format-aside .entry-content',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '21px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.format-status',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '2rem' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.format-link .entry-content',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '21px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.password-protected .entry-content p',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '18px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.page-links',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '12px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.entry-footer',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.comment-list .comment-metadata,
|
|
|
+ .comment-list .fn',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.says',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.comment-content',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '0.9em' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.comment-reply-link',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.pingback',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '0.85em' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.form-allowed-tags,
|
|
|
+ .form-allowed-tags code',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '0.8em' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#footer-sidebar .widget-block',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '12px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.error404 .widget',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ '.error404 .widgettitle',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '16px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ '.widget-title',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#wp-calendar caption',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '12px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#wp-calendar td a',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'bold' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.screen-reader-text:active,
|
|
|
+ .screen-reader-text:focus,
|
|
|
+ .screen-reader-text:hover',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'bold' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#infinite-handle span',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-family', 'value' => 'Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif' ),
|
|
|
+ array( 'property' => 'font-size', 'value' => '12px' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.sharedaddy .sd-title',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'normal' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.wp-caption-text',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '16px' ),
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.gallery-caption',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '12px' ),
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'body',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '16px' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#content',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '16px' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ 'blockquote',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '24px' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.more-link',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '16px' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.entry-meta,
|
|
|
+ .title-block .entry-meta',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '14px' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ '.title-block h3',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '18px' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'headings',
|
|
|
+ '.entry-title,
|
|
|
+ .entry-title a,
|
|
|
+ .title-block h1',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '28px' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '.menu-toggle',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '21px' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#site-navigation',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '16px' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '#site-navigation .sub-menu li',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '0.8em' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '[class*="navigation"] .page-number',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-size', 'value' => '20px' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'bolder' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
|
|
|
+ '[class*="navigation"] .page-number span',
|
|
|
+ array(
|
|
|
+ array( 'property' => 'font-style', 'value' => 'italic' ),
|
|
|
+ array( 'property' => 'font-weight', 'value' => 'normal' ),
|
|
|
+ ),
|
|
|
+ array(
|
|
|
+ 'only screen and (max-width: 640px)',
|
|
|
+ )
|
|
|
+ );
|
|
|
+
|
|
|
+ return $category_rules;
|
|
|
+} );
|