themes-wordpress/intergalactic-2/inc/jetpack-fonts.php
2018-02-27 14:20:25 +11:00

643 lines
15 KiB
PHP

<?php
add_filter( 'typekit_add_font_category_rules', function( $category_rules ) {
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' => 'Lato, Helvetica, sans-serif' ),
array( 'property' => 'font-size', 'value' => '18px' ),
array( 'property' => 'font-weight', 'value' => '300' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h1,
h2,
h3,
h4,
h5,
h6',
array(
array( 'property' => 'font-family', 'value' => 'Lato, Helvetica, sans-serif' ),
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h1',
array(
array( 'property' => 'font-size', 'value' => '2.333em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h2',
array(
array( 'property' => 'font-size', 'value' => '1.667em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h3',
array(
array( 'property' => 'font-size', 'value' => '1.333em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h4',
array(
array( 'property' => 'font-size', 'value' => '1.11em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h5',
array(
array( 'property' => 'font-size', 'value' => '1em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h6',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
)
);
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-size', 'value' => '1.11em' ),
array( 'property' => 'font-style', 'value' => 'italic' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'none',
'pre',
array(
array( 'property' => 'font-family', 'value' => '"Courier 10 Pitch", Courier, monospace' ),
array( 'property' => 'font-size', 'value' => '15px' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'none',
'code,
kbd,
tt,
var',
array(
array( 'property' => 'font-size', 'value' => '15px' ),
array( 'property' => 'font-family', 'value' => 'Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace' ),
)
);
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',
'dt',
array(
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'th',
array(
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'button,
input[type="button"],
input[type="reset"],
input[type="submit"]',
array(
array( 'property' => 'font-size', 'value' => '18px' ),
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'none',
'.search-form label:before',
array(
array( 'property' => 'font-family', 'value' => 'Genericons' ),
array( 'property' => 'font-size', 'value' => '16px' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.main-navigation li li',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.main-navigation li li li',
array(
array( 'property' => 'font-size', 'value' => 'inherit' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'none',
'.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, 'headings',
'.widget-title',
array(
array( 'property' => 'font-size', 'value' => '1.333em' ),
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'#wp-calendar caption',
array(
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.site-title',
array(
array( 'property' => 'font-size', 'value' => '1.667em' ),
array( 'property' => 'font-family', 'value' => 'Lato, Helvetica, sans-serif' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.site-description',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
array( 'property' => 'font-weight', 'value' => '300' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.entry-title,
.page-title',
array(
array( 'property' => 'font-size', 'value' => '1.667em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.page-title',
array(
array( 'property' => 'font-size', 'value' => '1.11em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.entry-footer,
.entry-meta',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.entry-categories,
.entry-tags',
array(
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.entry-footer a,
.entry-meta a',
array(
array( 'property' => 'font-weight', 'value' => 'normal' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.archive .entry-content,
.archive .entry-summary,
.blog .entry-content,
.blog .entry-summary,
.search .entry-content,
.search .entry-summary',
array(
array( 'property' => 'font-size', 'value' => '1em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'a.more-link',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.entry-author',
array(
array( 'property' => 'font-size', 'value' => '1em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.site-info',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.error404 .site-title,
.search-no-results .site-title,
.singular .site-title',
array(
array( 'property' => 'font-size', 'value' => '1.11em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.singular .entry-title',
array(
array( 'property' => 'font-size', 'value' => '1.667em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.entry-format',
array(
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'none',
'.format-link .entry-title a:after',
array(
array( 'property' => 'font-family', 'value' => 'Genericons' ),
array( 'property' => 'font-size', 'value' => '48px' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.comment-reply-title,
.comments-title',
array(
array( 'property' => 'font-size', 'value' => '1.667em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.comment-author .fn',
array(
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.comment-metadata',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.comment-reply-link',
array(
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.no-comments',
array(
array( 'property' => 'font-style', 'value' => 'italic' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'#infinite-handle span',
array(
array( 'property' => 'font-size', 'value' => '1.11em' ),
array( 'property' => 'font-weight', 'value' => 'bold' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.gallery-caption',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h1',
array(
array( 'property' => 'font-size', 'value' => '4.44em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h2',
array(
array( 'property' => 'font-size', 'value' => '1.667em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h3',
array(
array( 'property' => 'font-size', 'value' => '1.333em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h4',
array(
array( 'property' => 'font-size', 'value' => '1.11em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h5',
array(
array( 'property' => 'font-size', 'value' => '1em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h6',
array(
array( 'property' => 'font-size', 'value' => '0.778em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.site-title',
array(
array( 'property' => 'font-size', 'value' => '2.333em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.site-description',
array(
array( 'property' => 'font-size', 'value' => '1.333em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.entry-title',
array(
array( 'property' => 'font-size', 'value' => '2.333em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.page-title',
array(
array( 'property' => 'font-size', 'value' => '2.333em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.entry-author',
array(
array( 'property' => 'font-size', 'value' => '1.11em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.singular .entry-title',
array(
array( 'property' => 'font-size', 'value' => '2.333em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.archive .entry-content,
.archive .entry-summary,
.blog .entry-content,
.blog .entry-summary,
.search .entry-content,
.search .entry-summary',
array(
array( 'property' => 'font-size', 'value' => '1.11em' ),
),
array(
'screen and (min-width: 768px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h1',
array(
array( 'property' => 'font-size', 'value' => '5.55em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h2',
array(
array( 'property' => 'font-size', 'value' => '2.333em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h3',
array(
array( 'property' => 'font-size', 'value' => '1.667em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'h4',
array(
array( 'property' => 'font-size', 'value' => '1.11em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'blockquote',
array(
array( 'property' => 'font-size', 'value' => '1.333em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.site-title',
array(
array( 'property' => 'font-size', 'value' => '5.55em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.site-description',
array(
array( 'property' => 'font-size', 'value' => '1.667em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
'.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation',
array(
array( 'property' => 'font-size', 'value' => '1.11em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.error404 .site-title,
.search-no-results .site-title,
.singular .site-title',
array(
array( 'property' => 'font-size', 'value' => '1.667em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
TypekitTheme::add_font_category_rule( $category_rules, 'headings',
'.singular .entry-title',
array(
array( 'property' => 'font-size', 'value' => '4.44em' ),
),
array(
'screen and (min-width: 1060px)',
)
);
return $category_rules;
} );