Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Twenty Nineteen: Color Patterns
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage TwentyNineteen
|
|
|
|
* @since 1.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Generate the CSS for the current primary color.
|
|
|
|
*/
|
|
|
|
function twentynineteen_custom_colors_css() {
|
|
|
|
|
2018-12-19 04:18:26 +01:00
|
|
|
$primary_color = 199;
|
|
|
|
if ( 'default' !== get_theme_mod( 'primary_color', 'default' ) ) {
|
2018-12-19 04:21:42 +01:00
|
|
|
$primary_color = absint( get_theme_mod( 'primary_color_hue', 199 ) );
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Filter Twenty Nineteen default saturation level.
|
|
|
|
*
|
|
|
|
* @since Twenty Nineteen 1.0
|
|
|
|
*
|
|
|
|
* @param int $saturation Color saturation level.
|
|
|
|
*/
|
2018-12-19 04:18:26 +01:00
|
|
|
$saturation = apply_filters( 'twentynineteen_custom_colors_saturation', 100 );
|
|
|
|
$saturation = absint( $saturation ) . '%';
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
|
2018-12-19 04:18:26 +01:00
|
|
|
/**
|
|
|
|
* Filter Twenty Nineteen default selection saturation level.
|
|
|
|
*
|
|
|
|
* @since Twenty Nineteen 1.0
|
|
|
|
*
|
|
|
|
* @param int $saturation_selection Selection color saturation level.
|
|
|
|
*/
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
$saturation_selection = absint( apply_filters( 'twentynineteen_custom_colors_saturation_selection', 50 ) );
|
|
|
|
$saturation_selection = $saturation_selection . '%';
|
|
|
|
|
2018-12-19 04:18:26 +01:00
|
|
|
/**
|
|
|
|
* Filter Twenty Nineteen default lightness level.
|
|
|
|
*
|
|
|
|
* @since Twenty Nineteen 1.0
|
|
|
|
*
|
|
|
|
* @param int $lightness Color lightness level.
|
|
|
|
*/
|
|
|
|
$lightness = apply_filters( 'twentynineteen_custom_colors_lightness', 33 );
|
|
|
|
$lightness = absint( $lightness ) . '%';
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
|
2018-12-19 04:18:26 +01:00
|
|
|
/**
|
|
|
|
* Filter Twenty Nineteen default hover lightness level.
|
|
|
|
*
|
|
|
|
* @since Twenty Nineteen 1.0
|
|
|
|
*
|
|
|
|
* @param int $lightness_hover Hover color lightness level.
|
|
|
|
*/
|
|
|
|
$lightness_hover = apply_filters( 'twentynineteen_custom_colors_lightness_hover', 23 );
|
|
|
|
$lightness_hover = absint( $lightness_hover ) . '%';
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
|
2018-12-19 04:18:26 +01:00
|
|
|
/**
|
|
|
|
* Filter Twenty Nineteen default selection lightness level.
|
|
|
|
*
|
|
|
|
* @since Twenty Nineteen 1.0
|
|
|
|
*
|
|
|
|
* @param int $lightness_selection Selection color lightness level.
|
|
|
|
*/
|
|
|
|
$lightness_selection = apply_filters( 'twentynineteen_custom_colors_lightness_selection', 90 );
|
|
|
|
$lightness_selection = absint( $lightness_selection ) . '%';
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
|
|
|
|
$theme_css = '
|
|
|
|
/*
|
|
|
|
* Set background for:
|
|
|
|
* - featured image :before
|
|
|
|
* - featured image :before
|
|
|
|
* - post thumbmail :before
|
|
|
|
* - post thumbmail :before
|
|
|
|
* - Submenu
|
|
|
|
* - Sticky Post
|
|
|
|
* - buttons
|
|
|
|
* - WP Block Button
|
|
|
|
* - Blocks
|
|
|
|
*/
|
|
|
|
.image-filters-enabled .site-header.featured-image .site-featured-image:before,
|
|
|
|
.image-filters-enabled .site-header.featured-image .site-featured-image:after,
|
|
|
|
.image-filters-enabled .entry .post-thumbnail:before,
|
|
|
|
.image-filters-enabled .entry .post-thumbnail:after,
|
|
|
|
.main-navigation .sub-menu,
|
|
|
|
.sticky-post,
|
|
|
|
.entry .entry-content .wp-block-button .wp-block-button__link:not(.has-background),
|
|
|
|
.entry .button, button, input[type="button"], input[type="reset"], input[type="submit"],
|
|
|
|
.entry .entry-content > .has-primary-background-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"].has-primary-background-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"] .has-primary-background-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color.has-primary-background-color,
|
|
|
|
.entry .entry-content .wp-block-file .wp-block-file__button {
|
|
|
|
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Set Color for:
|
|
|
|
* - all links
|
|
|
|
* - main navigation links
|
|
|
|
* - Post navigation links
|
|
|
|
* - Post entry meta hover
|
|
|
|
* - Post entry header more-link hover
|
|
|
|
* - main navigation svg
|
|
|
|
* - comment navigation
|
|
|
|
* - Comment edit link hover
|
|
|
|
* - Site Footer Link hover
|
|
|
|
* - Widget links
|
|
|
|
*/
|
|
|
|
a,
|
|
|
|
a:visited,
|
|
|
|
.main-navigation .main-menu > li,
|
|
|
|
.main-navigation ul.main-menu > li > a,
|
|
|
|
.post-navigation .post-title,
|
|
|
|
.entry .entry-meta a:hover,
|
|
|
|
.entry .entry-footer a:hover,
|
|
|
|
.entry .entry-content .more-link:hover,
|
|
|
|
.main-navigation .main-menu > li > a + svg,
|
|
|
|
.comment .comment-metadata > a:hover,
|
|
|
|
.comment .comment-metadata .comment-edit-link:hover,
|
|
|
|
#colophon .site-info a:hover,
|
|
|
|
.widget a,
|
|
|
|
.entry .entry-content .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
|
|
|
|
.entry .entry-content > .has-primary-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"] .has-primary-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-primary-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-primary-color p {
|
|
|
|
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2019-02-13 19:40:49 +01:00
|
|
|
* Set border color for:
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
* wp block quote
|
2019-02-13 19:40:49 +01:00
|
|
|
* :focus
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
*/
|
|
|
|
blockquote,
|
|
|
|
.entry .entry-content blockquote,
|
|
|
|
.entry .entry-content .wp-block-quote:not(.is-large),
|
2019-02-13 19:40:49 +01:00
|
|
|
.entry .entry-content .wp-block-quote:not(.is-style-large),
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
input[type="text"]:focus,
|
|
|
|
input[type="email"]:focus,
|
|
|
|
input[type="url"]:focus,
|
|
|
|
input[type="password"]:focus,
|
|
|
|
input[type="search"]:focus,
|
|
|
|
input[type="number"]:focus,
|
|
|
|
input[type="tel"]:focus,
|
|
|
|
input[type="range"]:focus,
|
|
|
|
input[type="date"]:focus,
|
|
|
|
input[type="month"]:focus,
|
|
|
|
input[type="week"]:focus,
|
|
|
|
input[type="time"]:focus,
|
|
|
|
input[type="datetime"]:focus,
|
|
|
|
input[type="datetime-local"]:focus,
|
|
|
|
input[type="color"]:focus,
|
|
|
|
textarea:focus {
|
|
|
|
border-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.gallery-item > div > a:focus {
|
|
|
|
box-shadow: 0 0 0 2px hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hover colors */
|
|
|
|
a:hover, a:active,
|
|
|
|
.main-navigation .main-menu > li > a:hover,
|
|
|
|
.main-navigation .main-menu > li > a:hover + svg,
|
|
|
|
.post-navigation .nav-links a:hover,
|
|
|
|
.post-navigation .nav-links a:hover .post-title,
|
|
|
|
.author-bio .author-description .author-link:hover,
|
|
|
|
.entry .entry-content > .has-secondary-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"] .has-secondary-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-secondary-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color blockquote.has-secondary-color p,
|
|
|
|
.comment .comment-author .fn a:hover,
|
|
|
|
.comment-reply-link:hover,
|
|
|
|
.comment-navigation .nav-previous a:hover,
|
|
|
|
.comment-navigation .nav-next a:hover,
|
|
|
|
#cancel-comment-reply-link:hover,
|
|
|
|
.widget a:hover {
|
|
|
|
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-navigation .sub-menu > li > a:hover,
|
|
|
|
.main-navigation .sub-menu > li > a:focus,
|
|
|
|
.main-navigation .sub-menu > li > a:hover:after,
|
|
|
|
.main-navigation .sub-menu > li > a:focus:after,
|
|
|
|
.main-navigation .sub-menu > li > .menu-item-link-return:hover,
|
|
|
|
.main-navigation .sub-menu > li > .menu-item-link-return:focus,
|
|
|
|
.main-navigation .sub-menu > li > a:not(.submenu-expand):hover,
|
|
|
|
.main-navigation .sub-menu > li > a:not(.submenu-expand):focus,
|
|
|
|
.entry .entry-content > .has-secondary-background-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"].has-secondary-background-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"] .has-secondary-background-color,
|
|
|
|
.entry .entry-content > *[class^="wp-block-"].is-style-solid-color.has-secondary-background-color {
|
|
|
|
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Text selection colors */
|
|
|
|
::selection {
|
|
|
|
background-color: hsl( ' . $primary_color . ', ' . $saturation_selection . ', ' . $lightness_selection . ' ); /* base: #005177; */
|
|
|
|
}
|
|
|
|
::-moz-selection {
|
|
|
|
background-color: hsl( ' . $primary_color . ', ' . $saturation_selection . ', ' . $lightness_selection . ' ); /* base: #005177; */
|
|
|
|
}';
|
|
|
|
|
|
|
|
$editor_css = '
|
|
|
|
/*
|
|
|
|
* Set colors for:
|
|
|
|
* - links
|
|
|
|
* - blockquote
|
|
|
|
* - pullquote (solid color)
|
|
|
|
* - buttons
|
|
|
|
*/
|
|
|
|
.editor-block-list__layout .editor-block-list__block a,
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:hover .wp-block-button__link:not(.has-text-color),
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:focus .wp-block-button__link:not(.has-text-color),
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-button.is-style-outline:active .wp-block-button__link:not(.has-text-color),
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink {
|
|
|
|
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-quote:not(.is-large):not(.is-style-large),
|
|
|
|
.editor-styles-wrapper .editor-block-list__layout .wp-block-freeform blockquote {
|
2019-02-13 19:40:49 +01:00
|
|
|
border-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-pullquote.is-style-solid-color:not(.has-background-color) {
|
|
|
|
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__button,
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link,
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:active,
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
|
|
|
|
background-color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness . ' ); /* base: #0073a8; */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Hover colors */
|
|
|
|
.editor-block-list__layout .editor-block-list__block a:hover,
|
|
|
|
.editor-block-list__layout .editor-block-list__block a:active,
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-file .wp-block-file__textlink:hover {
|
|
|
|
color: hsl( ' . $primary_color . ', ' . $saturation . ', ' . $lightness_hover . ' ); /* base: #005177; */
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Do not overwrite solid color pullquote or cover links */
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-pullquote.is-style-solid-color a,
|
|
|
|
.editor-block-list__layout .editor-block-list__block .wp-block-cover a {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
';
|
2018-12-19 04:18:26 +01:00
|
|
|
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
if ( function_exists( 'register_block_type' ) && is_admin() ) {
|
2018-12-19 04:18:26 +01:00
|
|
|
$theme_css = $editor_css;
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Filters Twenty Nineteen custom colors CSS.
|
|
|
|
*
|
|
|
|
* @since Twenty Nineteen 1.0
|
|
|
|
*
|
|
|
|
* @param string $css Base theme colors CSS.
|
|
|
|
* @param int $primary_color The user's selected color hue.
|
|
|
|
* @param string $saturation Filtered theme color saturation level.
|
|
|
|
*/
|
2018-12-19 04:18:26 +01:00
|
|
|
return apply_filters( 'twentynineteen_custom_colors_css', $theme_css, $primary_color, $saturation );
|
Default Themes: Import Twenty Nineteen from the 5.0 branch.
Merges [43808,43821,43842,43860,43892,43904,43909,43926-43929,43956,43961-43963] from the 5.0 branch to trunk.
Props allancole, karmatosed, kjellr, yingling017, mrasharirfan, milana_cap, fabiankaegy, westonruter, jorbin, netweb, b-07, khleomix, audrasjb, nielslange, mmaumio, richsalvucci, littlebigthing, dimadin, joyously, anevins, peterwilsoncc, dannycooper, iCaleb, siriokun, technosiren, travel_girl, azchughtai, ianbelanger, nadim1992, ismailelkorchi, nativeinside, chetan200891, grapplerulrich, ocean90, joshfeck, frankew, AbdulWahab610, mendezcode, eliorivero, melchoyce, joen, laurelfulford, mdawaffe, kraftbj, dsmart, nao, mayukojpn, enodekciw, ketuchetan, atanasangelovdev, poena, sharaz, artisticasad, mukesh27, burhandodhy, crunnells, aprakasa, themeroots, imonly_ik, tlxo, youthkee, brentswisher, smyoon315, mrahmadawais, desideveloper, Kau-Boy, mor10, mikeyarce, dingo_bastard, xkon, twoabove.
Fixes #45424.
Built from https://develop.svn.wordpress.org/trunk@44149
git-svn-id: http://core.svn.wordpress.org/trunk@43979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2018-12-14 03:33:41 +01:00
|
|
|
}
|