Merge pull request #1966 from Automattic/add/color-annotations-rivington

Rivington: Add Color Annotations
This commit is contained in:
Allan Cole 2020-06-17 13:43:17 -04:00 committed by GitHub
commit 2057a42796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 948 additions and 193 deletions

View file

@ -58,52 +58,57 @@ if ( ! function_exists( 'rivington_setup' ) ) :
)
);
// Add child theme editor color pallete to match Sass-map variables in `_config-child-theme-deep.scss`.
/*
* Get customizer colors and add them to the editor color palettes
*
* - if the customizer color is empty, use the default
*/
$colors_array = get_theme_mod( 'colors_manager' ); // color annotations array()
$primary = ! empty( $colors_array ) ? $colors_array['colors']['link'] : '#CAAB57'; // $config-global--color-primary-default;
$secondary = ! empty( $colors_array ) ? $colors_array['colors']['fg1'] : '#EE4266'; // $config-global--color-secondary-default;
$background = ! empty( $colors_array ) ? $colors_array['colors']['bg'] : '#060f29'; // $config-global--color-background-default;
$foreground = ! empty( $colors_array ) ? $colors_array['colors']['txt'] : '#F2F2F2'; // $config-global--color-foreground-default;
$foreground_light = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#F2F2F2' ) ? $colors_array['colors']['txt'] : '#FFFFFF'; // $config-global--color-foreground-light-default;
$foreground_dark = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#F2F2F2' ) ? $colors_array['colors']['txt'] : '#8F8F8F'; // $config-global--color-foreground-dark-default;
// Editor color palette.
add_theme_support(
'editor-color-palette',
array(
array(
'name' => __( 'Primary', 'rivington' ),
'slug' => 'primary',
'color' => '#CAAB57',
'color' => $primary,
),
array(
'name' => __( 'Secondary', 'rivington' ),
'slug' => 'secondary',
'color' => '#EE4266',
'color' => $secondary,
),
array(
'name' => __( 'Light Gray', 'rivington' ),
'slug' => 'foreground-dark',
'color' => '#8F8F8F',
),
array(
'name' => __( 'Off White', 'rivington' ),
'slug' => 'foreground',
'color' => '#F2F2F2',
),
array(
'name' => __( 'White', 'rivington' ),
'slug' => 'foreground-light',
'color' => '#FFFFFF',
),
array(
'name' => __( 'Dark Navy', 'rivington' ),
'slug' => 'background-dark',
'color' => '#030713',
),
array(
'name' => __( 'Navy', 'rivington' ),
'name' => __( 'Background', 'rivington' ),
'slug' => 'background',
'color' => '#060f29',
'color' => $background,
),
array(
'name' => __( 'Light Navy', 'rivington' ),
'slug' => 'background-light',
'color' => '#0d1f55',
'name' => __( 'Foreground', 'rivington' ),
'slug' => 'foreground',
'color' => $foreground,
),
array(
'name' => __( 'Foreground Light', 'rivington' ),
'slug' => 'foreground-light',
'color' => $foreground_light,
),
array(
'name' => __( 'Foreground Dark', 'rivington' ),
'slug' => 'foreground-dark',
'color' => $foreground_dark,
),
)
);
// Remove footer menu
unregister_nav_menu( 'menu-2' );
}

View file

