jetpack-fonts.php 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893
  1. <?php
  2. add_filter( 'typekit_add_font_category_rules', function( $category_rules ) {
  3. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  4. 'body,
  5. button,
  6. input,
  7. select,
  8. textarea',
  9. array(
  10. array( 'property' => 'font-family', 'value' => 'Lato, sans-serif' ),
  11. array( 'property' => 'font-size', 'value' => '16px' ),
  12. array( 'property' => 'font-size', 'value' => '1rem' ),
  13. )
  14. );
  15. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  16. '.entry-footer,
  17. .entry-meta,
  18. .site-info',
  19. array(
  20. array( 'property' => 'font-size', 'value' => '13px' ),
  21. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  22. )
  23. );
  24. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  25. '.site-title,
  26. h1,
  27. h2:not(.author-title),
  28. h3,
  29. h4,
  30. h5,
  31. h6',
  32. array(
  33. array( 'property' => 'font-family', 'value' => 'Poppins, sans-serif' ),
  34. array( 'property' => 'font-weight', 'value' => 'bold' ),
  35. )
  36. );
  37. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  38. '.entry-title,
  39. .post-type-archive-jetpack-testimonial .page-title,
  40. h1',
  41. array(
  42. array( 'property' => 'font-size', 'value' => '40px' ),
  43. array( 'property' => 'font-size', 'value' => '2.5rem' ),
  44. )
  45. );
  46. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  47. '.comment-reply-title,
  48. .comments-title,
  49. h2:not(.author-title)',
  50. array(
  51. array( 'property' => 'font-size', 'value' => '32px' ),
  52. array( 'property' => 'font-size', 'value' => '2rem' ),
  53. )
  54. );
  55. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  56. '.page-title,
  57. .widget-title,
  58. .widgettitle,
  59. h3',
  60. array(
  61. array( 'property' => 'font-size', 'value' => '25px' ),
  62. array( 'property' => 'font-size', 'value' => '1.5625rem' ),
  63. )
  64. );
  65. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  66. '.site-title,
  67. h4',
  68. array(
  69. array( 'property' => 'font-size', 'value' => '20px' ),
  70. array( 'property' => 'font-size', 'value' => '1.25rem' ),
  71. )
  72. );
  73. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  74. 'h5',
  75. array(
  76. array( 'property' => 'font-size', 'value' => '16px' ),
  77. array( 'property' => 'font-size', 'value' => '1rem' ),
  78. )
  79. );
  80. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  81. 'h6',
  82. array(
  83. array( 'property' => 'font-size', 'value' => '13px' ),
  84. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  85. )
  86. );
  87. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  88. 'cite,
  89. dfn,
  90. em,
  91. i',
  92. array(
  93. array( 'property' => 'font-style', 'value' => 'italic' ),
  94. )
  95. );
  96. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  97. 'blockquote',
  98. array(
  99. array( 'property' => 'font-size', 'value' => '20px' ),
  100. array( 'property' => 'font-size', 'value' => '1.25rem' ),
  101. array( 'property' => 'font-style', 'value' => 'italic' ),
  102. )
  103. );
  104. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  105. 'dt',
  106. array(
  107. array( 'property' => 'font-weight', 'value' => 'bold' ),
  108. )
  109. );
  110. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  111. 'button,
  112. input[type="button"],
  113. input[type="reset"],
  114. input[type="submit"]',
  115. array(
  116. array( 'property' => 'font-size', 'value' => '13px' ),
  117. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  118. array( 'property' => 'font-weight', 'value' => 'bold' ),
  119. )
  120. );
  121. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  122. '.main-navigation a',
  123. array(
  124. array( 'property' => 'font-weight', 'value' => 'bold' ),
  125. )
  126. );
  127. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  128. '.comment-navigation a,
  129. .posts-navigation a',
  130. array(
  131. array( 'property' => 'font-weight', 'value' => 'bold' ),
  132. )
  133. );
  134. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  135. '.post-navigation .meta-nav',
  136. array(
  137. array( 'property' => 'font-size', 'value' => '13px' ),
  138. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  139. )
  140. );
  141. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  142. '.post-navigation .post-title',
  143. array(
  144. array( 'property' => 'font-family', 'value' => 'Poppins, sans-serif' ),
  145. array( 'property' => 'font-size', 'value' => '25px' ),
  146. array( 'property' => 'font-size', 'value' => '1.5625rem' ),
  147. array( 'property' => 'font-weight', 'value' => 'bold' ),
  148. )
  149. );
  150. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  151. '.widget_calendar caption',
  152. array(
  153. array( 'property' => 'font-weight', 'value' => 'bold' ),
  154. )
  155. );
  156. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  157. '.entry-meta',
  158. array(
  159. array( 'property' => 'font-weight', 'value' => 'bold' ),
  160. )
  161. );
  162. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  163. '.author-title',
  164. array(
  165. array( 'property' => 'font-family', 'value' => 'Lato, sans-serif' ),
  166. array( 'property' => 'font-size', 'value' => '13px' ),
  167. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  168. array( 'property' => 'font-weight', 'value' => 'normal' ),
  169. )
  170. );
  171. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  172. '.author-name',
  173. array(
  174. array( 'property' => 'font-family', 'value' => 'Poppins, sans-serif' ),
  175. array( 'property' => 'font-size', 'value' => '25px' ),
  176. array( 'property' => 'font-size', 'value' => '1.5625rem' ),
  177. array( 'property' => 'font-weight', 'value' => 'bold' ),
  178. )
  179. );
  180. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  181. '.page-links',
  182. array(
  183. array( 'property' => 'font-size', 'value' => '13px' ),
  184. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  185. )
  186. );
  187. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  188. '.comment-author .fn',
  189. array(
  190. array( 'property' => 'font-weight', 'value' => 'normal' ),
  191. )
  192. );
  193. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  194. '.comment-metadata',
  195. array(
  196. array( 'property' => 'font-size', 'value' => '13px' ),
  197. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  198. )
  199. );
  200. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  201. '.comment-reply-link',
  202. array(
  203. array( 'property' => 'font-weight', 'value' => 'bold' ),
  204. )
  205. );
  206. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  207. '.comment-reply-title small',
  208. array(
  209. array( 'property' => 'font-family', 'value' => 'Lato, sans-serif' ),
  210. array( 'property' => 'font-size', 'value' => '16px' ),
  211. array( 'property' => 'font-size', 'value' => '1rem' ),
  212. array( 'property' => 'font-weight', 'value' => 'normal' ),
  213. )
  214. );
  215. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  216. '.no-comments',
  217. array(
  218. array( 'property' => 'font-family', 'value' => 'Poppins, sans-serif' ),
  219. array( 'property' => 'font-size', 'value' => '32px' ),
  220. array( 'property' => 'font-size', 'value' => '2rem' ),
  221. array( 'property' => 'font-weight', 'value' => 'bold' ),
  222. )
  223. );
  224. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  225. '.wp-caption-text',
  226. array(
  227. array( 'property' => 'font-size', 'value' => '13px' ),
  228. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  229. array( 'property' => 'font-style', 'value' => 'italic' ),
  230. )
  231. );
  232. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  233. '.site-content .contact-form label',
  234. array(
  235. array( 'property' => 'font-weight', 'value' => 'normal' ),
  236. )
  237. );
  238. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  239. '.site .tiled-gallery-caption',
  240. array(
  241. array( 'property' => 'font-size', 'value' => '13px' ),
  242. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  243. array( 'property' => 'font-style', 'value' => 'italic' ),
  244. )
  245. );
  246. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  247. '#infinite-footer .container',
  248. array(
  249. array( 'property' => 'font-size', 'value' => '13px' ),
  250. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  251. )
  252. );
  253. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  254. '#infinite-footer .blog-credits,
  255. #infinite-footer .blog-credits a,
  256. #infinite-footer .blog-info a',
  257. array(
  258. array( 'property' => 'font-weight', 'value' => 'normal' ),
  259. )
  260. );
  261. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  262. '.site-main #infinite-handle span button,
  263. .site-main #infinite-handle span button:focus,
  264. .site-main #infinite-handle span button:hover',
  265. array(
  266. array( 'property' => 'font-size', 'value' => '13px' ),
  267. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  268. array( 'property' => 'font-weight', 'value' => 'bold' ),
  269. )
  270. );
  271. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  272. '.hentry div#jp-relatedposts h3.jp-relatedposts-headline,
  273. .hentry div.sd-rating h3.sd-title,
  274. .hentry div.sharedaddy h3.sd-title',
  275. array(
  276. array( 'property' => 'font-weight', 'value' => 'normal' ),
  277. )
  278. );
  279. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  280. '.hentry div.sharedaddy h3.sd-title',
  281. array(
  282. array( 'property' => 'font-size', 'value' => '13px' ),
  283. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  284. )
  285. );
  286. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  287. 'div#jp-relatedposts',
  288. array(
  289. array( 'property' => 'font-size', 'value' => '13px' ),
  290. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  291. )
  292. );
  293. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  294. '.site .testimonial-entry-content',
  295. array(
  296. array( 'property' => 'font-style', 'value' => 'italic' ),
  297. )
  298. );
  299. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  300. '.site .testimonial-entry-title',
  301. array(
  302. array( 'property' => 'font-weight', 'value' => 'bold' ),
  303. )
  304. );
  305. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  306. '.widget_goodreads div[class^="gr_custom_title"] a,
  307. .widget_goodreads div[class^=gr_custom_container] a',
  308. array(
  309. array( 'property' => 'font-weight', 'value' => 'normal' ),
  310. )
  311. );
  312. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  313. '.widget_goodreads div[class^="gr_custom_title"]',
  314. array(
  315. array( 'property' => 'font-weight', 'value' => 'bold' ),
  316. )
  317. );
  318. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  319. '.button',
  320. array(
  321. array( 'property' => 'font-size', 'value' => '13px' ),
  322. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  323. array( 'property' => 'font-weight', 'value' => 'bold' ),
  324. )
  325. );
  326. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  327. 'body,
  328. button,
  329. input,
  330. select,
  331. textarea',
  332. array(
  333. array( 'property' => 'font-size', 'value' => '20px' ),
  334. array( 'property' => 'font-size', 'value' => '1.25rem' ),
  335. ),
  336. array(
  337. 'screen and (min-width: 768px)',
  338. )
  339. );
  340. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  341. '.entry-footer,
  342. .entry-meta,
  343. .site-info,
  344. .widget-small,
  345. .widget-small input,
  346. .widget-small select,
  347. .widget-small textarea',
  348. array(
  349. array( 'property' => 'font-size', 'value' => '16px' ),
  350. array( 'property' => 'font-size', 'value' => '1rem' ),
  351. ),
  352. array(
  353. 'screen and (min-width: 768px)',
  354. )
  355. );
  356. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  357. '.entry-title,
  358. .post-type-archive-jetpack-testimonial .page-title,
  359. h1',
  360. array(
  361. array( 'property' => 'font-size', 'value' => '49px' ),
  362. array( 'property' => 'font-size', 'value' => '3.0625rem' ),
  363. ),
  364. array(
  365. 'screen and (min-width: 768px)',
  366. )
  367. );
  368. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  369. '.widget-small h1',
  370. array(
  371. array( 'property' => 'font-size', 'value' => '40px' ),
  372. array( 'property' => 'font-size', 'value' => '2.5rem' ),
  373. ),
  374. array(
  375. 'screen and (min-width: 768px)',
  376. )
  377. );
  378. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  379. '.comment-reply-title,
  380. .comments-title,
  381. h2:not(.author-title)',
  382. array(
  383. array( 'property' => 'font-size', 'value' => '40px' ),
  384. array( 'property' => 'font-size', 'value' => '2.5rem' ),
  385. ),
  386. array(
  387. 'screen and (min-width: 768px)',
  388. )
  389. );
  390. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  391. '.widget-small h2',
  392. array(
  393. array( 'property' => 'font-size', 'value' => '32px' ),
  394. array( 'property' => 'font-size', 'value' => '2rem' ),
  395. ),
  396. array(
  397. 'screen and (min-width: 768px)',
  398. )
  399. );
  400. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  401. '.page-title,
  402. .widgettitle,
  403. .widget-title,
  404. h3',
  405. array(
  406. array( 'property' => 'font-size', 'value' => '32px' ),
  407. array( 'property' => 'font-size', 'value' => '2rem' ),
  408. ),
  409. array(
  410. 'screen and (min-width: 768px)',
  411. )
  412. );
  413. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  414. '.widget-small h3,
  415. .widget-small .widgettitle,
  416. .widget-small .widget-title',
  417. array(
  418. array( 'property' => 'font-size', 'value' => '25px' ),
  419. array( 'property' => 'font-size', 'value' => '1.5625rem' ),
  420. ),
  421. array(
  422. 'screen and (min-width: 768px)',
  423. )
  424. );
  425. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  426. '.site-title,
  427. h4',
  428. array(
  429. array( 'property' => 'font-size', 'value' => '25px' ),
  430. array( 'property' => 'font-size', 'value' => '1.5625rem' ),
  431. ),
  432. array(
  433. 'screen and (min-width: 768px)',
  434. )
  435. );
  436. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  437. '.widget-small h4',
  438. array(
  439. array( 'property' => 'font-size', 'value' => '20px' ),
  440. array( 'property' => 'font-size', 'value' => '1.25rem' ),
  441. ),
  442. array(
  443. 'screen and (min-width: 768px)',
  444. )
  445. );
  446. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  447. 'h5',
  448. array(
  449. array( 'property' => 'font-size', 'value' => '20px' ),
  450. array( 'property' => 'font-size', 'value' => '1.25rem' ),
  451. ),
  452. array(
  453. 'screen and (min-width: 768px)',
  454. )
  455. );
  456. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  457. '.widget-small h5',
  458. array(
  459. array( 'property' => 'font-size', 'value' => '16px' ),
  460. array( 'property' => 'font-size', 'value' => '1rem' ),
  461. ),
  462. array(
  463. 'screen and (min-width: 768px)',
  464. )
  465. );
  466. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  467. 'h6',
  468. array(
  469. array( 'property' => 'font-size', 'value' => '16px' ),
  470. array( 'property' => 'font-size', 'value' => '1rem' ),
  471. ),
  472. array(
  473. 'screen and (min-width: 768px)',
  474. )
  475. );
  476. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  477. '.widget-small h6',
  478. array(
  479. array( 'property' => 'font-size', 'value' => '13px' ),
  480. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  481. ),
  482. array(
  483. 'screen and (min-width: 768px)',
  484. )
  485. );
  486. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  487. 'blockquote',
  488. array(
  489. array( 'property' => 'font-size', 'value' => '25px' ),
  490. array( 'property' => 'font-size', 'value' => '1.5625rem' ),
  491. ),
  492. array(
  493. 'screen and (min-width: 768px)',
  494. )
  495. );
  496. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  497. '.widget-small blockquote',
  498. array(
  499. array( 'property' => 'font-size', 'value' => '20px' ),
  500. array( 'property' => 'font-size', 'value' => '1.25rem' ),
  501. ),
  502. array(
  503. 'screen and (min-width: 768px)',
  504. )
  505. );
  506. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  507. 'button,
  508. input[type="button"],
  509. input[type="reset"],
  510. input[type="submit"]',
  511. array(
  512. array( 'property' => 'font-size', 'value' => '16px' ),
  513. array( 'property' => 'font-size', 'value' => '1rem' ),
  514. ),
  515. array(
  516. 'screen and (min-width: 768px)',
  517. )
  518. );
  519. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  520. '.widget-small button,
  521. .widget-small input[type="button"],
  522. .widget-small input[type="reset"],
  523. .widget-small input[type="submit"]',
  524. array(
  525. array( 'property' => 'font-size', 'value' => '13px' ),
  526. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  527. ),
  528. array(
  529. 'screen and (min-width: 768px)',
  530. )
  531. );
  532. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  533. '.post-navigation .meta-nav',
  534. array(
  535. array( 'property' => 'font-size', 'value' => '16px' ),
  536. array( 'property' => 'font-size', 'value' => '1rem' ),
  537. ),
  538. array(
  539. 'screen and (min-width: 768px)',
  540. )
  541. );
  542. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  543. '.post-navigation .post-title',
  544. array(
  545. array( 'property' => 'font-size', 'value' => '32px' ),
  546. array( 'property' => 'font-size', 'value' => '2rem' ),
  547. ),
  548. array(
  549. 'screen and (min-width: 768px)',
  550. )
  551. );
  552. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  553. '.author-title',
  554. array(
  555. array( 'property' => 'font-size', 'value' => '16px' ),
  556. array( 'property' => 'font-size', 'value' => '1rem' ),
  557. ),
  558. array(
  559. 'screen and (min-width: 768px)',
  560. )
  561. );
  562. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  563. '.page-links',
  564. array(
  565. array( 'property' => 'font-size', 'value' => '16px' ),
  566. array( 'property' => 'font-size', 'value' => '1rem' ),
  567. ),
  568. array(
  569. 'screen and (min-width: 768px)',
  570. )
  571. );
  572. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  573. '.comment-reply-title small',
  574. array(
  575. array( 'property' => 'font-size', 'value' => '20px' ),
  576. array( 'property' => 'font-size', 'value' => '1.25rem' ),
  577. ),
  578. array(
  579. 'screen and (min-width: 768px)',
  580. )
  581. );
  582. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  583. '.comment-metadata',
  584. array(
  585. array( 'property' => 'font-size', 'value' => '16px' ),
  586. array( 'property' => 'font-size', 'value' => '1rem' ),
  587. ),
  588. array(
  589. 'screen and (min-width: 768px)',
  590. )
  591. );
  592. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  593. '.no-comments',
  594. array(
  595. array( 'property' => 'font-size', 'value' => '40px' ),
  596. array( 'property' => 'font-size', 'value' => '2.5rem' ),
  597. ),
  598. array(
  599. 'screen and (min-width: 768px)',
  600. )
  601. );
  602. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  603. '.wp-caption-text',
  604. array(
  605. array( 'property' => 'font-size', 'value' => '16px' ),
  606. array( 'property' => 'font-size', 'value' => '1rem' ),
  607. ),
  608. array(
  609. 'screen and (min-width: 768px)',
  610. )
  611. );
  612. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  613. '.widget-small .wp-caption-text',
  614. array(
  615. array( 'property' => 'font-size', 'value' => '13px' ),
  616. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  617. ),
  618. array(
  619. 'screen and (min-width: 768px)',
  620. )
  621. );
  622. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  623. '.site .tiled-gallery-caption',
  624. array(
  625. array( 'property' => 'font-size', 'value' => '16px' ),
  626. array( 'property' => 'font-size', 'value' => '1rem' ),
  627. ),
  628. array(
  629. 'screen and (min-width: 768px)',
  630. )
  631. );
  632. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  633. '.widget-small .tiled-gallery-caption',
  634. array(
  635. array( 'property' => 'font-size', 'value' => '13px' ),
  636. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  637. ),
  638. array(
  639. 'screen and (min-width: 768px)',
  640. )
  641. );
  642. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  643. '#infinite-footer .container',
  644. array(
  645. array( 'property' => 'font-size', 'value' => '16px' ),
  646. array( 'property' => 'font-size', 'value' => '1rem' ),
  647. ),
  648. array(
  649. 'screen and (min-width: 768px)',
  650. )
  651. );
  652. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  653. '.site-main #infinite-handle span button,
  654. .site-main #infinite-handle span button:focus,
  655. .site-main #infinite-handle span button:hover',
  656. array(
  657. array( 'property' => 'font-size', 'value' => '16px' ),
  658. array( 'property' => 'font-size', 'value' => '1rem' ),
  659. ),
  660. array(
  661. 'screen and (min-width: 768px)',
  662. )
  663. );
  664. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  665. '.hentry div.sharedaddy h3.sd-title',
  666. array(
  667. array( 'property' => 'font-size', 'value' => '16px' ),
  668. array( 'property' => 'font-size', 'value' => '1rem' ),
  669. ),
  670. array(
  671. 'screen and (min-width: 768px)',
  672. )
  673. );
  674. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  675. 'div#jp-relatedposts',
  676. array(
  677. array( 'property' => 'font-size', 'value' => '16px' ),
  678. array( 'property' => 'font-size', 'value' => '1rem' ),
  679. ),
  680. array(
  681. 'screen and (min-width: 768px)',
  682. )
  683. );
  684. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  685. '.button',
  686. array(
  687. array( 'property' => 'font-size', 'value' => '16px' ),
  688. array( 'property' => 'font-size', 'value' => '1rem' ),
  689. ),
  690. array(
  691. 'screen and (min-width: 768px)',
  692. )
  693. );
  694. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  695. '.widget-small .button',
  696. array(
  697. array( 'property' => 'font-size', 'value' => '13px' ),
  698. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  699. ),
  700. array(
  701. 'screen and (min-width: 768px)',
  702. )
  703. );
  704. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  705. '.main-navigation ul,
  706. .main-navigation.toggled-on ul',
  707. array(
  708. array( 'property' => 'font-size', 'value' => '16px' ),
  709. array( 'property' => 'font-size', 'value' => '1rem' ),
  710. ),
  711. array(
  712. 'screen and (min-width: 896px)',
  713. )
  714. );
  715. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  716. '#comments #respond h3',
  717. array(
  718. array( 'property' => 'font-size', 'value' => '32px' ),
  719. array( 'property' => 'font-size', 'value' => '2rem' ),
  720. )
  721. );
  722. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  723. '#comments #respond .form-submit',
  724. array(
  725. array( 'property' => 'font-size', 'value' => '13px' ),
  726. array( 'property' => 'font-size', 'value' => '0.8125rem' ),
  727. )
  728. );
  729. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  730. '.aboutme_widget #am_name',
  731. array(
  732. array( 'property' => 'font-size', 'value' => '25px' ),
  733. array( 'property' => 'font-size', 'value' => '1.5625rem' ),
  734. )
  735. );
  736. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  737. '.aboutme_widget #am_headline',
  738. array(
  739. array( 'property' => 'font-size', 'value' => '20px' ),
  740. array( 'property' => 'font-size', 'value' => '1.25rem' ),
  741. )
  742. );
  743. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  744. '#comments #respond h3',
  745. array(
  746. array( 'property' => 'font-size', 'value' => '40px' ),
  747. array( 'property' => 'font-size', 'value' => '2.5rem' ),
  748. ),
  749. array(
  750. 'screen and (min-width: 768px)',
  751. )
  752. );
  753. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  754. '#comments #respond .form-submit',
  755. array(
  756. array( 'property' => 'font-size', 'value' => '16px' ),
  757. array( 'property' => 'font-size', 'value' => '1rem' ),
  758. ),
  759. array(
  760. 'screen and (min-width: 768px)',
  761. )
  762. );
  763. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  764. '.aboutme_widget #am_name',
  765. array(
  766. array( 'property' => 'font-size', 'value' => '32px' ),
  767. array( 'property' => 'font-size', 'value' => '2rem' ),
  768. ),
  769. array(
  770. 'screen and (min-width: 768px)',
  771. )
  772. );
  773. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  774. '.widget-small.aboutme_widget #am_name',
  775. array(
  776. array( 'property' => 'font-size', 'value' => '25px' ),
  777. array( 'property' => 'font-size', 'value' => '1.5625rem' ),
  778. ),
  779. array(
  780. 'screen and (min-width: 768px)',
  781. )
  782. );
  783. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  784. '.aboutme_widget #am_headline',
  785. array(
  786. array( 'property' => 'font-size', 'value' => '25px' ),
  787. array( 'property' => 'font-size', 'value' => '1.5625rem' ),
  788. ),
  789. array(
  790. 'screen and (min-width: 768px)',
  791. )
  792. );
  793. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  794. '.widget-small.aboutme_widget #am_headline',
  795. array(
  796. array( 'property' => 'font-size', 'value' => '20px' ),
  797. array( 'property' => 'font-size', 'value' => '1.25rem' ),
  798. ),
  799. array(
  800. 'screen and (min-width: 768px)',
  801. )
  802. );
  803. return $category_rules;
  804. } );