123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539 |
- <?php
- add_filter( 'typekit_add_font_category_rules', function( $category_rules ) {
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- 'body',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' ),
- array( 'property' => 'font-size', 'value' => '18px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- 'h1,
- h2,
- h3,
- h4,
- h5,
- h6',
- array(
- array( 'property' => 'font-family', 'value' => '"Noto Serif", Georgia, serif' ),
- array( 'property' => 'font-weight', 'value' => '700' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- 'h1',
- array(
- array( 'property' => 'font-size', 'value' => '50px' ),
- array( 'property' => 'font-weight', 'value' => '700' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- 'h2',
- array(
- array( 'property' => 'font-size', 'value' => '26px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- 'h3',
- array(
- array( 'property' => 'font-size', 'value' => '22px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- 'h4',
- array(
- array( 'property' => 'font-size', 'value' => '20px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- 'h5',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' ),
- array( 'property' => 'font-size', 'value' => '17px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- 'h6',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' ),
- array( 'property' => 'font-size', 'value' => '15px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- 'blockquote',
- array(
- array( 'property' => 'font-family', 'value' => '"Noto Serif", Georgia, serif' ),
- array( 'property' => 'font-size', 'value' => '1.05em' ),
- array( 'property' => 'font-style', 'value' => 'italic' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- 'blockquote cite',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' ),
- array( 'property' => 'font-size', 'value' => '0.9em' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- 'blockquote blockquote',
- array(
- array( 'property' => 'font-size', 'value' => '1em' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- 'code,
- kbd,
- pre,
- tt,
- var',
- array(
- array( 'property' => 'font-family', 'value' => '"Lucida Console", Monaco, "Courier New", monospace' ),
- array( 'property' => 'font-style', 'value' => 'normal' ),
- array( 'property' => 'font-weight', 'value' => '400' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '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, 'body-text',
- 'pre:before',
- array(
- array( 'property' => 'font-size', 'value' => '18px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- 'button,
- input,
- select,
- textarea',
- array(
- array( 'property' => 'font-size', 'value' => '16px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- 'button,
- input[type="submit"]',
- array(
- array( 'property' => 'font-size', 'value' => '14px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.site-title',
- array(
- array( 'property' => 'font-size', 'value' => '30px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.site-description',
- array(
- array( 'property' => 'font-size', 'value' => '16px' ),
- array( 'property' => 'font-weight', 'value' => '300' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '#site-navigation',
- array(
- array( 'property' => 'font-size', 'value' => '15px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.menu-toggle',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '#site-navigation ul ul li',
- array(
- array( 'property' => 'font-size', 'value' => '14px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.site-banner-header .banner-featured',
- array(
- array( 'property' => 'font-size', 'value' => '13px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.site-banner h1',
- array(
- array( 'property' => 'font-size', 'value' => '45px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.site-banner .slick-next,
- .site-banner .slick-prev',
- array(
- array( 'property' => 'font-size', 'value' => '1em' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.comment-body h1,
- .entry-content h1',
- array(
- array( 'property' => 'font-size', 'value' => '36px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.page-title h1',
- array(
- array( 'property' => 'font-size', 'value' => '40px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.posts .entry-title',
- array(
- array( 'property' => 'font-size', 'value' => '30px' ),
- array( 'property' => 'font-weight', 'value' => '700' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.link-more',
- array(
- array( 'property' => 'font-weight', 'value' => '400' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.link-more a',
- array(
- array( 'property' => 'font-size', 'value' => '14px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.is-singular:not(.home) .entry-meta',
- array(
- array( 'property' => 'font-size', 'value' => '15px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.entry-meta .cat-links',
- array(
- array( 'property' => 'font-size', 'value' => '13px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.is-singular .entry-posted',
- array(
- array( 'property' => 'font-size', 'value' => '16px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.page.is-singular .edit-link',
- array(
- array( 'property' => 'font-size', 'value' => '16px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.is-singular.no-post-thumbnail .entry-meta .cat-links,
- .is-singular.no-post-thumbnail .entry-posted',
- array(
- array( 'property' => 'font-size', 'value' => '15px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.is-singular .post-navigation .nav-links span',
- array(
- array( 'property' => 'font-size', 'value' => '13px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.author-link,
- .is-singular .post-navigation .nav-links span.nav-title',
- array(
- array( 'property' => 'font-family', 'value' => '"Noto Serif", Georgia, serif' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.is-singular .post-navigation .nav-links span.nav-subtitle',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.comments-area',
- array(
- array( 'property' => 'font-size', 'value' => '16px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.comments-title',
- array(
- array( 'property' => 'font-size', 'value' => '20px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.comments-title .add-comment-link',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' ),
- array( 'property' => 'font-size', 'value' => '14px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.comment-footer',
- array(
- array( 'property' => 'font-size', 'value' => '15px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.comment-footer .author.vcard',
- array(
- array( 'property' => 'font-size', 'value' => '16px' ),
- array( 'property' => 'font-weight', 'value' => 'bold' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- 'ol.children .comment-footer .author.vcard',
- array(
- array( 'property' => 'font-size', 'value' => '14px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '#commentform label',
- array(
- array( 'property' => 'font-size', 'value' => '13px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '#commentform input[type="submit"]',
- array(
- array( 'property' => 'font-size', 'value' => '13px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.comment-navigation a',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' ),
- array( 'property' => 'font-size', 'value' => '13px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '#infinite-handle span button,
- #infinite-handle span button:focus,
- #infinite-handle span button:hover,
- .posts-navigation a',
- array(
- array( 'property' => 'font-size', 'value' => '14px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.gallery-caption',
- array(
- array( 'property' => 'font-size', 'value' => '0.81em' ),
- array( 'property' => 'font-style', 'value' => 'italic' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.footer-bottom-info',
- array(
- array( 'property' => 'font-size', 'value' => '14px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.widget-title',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, Arial, sans-serif' ),
- array( 'property' => 'font-size', 'value' => '16px' ),
- array( 'property' => 'font-weight', 'value' => 'bold' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.widget h1,
- .widget h2,
- .widget h3,
- .widget h4,
- .widget h5,
- .widget h6',
- array(
- array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", Helvetica, sans-serif' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.widget .post-date,
- .widget .rss-date',
- array(
- array( 'property' => 'font-size', 'value' => '.81em' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.widget_calendar tr td#next,
- .widget_calendar tr td#prev',
- array(
- array( 'property' => 'font-size', 'value' => '15px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.is-singular.archive-eventbrite .entry-header h1',
- array(
- array( 'property' => 'font-size', 'value' => '40px' ),
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.site-banner h1',
- array(
- array( 'property' => 'font-size', 'value' => '52px' ),
- ),
- array(
- 'screen and (min-width: 1601px)',
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.site-banner h1',
- array(
- array( 'property' => 'font-size', 'value' => '40px' ),
- ),
- array(
- 'screen and (max-width: 1400px)',
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.site-banner h1',
- array(
- array( 'property' => 'font-size', 'value' => '35px' ),
- ),
- array(
- 'screen and (max-width: 1200px)',
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.site-banner h1',
- array(
- array( 'property' => 'font-size', 'value' => '22px' ),
- ),
- array(
- 'screen and (max-width: 680px)',
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
- '.posts .entry-inner-content',
- array(
- array( 'property' => 'font-size', 'value' => '16px' ),
- ),
- array(
- 'screen and (min-width: 1601px)',
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.is-singular .entry-header h1,
- .error404 .entry-header h1,
- .page-header h1,
- .page-template-eventbrite-index .page-header h1,
- .single-event .entry-header h1',
- array(
- array( 'property' => 'font-size', 'value' => '40px' ),
- ),
- array(
- 'screen and (max-width: 1200px)',
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.is-singular.archive-eventbrite .entry-header h1',
- array(
- array( 'property' => 'font-size', 'value' => '30px' ),
- ),
- array(
- 'screen and (max-width: 1200px)',
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.is-singular:not(.eventbrite-archive) .entry-header h1,
- .error404 .entry-header h1,
- .page-header h1',
- array(
- array( 'property' => 'font-size', 'value' => '35px' ),
- ),
- array(
- 'screen and (max-width: 960px)',
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.is-singular:not(.eventbrite-archive) .entry-header h1,
- .error404 .entry-header h1,
- .page-header h1,
- .page-template-eventbrite-index .page-header h1,
- .single-event .entry-header h1',
- array(
- array( 'property' => 'font-size', 'value' => '30px' ),
- ),
- array(
- 'screen and (max-width: 680px)',
- )
- );
- TypekitTheme::add_font_category_rule( $category_rules, 'headings',
- '.is-singular.archive-eventbrite .entry-header h1',
- array(
- array( 'property' => 'font-size', 'value' => '25px' ),
- ),
- array(
- 'screen and (max-width: 680px)',
- )
- );
- return $category_rules;
- } );
|