jetpack-fonts.php 20 KB

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