jetpack-fonts.php 21 KB

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