jetpack-fonts.php 19 KB

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