jetpack-fonts.php 21 KB

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