@ -0,0 +1,467 @@
<?php
/* Custom Colors: Rivington */
// Background Color
// $config-global--color-background-default
add_color_rule( 'bg', '#060f29', array(
// Background-color
array( '.screen-reader-text:focus,
body,
body .widget_eu_cookie_law_widget #eu-cookie-law,
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
.main-navigation > div > ul > li > .sub-menu,
.site-header .main-navigation > div > ul > li:hover li > a,
.site-header .main-navigation > div > ul > li.focus li > a,
.site-header .main-navigation > div > ul > li.current-menu-item li > a,
.site-header .main-navigation > div > ul > li.current-menu-item li.current-menu-item > a,
.site-header .main-navigation > div > ul > li.current-menu-item li.focus > a,
.site-header .main-navigation > div > ul > li.current-menu-item li:hover > a,
.site-header .main-navigation > div > ul > li.focus li.current-menu-item > a,
.site-header .main-navigation > div > ul > li.focus li.focus > a,
.site-header .main-navigation > div > ul > li.focus li:hover > a,
.site-header .main-navigation > div > ul > li:hover li.current-menu-item > a,
.site-header .main-navigation > div > ul > li:hover li.focus > a,
.site-header .main-navigation > div > ul > li:hover li:hover > a', 'background-color' ),
// Text-color
array( '.a8c-posts-list-item__featured span,
.a8c-posts-list__view-all,
.a8c-posts-list__view-all:focus,
.a8c-posts-list__view-all:hover,
.button,
.button:focus,
.button:hover,
.has-focus.a8c-posts-list__view-all,
.has-focus.button,
.has-focus.wp-block-button__link,
.has-focus.wp-block-file__button,
.sticky-post,
.wp-block-button__link,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-button.is-style-outline.wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-file .wp-block-file__button,
.wp-block-file a.wp-block-file__button:active,
.wp-block-file a.wp-block-file__button:focus,
.wp-block-file a.wp-block-file__button:hover,
.wp-block-file a.wp-block-file__button:visited,
.wp-block-file__button,
.wp-block-file__button:focus,
.wp-block-file__button:hover,
.wp-block-pullquote.is-style-solid-color,
table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover-image-text,
.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover-text,
.wp-block-cover-image:not([class="has-background-background-color"]) .wp-block-cover__inner-container,
.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-image-text,
.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover-text,
.wp-block-cover:not([class="has-background-background-color"]) .wp-block-cover__inner-container,
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept,
body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
button,
button.has-focus,
button:focus,
button:hover,
button[data-load-more-btn],
input.has-focus[type="submit"],
input:focus[type="submit"],
input:hover[type="submit"],
input[type="color"],
input[type="color"]:focus,
input[type="date"],
input[type="date"]:focus,
input[type="datetime"],
input[type="datetime"]:focus,
input[type="datetime-local"],
input[type="datetime-local"]:focus,
input[type="email"],
input[type="email"]:focus,
input[type="month"],
input[type="month"]:focus,
input[type="number"],
input[type="number"]:focus,
input[type="password"],
input[type="password"]:focus,
input[type="range"],
input[type="range"]:focus,
input[type="search"],
input[type="search"]:focus,
input[type="submit"],
input[type="tel"],
input[type="tel"]:focus,
input[type="text"],
input[type="text"]:focus,
input[type="time"],
input[type="time"]:focus,
input[type="url"],
input[type="url"]:focus,
input[type="week"],
input[type="week"]:focus,
textarea,
textarea:focus', 'color' ),
/**
* Utility Classes
*/
// Text-color
// Needs contrast against `link` (primary)
array( '.has-primary-background-color[class],
.has-secondary-background-color[class],
.has-foreground-background-color[class],
.has-foreground-dark-background-color[class],
.has-foreground-light-background-color[class],
.has-background-color[class],
.has-background-dark-color[class],
.has-background-light-color[class]', 'color' ),
// Background-color
array( '.has-background-background-color[class]', 'background-color' ),
// Background-color darkened
array( '.has-background-dark-background-color[class]', 'background-color', '-1' ),
// Background-color lightened
array( '.has-background-light-background-color[class]', 'background-color', '+1' ),
/**
* Grays
* Uses a slightly darker color
*/
// Border-color
array( '.wp-block-code,
body .widget_eu_cookie_law_widget #eu-cookie-law,
input[type="color"],
input[type="date"],
input[type="datetime"],
input[type="datetime-local"],
input[type="email"],
input[type="month"],
input[type="number"],
input[type="password"],
input[type="range"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
input[type="week"],
select,
textarea,
.main-navigation > div > ul > li > .sub-menu > li > a,
.main-navigation > div > ul > li > .sub-menu > li:first-child > a,
.main-navigation > div > ul > li > .sub-menu > li:last-child > a', 'border-color', '-1' ),
// Border-top-color
array( '.comment-list .children > li,
.comment-list > li,
.wp-block-pullquote', 'border-top-color', '-1' ),
// Border-bottom-color
array( '.comment-list,
.wp-block-pullquote,
hr,
hr.wp-block-separator', 'border-bottom-color', '-1' ),
// Color
array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
), __( 'Background Color' ) );
// Link Color
// $config-global--color-primary-default
add_color_rule( 'link', '#CAAB57', array(
// Background-color
array( '.a8c-posts-list-item__featured span,
.a8c-posts-list__view-all,
.button,
.main-navigation #toggle:focus + #toggle-menu,
.sticky-post,
.wp-block-button__link,
.wp-block-file .wp-block-file__button,
.wp-block-file__button,
.wp-block-pullquote.is-style-solid-color,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
button,
button[data-load-more-btn],
input[type="submit"]', 'background-color' ),
// Text-color
array( '.a8c-posts-list .a8c-posts-list-item__title a:active,
.a8c-posts-list .a8c-posts-list-item__title a:focus,
.a8c-posts-list .a8c-posts-list-item__title a:hover,
.entry-title a:active,
.entry-title a:focus,
.entry-title a:hover,
.main-navigation a:hover,
.page-title a:active,
.page-title a:focus,
.page-title a:hover,
.site-title a:hover,
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color):active,
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color),
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color):active,
.wp-block-newspack-blocks-homepage-articles article .entry-title a,
.wp-block-newspack-blocks-homepage-articles article .entry-title a:active,
.wp-block-newspack-blocks-homepage-articles article .entry-title a:focus,
.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
a,
.site-header .main-navigation > div > ul > li.current-menu-item li > a,
.site-header .main-navigation > div > ul > li.focus li > a,
.site-header .main-navigation > div > ul > li:hover li > a,
.site-header .main-navigation > div > ul > li:hover > a,
.site-header .main-navigation > div > ul > li.focus > a,
.site-header .main-navigation > div > ul > li.current-menu-item > a,
.site-header .main-navigation > div > ul > li > .sub-menu > li:hover > a', 'color' ),
// Border color left
array( '.wp-block-quote', 'border-left-color' ),
// Border color right
array( '.wp-block-quote[style*="text-align: right"],
.wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
// Border color bottom
array( '.site-header .main-navigation > div > ul > li.current-menu-item > ul:before,
.site-header .main-navigation > div > ul > li.focus > ul:before,
.site-header .main-navigation > div > ul > li:hover > ul:before', 'border-bottom-color' ),
/**
* Utility Classes
*/
// Background-color
array( '.has-primary-background-color[class]', 'background-color' ),
// Text-color
array( '.has-primary-color[class]', 'color' ),
), __( 'Link Color' ) );
// Text Color
// $config-global--color-foreground-default
add_color_rule( 'txt', '#f2f2f2', array(
// Text-color
array( '.comment-meta .comment-metadata,
.main-navigation,
.main-navigation a,
.main-navigation a:link,
.main-navigation a:visited,
.screen-reader-text:focus,
.site-branding,
.site-title,
.social-navigation a,
.wp-block-code,
.wp-block-code pre,
.wp-block-pullquote,
body,
body .widget_eu_cookie_law_widget #eu-cookie-law,
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
.site-header .main-navigation > div > ul > li.current-menu-item li > a,
.site-header .main-navigation > div > ul > li.focus li > a,
.site-header .main-navigation > div > ul > li:hover li > a', 'color' ),
// Background-color
array( '.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim,
.has-foreground-background-color[class],
table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
/**
* Utility Classes
*/
// Foreground
array( '.has-foreground-color[class]', 'color' ),
array( '.has-foreground-background-color[class]', 'background-color' ),
// Text-color darkened
array( '.has-foreground-dark-color[class]', 'color', '-1' ),
// Background-color darkened
array( '.has-foreground-dark-background-color[class]', 'background-color', '-1' ),
// Text-color brightened
array( '.has-foreground-light-color[class]', 'color', '+2' ),
// Background-color brightened
array( '.has-foreground-light-background-color[class]', 'background-color', '+2' ),
/**
* Gray (Same as text color)
*/
// Text-color
array( '.a8c-posts-list__item .a8c-posts-list-item__meta,
.comment-notes,
.entry-footer,
.entry-meta,
.footer-navigation .footer-menu,
.has-foreground-light-color[class],
.post-navigation .meta-nav,
.site-info,
.widget_archive ul li,
.widget_categories ul li,
.widget_meta ul li,
.widget_nav_menu ul li,
.widget_pages ul li,
.widget_recent_comments ul li,
.widget_recent_entries ul li,
.widget_rss ul li,
.wp-block-image figcaption,
.wp-block-latest-comments .wp-block-latest-comments__comment-date,
.wp-block-latest-posts .wp-block-latest-posts__post-date,
.wp-block-newspack-blocks-homepage-articles article .cat-links,
.wp-block-newspack-blocks-homepage-articles article .entry-meta,
.wp-block-pullquote .wp-block-pullquote__citation,
.wp-block-pullquote cite,
.wp-block-pullquote footer,
.wp-block-quote .wp-block-quote__citation,
.wp-block-quote cite,
.wp-block-quote footer,
.wp-block-quote.is-large .wp-block-quote__citation,
.wp-block-quote.is-large cite,
.wp-block-quote.is-large footer,
.wp-block-quote.is-style-large .wp-block-quote__citation,
.wp-block-quote.is-style-large cite,
.wp-block-quote.is-style-large footer,
.wp-block-video figcaption,
figcaption', 'color' ),
/**
* Hover States
*/
// Background-color
array( '.a8c-posts-list__view-all:focus,
.a8c-posts-list__view-all:hover,
.button:focus,
.button:hover,
.has-focus.a8c-posts-list__view-all,
.has-focus.button,
.has-focus.wp-block-button__link,
.has-focus.wp-block-file__button,
.wp-block-button__link:focus,
.wp-block-button__link:hover,
.wp-block-file__button:focus,
.wp-block-file__button:hover,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:focus,
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept:hover,
body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept,
button.has-focus,
button:focus,
button:hover,
input.has-focus[type="submit"],
input:focus[type="submit"],
input:hover[type="submit"]', 'background-color', 0.7 ),
// Text-color
array( '.a8c-posts-list__item .a8c-posts-list-item__meta a:active,
.a8c-posts-list__item .a8c-posts-list-item__meta a:hover,
.comment-meta .comment-metadata a:active,
.comment-meta .comment-metadata a:hover,
.entry-footer a:active,
.entry-footer a:hover,
.entry-meta a:active,
.entry-meta a:hover,
.footer-navigation .footer-menu a:hover,
.site-info a:hover,
.social-navigation a:hover,
.wp-block-button.is-style-outline .wp-block-button__link.has-focus,
.wp-block-button.is-style-outline .wp-block-button__link:focus,
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline.wp-block-button__link.has-focus,
.wp-block-button.is-style-outline.wp-block-button__link:focus,
.wp-block-button.is-style-outline.wp-block-button__link:hover,
.wp-block-newspack-blocks-homepage-articles article .cat-links a:active,
.wp-block-newspack-blocks-homepage-articles article .cat-links a:focus,
.wp-block-newspack-blocks-homepage-articles article .cat-links a:hover,
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:active,
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:focus,
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:hover,
.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
.wp-block-newspack-blocks-homepage-articles article .more-link:active,
.wp-block-newspack-blocks-homepage-articles article .more-link:focus,
.wp-block-newspack-blocks-homepage-articles article .more-link:hover,
a:hover', 'color', 0.7 ),
// Border-color
array( 'input[type="color"]:focus,
input[type="date"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="email"]:focus,
input[type="month"]:focus,
input[type="number"]:focus,
input[type="password"]:focus,
input[type="range"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="text"]:focus,
input[type="time"]:focus,
input[type="url"]:focus,
input[type="week"]:focus,
textarea:focus', 'border-color', 0.7 ),
), __( 'Text Color' ) );
// Accent Color
// $config-global--color-secondary-default
add_color_rule( 'fg1', '#EE4266', array(
/**
* Utility Classes
*/
// Text-color
array( '.has-secondary-color[class]', 'color' ),
// Background-color
array( '.has-secondary-background-color[class]', 'background-color' ),
), __( 'Secondary Color' ) );
/**
* Custom CSS
*/
function rivington_custom_colors_extra_css() { ?>
@media screen and (min-width: 560px) {
.main-navigation > div > ul > li > .sub-menu > li:first-child > a {
border-top: 1px solid;
}
.main-navigation > div > ul > li > .sub-menu > li > a {
border-left: 1px solid;
border-right: 1px solid;
}
.main-navigation > div > ul > li > .sub-menu > li:last-child > a {
border-bottom: 1px solid;
}
.site-header .main-navigation > div > ul > li.current-menu-item > ul::before,
.site-header .main-navigation > div > ul > li.focus > ul::before,
.site-header .main-navigation > div > ul > li:hover > ul::before {
opacity: 0;
}
}
<?php }
add_theme_support( 'custom_colors_extra_css', 'rivington_custom_colors_extra_css' );
/**
* Featured Varia Palettes
*/
// Light
add_color_palette( array(
'#FFFFFF',
'#1D1E1E',
'#C8133E',
'#4E2F4B',
), 'Light' );
// Medium
add_color_palette( array(
'#EEF4F7',
'#242527',
'#35845D',
'#233252',
), 'Medium' );
// Dark
add_color_palette( array(
'#1F2527',
'#FFFFFF',
'#9FD3E8',
'#FBE6AA',
), 'Dark' );

View file

@ -0,0 +1,184 @@
<?php
/*
* Custom Editor Colors
*/
// Background Color
// $config-global--color-background-default
add_editor_color_rule( 'bg', '#060f29', array(
// Background-color
array( '#editor .editor-styles-wrapper', 'background-color' ),
// Text-color
array( '#editor .editor-styles-wrapper .button,
#editor .editor-styles-wrapper .button.has-focus,
#editor .editor-styles-wrapper .button:focus,
#editor .editor-styles-wrapper .button:hover,
#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
#editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:focus,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button:hover,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .has-focus.button,
#editor .editor-styles-wrapper .wp-block-button__link,
#editor .editor-styles-wrapper .wp-block-button__link.has-focus,
#editor .editor-styles-wrapper .wp-block-button__link:focus,
#editor .editor-styles-wrapper .wp-block-button__link:hover,
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color,
#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .wp-block-cover__inner-container,
#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-image-text,
#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover-text,
#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .wp-block-cover__inner-container
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim', 'color' ),
/**
* Utility Classes
*/
// Text-color
array( '#editor .editor-styles-wrapper .has-primary-background-color[class],
#editor .editor-styles-wrapper .has-secondary-background-color[class],
#editor .editor-styles-wrapper .has-foreground-background-color[class],
#editor .editor-styles-wrapper .has-foreground-dark-background-color[class],
#editor .editor-styles-wrapper .has-foreground-light-background-color[class],
#editor .editor-styles-wrapper .has-background-color[class]', 'color' ),
// Background-color
array( '#editor .editor-styles-wrapper .has-background-background-color[class]', 'background-color' ),
// Text-color darkened
array( '#editor .editor-styles-wrapper .has-background-dark-color[class]', 'color', '-1' ),
// Background-color darkened
array( '#editor .editor-styles-wrapper .has-background-dark-background-color[class]', 'background-color', '-1' ),
// Text-color lightened
array( '#editor .editor-styles-wrapper .has-background-light-color[class]', 'color', '+1' ),
// Background-color lightened
array( '#editor .editor-styles-wrapper .has-background-light-background-color[class]', 'background-color', '+1' ),
/**
* Grays
* Uses a slightly darker color
*/
// Color
array( '#editor .editor-styles-wrapper .wp-block-separator.is-style-dots', 'color', '-1' ),
// Border-color
array( '#editor .editor-styles-wrapper .wp-block-code', 'border-color', '-1' ),
// Border-top-color
array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color', '-1' ),
// Border-bottom-color
array( '#editor .editor-styles-wrapper .wp-block-pullquote,
#editor .editor-styles-wrapper .wp-block-separator', 'border-bottom-color', '-1' ),
), __( 'Background Color' ) );
// Link Color
// $config-global--color-primary-default
add_editor_color_rule( 'link', '#CAAB57', array(
// Background-color
array( '#editor .editor-styles-wrapper .button,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts + .button,
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:not(.has-background),
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
// Text-color
array( '#editor .editor-styles-wrapper .is-style-outline .wp-block-button__link:not(.has-text-color),
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:not(.has-text-color),
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:active,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:focus,
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:hover,
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
#editor .editor-styles-wrapper a', 'color' ),
// Border color left
array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
// Border color right
array( '#editor .editor-styles-wrapper .wp-block-quote[style*="text-align: right"],
#editor .editor-styles-wrapper .wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
/**
* Utility Classes
*/
// Background-color
array( '#editor .editor-styles-wrapper .has-primary-background-color[class]', 'background-color' ),
// Text-color
array( '#editor .editor-styles-wrapper .has-primary-color[class]', 'color' ),
), __( 'Link Color' ) );
// Text Color
// $config-global--color-foreground-default
add_editor_color_rule( 'txt', '#f2f2f2', array(
// Text-color
array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
#editor .editor-styles-wrapper .wp-block-pullquote,
#editor .editor-styles-wrapper', 'color' ),
// Background-color
array( '#editor .editor-styles-wrapper .wp-block-cover.has-background-dim,
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
#editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd)', 'background-color' ),
/**
* Utility Classes
*/
// Text-color
array( '#editor .editor-styles-wrapper .has-foreground-color[class]', 'color' ),
// Background-color
array( '#editor .editor-styles-wrapper .has-foreground-background-color[class]', 'background-color' ),
// Text-color darkened
array( '#editor .editor-styles-wrapper .has-foreground-dark-color[class]', 'color', '-1' ),
// Background-color darkened
array( '#editor .editor-styles-wrapper .has-foreground-dark-background-color[class]', 'background-color', '-1' ),
// Text-color brightened
array( '#editor .editor-styles-wrapper .has-foreground-light-color[class]', 'color', '+2' ),
// Background-color brightened
array( '#editor .editor-styles-wrapper .has-foreground-light-background-color[class]', 'background-color', '+2' ),
/**
* Grays
* Same as text color
*/
// Text-color
array( '#editor .editor-styles-wrapper .a8c-posts-list__item .a8c-posts-list-item__meta,
#editor .editor-styles-wrapper .wp-block-image figcaption,
#editor .editor-styles-wrapper .wp-block-latest-comments .wp-block-latest-comments__comment-date,
#editor .editor-styles-wrapper .wp-block-latest-posts .wp-block-latest-posts__post-date,
#editor .editor-styles-wrapper .wp-block-newspack-blocks-homepage-articles article .cat-links,
#editor .editor-styles-wrapper .wp-block-newspack-blocks-homepage-articles article .entry-meta,
#editor .editor-styles-wrapper .wp-block-pullquote .wp-block-pullquote__citation,
#editor .editor-styles-wrapper .wp-block-pullquote cite,
#editor .editor-styles-wrapper .wp-block-pullquote footer,
#editor .editor-styles-wrapper .wp-block-quote .wp-block-quote__citation,
#editor .editor-styles-wrapper .wp-block-quote cite,
#editor .editor-styles-wrapper .wp-block-quote footer,
#editor .editor-styles-wrapper .wp-block-quote.is-large .wp-block-quote__citation,
#editor .editor-styles-wrapper .wp-block-quote.is-large cite,
#editor .editor-styles-wrapper .wp-block-quote.is-large footer,
#editor .editor-styles-wrapper .wp-block-quote.is-style-large .wp-block-quote__citation,
#editor .editor-styles-wrapper .wp-block-quote.is-style-large cite,
#editor .editor-styles-wrapper .wp-block-quote.is-style-large footer,
#editor .editor-styles-wrapper .wp-block-video figcaption,
#editor .editor-styles-wrapper figcaption', 'color' ),
), __( 'Text Color' ) );
// Accent Color (Red)
// $config-global--color-secondary-default
add_editor_color_rule( 'fg1', '#EE4266', array(
/**
* Utility Classes
*/
// Text-color
array( '#editor .editor-styles-wrapper .has-secondary-color[class]', 'color' ),
// Background-color
array( '#editor .editor-styles-wrapper .has-secondary-background-color[class]', 'background-color' ),
), __( 'Secondary Color' ) );

21
rivington/inc/wpcom.php Normal file
View file

@ -0,0 +1,21 @@
<?
/**
* Adds support for wp.com-specific theme functions.
*
* @global array $themecolors
*/
function rivington_wpcom_setup() {
global $themecolors;
// Set theme colors for third party services.
if ( ! isset( $themecolors ) ) {
$themecolors = array(
'bg' => '060f29', // $config-global--color-background-default
'border' => '353a46', // $config-global--color-border-default
'text' => 'f2f2f2', // $config-global--color-foreground-default
'link' => 'CAAB57', // $config-global--color-primary-default
'url' => 'CAAB57', // $config-global--color-primary-default
);
}
}
add_action( 'after_setup_theme', 'rivington_wpcom_setup' );

View file

@ -544,7 +544,6 @@ object {
.wp-block-button__link.is-style-outline,
.is-style-outline .wp-block-button__link {
color: #CAAB57;
background: transparent;
border: 2px solid currentcolor;
}
@ -554,6 +553,7 @@ object {
.is-style-outline .wp-block-button__link:focus,
.is-style-outline .wp-block-button__link.has-focus {
color: #b59439;
background: transparent;
}
.wp-block-button__link.is-style-squared,
@ -596,6 +596,12 @@ object {
/* Treating H2 separately to account for legacy /core styles */
}
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover-image-text,
.wp-block-cover .wp-block-cover-text,
@ -1015,6 +1021,12 @@ table th,
padding: calc( 0.5 * 16px);
}
table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background-color: #4b5263;
color: #f2f2f2;
}
/**
* Editor Post Title
* - Needs a special styles
@ -1029,86 +1041,90 @@ table th,
line-height: 1.125;
}
.has-primary-color[class] {
color: #CAAB57 !important;
.wp-block .has-primary-color,
.has-primary-color {
color: #CAAB57;
}
.has-secondary-color[class] {
color: #EE4266 !important;
.wp-block .has-secondary-color,
.has-secondary-color {
color: #EE4266;
}
.has-foreground-color[class] {
color: #f2f2f2 !important;
.wp-block .has-foreground-color,
.has-foreground-color {
color: #f2f2f2;
}
.has-foreground-light-color[class] {
color: white !important;
.wp-block .has-foreground-light-color,
.has-foreground-light-color {
color: white;
}
.has-foreground-dark-color[class] {
color: #8F8F8F !important;
.wp-block .has-foreground-dark-color,
.has-foreground-dark-color {
color: #8F8F8F;
}
.has-background-light-color[class] {
color: #0d1f55 !important;
.wp-block .has-background-light-color,
.has-background-light-color {
color: #0d1f55;
}
.has-background-dark-color[class] {
color: #030713 !important;
.wp-block .has-background-dark-color,
.has-background-dark-color {
color: #030713;
}
.has-background-color[class] {
color: #060f29 !important;
.wp-block .has-background-color,
.has-background-color {
color: #060f29;
}
.has-background:not(.has-background-background-color) a,
.has-background:not(.has-background-background-color) a:not(.wp-block-button__link),
.has-background a:not(.wp-block-button__link),
.has-background p, .has-background h1, .has-background h2, .has-background h3, .has-background h4, .has-background h5, .has-background h6 {
color: currentColor;
}
.has-primary-background-color[class] {
background-color: #CAAB57 !important;
color: #060f29;
.wp-block .has-primary-background-color,
.has-primary-background-color {
background-color: #CAAB57;
}
.has-primary-background-color[class] {
background-color: #CAAB57 !important;
color: #060f29;
.wp-block .has-secondary-background-color,
.has-secondary-background-color {
background-color: #EE4266;
}
.has-secondary-background-color[class] {
background-color: #EE4266 !important;
color: #060f29;
.wp-block .has-foreground-background-color,
.has-foreground-background-color {
background-color: #f2f2f2;
}
.has-foreground-background-color[class] {
background-color: #f2f2f2 !important;
color: #060f29;
.wp-block .has-foreground-light-background-color,
.has-foreground-light-background-color {
background-color: white;
}
.has-foreground-light-background-color[class] {
background-color: white !important;
color: #060f29;
.wp-block .has-foreground-dark-background-color,
.has-foreground-dark-background-color {
background-color: #8F8F8F;
}
.has-foreground-dark-background-color[class] {
background-color: #8F8F8F !important;
color: #060f29;
.wp-block .has-background-light-background-color,
.has-background-light-background-color {
background-color: #0d1f55;
}
.has-background-light-background-color[class] {
background-color: #0d1f55 !important;
color: #f2f2f2;
.wp-block .has-background-dark-background-color,
.has-background-dark-background-color {
background-color: #030713;
}
.has-background-dark-background-color[class] {
background-color: #030713 !important;
color: #f2f2f2;
}
.has-background-background-color[class] {
background-color: #060f29 !important;
color: #f2f2f2;
.wp-block .has-background-background-color,
.has-background-background-color {
background-color: #060f29;
}
.is-small-text,
@ -1358,3 +1374,7 @@ table th,
.wp-block-a8c-blog-posts + .button {
font-size: 1em;
}
.wp-block-table .has-background[class*="has-subtle"] {
color: #060f29;
}

View file

@ -1401,12 +1401,21 @@ button[data-load-more-btn], .button {
*/
.wp-block-button.is-style-outline.wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
color: #CAAB57;
background: transparent;
color: inherit;
border: 2px solid currentcolor;
padding: 14px 16px;
}
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background-color),
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background-color) {
background: transparent;
}
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color),
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
color: #CAAB57;
}
.wp-block-button.is-style-outline.wp-block-button__link:active,
.wp-block-button.is-style-outline .wp-block-button__link:active {
color: #CAAB57;
@ -1501,13 +1510,18 @@ button[data-load-more-btn], .button {
min-height: calc( 15 * 32px);
margin-top: inherit;
margin-bottom: inherit;
/* default & custom background-color */
/* Treating H2 separately to account for legacy /core styles */
/**
* Block Options
*/
}
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover-image-text,
.wp-block-cover .wp-block-cover-text,
@ -1519,24 +1533,21 @@ button[data-load-more-btn], .button {
margin-bottom: 32px;
}
.wp-block-cover .wp-block-cover__inner-container a,
.wp-block-cover .wp-block-cover-image-text a,
.wp-block-cover .wp-block-cover-text a,
.wp-block-cover-image .wp-block-cover__inner-container a,
.wp-block-cover-image .wp-block-cover-image-text a,
.wp-block-cover-image .wp-block-cover-text a {
.wp-block-cover .wp-block-cover__inner-container a:not(.wp-block-button__link),
.wp-block-cover .wp-block-cover__inner-container a.wp-block-button__link:hover,
.wp-block-cover .wp-block-cover-image-text a:not(.wp-block-button__link),
.wp-block-cover .wp-block-cover-image-text a.wp-block-button__link:hover,
.wp-block-cover .wp-block-cover-text a:not(.wp-block-button__link),
.wp-block-cover .wp-block-cover-text a.wp-block-button__link:hover,
.wp-block-cover-image .wp-block-cover__inner-container a:not(.wp-block-button__link),
.wp-block-cover-image .wp-block-cover__inner-container a.wp-block-button__link:hover,
.wp-block-cover-image .wp-block-cover-image-text a:not(.wp-block-button__link),
.wp-block-cover-image .wp-block-cover-image-text a.wp-block-button__link:hover,
.wp-block-cover-image .wp-block-cover-text a:not(.wp-block-button__link),
.wp-block-cover-image .wp-block-cover-text a.wp-block-button__link:hover {
color: currentColor;
}
.wp-block-cover:not([class*='background-color']) .wp-block-cover__inner-container,
.wp-block-cover:not([class*='background-color']) .wp-block-cover-image-text,
.wp-block-cover:not([class*='background-color']) .wp-block-cover-text,
.wp-block-cover-image:not([class*='background-color']) .wp-block-cover__inner-container,
.wp-block-cover-image:not([class*='background-color']) .wp-block-cover-image-text,
.wp-block-cover-image:not([class*='background-color']) .wp-block-cover-text {
color: white;
}
.wp-block-cover h2,
.wp-block-cover-image h2 {
font-size: 1.95312rem;
@ -2249,6 +2260,10 @@ hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
max-width: 96px;
}
hr.wp-block-separator.is-style-wide {
border-bottom-width: 2px;
}
hr.wp-block-separator.is-style-dots.has-background, hr.wp-block-separator.is-style-dots.has-text-color {
background-color: transparent !important;
}
@ -2315,6 +2330,12 @@ table th,
word-break: break-all;
}
table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background-color: #4b5263;
color: #f2f2f2;
}
.wp-block-video figcaption {
color: white;
font-size: 0.64rem;
@ -2397,81 +2418,84 @@ table th,
background-attachment: fixed;
}
.has-primary-color[class] {
color: #CAAB57 !important;
.has-primary-color {
color: #CAAB57;
}
.has-secondary-color[class] {
color: #EE4266 !important;
.has-secondary-color {
color: #EE4266;
}
.has-foreground-color[class] {
color: #f2f2f2 !important;
.has-foreground-color {
color: #f2f2f2;
}
.has-foreground-light-color[class] {
color: white !important;
.has-foreground-light-color {
color: white;
}
.has-foreground-dark-color[class] {
color: #8F8F8F !important;
.has-foreground-dark-color {
color: #8F8F8F;
}
.has-background-light-color[class] {
color: #0d1f55 !important;
.has-background-light-color {
color: #0d1f55;
}
.has-background-dark-color[class] {
color: #030713 !important;
.has-background-dark-color {
color: #030713;
}
.has-background-color[class] {
color: #060f29 !important;
.has-background-dim,
.has-background-color {
color: #060f29;
}
.has-background:not(.has-background-background-color) a,
.has-background:not(.has-background-background-color) a:not(.wp-block-button__link),
.has-background a:not(.wp-block-button__link),
.has-background p, .has-background h1, .has-background h2, .has-background h3, .has-background h4, .has-background h5, .has-background h6 {
color: currentColor;
}
.has-primary-background-color[class] {
background-color: #CAAB57 !important;
color: #060f29;
.has-primary-background-color,
.has-primary-background-color.has-background-dim {
background-color: #CAAB57;
}
.has-secondary-background-color[class] {
background-color: #EE4266 !important;
color: #060f29;
.has-secondary-background-color,
.has-secondary-background-color.has-background-dim {
background-color: #EE4266;
}
.has-foreground-background-color[class] {
background-color: #f2f2f2 !important;
color: #060f29;
.has-background-dim,
.has-foreground-background-color,
.has-foreground-background-color.has-background-dim {
background-color: #f2f2f2;
}
.has-foreground-light-background-color[class] {
background-color: white !important;
color: #060f29;
.has-foreground-light-background-color,
.has-foreground-light-background-color.has-background-dim {
background-color: white;
}
.has-foreground-dark-background-color[class] {
background-color: #8F8F8F !important;
color: #060f29;
.has-foreground-dark-background-color,
.has-foreground-dark-background-color.has-background-dim {
background-color: #8F8F8F;
}
.has-background-light-background-color[class] {
background-color: #0d1f55 !important;
color: #f2f2f2;
.has-background-light-background-color,
.has-background-light-background-color.has-background-dim {
background-color: #0d1f55;
}
.has-background-dark-background-color[class] {
background-color: #030713 !important;
color: #f2f2f2;
.has-background-dark-background-color,
.has-background-dark-background-color.has-background-dim {
background-color: #030713;
}
.has-background-background-color[class] {
background-color: #060f29 !important;
color: #f2f2f2;
.has-background-background-color,
.has-background-background-color.has-background-dim {
background-color: #060f29;
}
.is-small-text,
@ -3205,6 +3229,7 @@ body:not(.fse-enabled) .footer-menu a {
.pagination .nav-links .svg-icon {
display: inline-block;
vertical-align: middle;
fill: currentColor;
}
@media only screen and (min-width: 560px) {
@ -4266,6 +4291,10 @@ p:not(.site-title) a:hover {
text-decoration: underline;
}
.wp-block-table .has-background[class*="has-subtle"] {
color: #060f29;
}
/**
* Widgets
*/

View file

@ -1401,12 +1401,21 @@ button[data-load-more-btn], .button {
*/
.wp-block-button.is-style-outline.wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
color: #CAAB57;
background: transparent;
color: inherit;
border: 2px solid currentcolor;
padding: 14px 16px;
}
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-background-color),
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-background-color) {
background: transparent;
}
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color),
.wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color) {
color: #CAAB57;
}
.wp-block-button.is-style-outline.wp-block-button__link:active,
.wp-block-button.is-style-outline .wp-block-button__link:active {
color: #CAAB57;
@ -1501,13 +1510,18 @@ button[data-load-more-btn], .button {
min-height: calc( 15 * 32px);
margin-top: inherit;
margin-bottom: inherit;
/* default & custom background-color */
/* Treating H2 separately to account for legacy /core styles */
/**
* Block Options
*/
}
.wp-block-cover.has-background-dim,
.wp-block-cover-image.has-background-dim {
background-color: black;
color: white;
}
.wp-block-cover .wp-block-cover__inner-container,
.wp-block-cover .wp-block-cover-image-text,
.wp-block-cover .wp-block-cover-text,
@ -1519,24 +1533,21 @@ button[data-load-more-btn], .button {
margin-bottom: 32px;
}
.wp-block-cover .wp-block-cover__inner-container a,
.wp-block-cover .wp-block-cover-image-text a,
.wp-block-cover .wp-block-cover-text a,
.wp-block-cover-image .wp-block-cover__inner-container a,
.wp-block-cover-image .wp-block-cover-image-text a,
.wp-block-cover-image .wp-block-cover-text a {
.wp-block-cover .wp-block-cover__inner-container a:not(.wp-block-button__link),
.wp-block-cover .wp-block-cover__inner-container a.wp-block-button__link:hover,
.wp-block-cover .wp-block-cover-image-text a:not(.wp-block-button__link),
.wp-block-cover .wp-block-cover-image-text a.wp-block-button__link:hover,
.wp-block-cover .wp-block-cover-text a:not(.wp-block-button__link),
.wp-block-cover .wp-block-cover-text a.wp-block-button__link:hover,
.wp-block-cover-image .wp-block-cover__inner-container a:not(.wp-block-button__link),
.wp-block-cover-image .wp-block-cover__inner-container a.wp-block-button__link:hover,
.wp-block-cover-image .wp-block-cover-image-text a:not(.wp-block-button__link),
.wp-block-cover-image .wp-block-cover-image-text a.wp-block-button__link:hover,
.wp-block-cover-image .wp-block-cover-text a:not(.wp-block-button__link),
.wp-block-cover-image .wp-block-cover-text a.wp-block-button__link:hover {
color: currentColor;
}
.wp-block-cover:not([class*='background-color']) .wp-block-cover__inner-container,
.wp-block-cover:not([class*='background-color']) .wp-block-cover-image-text,
.wp-block-cover:not([class*='background-color']) .wp-block-cover-text,
.wp-block-cover-image:not([class*='background-color']) .wp-block-cover__inner-container,
.wp-block-cover-image:not([class*='background-color']) .wp-block-cover-image-text,
.wp-block-cover-image:not([class*='background-color']) .wp-block-cover-text {
color: white;
}
.wp-block-cover h2,
.wp-block-cover-image h2 {
font-size: 1.95312rem;
@ -2249,6 +2260,10 @@ hr.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
max-width: 96px;
}
hr.wp-block-separator.is-style-wide {
border-bottom-width: 2px;
}
hr.wp-block-separator.is-style-dots.has-background, hr.wp-block-separator.is-style-dots.has-text-color {
background-color: transparent !important;
}
@ -2315,6 +2330,12 @@ table th,
word-break: break-all;
}
table.is-style-stripes tbody tr:nth-child(odd),
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
background-color: #4b5263;
color: #f2f2f2;
}
.wp-block-video figcaption {
color: white;
font-size: 0.64rem;
@ -2402,81 +2423,84 @@ table th,
background-attachment: fixed;
}
.has-primary-color[class] {
color: #CAAB57 !important;
.has-primary-color {
color: #CAAB57;
}
.has-secondary-color[class] {
color: #EE4266 !important;
.has-secondary-color {
color: #EE4266;
}
.has-foreground-color[class] {
color: #f2f2f2 !important;
.has-foreground-color {
color: #f2f2f2;
}
.has-foreground-light-color[class] {
color: white !important;
.has-foreground-light-color {
color: white;
}
.has-foreground-dark-color[class] {
color: #8F8F8F !important;
.has-foreground-dark-color {
color: #8F8F8F;
}
.has-background-light-color[class] {
color: #0d1f55 !important;
.has-background-light-color {
color: #0d1f55;
}
.has-background-dark-color[class] {
color: #030713 !important;
.has-background-dark-color {
color: #030713;
}
.has-background-color[class] {
color: #060f29 !important;
.has-background-dim,
.has-background-color {
color: #060f29;
}
.has-background:not(.has-background-background-color) a,
.has-background:not(.has-background-background-color) a:not(.wp-block-button__link),
.has-background a:not(.wp-block-button__link),
.has-background p, .has-background h1, .has-background h2, .has-background h3, .has-background h4, .has-background h5, .has-background h6 {
color: currentColor;
}
.has-primary-background-color[class] {
background-color: #CAAB57 !important;
color: #060f29;
.has-primary-background-color,
.has-primary-background-color.has-background-dim {
background-color: #CAAB57;
}
.has-secondary-background-color[class] {
background-color: #EE4266 !important;
color: #060f29;
.has-secondary-background-color,
.has-secondary-background-color.has-background-dim {
background-color: #EE4266;
}
.has-foreground-background-color[class] {
background-color: #f2f2f2 !important;
color: #060f29;
.has-background-dim,
.has-foreground-background-color,
.has-foreground-background-color.has-background-dim {
background-color: #f2f2f2;
}
.has-foreground-light-background-color[class] {
background-color: white !important;
color: #060f29;
.has-foreground-light-background-color,
.has-foreground-light-background-color.has-background-dim {
background-color: white;
}
.has-foreground-dark-background-color[class] {
background-color: #8F8F8F !important;
color: #060f29;
.has-foreground-dark-background-color,
.has-foreground-dark-background-color.has-background-dim {
background-color: #8F8F8F;
}
.has-background-light-background-color[class] {
background-color: #0d1f55 !important;
color: #f2f2f2;
.has-background-light-background-color,
.has-background-light-background-color.has-background-dim {
background-color: #0d1f55;
}
.has-background-dark-background-color[class] {
background-color: #030713 !important;
color: #f2f2f2;
.has-background-dark-background-color,
.has-background-dark-background-color.has-background-dim {
background-color: #030713;
}
.has-background-background-color[class] {
background-color: #060f29 !important;
color: #f2f2f2;
.has-background-background-color,
.has-background-background-color.has-background-dim {
background-color: #060f29;
}
.is-small-text,
@ -3222,6 +3246,7 @@ body:not(.fse-enabled) .footer-menu a {
.pagination .nav-links .svg-icon {
display: inline-block;
vertical-align: middle;
fill: currentColor;
}
@media only screen and (min-width: 560px) {
@ -4295,6 +4320,10 @@ p:not(.site-title) a:hover {
text-decoration: underline;
}
.wp-block-table .has-background[class*="has-subtle"] {
color: #060f29;
}
/**
* Widgets
*/