jetpack-fonts.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. <?php
  2. add_filter( 'typekit_add_font_category_rules', function( $category_rules ) {
  3. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  4. '#masthead .site-title',
  5. array(
  6. array( 'property' => 'font-size', 'value' => '60px' ),
  7. ),
  8. array(
  9. 'only screen and (max-width: 1200px)',
  10. )
  11. );
  12. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  13. 'body,
  14. button,
  15. input,
  16. select,
  17. textarea',
  18. array(
  19. array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", helvetica, arial, sans-serif' ),
  20. array( 'property' => 'font-size', 'value' => '18px' ),
  21. )
  22. );
  23. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  24. 'cite,
  25. dfn,
  26. em,
  27. i',
  28. array(
  29. array( 'property' => 'font-style', 'value' => 'italic' ),
  30. )
  31. );
  32. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  33. 'pre',
  34. array(
  35. array( 'property' => 'font-family', 'value' => '"Courier 10 Pitch", Courier, monospace' ),
  36. array( 'property' => 'font-size', 'value' => '15px' ),
  37. array( 'property' => 'font-size', 'value' => '0.9375rem' ),
  38. )
  39. );
  40. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  41. 'code,
  42. kbd,
  43. tt,
  44. var',
  45. array(
  46. array( 'property' => 'font-family', 'value' => 'Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace' ),
  47. array( 'property' => 'font-size', 'value' => '15px' ),
  48. array( 'property' => 'font-size', 'value' => '0.9375rem' ),
  49. )
  50. );
  51. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  52. 'blockquote',
  53. array(
  54. array( 'property' => 'font-size', 'value' => '22px' ),
  55. array( 'property' => 'font-style', 'value' => 'italic' ),
  56. )
  57. );
  58. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  59. 'blockquote cite',
  60. array(
  61. array( 'property' => 'font-size', 'value' => '18px' ),
  62. )
  63. );
  64. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  65. 'dt',
  66. array(
  67. array( 'property' => 'font-weight', 'value' => 'bold' ),
  68. )
  69. );
  70. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  71. 'button,
  72. input[type="button"],
  73. input[type="reset"],
  74. input[type="submit"]',
  75. array(
  76. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  77. array( 'property' => 'font-size', 'value' => '14px' ),
  78. )
  79. );
  80. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  81. '.search-form ::-webkit-input-placeholder',
  82. array(
  83. array( 'property' => 'font-style', 'value' => 'italic' ),
  84. )
  85. );
  86. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  87. '.search-form :-moz-placeholder',
  88. array(
  89. array( 'property' => 'font-style', 'value' => 'italic' ),
  90. )
  91. );
  92. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  93. '.search-form ::-moz-placeholder',
  94. array(
  95. array( 'property' => 'font-style', 'value' => 'italic' ),
  96. )
  97. );
  98. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  99. '.search-form :-ms-input-placeholder',
  100. array(
  101. array( 'property' => 'font-style', 'value' => 'italic' ),
  102. )
  103. );
  104. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  105. '#masthead .site-title',
  106. array(
  107. array( 'property' => 'font-size', 'value' => '80px' ),
  108. array( 'property' => 'font-weight', 'value' => '900' ),
  109. array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", helvetica, arial, sans-serif' ),
  110. )
  111. );
  112. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  113. '#masthead .site-description',
  114. array(
  115. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  116. array( 'property' => 'font-size', 'value' => '28px' ),
  117. )
  118. );
  119. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  120. '.main-navigation',
  121. array(
  122. array( 'property' => 'font-size', 'value' => '14px' ),
  123. )
  124. );
  125. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  126. '.entry-meta',
  127. array(
  128. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  129. )
  130. );
  131. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  132. '.cat-links',
  133. array(
  134. array( 'property' => 'font-size', 'value' => '14px' ),
  135. array( 'property' => 'font-weight', 'value' => 'bold' ),
  136. )
  137. );
  138. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  139. '.page-links',
  140. array(
  141. array( 'property' => 'font-size', 'value' => '13px' ),
  142. array( 'property' => 'font-weight', 'value' => 'bold' ),
  143. )
  144. );
  145. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  146. '.page-links span',
  147. array(
  148. array( 'property' => 'font-weight', 'value' => 'normal' ),
  149. )
  150. );
  151. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  152. 'body:not(.single) .hentry .more-link',
  153. array(
  154. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  155. array( 'property' => 'font-size', 'value' => '18px' ),
  156. )
  157. );
  158. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  159. '.entry-title',
  160. array(
  161. array( 'property' => 'font-size', 'value' => '35px' ),
  162. array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", helvetica, arial, sans-serif' ),
  163. )
  164. );
  165. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  166. '.entry-header .entry-meta',
  167. array(
  168. array( 'property' => 'font-size', 'value' => '18px' ),
  169. )
  170. );
  171. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  172. 'body:not(.single) .format-aside .entry-header .entry-title',
  173. array(
  174. array( 'property' => 'font-size', 'value' => '25px' ),
  175. )
  176. );
  177. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  178. 'body:not(.single) .format-audio .entry-title,
  179. body:not(.single) .format-gallery .entry-title,
  180. body:not(.single) .format-image .entry-title,
  181. body:not(.single) .format-link .entry-title,
  182. body:not(.single) .format-video .entry-title',
  183. array(
  184. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  185. array( 'property' => 'font-size', 'value' => '25px' ),
  186. array( 'property' => 'font-weight', 'value' => 'normal' ),
  187. )
  188. );
  189. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  190. 'body:not(.single) .format-quote .entry-meta',
  191. array(
  192. array( 'property' => 'font-size', 'value' => '17px' ),
  193. )
  194. );
  195. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  196. '.entry-content h1,
  197. .entry-content h2,
  198. .entry-content h3,
  199. .entry-content h4,
  200. .entry-content h5,
  201. .entry-content h6',
  202. array(
  203. array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", helvetica, arial, sans-serif' ),
  204. )
  205. );
  206. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  207. '.entry-content h1',
  208. array(
  209. array( 'property' => 'font-size', 'value' => '32px' ),
  210. )
  211. );
  212. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  213. '.entry-content h2',
  214. array(
  215. array( 'property' => 'font-size', 'value' => '28px' ),
  216. )
  217. );
  218. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  219. '.entry-content h3',
  220. array(
  221. array( 'property' => 'font-size', 'value' => '24px' ),
  222. )
  223. );
  224. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  225. '.entry-content h4',
  226. array(
  227. array( 'property' => 'font-size', 'value' => '20px' ),
  228. )
  229. );
  230. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  231. '.entry-content h5',
  232. array(
  233. array( 'property' => 'font-size', 'value' => '16px' ),
  234. )
  235. );
  236. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  237. '.entry-content h6',
  238. array(
  239. array( 'property' => 'font-size', 'value' => '14px' ),
  240. )
  241. );
  242. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  243. 'body:not(.single) .format-quote .entry-content',
  244. array(
  245. array( 'property' => 'font-size', 'value' => '24px' ),
  246. )
  247. );
  248. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  249. 'body:not(.single) .format-status',
  250. array(
  251. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  252. array( 'property' => 'font-size', 'value' => '20px' ),
  253. )
  254. );
  255. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  256. 'body:not(.single) .format-status .entry-meta',
  257. array(
  258. array( 'property' => 'font-size', 'value' => '17px' ),
  259. )
  260. );
  261. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  262. '.entry-content .jetpack-recipe .jetpack-recipe-meta',
  263. array(
  264. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  265. )
  266. );
  267. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  268. '.posts-navigation .nav-next a,
  269. .posts-navigation .nav-previous a',
  270. array(
  271. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  272. array( 'property' => 'font-size', 'value' => '15px' ),
  273. )
  274. );
  275. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  276. '.single #primary article.post .tags-links,
  277. .single #primary article.jetpack-portfolio .tags-links,
  278. .single #primary article.attachment .tags-links',
  279. array(
  280. array( 'property' => 'font-size', 'value' => '16px' ),
  281. )
  282. );
  283. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  284. '.single #primary article.post .tags-links .tags-header,
  285. .single #primary article.jetpack-portfolio .tags-links .tags-header,
  286. .single #primary article.attachment .tags-links .tags-header',
  287. array(
  288. array( 'property' => 'font-size', 'value' => '13px' ),
  289. array( 'property' => 'font-weight', 'value' => 'bold' ),
  290. )
  291. );
  292. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  293. '.single #primary .author-description',
  294. array(
  295. array( 'property' => 'font-size', 'value' => '16px' ),
  296. )
  297. );
  298. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  299. '.single #primary .author-description h2',
  300. array(
  301. array( 'property' => 'font-size', 'value' => '20px' ),
  302. )
  303. );
  304. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  305. '.single #primary .author-link',
  306. array(
  307. array( 'property' => 'font-family', 'value' => '"Lato", "Helvetica Neue", helvetica, arial, sans-serif' ),
  308. array( 'property' => 'font-size', 'value' => '13px' ),
  309. array( 'property' => 'font-weight', 'value' => 'bold' ),
  310. )
  311. );
  312. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  313. '.post-navigation-container',
  314. array(
  315. array( 'property' => 'font-size', 'value' => '18px' ),
  316. array( 'property' => 'font-weight', 'value' => 'bold' ),
  317. )
  318. );
  319. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  320. '.post-navigation-container .post-navigation-header',
  321. array(
  322. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  323. array( 'property' => 'font-weight', 'value' => 'normal' ),
  324. )
  325. );
  326. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  327. '.page-header .page-title',
  328. array(
  329. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  330. array( 'property' => 'font-weight', 'value' => 'normal' ),
  331. array( 'property' => 'font-size', 'value' => '18px' ),
  332. )
  333. );
  334. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  335. '.page-header .taxonomy-description',
  336. array(
  337. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  338. )
  339. );
  340. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  341. '.page-header p',
  342. array(
  343. array( 'property' => 'font-size', 'value' => '18px' ),
  344. )
  345. );
  346. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  347. '#jp-post-flair h3,
  348. div#jp-relatedposts h3.jp-relatedposts-headline',
  349. array(
  350. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  351. array( 'property' => 'font-size', 'value' => '13px' ),
  352. array( 'property' => 'font-weight', 'value' => 'normal' ),
  353. )
  354. );
  355. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  356. '.rating-msg',
  357. array(
  358. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  359. array( 'property' => 'font-size', 'value' => '12px' ),
  360. )
  361. );
  362. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  363. 'div#jp-relatedposts h3.jp-relatedposts-headline em',
  364. array(
  365. array( 'property' => 'font-weight', 'value' => 'normal' ),
  366. )
  367. );
  368. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  369. '#comments .comments-title',
  370. array(
  371. array( 'property' => 'font-size', 'value' => '21px' ),
  372. )
  373. );
  374. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  375. '#comments .comment-author',
  376. array(
  377. array( 'property' => 'font-size', 'value' => '18px' ),
  378. )
  379. );
  380. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  381. '#comments .comment-metadata,
  382. #comments .reply,
  383. #comments .edit-link',
  384. array(
  385. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  386. array( 'property' => 'font-size', 'value' => '16px' ),
  387. )
  388. );
  389. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  390. '#comments .comment-navigation',
  391. array(
  392. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  393. )
  394. );
  395. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  396. '.comment-content blockquote',
  397. array(
  398. array( 'property' => 'font-size', 'value' => '18px' ),
  399. )
  400. );
  401. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  402. '.comments-form-contain .comment-notes,
  403. .comments-form-contain .logged-in-as',
  404. array(
  405. array( 'property' => 'font-size', 'value' => '14px' ),
  406. array( 'property' => 'font-style', 'value' => 'italic' ),
  407. )
  408. );
  409. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  410. '.comments-form-contain label',
  411. array(
  412. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  413. )
  414. );
  415. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  416. '.no-comments',
  417. array(
  418. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  419. )
  420. );
  421. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  422. '.wp-caption',
  423. array(
  424. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  425. array( 'property' => 'font-size', 'value' => '16px' ),
  426. )
  427. );
  428. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  429. '.wp-caption-text',
  430. array(
  431. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  432. array( 'property' => 'font-size', 'value' => '15px' ),
  433. )
  434. );
  435. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  436. '.contact-form label',
  437. array(
  438. array( 'property' => 'font-size', 'value' => '14px' ),
  439. )
  440. );
  441. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  442. '.post-password-form label',
  443. array(
  444. array( 'property' => 'font-size', 'value' => '14px' ),
  445. )
  446. );
  447. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  448. '#infinite-handle span button,
  449. #infinite-handle span button:focus,
  450. #infinite-handle span button:hover',
  451. array(
  452. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  453. array( 'property' => 'font-size', 'value' => '15px' ),
  454. )
  455. );
  456. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  457. '#colophon .site-info',
  458. array(
  459. array( 'property' => 'font-size', 'value' => '14px' ),
  460. )
  461. );
  462. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  463. '.widget .widget-title',
  464. array(
  465. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  466. array( 'property' => 'font-size', 'value' => '25px' ),
  467. array( 'property' => 'font-weight', 'value' => 'normal' ),
  468. )
  469. );
  470. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  471. '.widget_calendar caption',
  472. array(
  473. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  474. )
  475. );
  476. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  477. '.widget_goodreads div[class^="gr_custom_author"]',
  478. array(
  479. array( 'property' => 'font-size', 'value' => '13px' ),
  480. )
  481. );
  482. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  483. '.widget_rss .rss-date',
  484. array(
  485. array( 'property' => 'font-size', 'value' => '14px' ),
  486. )
  487. );
  488. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  489. '.widget_tag_cloud a,
  490. .wp_widget_tag_cloud a',
  491. array(
  492. array( 'property' => 'font-family', 'value' => '"Kalam", "Chalkboard", "Comic Sans", script' ),
  493. array( 'property' => 'font-size', 'value' => '15px !important' ),
  494. )
  495. );
  496. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  497. '#masthead .site-description',
  498. array(
  499. array( 'property' => 'font-size', 'value' => '24px' ),
  500. ),
  501. array(
  502. 'only screen and (max-width: 1200px)',
  503. )
  504. );
  505. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  506. '.entry-header .entry-title',
  507. array(
  508. array( 'property' => 'font-size', 'value' => '30px' ),
  509. ),
  510. array(
  511. 'only screen and (max-width: 1200px)',
  512. )
  513. );
  514. TypekitTheme::add_font_category_rule( $category_rules, 'body-text',
  515. '.page-header p',
  516. array(
  517. array( 'property' => 'font-size', 'value' => '16px' ),
  518. ),
  519. array(
  520. 'only screen and (max-width: 1200px)',
  521. )
  522. );
  523. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  524. '.entry-content h1',
  525. array(
  526. array( 'property' => 'font-size', 'value' => '28px' ),
  527. ),
  528. array(
  529. 'only screen and (max-width: 800px)',
  530. )
  531. );
  532. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  533. '.entry-content h2',
  534. array(
  535. array( 'property' => 'font-size', 'value' => '24px' ),
  536. ),
  537. array(
  538. 'only screen and (max-width: 800px)',
  539. )
  540. );
  541. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  542. '.entry-content h3',
  543. array(
  544. array( 'property' => 'font-size', 'value' => '20px' ),
  545. ),
  546. array(
  547. 'only screen and (max-width: 800px)',
  548. )
  549. );
  550. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  551. '.entry-content h4',
  552. array(
  553. array( 'property' => 'font-size', 'value' => '18px' ),
  554. ),
  555. array(
  556. 'only screen and (max-width: 800px)',
  557. )
  558. );
  559. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  560. '.entry-content h5',
  561. array(
  562. array( 'property' => 'font-size', 'value' => '16px' ),
  563. ),
  564. array(
  565. 'only screen and (max-width: 800px)',
  566. )
  567. );
  568. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  569. '.entry-content h6',
  570. array(
  571. array( 'property' => 'font-size', 'value' => '14px' ),
  572. ),
  573. array(
  574. 'only screen and (max-width: 800px)',
  575. )
  576. );
  577. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  578. '.entry-content h1',
  579. array(
  580. array( 'property' => 'font-size', 'value' => '26px' ),
  581. ),
  582. array(
  583. 'only screen and (max-width: 600px)',
  584. )
  585. );
  586. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  587. '.entry-content h2',
  588. array(
  589. array( 'property' => 'font-size', 'value' => '22px' ),
  590. ),
  591. array(
  592. 'only screen and (max-width: 600px)',
  593. )
  594. );
  595. TypekitTheme::add_font_category_rule( $category_rules, 'headings',
  596. '#comments .comments-title',
  597. array(
  598. array( 'property' => 'font-size', 'value' => '18px' ),
  599. ),
  600. array(
  601. 'only screen and (max-width: 600px)',
  602. )
  603. );
  604. return $category_rules;
  605. } );