color-patterns.php 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. <?php
  2. /**
  3. * Twenty Seventeen: Color Patterns
  4. *
  5. * @package WordPress
  6. * @subpackage Twenty_Seventeen
  7. * @since 1.0
  8. */
  9. /**
  10. * Generate the CSS for the current custom color scheme.
  11. */
  12. function twentyseventeen_custom_colors_css() {
  13. $hue = absint( get_theme_mod( 'colorscheme_hue', 250 ) );
  14. /**
  15. * Filter Twenty Seventeen default saturation level.
  16. *
  17. * @since Twenty Seventeen 1.0
  18. *
  19. * @param int $saturation Color saturation level.
  20. */
  21. $saturation = absint( apply_filters( 'twentyseventeen_custom_colors_saturation', 50 ) );
  22. $reduced_saturation = ( .8 * $saturation ) . '%';
  23. $saturation = $saturation . '%';
  24. $css = '
  25. /**
  26. * Twenty Seventeen: Color Patterns
  27. *
  28. * Colors are ordered from dark to light.
  29. */
  30. .colors-custom a:hover,
  31. .colors-custom a:active,
  32. .colors-custom .entry-content a:focus,
  33. .colors-custom .entry-content a:hover,
  34. .colors-custom .entry-summary a:focus,
  35. .colors-custom .entry-summary a:hover,
  36. .colors-custom .comment-content a:focus,
  37. .colors-custom .comment-content a:hover,
  38. .colors-custom .widget a:focus,
  39. .colors-custom .widget a:hover,
  40. .colors-custom .site-footer .widget-area a:focus,
  41. .colors-custom .site-footer .widget-area a:hover,
  42. .colors-custom .posts-navigation a:focus,
  43. .colors-custom .posts-navigation a:hover,
  44. .colors-custom .comment-metadata a:focus,
  45. .colors-custom .comment-metadata a:hover,
  46. .colors-custom .comment-metadata a.comment-edit-link:focus,
  47. .colors-custom .comment-metadata a.comment-edit-link:hover,
  48. .colors-custom .comment-reply-link:focus,
  49. .colors-custom .comment-reply-link:hover,
  50. .colors-custom .widget_authors a:focus strong,
  51. .colors-custom .widget_authors a:hover strong,
  52. .colors-custom .entry-title a:focus,
  53. .colors-custom .entry-title a:hover,
  54. .colors-custom .entry-meta a:focus,
  55. .colors-custom .entry-meta a:hover,
  56. .colors-custom.blog .entry-meta a.post-edit-link:focus,
  57. .colors-custom.blog .entry-meta a.post-edit-link:hover,
  58. .colors-custom.archive .entry-meta a.post-edit-link:focus,
  59. .colors-custom.archive .entry-meta a.post-edit-link:hover,
  60. .colors-custom.search .entry-meta a.post-edit-link:focus,
  61. .colors-custom.search .entry-meta a.post-edit-link:hover,
  62. .colors-custom .page-links a:focus .page-number,
  63. .colors-custom .page-links a:hover .page-number,
  64. .colors-custom .entry-footer a:focus,
  65. .colors-custom .entry-footer a:hover,
  66. .colors-custom .entry-footer .cat-links a:focus,
  67. .colors-custom .entry-footer .cat-links a:hover,
  68. .colors-custom .entry-footer .tags-links a:focus,
  69. .colors-custom .entry-footer .tags-links a:hover,
  70. .colors-custom .post-navigation a:focus,
  71. .colors-custom .post-navigation a:hover,
  72. .colors-custom .pagination a:not(.prev):not(.next):focus,
  73. .colors-custom .pagination a:not(.prev):not(.next):hover,
  74. .colors-custom .comments-pagination a:not(.prev):not(.next):focus,
  75. .colors-custom .comments-pagination a:not(.prev):not(.next):hover,
  76. .colors-custom .logged-in-as a:focus,
  77. .colors-custom .logged-in-as a:hover,
  78. .colors-custom a:focus .nav-title,
  79. .colors-custom a:hover .nav-title,
  80. .colors-custom .edit-link a:focus,
  81. .colors-custom .edit-link a:hover,
  82. .colors-custom .site-info a:focus,
  83. .colors-custom .site-info a:hover,
  84. .colors-custom .widget .widget-title a:focus,
  85. .colors-custom .widget .widget-title a:hover,
  86. .colors-custom .widget ul li a:focus,
  87. .colors-custom .widget ul li a:hover {
  88. color: hsl( ' . $hue . ', ' . $saturation . ', 0% ); /* base: #000; */
  89. }
  90. .colors-custom .entry-content a,
  91. .colors-custom .entry-summary a,
  92. .colors-custom .comment-content a,
  93. .colors-custom .widget a,
  94. .colors-custom .site-footer .widget-area a,
  95. .colors-custom .posts-navigation a,
  96. .colors-custom .widget_authors a strong {
  97. -webkit-box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */
  98. box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 6% ); /* base: rgba(15, 15, 15, 1); */
  99. }
  100. .colors-custom button,
  101. .colors-custom input[type="button"],
  102. .colors-custom input[type="submit"],
  103. .colors-custom .entry-footer .edit-link a.post-edit-link {
  104. background-color: hsl( ' . $hue . ', ' . $saturation . ', 13% ); /* base: #222; */
  105. }
  106. .colors-custom input[type="text"]:focus,
  107. .colors-custom input[type="email"]:focus,
  108. .colors-custom input[type="url"]:focus,
  109. .colors-custom input[type="password"]:focus,
  110. .colors-custom input[type="search"]:focus,
  111. .colors-custom input[type="number"]:focus,
  112. .colors-custom input[type="tel"]:focus,
  113. .colors-custom input[type="range"]:focus,
  114. .colors-custom input[type="date"]:focus,
  115. .colors-custom input[type="month"]:focus,
  116. .colors-custom input[type="week"]:focus,
  117. .colors-custom input[type="time"]:focus,
  118. .colors-custom input[type="datetime"]:focus,
  119. .colors-custom .colors-custom input[type="datetime-local"]:focus,
  120. .colors-custom input[type="color"]:focus,
  121. .colors-custom textarea:focus,
  122. .colors-custom button.secondary,
  123. .colors-custom input[type="reset"],
  124. .colors-custom input[type="button"].secondary,
  125. .colors-custom input[type="reset"].secondary,
  126. .colors-custom input[type="submit"].secondary,
  127. .colors-custom a,
  128. .colors-custom .site-title,
  129. .colors-custom .site-title a,
  130. .colors-custom .navigation-top a,
  131. .colors-custom .dropdown-toggle,
  132. .colors-custom .menu-toggle,
  133. .colors-custom .page .panel-content .entry-title,
  134. .colors-custom .page-title,
  135. .colors-custom.page:not(.twentyseventeen-front-page) .entry-title,
  136. .colors-custom .page-links a .page-number,
  137. .colors-custom .comment-metadata a.comment-edit-link,
  138. .colors-custom .comment-reply-link .icon,
  139. .colors-custom h2.widget-title,
  140. .colors-custom mark,
  141. .colors-custom .post-navigation a:focus .icon,
  142. .colors-custom .post-navigation a:hover .icon,
  143. .colors-custom .site-content .site-content-light,
  144. .colors-custom .twentyseventeen-panel .recent-posts .entry-header .edit-link {
  145. color: hsl( ' . $hue . ', ' . $saturation . ', 13% ); /* base: #222; */
  146. }
  147. .colors-custom .entry-content a:focus,
  148. .colors-custom .entry-content a:hover,
  149. .colors-custom .entry-summary a:focus,
  150. .colors-custom .entry-summary a:hover,
  151. .colors-custom .comment-content a:focus,
  152. .colors-custom .comment-content a:hover,
  153. .colors-custom .widget a:focus,
  154. .colors-custom .widget a:hover,
  155. .colors-custom .site-footer .widget-area a:focus,
  156. .colors-custom .site-footer .widget-area a:hover,
  157. .colors-custom .posts-navigation a:focus,
  158. .colors-custom .posts-navigation a:hover,
  159. .colors-custom .comment-metadata a:focus,
  160. .colors-custom .comment-metadata a:hover,
  161. .colors-custom .comment-metadata a.comment-edit-link:focus,
  162. .colors-custom .comment-metadata a.comment-edit-link:hover,
  163. .colors-custom .comment-reply-link:focus,
  164. .colors-custom .comment-reply-link:hover,
  165. .colors-custom .widget_authors a:focus strong,
  166. .colors-custom .widget_authors a:hover strong,
  167. .colors-custom .entry-title a:focus,
  168. .colors-custom .entry-title a:hover,
  169. .colors-custom .entry-meta a:focus,
  170. .colors-custom .entry-meta a:hover,
  171. .colors-custom.blog .entry-meta a.post-edit-link:focus,
  172. .colors-custom.blog .entry-meta a.post-edit-link:hover,
  173. .colors-custom.archive .entry-meta a.post-edit-link:focus,
  174. .colors-custom.archive .entry-meta a.post-edit-link:hover,
  175. .colors-custom.search .entry-meta a.post-edit-link:focus,
  176. .colors-custom.search .entry-meta a.post-edit-link:hover,
  177. .colors-custom .page-links a:focus .page-number,
  178. .colors-custom .page-links a:hover .page-number,
  179. .colors-custom .entry-footer .cat-links a:focus,
  180. .colors-custom .entry-footer .cat-links a:hover,
  181. .colors-custom .entry-footer .tags-links a:focus,
  182. .colors-custom .entry-footer .tags-links a:hover,
  183. .colors-custom .post-navigation a:focus,
  184. .colors-custom .post-navigation a:hover,
  185. .colors-custom .pagination a:not(.prev):not(.next):focus,
  186. .colors-custom .pagination a:not(.prev):not(.next):hover,
  187. .colors-custom .comments-pagination a:not(.prev):not(.next):focus,
  188. .colors-custom .comments-pagination a:not(.prev):not(.next):hover,
  189. .colors-custom .logged-in-as a:focus,
  190. .colors-custom .logged-in-as a:hover,
  191. .colors-custom a:focus .nav-title,
  192. .colors-custom a:hover .nav-title,
  193. .colors-custom .edit-link a:focus,
  194. .colors-custom .edit-link a:hover,
  195. .colors-custom .site-info a:focus,
  196. .colors-custom .site-info a:hover,
  197. .colors-custom .widget .widget-title a:focus,
  198. .colors-custom .widget .widget-title a:hover,
  199. .colors-custom .widget ul li a:focus,
  200. .colors-custom .widget ul li a:hover {
  201. -webkit-box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation . ', 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% );
  202. box-shadow: inset 0 0 0 hsl( ' . $hue . ', ' . $saturation . ' , 13% ), 0 3px 0 hsl( ' . $hue . ', ' . $saturation . ', 13% );
  203. }
  204. body.colors-custom,
  205. .colors-custom button,
  206. .colors-custom input,
  207. .colors-custom select,
  208. .colors-custom textarea,
  209. .colors-custom h3,
  210. .colors-custom h4,
  211. .colors-custom h6,
  212. .colors-custom label,
  213. .colors-custom .entry-title a,
  214. .colors-custom.twentyseventeen-front-page .panel-content .recent-posts article,
  215. .colors-custom .entry-footer .cat-links a,
  216. .colors-custom .entry-footer .tags-links a,
  217. .colors-custom .format-quote blockquote,
  218. .colors-custom .nav-title,
  219. .colors-custom .comment-body,
  220. .colors-custom .site-content .wp-playlist-light .wp-playlist-current-item .wp-playlist-item-album {
  221. color: hsl( ' . $hue . ', ' . $reduced_saturation . ', 20% ); /* base: #333; */
  222. }
  223. .colors-custom .social-navigation a:hover,
  224. .colors-custom .social-navigation a:focus {
  225. background: hsl( ' . $hue . ', ' . $reduced_saturation . ', 20% ); /* base: #333; */
  226. }
  227. .colors-custom input[type="text"]:focus,
  228. .colors-custom input[type="email"]:focus,
  229. .colors-custom input[type="url"]:focus,
  230. .colors-custom input[type="password"]:focus,
  231. .colors-custom input[type="search"]:focus,
  232. .colors-custom input[type="number"]:focus,
  233. .colors-custom input[type="tel"]:focus,
  234. .colors-custom input[type="range"]:focus,
  235. .colors-custom input[type="date"]:focus,
  236. .colors-custom input[type="month"]:focus,
  237. .colors-custom input[type="week"]:focus,
  238. .colors-custom input[type="time"]:focus,
  239. .colors-custom input[type="datetime"]:focus,
  240. .colors-custom input[type="datetime-local"]:focus,
  241. .colors-custom input[type="color"]:focus,
  242. .colors-custom textarea:focus,
  243. .bypostauthor > .comment-body > .comment-meta > .comment-author .avatar {
  244. border-color: hsl( ' . $hue . ', ' . $reduced_saturation . ', 20% ); /* base: #333; */
  245. }
  246. .colors-custom h2,
  247. .colors-custom blockquote,
  248. .colors-custom input[type="text"],
  249. .colors-custom input[type="email"],
  250. .colors-custom input[type="url"],
  251. .colors-custom input[type="password"],
  252. .colors-custom input[type="search"],
  253. .colors-custom input[type="number"],
  254. .colors-custom input[type="tel"],
  255. .colors-custom input[type="range"],
  256. .colors-custom input[type="date"],
  257. .colors-custom input[type="month"],
  258. .colors-custom input[type="week"],
  259. .colors-custom input[type="time"],
  260. .colors-custom input[type="datetime"],
  261. .colors-custom input[type="datetime-local"],
  262. .colors-custom input[type="color"],
  263. .colors-custom textarea,
  264. .colors-custom .site-description,
  265. .colors-custom .entry-content blockquote.alignleft,
  266. .colors-custom .entry-content blockquote.alignright,
  267. .colors-custom .colors-custom .taxonomy-description,
  268. .colors-custom .site-info a,
  269. .colors-custom .wp-caption,
  270. .colors-custom .gallery-caption {
  271. color: hsl( ' . $hue . ', ' . $saturation . ', 40% ); /* base: #666; */
  272. }
  273. .colors-custom abbr,
  274. .colors-custom acronym {
  275. border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 40% ); /* base: #666; */
  276. }
  277. .colors-custom h5,
  278. .colors-custom .entry-meta,
  279. .colors-custom .entry-meta a,
  280. .colors-custom.blog .entry-meta a.post-edit-link,
  281. .colors-custom.archive .entry-meta a.post-edit-link,
  282. .colors-custom.search .entry-meta a.post-edit-link,
  283. .colors-custom .nav-subtitle,
  284. .colors-custom .comment-metadata,
  285. .colors-custom .comment-metadata a,
  286. .colors-custom .no-comments,
  287. .colors-custom .comment-awaiting-moderation,
  288. .colors-custom .page-numbers.current,
  289. .colors-custom .page-links .page-number,
  290. .colors-custom .navigation-top .current-menu-item > a,
  291. .colors-custom .navigation-top .current_page_item > a,
  292. .colors-custom .main-navigation a:hover,
  293. .colors-custom .site-content .wp-playlist-light .wp-playlist-current-item .wp-playlist-item-artist {
  294. color: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */
  295. }
  296. .colors-custom :not( .mejs-button ) > button:hover,
  297. .colors-custom :not( .mejs-button ) > button:focus,
  298. .colors-custom input[type="button"]:hover,
  299. .colors-custom input[type="button"]:focus,
  300. .colors-custom input[type="submit"]:hover,
  301. .colors-custom input[type="submit"]:focus,
  302. .colors-custom .entry-footer .edit-link a.post-edit-link:hover,
  303. .colors-custom .entry-footer .edit-link a.post-edit-link:focus,
  304. .colors-custom .social-navigation a,
  305. .colors-custom .prev.page-numbers:focus,
  306. .colors-custom .prev.page-numbers:hover,
  307. .colors-custom .next.page-numbers:focus,
  308. .colors-custom .next.page-numbers:hover,
  309. .colors-custom .site-content .wp-playlist-light .wp-playlist-item:hover,
  310. .colors-custom .site-content .wp-playlist-light .wp-playlist-item:focus {
  311. background: hsl( ' . esc_attr( $hue ) . ', ' . esc_attr( $saturation ) . ', 46% ); /* base: #767676; */
  312. }
  313. .colors-custom button.secondary:hover,
  314. .colors-custom button.secondary:focus,
  315. .colors-custom input[type="reset"]:hover,
  316. .colors-custom input[type="reset"]:focus,
  317. .colors-custom input[type="button"].secondary:hover,
  318. .colors-custom input[type="button"].secondary:focus,
  319. .colors-custom input[type="reset"].secondary:hover,
  320. .colors-custom input[type="reset"].secondary:focus,
  321. .colors-custom input[type="submit"].secondary:hover,
  322. .colors-custom input[type="submit"].secondary:focus,
  323. .colors-custom hr {
  324. background: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */
  325. }
  326. .colors-custom input[type="text"],
  327. .colors-custom input[type="email"],
  328. .colors-custom input[type="url"],
  329. .colors-custom input[type="password"],
  330. .colors-custom input[type="search"],
  331. .colors-custom input[type="number"],
  332. .colors-custom input[type="tel"],
  333. .colors-custom input[type="range"],
  334. .colors-custom input[type="date"],
  335. .colors-custom input[type="month"],
  336. .colors-custom input[type="week"],
  337. .colors-custom input[type="time"],
  338. .colors-custom input[type="datetime"],
  339. .colors-custom input[type="datetime-local"],
  340. .colors-custom input[type="color"],
  341. .colors-custom textarea,
  342. .colors-custom select,
  343. .colors-custom fieldset,
  344. .colors-custom .widget .tagcloud a:hover,
  345. .colors-custom .widget .tagcloud a:focus,
  346. .colors-custom .widget.widget_tag_cloud a:hover,
  347. .colors-custom .widget.widget_tag_cloud a:focus,
  348. .colors-custom .wp_widget_tag_cloud a:hover,
  349. .colors-custom .wp_widget_tag_cloud a:focus {
  350. border-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */
  351. }
  352. .colors-custom thead th {
  353. border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */
  354. }
  355. .colors-custom .entry-footer .cat-links .icon,
  356. .colors-custom .entry-footer .tags-links .icon {
  357. color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */
  358. }
  359. .colors-custom button.secondary,
  360. .colors-custom input[type="reset"],
  361. .colors-custom input[type="button"].secondary,
  362. .colors-custom input[type="reset"].secondary,
  363. .colors-custom input[type="submit"].secondary,
  364. .colors-custom .prev.page-numbers,
  365. .colors-custom .next.page-numbers {
  366. background-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */
  367. }
  368. .colors-custom .widget .tagcloud a,
  369. .colors-custom .widget.widget_tag_cloud a,
  370. .colors-custom .wp_widget_tag_cloud a {
  371. border-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */
  372. }
  373. .colors-custom.twentyseventeen-front-page article:not(.has-post-thumbnail):not(:first-child),
  374. .colors-custom .widget ul li {
  375. border-top-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */
  376. }
  377. .colors-custom .widget ul li {
  378. border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 87% ); /* base: #ddd; */
  379. }
  380. .colors-custom pre,
  381. .colors-custom mark,
  382. .colors-custom ins {
  383. background: hsl( ' . $hue . ', ' . $saturation . ', 93% ); /* base: #eee; */
  384. }
  385. .colors-custom .navigation-top,
  386. .colors-custom .main-navigation > div > ul,
  387. .colors-custom .pagination,
  388. .colors-custom .comments-pagination,
  389. .colors-custom .entry-footer,
  390. .colors-custom .site-footer {
  391. border-top-color: hsl( ' . $hue . ', ' . $saturation . ', 93% ); /* base: #eee; */
  392. }
  393. .colors-custom .navigation-top,
  394. .colors-custom .main-navigation li,
  395. .colors-custom .entry-footer,
  396. .colors-custom .single-featured-image-header,
  397. .colors-custom .site-content .wp-playlist-light .wp-playlist-item,
  398. .colors-custom tr {
  399. border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 93% ); /* base: #eee; */
  400. }
  401. .colors-custom .site-content .wp-playlist-light {
  402. border-color: hsl( ' . $hue . ', ' . $saturation . ', 93% ); /* base: #eee; */
  403. }
  404. .colors-custom .site-header,
  405. .colors-custom .single-featured-image-header {
  406. background-color: hsl( ' . $hue . ', ' . $saturation . ', 98% ); /* base: #fafafa; */
  407. }
  408. .colors-custom button,
  409. .colors-custom input[type="button"],
  410. .colors-custom input[type="submit"],
  411. .colors-custom .entry-footer .edit-link a.post-edit-link,
  412. .colors-custom .social-navigation a,
  413. .colors-custom .site-content .wp-playlist-light a.wp-playlist-caption:hover,
  414. .colors-custom .site-content .wp-playlist-light .wp-playlist-item:hover a,
  415. .colors-custom .site-content .wp-playlist-light .wp-playlist-item:focus a,
  416. .colors-custom .site-content .wp-playlist-light .wp-playlist-item:hover,
  417. .colors-custom .site-content .wp-playlist-light .wp-playlist-item:focus,
  418. .colors-custom .prev.page-numbers:focus,
  419. .colors-custom .prev.page-numbers:hover,
  420. .colors-custom .next.page-numbers:focus,
  421. .colors-custom .next.page-numbers:hover,
  422. .colors-custom.has-header-image .site-title,
  423. .colors-custom.has-header-video .site-title,
  424. .colors-custom.has-header-image .site-title a,
  425. .colors-custom.has-header-video .site-title a,
  426. .colors-custom.has-header-image .site-description,
  427. .colors-custom.has-header-video .site-description {
  428. color: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */
  429. }
  430. body.colors-custom,
  431. .colors-custom .navigation-top,
  432. .colors-custom .main-navigation ul {
  433. background: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */
  434. }
  435. .colors-custom .widget ul li a,
  436. .colors-custom .site-footer .widget-area ul li a {
  437. -webkit-box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: rgba(255, 255, 255, 1); */
  438. box-shadow: inset 0 -1px 0 hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: rgba(255, 255, 255, 1); */
  439. }
  440. .colors-custom .menu-toggle,
  441. .colors-custom .menu-toggle:hover,
  442. .colors-custom .menu-toggle:focus,
  443. .colors-custom .menu .dropdown-toggle,
  444. .colors-custom .menu-scroll-down,
  445. .colors-custom .menu-scroll-down:hover,
  446. .colors-custom .menu-scroll-down:focus {
  447. background-color: transparent;
  448. }
  449. .colors-custom .widget .tagcloud a,
  450. .colors-custom .widget .tagcloud a:focus,
  451. .colors-custom .widget .tagcloud a:hover,
  452. .colors-custom .widget.widget_tag_cloud a,
  453. .colors-custom .widget.widget_tag_cloud a:focus,
  454. .colors-custom .widget.widget_tag_cloud a:hover,
  455. .colors-custom .wp_widget_tag_cloud a,
  456. .colors-custom .wp_widget_tag_cloud a:focus,
  457. .colors-custom .wp_widget_tag_cloud a:hover,
  458. .colors-custom .entry-footer .edit-link a.post-edit-link:focus,
  459. .colors-custom .entry-footer .edit-link a.post-edit-link:hover {
  460. -webkit-box-shadow: none !important;
  461. box-shadow: none !important;
  462. }
  463. /* Reset non-customizable hover styling for links */
  464. .colors-custom .entry-content a:hover,
  465. .colors-custom .entry-content a:focus,
  466. .colors-custom .entry-summary a:hover,
  467. .colors-custom .entry-summary a:focus,
  468. .colors-custom .comment-content a:focus,
  469. .colors-custom .comment-content a:hover,
  470. .colors-custom .widget a:hover,
  471. .colors-custom .widget a:focus,
  472. .colors-custom .site-footer .widget-area a:hover,
  473. .colors-custom .site-footer .widget-area a:focus,
  474. .colors-custom .posts-navigation a:hover,
  475. .colors-custom .posts-navigation a:focus,
  476. .colors-custom .widget_authors a:hover strong,
  477. .colors-custom .widget_authors a:focus strong {
  478. -webkit-box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 rgba(0, 0, 0, 1);
  479. box-shadow: inset 0 0 0 rgba(0, 0, 0, 0), 0 3px 0 rgba(0, 0, 0, 1);
  480. }
  481. .colors-custom .gallery-item a,
  482. .colors-custom .gallery-item a:hover,
  483. .colors-custom .gallery-item a:focus {
  484. -webkit-box-shadow: none;
  485. box-shadow: none;
  486. }
  487. @media screen and (min-width: 48em) {
  488. .colors-custom .nav-links .nav-previous .nav-title .icon,
  489. .colors-custom .nav-links .nav-next .nav-title .icon {
  490. color: hsl( ' . $hue . ', ' . $saturation . ', 20% ); /* base: #222; */
  491. }
  492. .colors-custom .main-navigation li li:hover,
  493. .colors-custom .main-navigation li li.focus {
  494. background: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */
  495. }
  496. .colors-custom .navigation-top .menu-scroll-down {
  497. color: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */;
  498. }
  499. .colors-custom abbr[title] {
  500. border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 46% ); /* base: #767676; */;
  501. }
  502. .colors-custom .main-navigation ul ul {
  503. border-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */
  504. background: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */
  505. }
  506. .colors-custom .main-navigation ul li.menu-item-has-children:before,
  507. .colors-custom .main-navigation ul li.page_item_has_children:before {
  508. border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 73% ); /* base: #bbb; */
  509. }
  510. .colors-custom .main-navigation ul li.menu-item-has-children:after,
  511. .colors-custom .main-navigation ul li.page_item_has_children:after {
  512. border-bottom-color: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */
  513. }
  514. .colors-custom .main-navigation li li.focus > a,
  515. .colors-custom .main-navigation li li:focus > a,
  516. .colors-custom .main-navigation li li:hover > a,
  517. .colors-custom .main-navigation li li a:hover,
  518. .colors-custom .main-navigation li li a:focus,
  519. .colors-custom .main-navigation li li.current_page_item a:hover,
  520. .colors-custom .main-navigation li li.current-menu-item a:hover,
  521. .colors-custom .main-navigation li li.current_page_item a:focus,
  522. .colors-custom .main-navigation li li.current-menu-item a:focus {
  523. color: hsl( ' . $hue . ', ' . $saturation . ', 100% ); /* base: #fff; */
  524. }
  525. }';
  526. /**
  527. * Filters Twenty Seventeen custom colors CSS.
  528. *
  529. * @since Twenty Seventeen 1.0
  530. *
  531. * @param string $css Base theme colors CSS.
  532. * @param int $hue The user's selected color hue.
  533. * @param string $saturation Filtered theme color saturation level.
  534. */
  535. return apply_filters( 'twentyseventeen_custom_colors_css', $css, $hue, $saturation );
  536. }