Merge branch 'master' into try/seedlet/color-annotations
This commit is contained in:
commit
fc639e66bf
84 changed files with 2848 additions and 1118 deletions
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -53,49 +53,52 @@ if ( ! function_exists( 'balasana_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'] : '#19744C'; // $config-global--color-primary-default;
|
||||
$secondary = ! empty( $colors_array ) ? $colors_array['colors']['fg1'] : '#BC2213'; // $config-global--color-secondary-default;
|
||||
$background = ! empty( $colors_array ) ? $colors_array['colors']['bg'] : '#FFFFFF'; // $config-global--color-background-default;
|
||||
$foreground = ! empty( $colors_array ) ? $colors_array['colors']['txt'] : '#303030'; // $config-global--color-foreground-default;
|
||||
$foreground_light = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#303030' ) ? $colors_array['colors']['txt'] : '#505050'; // $config-global--color-foreground-light-default;
|
||||
$foreground_dark = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#303030' ) ? $colors_array['colors']['txt'] : '#101010'; // $config-global--color-foreground-dark-default;
|
||||
|
||||
// Editor color palette.
|
||||
add_theme_support(
|
||||
'editor-color-palette',
|
||||
array(
|
||||
array(
|
||||
'name' => __( 'Primary', 'balasana' ),
|
||||
'slug' => 'primary',
|
||||
'color' => '#19744C',
|
||||
'color' => $primary,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Secondary', 'balasana' ),
|
||||
'slug' => 'secondary',
|
||||
'color' => '#BC2213',
|
||||
'color' => $secondary,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Dark Gray', 'balasana' ),
|
||||
'slug' => 'foreground-dark',
|
||||
'color' => '#101010',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Gray', 'balasana' ),
|
||||
'slug' => 'foreground',
|
||||
'color' => '#303030',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Light Gray', 'balasana' ),
|
||||
'slug' => 'foreground-light',
|
||||
'color' => '#505050',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Lighter Gray', 'balasana' ),
|
||||
'slug' => 'background-dark',
|
||||
'color' => '#D0D0D0',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Subtle Gray', 'balasana' ),
|
||||
'slug' => 'background-light',
|
||||
'color' => '#F0F0F0',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'White', 'balasana' ),
|
||||
'name' => __( 'Background', 'balasana' ),
|
||||
'slug' => 'background',
|
||||
'color' => '#FFFFFF',
|
||||
'color' => $background,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Foreground', 'balasana' ),
|
||||
'slug' => 'foreground',
|
||||
'color' => $foreground,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Foreground Light', 'balasana' ),
|
||||
'slug' => 'foreground-light',
|
||||
'color' => $foreground_light,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Foreground Dark', 'balasana' ),
|
||||
'slug' => 'foreground-dark',
|
||||
'color' => $foreground_dark,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
@ -193,5 +196,15 @@ function balasana_editor_styles() {
|
|||
|
||||
// Enqueue Google fonts in the editor
|
||||
wp_enqueue_style( 'balasana-editor-fonts', balasana_fonts_url(), array(), null );
|
||||
|
||||
// Hide duplicate palette colors
|
||||
$colors_array = get_theme_mod('colors_manager', array( 'colors' => true )); // color annotations array()
|
||||
if ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#394d55' ) { // $config-global--color-foreground-light-default;
|
||||
$inline_palette_css = '.components-circular-option-picker__option-wrapper:nth-child(5),
|
||||
.components-circular-option-picker__option-wrapper:nth-child(6) {
|
||||
display: none;
|
||||
}';
|
||||
wp_add_inline_style( 'wp-edit-blocks', $inline_palette_css );
|
||||
}
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'balasana_editor_styles' );
|
||||
|
|
453
balasana/inc/wpcom-colors.php
Normal file
453
balasana/inc/wpcom-colors.php
Normal file
|
@ -0,0 +1,453 @@
|
|||
<?php
|
||||
/* Custom Colors: Balasana */
|
||||
|
||||
// Background Color (White)
|
||||
// $config-global--color-background-default
|
||||
add_color_rule( 'bg', '#FFFFFF', array(
|
||||
|
||||
// Background-color
|
||||
array( '.has-background-background-color,
|
||||
.has-background-background-color.has-background-dim,
|
||||
.main-navigation > div,
|
||||
.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', 'background-color' ),
|
||||
|
||||
// Background-image
|
||||
array( '#site-navigation #toggle-menu::before,
|
||||
#site-navigation #toggle:checked + #toggle-menu::before', 'background-image' ),
|
||||
|
||||
// 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-cover.has-background-dim,
|
||||
.wp-block-cover.has-background-dim .block-editor-block-list__block,
|
||||
.wp-block-cover.has-background-dim .wp-block-cover-image-text,
|
||||
.wp-block-cover.has-background-dim .wp-block-cover-text,
|
||||
.wp-block-cover.has-background-dim .wp-block-cover__inner-container,
|
||||
.wp-block-cover-image.has-background-dim,
|
||||
.wp-block-cover-image.has-background-dim .block-editor-block-list__block,
|
||||
.wp-block-cover-image.has-background-dim .wp-block-cover-image-text,
|
||||
.wp-block-cover-image.has-background-dim .wp-block-cover-text,
|
||||
.wp-block-cover-image.has-background-dim .wp-block-cover__inner-container,
|
||||
.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-gallery .blocks-gallery-image figcaption,
|
||||
.wp-block-gallery .blocks-gallery-item figcaption,
|
||||
.wp-block-pullquote.is-style-solid-color,
|
||||
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="submit"]', 'color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Text-color
|
||||
array( '.has-background-color,
|
||||
.has-foreground-dark-background-color,
|
||||
.has-foreground-light-background-color,
|
||||
.has-primary-background-color,
|
||||
.has-primary-background-color.has-background-dim,
|
||||
.has-secondary-background-color,
|
||||
.has-secondary-background-color.has-background-dim,
|
||||
.has-foreground-background-color,
|
||||
.has-foreground-background-color.has-background-dim', 'color' ),
|
||||
// Background-color
|
||||
array( '.has-background-background-color', 'background-color' ),
|
||||
// Text-color darkened
|
||||
array( '.has-background-dark-color', 'color', '-1' ),
|
||||
// Background-color darkened
|
||||
array( '.has-background-dark-background-color', 'background-color', '-1' ),
|
||||
// Text-color lightened
|
||||
array( '.has-background-light-color', 'color', '+1' ),
|
||||
// Background-color lightened
|
||||
array( '.has-background-light-background-color', 'background-color', '+1' ),
|
||||
|
||||
/**
|
||||
* Grays
|
||||
* Uses a slightly darker color
|
||||
*/
|
||||
// Border-color
|
||||
array( '.main-navigation > div,
|
||||
.wp-block-code,
|
||||
.wp-block-table td,
|
||||
.wp-block-table th,
|
||||
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,
|
||||
table td,
|
||||
table th,
|
||||
textarea', '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
|
||||
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept.has-focus,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:focus,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:hover', '-1' ),
|
||||
|
||||
|
||||
), __( 'Background Color' ) );
|
||||
|
||||
// Link Color (Blue)
|
||||
// $config-global--color-primary-default
|
||||
add_color_rule( 'link', '#19744C', 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-file__button:focus,
|
||||
.wp-block-file__button:hover,
|
||||
.wp-block-button__link:focus,
|
||||
.wp-block-button__link:hover,
|
||||
.wp-block-button__link:not([class*="background-color"]),
|
||||
.wp-block-button__link:not([class*="background-color"]):focus,
|
||||
.wp-block-button__link:not([class*="background-color"]):hover,
|
||||
.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"],
|
||||
.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,
|
||||
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' ),
|
||||
|
||||
// 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,
|
||||
.comment-meta .comment-author .fn a:active,
|
||||
.comment-meta .comment-author .fn a:focus,
|
||||
.comment-meta .comment-author .fn a:hover,
|
||||
.entry-title a:active,
|
||||
.entry-title a:focus,
|
||||
.entry-title a:hover,
|
||||
.footer-navigation .footer-menu a:hover,
|
||||
.has-primary-color,
|
||||
.main-navigation a:hover,
|
||||
.page-title a:active,
|
||||
.page-title a:focus,
|
||||
.page-title a:hover,
|
||||
.post-navigation a:active .post-title,
|
||||
.post-navigation a:focus .post-title,
|
||||
.post-navigation a:hover .post-title,
|
||||
.site-info a:hover,
|
||||
.site-title a:hover,
|
||||
.social-navigation 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,
|
||||
a:hover,
|
||||
.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,
|
||||
.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:hover,
|
||||
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:active,
|
||||
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:hover,
|
||||
.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover', 'color' ),
|
||||
|
||||
// Border color right
|
||||
array( '.wp-block-quote[style*="text-align: right"],
|
||||
.wp-block-quote[style*="text-align:right"]', 'border-right-color' ),
|
||||
|
||||
// Border color left
|
||||
array( '.wp-block-quote', 'border-left-color' ),
|
||||
|
||||
// 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' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Background-color
|
||||
array( '.has-primary-background-color,
|
||||
.has-primary-background-color.has-background-dim', 'background-color' ),
|
||||
// Text-color
|
||||
array( '.has-primary-color', 'color' ),
|
||||
|
||||
), __( 'Link Color' ) );
|
||||
|
||||
// Text Color (Gray)
|
||||
// $config-global--color-foreground-default
|
||||
add_color_rule( 'txt', '#303030', array(
|
||||
|
||||
// Text-color
|
||||
array( '.a8c-posts-list .a8c-posts-list-item__featured span,
|
||||
.comment-meta .comment-metadata,
|
||||
.footer-navigation .footer-menu,
|
||||
.main-navigation,
|
||||
.main-navigation a,
|
||||
.main-navigation a:link,
|
||||
.main-navigation a:visited,
|
||||
.post-navigation .meta-nav,
|
||||
.post-navigation a .post-title,
|
||||
.screen-reader-text:focus,
|
||||
.site-info,
|
||||
.site-title,
|
||||
.social-navigation a,
|
||||
.wp-block-code,
|
||||
.wp-block-code pre,
|
||||
.wp-block-pullquote,
|
||||
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
|
||||
body,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
|
||||
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="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' ),
|
||||
|
||||
// Background-color
|
||||
array( '.wp-block-cover-image.has-background-dim:not([class*="background-color"]),
|
||||
.wp-block-cover.has-background-dim:not([class*="background-color"]),
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Foreground
|
||||
array( '.has-foreground-color,
|
||||
.has-background-background-color,
|
||||
.has-background-dark-background-color,
|
||||
.has-background-light-background-color', 'color' ),
|
||||
|
||||
// Background
|
||||
array( '.has-background-dim:not([class*="background-color"]),
|
||||
.has-foreground-background-color,
|
||||
.has-foreground-background-color.has-background-dim', 'background-color' ),
|
||||
|
||||
// Text-color darkened
|
||||
array( '.has-foreground-dark-color', 'color', '-1' ),
|
||||
// Background-color darkened
|
||||
array( '.has-foreground-dark-background-color,
|
||||
.has-foreground-dark-background-color.has-background-dim', 'background-color', '-1' ),
|
||||
|
||||
// Text-color brightened
|
||||
array( '.has-foreground-light-color', 'color', '+2' ),
|
||||
// Background-color brightened
|
||||
array( '.has-foreground-light-background-color,
|
||||
.has-foreground-light-background-color.has-background-dim', 'background-color', '+2' ),
|
||||
|
||||
/**
|
||||
* Gray (Same as text color)
|
||||
*/
|
||||
// Text-color
|
||||
array( '.a8c-posts-list__item .a8c-posts-list-item__meta,
|
||||
.entry-footer,
|
||||
.entry-meta,
|
||||
.has-foreground-light-color,
|
||||
.site-branding,
|
||||
.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' ),
|
||||
|
||||
), __( 'Text Color' ) );
|
||||
|
||||
// Accent Color (Red)
|
||||
// $config-global--color-secondary-default
|
||||
add_color_rule( 'fg1', '#BC2213', array(
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Text-color
|
||||
array( '.has-secondary-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '.has-secondary-background-color,
|
||||
.has-secondary-background-color.has-background-dim', 'background-color' ),
|
||||
|
||||
), __( 'Secondary Color' ) );
|
||||
|
||||
/**
|
||||
* Custom CSS
|
||||
*/
|
||||
function balasana_custom_colors_extra_css() {
|
||||
$colors_array = get_theme_mod( 'colors_manager' );
|
||||
$bg = $colors_array['colors']['bg'];
|
||||
$link = $colors_array['colors']['link'];
|
||||
?>
|
||||
@media screen and (min-width: 560px) {
|
||||
.main-navigation > div > ul > li > .sub-menu {
|
||||
background-color: <?php echo $bg; ?>;
|
||||
}
|
||||
.main-navigation > div > ul > .menu-item-has-children > a::after {
|
||||
border-top-color: currentColor;
|
||||
}
|
||||
}
|
||||
<?php }
|
||||
add_theme_support( 'custom_colors_extra_css', 'balasana_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' );
|
186
balasana/inc/wpcom-editor-colors.php
Normal file
186
balasana/inc/wpcom-editor-colors.php
Normal file
|
@ -0,0 +1,186 @@
|
|||
<?php
|
||||
/*
|
||||
* Custom Editor Colors: Balasana
|
||||
*/
|
||||
|
||||
// Background Color (White)
|
||||
// $config-global--color-background-default
|
||||
add_editor_color_rule( 'bg', '#FFFFFF', array(
|
||||
|
||||
// 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 .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-cover.has-background-dim,
|
||||
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim .block-editor-block-list__block,
|
||||
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim .wp-block-cover-image-text,
|
||||
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim .wp-block-cover-text,
|
||||
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim .wp-block-cover__inner-container,
|
||||
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
|
||||
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim .block-editor-block-list__block,
|
||||
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim .wp-block-cover-image-text,
|
||||
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim .wp-block-cover-text,
|
||||
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim .wp-block-cover__inner-container,
|
||||
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper', 'background-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .has-secondary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-secondary-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color,
|
||||
#editor .editor-styles-wrapper .has-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-background-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-background-color', 'background-color' ),
|
||||
|
||||
// Text-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-background-dark-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-dark-color', 'color', '-1' ),
|
||||
|
||||
// Background-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-background-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-dark-background-color', 'background-color', '-1' ),
|
||||
|
||||
// Text-color lightened
|
||||
array( '#editor .editor-styles-wrapper .has-background-light-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-light-color', 'color', '+1' ),
|
||||
|
||||
// Background-color lightened
|
||||
array( '#editor .editor-styles-wrapper .has-background-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-light-background-color', 'background-color', '+1' ),
|
||||
|
||||
), __( 'Background Color' ) );
|
||||
|
||||
// Link Color (Blue)
|
||||
// $config-global--color-primary-default
|
||||
add_editor_color_rule( 'link', '#19744C', array(
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
|
||||
#editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link:not(.has-text-color),
|
||||
#editor .editor-styles-wrapper a', 'color' ),
|
||||
|
||||
// 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,
|
||||
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
|
||||
|
||||
// Border-left-color
|
||||
array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-primary-background-color', 'background-color' ),
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-primary-color', 'color' ),
|
||||
|
||||
), __( 'Link Color' ) );
|
||||
|
||||
// Text Color (Gray)
|
||||
// $config-global--color-foreground-default
|
||||
add_editor_color_rule( 'txt', '#303030', 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-image.has-background-dim,
|
||||
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim', 'background-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-background-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-background-color,
|
||||
#editor .editor-styles-wrapper .has-background-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-dark-background-color,
|
||||
#editor .editor-styles-wrapper .has-background-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-light-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-background-color', 'background-color' ),
|
||||
|
||||
// Text-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-dark-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-dark-color', 'color', '-1' ),
|
||||
|
||||
// Background-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color', 'background-color', '-1' ),
|
||||
|
||||
// Text-color brightened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-light-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-light-color', 'color', '+2' ),
|
||||
|
||||
// Background-color brightened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color', 'background-color', '+2' ),
|
||||
|
||||
), __( 'Text Color' ) );
|
||||
|
||||
// Accent Color (Red)
|
||||
// $config-global--color-secondary-default
|
||||
add_editor_color_rule( 'fg1', '#BC2213', array(
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-secondary-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-secondary-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-secondary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-secondary-background-color', 'background-color' ),
|
||||
|
||||
), __( 'Secondary Color' ) );
|
||||
|
||||
|
||||
/**
|
||||
* Custom CSS
|
||||
*/
|
||||
function balasana_custom_colors_extra_css() { ?>
|
||||
/* Ensure links match the front end when there's a custom background color. */
|
||||
#editor .editor-styles-wrapper .wp-block .has-background:not(.has-background-background-color) a {
|
||||
color: currentColor;
|
||||
}
|
||||
<?php }
|
||||
add_theme_support( 'custom_colors_extra_css', 'balasana_custom_colors_extra_css' );
|
21
balasana/inc/wpcom.php
Normal file
21
balasana/inc/wpcom.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?
|
||||
/**
|
||||
* Adds support for wp.com-specific theme functions.
|
||||
*
|
||||
* @global array $themecolors
|
||||
*/
|
||||
function balasana_wpcom_setup() {
|
||||
global $themecolors;
|
||||
|
||||
// Set theme colors for third party services.
|
||||
if ( ! isset( $themecolors ) ) {
|
||||
$themecolors = array(
|
||||
'bg' => 'white', // $config-global--color-background-default
|
||||
'border' => 'D0D0D0', // $config-global--color-border-default
|
||||
'text' => '303030', // $config-global--color-foreground-default
|
||||
'link' => '19744C', // $config-global--color-primary-default
|
||||
'url' => '19744C', // $config-global--color-primary-default
|
||||
);
|
||||
}
|
||||
}
|
||||
add_action( 'after_setup_theme', 'balasana_wpcom_setup' );
|
|
@ -83,7 +83,7 @@ $config-global: (
|
|||
"dark": #101010, // must be accessible against background
|
||||
),
|
||||
"background": (
|
||||
"default": white,
|
||||
"default": #FFFFFF,
|
||||
"light": #F0F0F0, // must be accessible against foreground-default
|
||||
"dark": #D0D0D0, // must be accessible against foreground-default
|
||||
),
|
||||
|
|
|
@ -29,6 +29,7 @@ a,
|
|||
.entry-content .more-link {
|
||||
text-decoration: none;
|
||||
|
||||
.has-background &:not(.wp-block-button__link):not(.wp-block-file__button),
|
||||
&:active,
|
||||
&:focus,
|
||||
&:hover {
|
||||
|
|
|
@ -166,7 +166,7 @@ $grid-configuration: map-extend($grid-configuration-default, $grid-configuration
|
|||
*/
|
||||
body {
|
||||
color: #303030;
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-family: var(--font-base, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif);
|
||||
font-size: 20px;
|
||||
|
@ -466,7 +466,7 @@ object {
|
|||
*/
|
||||
.wp-block-a8c-blog-posts + .button {
|
||||
line-height: 1;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
|
@ -495,7 +495,7 @@ object {
|
|||
}
|
||||
|
||||
.wp-block-a8c-blog-posts + .button:hover, .wp-block-a8c-blog-posts + .button:focus, .wp-block-a8c-blog-posts + .has-focus.button {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #145f3e;
|
||||
}
|
||||
|
||||
|
@ -524,7 +524,7 @@ object {
|
|||
|
||||
/* Default Style */
|
||||
.wp-block-button__link {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
font-weight: 700;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-family: var(--font-base, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif);
|
||||
|
@ -538,7 +538,7 @@ object {
|
|||
}
|
||||
|
||||
.wp-block-button__link:hover, .wp-block-button__link:focus, .wp-block-button__link.has-focus {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #145f3e;
|
||||
}
|
||||
|
||||
|
@ -563,7 +563,7 @@ object {
|
|||
|
||||
/* Default Style */
|
||||
.button {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
font-weight: 700;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-family: var(--font-base, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif);
|
||||
|
@ -575,7 +575,7 @@ object {
|
|||
}
|
||||
|
||||
.button:hover, .button:focus, .button.has-focus {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #145f3e;
|
||||
}
|
||||
|
||||
|
@ -881,7 +881,7 @@ p.has-background:not(.has-background-background-color) a {
|
|||
|
||||
.wp-block-pullquote.is-style-solid-color {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color.alignleft blockquote,
|
||||
|
@ -1078,7 +1078,7 @@ table.is-style-stripes tbody tr:nth-child(odd),
|
|||
|
||||
.wp-block .has-background-color,
|
||||
.has-background-color {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-background:not(.has-background-background-color) a:not(.wp-block-button__link),
|
||||
|
@ -1095,31 +1095,31 @@ table.is-style-stripes tbody tr:nth-child(odd),
|
|||
.wp-block .has-primary-background-color,
|
||||
.has-primary-background-color {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wp-block .has-secondary-background-color,
|
||||
.has-secondary-background-color {
|
||||
background-color: #BC2213;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wp-block .has-foreground-background-color,
|
||||
.has-foreground-background-color {
|
||||
background-color: #303030;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wp-block .has-foreground-light-background-color,
|
||||
.has-foreground-light-background-color {
|
||||
background-color: #505050;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wp-block .has-foreground-dark-background-color,
|
||||
.has-foreground-dark-background-color {
|
||||
background-color: #101010;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wp-block .has-background-light-background-color,
|
||||
|
@ -1136,7 +1136,7 @@ table.is-style-stripes tbody tr:nth-child(odd),
|
|||
|
||||
.wp-block .has-background-background-color,
|
||||
.has-background-background-color {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ input[type="submit"],
|
|||
.wp-block-button__link,
|
||||
.wp-block-file__button, .a8c-posts-list__view-all, body .widget_eu_cookie_law_widget #eu-cookie-law input.accept {
|
||||
line-height: 1;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
|
@ -249,7 +249,7 @@ input:focus[type="submit"],
|
|||
input.has-focus[type="submit"],
|
||||
.has-focus.wp-block-button__link,
|
||||
.has-focus.wp-block-file__button, .has-focus.a8c-posts-list__view-all, body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #145f3e;
|
||||
}
|
||||
|
||||
|
@ -672,7 +672,7 @@ body {
|
|||
font-weight: normal;
|
||||
color: #303030;
|
||||
text-align: right;
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -707,7 +707,7 @@ a {
|
|||
}
|
||||
|
||||
.screen-reader-text:focus {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
||||
clip: auto !important;
|
||||
|
@ -1328,7 +1328,7 @@ input[type="submit"],
|
|||
.wp-block-button__link,
|
||||
.wp-block-file__button, .a8c-posts-list__view-all, body .widget_eu_cookie_law_widget #eu-cookie-law input.accept {
|
||||
line-height: 1;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
|
@ -1378,7 +1378,7 @@ input:focus[type="submit"],
|
|||
input.has-focus[type="submit"],
|
||||
.has-focus.wp-block-button__link,
|
||||
.has-focus.wp-block-file__button, .has-focus.a8c-posts-list__view-all, body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #145f3e;
|
||||
}
|
||||
|
||||
|
@ -1635,7 +1635,7 @@ button[data-load-more-btn], .button {
|
|||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
font-size: 0.83333rem;
|
||||
margin-right: 16px;
|
||||
margin-left: 16px;
|
||||
|
@ -1649,7 +1649,7 @@ button[data-load-more-btn], .button {
|
|||
.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 {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
opacity: .85;
|
||||
}
|
||||
|
||||
|
@ -2026,7 +2026,7 @@ p.has-background {
|
|||
}
|
||||
|
||||
.a8c-posts-list-item__featured span {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #19744C;
|
||||
font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-family: var(--font-headings, "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif);
|
||||
|
@ -2136,7 +2136,7 @@ p.has-background {
|
|||
|
||||
.wp-block-pullquote.is-style-solid-color {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color blockquote {
|
||||
|
@ -2466,7 +2466,7 @@ table.is-style-stripes tbody tr:nth-child(odd),
|
|||
|
||||
.has-background-dim,
|
||||
.has-background-color {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-background:not(.has-background-background-color) a:not(.wp-block-button__link),
|
||||
|
@ -2483,32 +2483,32 @@ table.is-style-stripes tbody tr:nth-child(odd),
|
|||
.has-primary-background-color,
|
||||
.has-primary-background-color.has-background-dim {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-secondary-background-color,
|
||||
.has-secondary-background-color.has-background-dim {
|
||||
background-color: #BC2213;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-background-dim,
|
||||
.has-foreground-background-color,
|
||||
.has-foreground-background-color.has-background-dim {
|
||||
background-color: #303030;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-foreground-light-background-color,
|
||||
.has-foreground-light-background-color.has-background-dim {
|
||||
background-color: #505050;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-foreground-dark-background-color,
|
||||
.has-foreground-dark-background-color.has-background-dim {
|
||||
background-color: #101010;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-background-light-background-color,
|
||||
|
@ -2525,7 +2525,7 @@ table.is-style-stripes tbody tr:nth-child(odd),
|
|||
|
||||
.has-background-background-color,
|
||||
.has-background-background-color.has-background-dim {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
|
@ -2869,7 +2869,7 @@ body:not(.fse-enabled) .site-description {
|
|||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.main-navigation > div > ul > li > .sub-menu {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.2);
|
||||
right: 0;
|
||||
top: 100%;
|
||||
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
@ -3592,7 +3590,7 @@ img#wpstats {
|
|||
* - Page specific styles
|
||||
*/
|
||||
.sticky-post {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #19744C;
|
||||
font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-family: var(--font-headings, "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif);
|
||||
|
@ -3912,7 +3910,7 @@ body .widget_eu_cookie_law_widget.widget.top {
|
|||
}
|
||||
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #303030;
|
||||
font-size: 0.83333rem;
|
||||
|
@ -3929,11 +3927,11 @@ body .widget_eu_cookie_law_widget #eu-cookie-law {
|
|||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative {
|
||||
background: #303030;
|
||||
border-color: #101010;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
|
@ -4044,13 +4042,16 @@ a,
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:active, a:focus, a:hover,
|
||||
.has-background a:not(.wp-block-button__link):not(.wp-block-file__button), a:active, a:focus, a:hover, .has-background
|
||||
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:not(.wp-block-button__link):not(.wp-block-file__button),
|
||||
.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-meta a:hover, .has-background
|
||||
.wp-block-newspack-blocks-homepage-articles article .cat-links a:not(.wp-block-button__link):not(.wp-block-file__button),
|
||||
.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 .cat-links a:hover, .has-background
|
||||
.entry-content .more-link:not(.wp-block-button__link):not(.wp-block-file__button),
|
||||
.entry-content .more-link:active,
|
||||
.entry-content .more-link:focus,
|
||||
.entry-content .more-link:hover {
|
||||
|
@ -4134,7 +4135,7 @@ dt {
|
|||
}
|
||||
|
||||
.main-navigation > div {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #D0D0D0;
|
||||
border-radius: 4px;
|
||||
right: 16px;
|
||||
|
@ -4502,11 +4503,11 @@ body .widget_eu_cookie_law_widget #eu-cookie-law {
|
|||
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative {
|
||||
background: rgba(48, 48, 48, 0.9);
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
|
|
|
@ -254,7 +254,7 @@ body[class*="woocommerce"] #page .woocommerce input.button,
|
|||
body[class*="woocommerce"] #page .woocommerce .widget_shopping_cart .buttons a,
|
||||
body[class*="woocommerce"] #page .woocommerce.widget_shopping_cart .buttons a {
|
||||
line-height: 1;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
|
@ -364,7 +364,7 @@ body[class*="woocommerce"] #page .cart .has-focus.button,
|
|||
body[class*="woocommerce"] #page a.has-focus.added_to_cart,
|
||||
body[class*="woocommerce"] #page .woocommerce .widget_shopping_cart .buttons a.has-focus,
|
||||
body[class*="woocommerce"] #page .woocommerce.widget_shopping_cart .buttons a.has-focus {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #145f3e;
|
||||
}
|
||||
|
||||
|
@ -535,7 +535,7 @@ body[class*="woocommerce"] #page a.remove {
|
|||
}
|
||||
|
||||
body[class*="woocommerce"] #page a.remove:hover {
|
||||
color: white !important;
|
||||
color: #FFFFFF !important;
|
||||
background: red;
|
||||
}
|
||||
|
||||
|
@ -856,7 +856,7 @@ body[class*="woocommerce"] #page .main-navigation #woocommerce-toggle:checked +
|
|||
|
||||
@media only screen and (max-width: 559px) {
|
||||
body[class*="woocommerce"] #page .main-navigation .woocommerce-menu-container {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
color: #303030;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
|
@ -910,7 +910,7 @@ body[class*="woocommerce"] #page .main-navigation .woocommerce-cart-link .svg-ic
|
|||
}
|
||||
|
||||
body[class*="woocommerce"] #page .main-navigation .woocommerce-cart-widget {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
color: #303030;
|
||||
max-width: 100%;
|
||||
padding: 16px 0;
|
||||
|
@ -951,7 +951,7 @@ body[class*="woocommerce"] #page .main-navigation .woocommerce-cart-widget .wooc
|
|||
|
||||
body[class*="woocommerce"] #page .main-navigation .woocommerce-cart-widget .woocommerce-mini-cart__buttons a {
|
||||
clear: left;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #19744C;
|
||||
margin: 0;
|
||||
float: left;
|
||||
|
@ -1203,9 +1203,9 @@ body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li a:hover {
|
|||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
border-color: #D0D0D0;
|
||||
border-bottom-color: white;
|
||||
border-bottom-color: #FFFFFF;
|
||||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active a {
|
||||
|
@ -1214,11 +1214,11 @@ body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active a {
|
|||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active::before {
|
||||
box-shadow: -2px 2px 0 white;
|
||||
box-shadow: -2px 2px 0 #FFFFFF;
|
||||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active::after {
|
||||
box-shadow: 2px 2px 0 white;
|
||||
box-shadow: 2px 2px 0 #FFFFFF;
|
||||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li::before, body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li::after {
|
||||
|
@ -1337,7 +1337,7 @@ body[class*="woocommerce"] #page #reviews #comments .commentlist > li::before {
|
|||
body[class*="woocommerce"] .woocommerce-store-notice,
|
||||
body[class*="woocommerce"] p.demo_store {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
position: fixed;
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
|
@ -1947,7 +1947,7 @@ body[class*="woocommerce"] #page .woocommerce-ordering select {
|
|||
}
|
||||
|
||||
.single-product #page #woocommerce-wrapper div.product div.images .woocommerce-product-gallery__wrapper .zoomImg {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.single-product #page #woocommerce-wrapper div.product div.images .woocommerce-product-gallery__image--placeholder {
|
||||
|
@ -1956,7 +1956,7 @@ body[class*="woocommerce"] #page .woocommerce-ordering select {
|
|||
|
||||
.single-product #page #woocommerce-wrapper div.product div.images .woocommerce-product-gallery__trigger {
|
||||
font-size: 1.2rem;
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.single-product #page #woocommerce-wrapper div.product div.images .woocommerce-product-gallery__trigger::before {
|
||||
|
|
|
@ -254,7 +254,7 @@ body[class*="woocommerce"] #page .woocommerce input.button,
|
|||
body[class*="woocommerce"] #page .woocommerce .widget_shopping_cart .buttons a,
|
||||
body[class*="woocommerce"] #page .woocommerce.widget_shopping_cart .buttons a {
|
||||
line-height: 1;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
|
@ -364,7 +364,7 @@ body[class*="woocommerce"] #page .cart .has-focus.button,
|
|||
body[class*="woocommerce"] #page a.has-focus.added_to_cart,
|
||||
body[class*="woocommerce"] #page .woocommerce .widget_shopping_cart .buttons a.has-focus,
|
||||
body[class*="woocommerce"] #page .woocommerce.widget_shopping_cart .buttons a.has-focus {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #145f3e;
|
||||
}
|
||||
|
||||
|
@ -535,7 +535,7 @@ body[class*="woocommerce"] #page a.remove {
|
|||
}
|
||||
|
||||
body[class*="woocommerce"] #page a.remove:hover {
|
||||
color: white !important;
|
||||
color: #FFFFFF !important;
|
||||
background: red;
|
||||
}
|
||||
|
||||
|
@ -856,7 +856,7 @@ body[class*="woocommerce"] #page .main-navigation #woocommerce-toggle:checked +
|
|||
|
||||
@media only screen and (max-width: 559px) {
|
||||
body[class*="woocommerce"] #page .main-navigation .woocommerce-menu-container {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
color: #303030;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
|
@ -910,7 +910,7 @@ body[class*="woocommerce"] #page .main-navigation .woocommerce-cart-link .svg-ic
|
|||
}
|
||||
|
||||
body[class*="woocommerce"] #page .main-navigation .woocommerce-cart-widget {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
color: #303030;
|
||||
max-width: 100%;
|
||||
padding: 16px 0;
|
||||
|
@ -951,7 +951,7 @@ body[class*="woocommerce"] #page .main-navigation .woocommerce-cart-widget .wooc
|
|||
|
||||
body[class*="woocommerce"] #page .main-navigation .woocommerce-cart-widget .woocommerce-mini-cart__buttons a {
|
||||
clear: right;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #19744C;
|
||||
margin: 0;
|
||||
float: right;
|
||||
|
@ -1203,9 +1203,9 @@ body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li a:hover {
|
|||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
border-color: #D0D0D0;
|
||||
border-bottom-color: white;
|
||||
border-bottom-color: #FFFFFF;
|
||||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active a {
|
||||
|
@ -1214,11 +1214,11 @@ body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active a {
|
|||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active::before {
|
||||
box-shadow: 2px 2px 0 white;
|
||||
box-shadow: 2px 2px 0 #FFFFFF;
|
||||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li.active::after {
|
||||
box-shadow: -2px 2px 0 white;
|
||||
box-shadow: -2px 2px 0 #FFFFFF;
|
||||
}
|
||||
|
||||
body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li::before, body[class*="woocommerce"] #page .woocommerce-tabs ul.tabs li::after {
|
||||
|
@ -1337,7 +1337,7 @@ body[class*="woocommerce"] #page #reviews #comments .commentlist > li::before {
|
|||
body[class*="woocommerce"] .woocommerce-store-notice,
|
||||
body[class*="woocommerce"] p.demo_store {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
position: fixed;
|
||||
top: auto;
|
||||
bottom: 0;
|
||||
|
@ -1947,7 +1947,7 @@ body[class*="woocommerce"] #page .woocommerce-ordering select {
|
|||
}
|
||||
|
||||
.single-product #page #woocommerce-wrapper div.product div.images .woocommerce-product-gallery__wrapper .zoomImg {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
.single-product #page #woocommerce-wrapper div.product div.images .woocommerce-product-gallery__image--placeholder {
|
||||
|
@ -1956,7 +1956,7 @@ body[class*="woocommerce"] #page .woocommerce-ordering select {
|
|||
|
||||
.single-product #page #woocommerce-wrapper div.product div.images .woocommerce-product-gallery__trigger {
|
||||
font-size: 1.2rem;
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
.single-product #page #woocommerce-wrapper div.product div.images .woocommerce-product-gallery__trigger::before {
|
||||
|
|
|
@ -199,7 +199,7 @@ input[type="submit"],
|
|||
.wp-block-button__link,
|
||||
.wp-block-file__button, .a8c-posts-list__view-all, body .widget_eu_cookie_law_widget #eu-cookie-law input.accept {
|
||||
line-height: 1;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
|
@ -249,7 +249,7 @@ input:focus[type="submit"],
|
|||
input.has-focus[type="submit"],
|
||||
.has-focus.wp-block-button__link,
|
||||
.has-focus.wp-block-file__button, .has-focus.a8c-posts-list__view-all, body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #145f3e;
|
||||
}
|
||||
|
||||
|
@ -672,7 +672,7 @@ body {
|
|||
font-weight: normal;
|
||||
color: #303030;
|
||||
text-align: left;
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -707,7 +707,7 @@ a {
|
|||
}
|
||||
|
||||
.screen-reader-text:focus {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
border-radius: 3px;
|
||||
box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
|
||||
clip: auto !important;
|
||||
|
@ -1328,7 +1328,7 @@ input[type="submit"],
|
|||
.wp-block-button__link,
|
||||
.wp-block-file__button, .a8c-posts-list__view-all, body .widget_eu_cookie_law_widget #eu-cookie-law input.accept {
|
||||
line-height: 1;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
cursor: pointer;
|
||||
font-weight: 700;
|
||||
font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
|
@ -1378,7 +1378,7 @@ input:focus[type="submit"],
|
|||
input.has-focus[type="submit"],
|
||||
.has-focus.wp-block-button__link,
|
||||
.has-focus.wp-block-file__button, .has-focus.a8c-posts-list__view-all, body .widget_eu_cookie_law_widget #eu-cookie-law input.has-focus.accept {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #145f3e;
|
||||
}
|
||||
|
||||
|
@ -1635,7 +1635,7 @@ button[data-load-more-btn], .button {
|
|||
|
||||
.wp-block-file .wp-block-file__button {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
font-size: 0.83333rem;
|
||||
margin-left: 16px;
|
||||
margin-right: 16px;
|
||||
|
@ -1649,7 +1649,7 @@ button[data-load-more-btn], .button {
|
|||
.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 {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
opacity: .85;
|
||||
}
|
||||
|
||||
|
@ -2026,7 +2026,7 @@ p.has-background {
|
|||
}
|
||||
|
||||
.a8c-posts-list-item__featured span {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #19744C;
|
||||
font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-family: var(--font-headings, "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif);
|
||||
|
@ -2136,7 +2136,7 @@ p.has-background {
|
|||
|
||||
.wp-block-pullquote.is-style-solid-color {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.wp-block-pullquote.is-style-solid-color blockquote {
|
||||
|
@ -2473,7 +2473,7 @@ table.is-style-stripes tbody tr:nth-child(odd),
|
|||
|
||||
.has-background-dim,
|
||||
.has-background-color {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-background:not(.has-background-background-color) a:not(.wp-block-button__link),
|
||||
|
@ -2490,32 +2490,32 @@ table.is-style-stripes tbody tr:nth-child(odd),
|
|||
.has-primary-background-color,
|
||||
.has-primary-background-color.has-background-dim {
|
||||
background-color: #19744C;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-secondary-background-color,
|
||||
.has-secondary-background-color.has-background-dim {
|
||||
background-color: #BC2213;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-background-dim,
|
||||
.has-foreground-background-color,
|
||||
.has-foreground-background-color.has-background-dim {
|
||||
background-color: #303030;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-foreground-light-background-color,
|
||||
.has-foreground-light-background-color.has-background-dim {
|
||||
background-color: #505050;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-foreground-dark-background-color,
|
||||
.has-foreground-dark-background-color.has-background-dim {
|
||||
background-color: #101010;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.has-background-light-background-color,
|
||||
|
@ -2532,7 +2532,7 @@ table.is-style-stripes tbody tr:nth-child(odd),
|
|||
|
||||
.has-background-background-color,
|
||||
.has-background-background-color.has-background-dim {
|
||||
background-color: white;
|
||||
background-color: #FFFFFF;
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
|
@ -2888,7 +2888,7 @@ body:not(.fse-enabled) .site-description {
|
|||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.main-navigation > div > ul > li > .sub-menu {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
box-shadow: 0px 0px 8px 2px rgba(0, 0, 0, 0.2);
|
||||
left: 0;
|
||||
top: 100%;
|
||||
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
@ -3611,7 +3609,7 @@ img#wpstats {
|
|||
* - Page specific styles
|
||||
*/
|
||||
.sticky-post {
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
background-color: #19744C;
|
||||
font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
|
||||
font-family: var(--font-headings, "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif);
|
||||
|
@ -3941,7 +3939,7 @@ body .widget_eu_cookie_law_widget.widget.top {
|
|||
}
|
||||
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #D0D0D0;
|
||||
color: #303030;
|
||||
font-size: 0.83333rem;
|
||||
|
@ -3958,11 +3956,11 @@ body .widget_eu_cookie_law_widget #eu-cookie-law {
|
|||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative {
|
||||
background: #303030;
|
||||
border-color: #101010;
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
|
@ -4073,13 +4071,16 @@ a,
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:active, a:focus, a:hover,
|
||||
.has-background a:not(.wp-block-button__link):not(.wp-block-file__button), a:active, a:focus, a:hover, .has-background
|
||||
.wp-block-newspack-blocks-homepage-articles article .entry-meta a:not(.wp-block-button__link):not(.wp-block-file__button),
|
||||
.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-meta a:hover, .has-background
|
||||
.wp-block-newspack-blocks-homepage-articles article .cat-links a:not(.wp-block-button__link):not(.wp-block-file__button),
|
||||
.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 .cat-links a:hover, .has-background
|
||||
.entry-content .more-link:not(.wp-block-button__link):not(.wp-block-file__button),
|
||||
.entry-content .more-link:active,
|
||||
.entry-content .more-link:focus,
|
||||
.entry-content .more-link:hover {
|
||||
|
@ -4163,7 +4164,7 @@ dt {
|
|||
}
|
||||
|
||||
.main-navigation > div {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #D0D0D0;
|
||||
border-radius: 4px;
|
||||
left: 16px;
|
||||
|
@ -4531,11 +4532,11 @@ body .widget_eu_cookie_law_widget #eu-cookie-law {
|
|||
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative {
|
||||
background: rgba(48, 48, 48, 0.9);
|
||||
color: white;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept {
|
||||
background: white;
|
||||
background: #FFFFFF;
|
||||
color: #303030;
|
||||
}
|
||||
|
||||
|
|
|
@ -53,49 +53,52 @@ if ( ! function_exists( 'barnsbury_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'] : '#20603C'; // $config-global--color-primary-default;
|
||||
$secondary = ! empty( $colors_array ) ? $colors_array['colors']['fg1'] : '#655441'; // $config-global--color-secondary-default;
|
||||
$background = ! empty( $colors_array ) ? $colors_array['colors']['bg'] : '#FFFDF6'; // $config-global--color-background-default;
|
||||
$foreground = ! empty( $colors_array ) ? $colors_array['colors']['txt'] : '#3C2323'; // $config-global--color-foreground-default;
|
||||
$foreground_light = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#3C2323' ) ? $colors_array['colors']['txt'] : '#844d4d'; // $config-global--color-foreground-light-default;
|
||||
$foreground_dark = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#3C2323' ) ? $colors_array['colors']['txt'] : '#0D1B24'; // $config-global--color-foreground-dark-default;
|
||||
|
||||
// Editor color palette.
|
||||
add_theme_support(
|
||||
'editor-color-palette',
|
||||
array(
|
||||
array(
|
||||
'name' => __( 'Primary', 'barnsbury' ),
|
||||
'slug' => 'primary',
|
||||
'color' => '#20603C',
|
||||
'color' => $primary,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Secondary', 'barnsbury' ),
|
||||
'slug' => 'secondary',
|
||||
'color' => '#655441',
|
||||
'color' => $secondary,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Deep Blue', 'barnsbury' ),
|
||||
'slug' => 'foreground-dark',
|
||||
'color' => '#0D1B24',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Brown', 'barnsbury' ),
|
||||
'slug' => 'foreground',
|
||||
'color' => '#3C2323',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Clay', 'barnsbury' ),
|
||||
'slug' => 'foreground-light',
|
||||
'color' => '#844D4D',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Light Gray', 'barnsbury' ),
|
||||
'slug' => 'background-dark',
|
||||
'color' => '#DDDDDD',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Subtle Off White', 'barnsbury' ),
|
||||
'slug' => 'background-light',
|
||||
'color' => '#FDF9EC',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Off White', 'barnsbury' ),
|
||||
'name' => __( 'Background', 'barnsbury' ),
|
||||
'slug' => 'background',
|
||||
'color' => '#FFFDF6',
|
||||
'color' => $background,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Foreground', 'barnsbury' ),
|
||||
'slug' => 'foreground',
|
||||
'color' => $foreground,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Foreground Light', 'balasana' ),
|
||||
'slug' => 'foreground-light',
|
||||
'color' => $foreground_light,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Foreground Dark', 'balasana' ),
|
||||
'slug' => 'foreground-dark',
|
||||
'color' => $foreground_dark,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
@ -171,5 +174,16 @@ function barnsbury_editor_styles() {
|
|||
|
||||
// Enqueue Google fonts in the editor, if necessary
|
||||
wp_enqueue_style( 'barnsbury-editor-fonts', barnsbury_fonts_url(), array(), null );
|
||||
|
||||
// Hide duplicate palette colors
|
||||
$colors_array = get_theme_mod('colors_manager', array( 'colors' => true )); // color annotations array()
|
||||
if ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#3C2323' ) { // $config-global--color-foreground-light-default;
|
||||
$inline_palette_css = '.components-circular-option-picker__option-wrapper:nth-child(5),
|
||||
.components-circular-option-picker__option-wrapper:nth-child(6) {
|
||||
display: none;
|
||||
}';
|
||||
wp_add_inline_style( 'wp-edit-blocks', $inline_palette_css );
|
||||
}
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'barnsbury_editor_styles' );
|
||||
|
||||
|
|
353
barnsbury/inc/wpcom-colors.php
Normal file
353
barnsbury/inc/wpcom-colors.php
Normal file
|
@ -0,0 +1,353 @@
|
|||
<?php
|
||||
/* Custom Colors: Barnsbury */
|
||||
|
||||
// Background Color
|
||||
// $config-global--color-background-default
|
||||
add_color_rule( 'bg', '#FFFDF6', array(
|
||||
|
||||
// Background-color
|
||||
array( '.has-background-background-color,
|
||||
.has-background-background-color.has-background-dim,
|
||||
.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,
|
||||
.main-navigation > div > ul > li.current-menu-item li > a,
|
||||
.main-navigation > div > ul > li.focus li > a,
|
||||
.main-navigation > div > ul > li:hover li > a,
|
||||
.main-navigation > div > ul > li:hover li:hover > a,
|
||||
.main-navigation > div > ul > li:hover li.focus > a,
|
||||
.main-navigation > div > ul > li:hover li.current-menu-item > a,
|
||||
.main-navigation > div > ul > li.focus li:hover > a,
|
||||
.main-navigation > div > ul > li.focus li.focus > a,
|
||||
.main-navigation > div > ul > li.focus li.current-menu-item > a,
|
||||
.main-navigation > div > ul > li.current-menu-item li:hover > a,
|
||||
.main-navigation > div > ul > li.current-menu-item li.focus > a,
|
||||
.main-navigation > div > ul > li.current-menu-item li.current-menu-item > 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-background-color,
|
||||
.has-background-dim,
|
||||
.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-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,
|
||||
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="submit"]', 'color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Text-color
|
||||
array( '.has-primary-background-color,
|
||||
.has-secondary-background-color,
|
||||
.has-foreground-background-color,
|
||||
.has-foreground-dark-background-color,
|
||||
.has-foreground-light-background-color,
|
||||
.has-background-color', 'color' ),
|
||||
// Background-color
|
||||
array( '.has-background-background-color', 'background-color' ),
|
||||
// Color darkened
|
||||
array( '.has-background-dark-color', 'color', '-1' ),
|
||||
// Background-color darkened
|
||||
array( '.has-background-dark-background-color', 'background-color', '-1' ),
|
||||
// Color lightened
|
||||
array( '.has-background-light-color', 'color', '+1' ),
|
||||
// Background-color lightened
|
||||
array( '.has-background-light-background-color', 'background-color', '+1' ),
|
||||
|
||||
/**
|
||||
* Grays
|
||||
* Uses a slightly darker color
|
||||
*/
|
||||
// Border-color
|
||||
array( '.main-navigation > div > ul > li > .sub-menu', 'border-color', '-1' ),
|
||||
|
||||
), __( 'Background Color' ) );
|
||||
|
||||
// Link Color
|
||||
// $config-global--color-primary-default
|
||||
add_color_rule( 'link', '#20603C', array(
|
||||
|
||||
// Background-color
|
||||
array( '.a8c-posts-list-item__featured span,
|
||||
.a8c-posts-list__view-all,
|
||||
.button,
|
||||
.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-footer a:active,
|
||||
.entry-footer a:hover,
|
||||
.entry-meta a:active,
|
||||
.entry-meta a:hover,
|
||||
.entry-title a:active,
|
||||
.entry-title a:focus,
|
||||
.entry-title a:hover,
|
||||
.footer-navigation .footer-menu,
|
||||
.page-title a:active,
|
||||
.page-title a:focus,
|
||||
.page-title a:hover,
|
||||
.site-info,
|
||||
.social-navigation a:hover,
|
||||
.wp-block-button.is-style-outline .wp-block-button__link,
|
||||
.wp-block-button.is-style-outline .wp-block-button__link: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:hover,
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:focus,
|
||||
.wp-block-button.is-style-outline .wp-block-button__link.has-focus,
|
||||
.wp-block-button.is-style-outline.wp-block-button__link,
|
||||
.wp-block-button.is-style-outline.wp-block-button__link: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:hover,
|
||||
.wp-block-button.is-style-outline.wp-block-button__link:focus,
|
||||
.wp-block-button.is-style-outline.wp-block-button__link.has-focus,
|
||||
.wp-block-latest-posts > li > a:active,
|
||||
.wp-block-latest-posts > li > a:focus,
|
||||
.wp-block-latest-posts > li > a:hover,
|
||||
.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,
|
||||
.main-navigation > div > ul > li.current-menu-item > a,
|
||||
.main-navigation > div > ul > li.focus > a,
|
||||
.main-navigation > div > ul > li:hover > a,
|
||||
.main-navigation > div > ul > li:hover li:hover > a,
|
||||
.main-navigation > div > ul > li:hover li.focus > a,
|
||||
.main-navigation > div > ul > li:hover li.current-menu-item > a,
|
||||
.main-navigation > div > ul > li.focus li:hover > a,
|
||||
.main-navigation > div > ul > li.focus li.focus > a,
|
||||
.main-navigation > div > ul > li.focus li.current-menu-item > a,
|
||||
.main-navigation > div > ul > li.current-menu-item li:hover > a,
|
||||
.main-navigation > div > ul > li.current-menu-item li.focus > a,
|
||||
.main-navigation > div > ul > li.current-menu-item li.current-menu-item > 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( '.main-navigation > div > ul > li.current-menu-item > ul:before,
|
||||
.main-navigation > div > ul > li.focus > ul:before,
|
||||
.main-navigation > div > ul > li:hover > ul:before', 'border-bottom-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Background-color
|
||||
array( '.has-primary-background-color', 'background-color' ),
|
||||
// Text-color
|
||||
array( '.has-primary-color', 'color' ),
|
||||
|
||||
), __( 'Link Color' ) );
|
||||
|
||||
// Text Color
|
||||
// $config-global--color-foreground-default
|
||||
add_color_rule( 'txt', '#3C2323', array(
|
||||
|
||||
// Text-color
|
||||
array( '.comment-meta .comment-metadata,
|
||||
.entry-footer,
|
||||
.entry-meta,
|
||||
.main-navigation,
|
||||
.main-navigation a,
|
||||
.main-navigation a:link,
|
||||
.main-navigation a:visited,
|
||||
.screen-reader-text:focus,
|
||||
.social-navigation a,
|
||||
.wp-block-code,
|
||||
.wp-block-code pre,
|
||||
.wp-block-latest-posts > li > a,
|
||||
.wp-block-pullquote,
|
||||
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
|
||||
table.is-style-stripes tbody tr:nth-child(odd),
|
||||
body,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
|
||||
hr.wp-block-separator.is-style-dots:before,
|
||||
.site-title,
|
||||
.main-navigation > div > ul > li.current-menu-item li > a,
|
||||
.main-navigation > div > ul > li.focus li > a,
|
||||
.main-navigation > div > ul > li:hover li > a', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
|
||||
.wp-block-cover,
|
||||
.wp-block-cover-image', 'background-color' ),
|
||||
|
||||
// Border-color
|
||||
array( '.wp-block-code,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'border-color' ),
|
||||
|
||||
// Border-top-color
|
||||
array( '.comment-list .children > li,
|
||||
.comment-list > li,
|
||||
.wp-block-pullquote', 'border-top-color' ),
|
||||
|
||||
// Border-bottom-color
|
||||
array( '.comment-list,
|
||||
.wp-block-pullquote,
|
||||
hr,
|
||||
hr.wp-block-separator', 'border-bottom-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Text color
|
||||
array( '.has-foreground-color,
|
||||
.has-background-background-color[class],
|
||||
.has-background-background-color.has-background-dim,
|
||||
.has-background-dark-background-color[class],
|
||||
.has-background-dark-background-color.has-background-dim,
|
||||
.has-background-light-background-color[class],
|
||||
.has-background-light-background-color.has-background-dim', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '.has-background-dim,
|
||||
.has-foreground-background-color[class],
|
||||
.has-foreground-background-color.has-background-dim', '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( '', 'color' ),
|
||||
|
||||
), __( 'Text Color' ) );
|
||||
|
||||
// Accent Color
|
||||
// $config-global--color-secondary-default
|
||||
add_color_rule( 'fg1', '#655441', array(
|
||||
|
||||
// Text-color
|
||||
array( '.wp-block-button.is-style-outline .wp-block-button__link:focus,
|
||||
.wp-block-button.is-style-outline .wp-block-button__link:hover', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
|
||||
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover', 'background-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Text-color
|
||||
array( '.has-secondary-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '.has-secondary-background-color,
|
||||
.has-secondary-background-color.has-background-dim', 'background-color' ),
|
||||
|
||||
), __( 'Secondary Color' ) );
|
||||
|
||||
/**
|
||||
* Custom CSS
|
||||
*/
|
||||
|
||||
function barnsbury_custom_colors_extra_css() {
|
||||
$colors_array = get_theme_mod( 'colors_manager' );
|
||||
$bg = $colors_array['colors']['bg'];
|
||||
?>
|
||||
@media screen and (min-width: 560px) {
|
||||
|
||||
.main-navigation > div > ul > li > .sub-menu {
|
||||
background-color: <?php echo $bg; ?>;
|
||||
border: 1px solid;
|
||||
}
|
||||
.main-navigation > div > ul > li.current-menu-item li > a,
|
||||
.main-navigation > div > ul > li.focus li > a,
|
||||
.main-navigation > div > ul > li:hover li > a {
|
||||
color: <?php echo $bg; ?>;
|
||||
}
|
||||
.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: none;
|
||||
}
|
||||
}
|
||||
<?php }
|
||||
add_theme_support( 'custom_colors_extra_css', 'barnsbury_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' );
|
186
barnsbury/inc/wpcom-editor-colors.php
Normal file
186
barnsbury/inc/wpcom-editor-colors.php
Normal file
|
@ -0,0 +1,186 @@
|
|||
<?php
|
||||
/*
|
||||
* Custom Editor Colors: Barnsbury
|
||||
*/
|
||||
|
||||
// Background Color (White)
|
||||
// $config-global--color-background-default
|
||||
add_editor_color_rule( 'bg', '#FFFDF6', array(
|
||||
|
||||
// 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 .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:not(.has-text-color),
|
||||
#editor .editor-styles-wrapper .wp-block-button__link.has-focus:not(.has-text-color),
|
||||
#editor .editor-styles-wrapper .wp-block-button__link:not(.has-text-color):focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button__link:not(.has-text-color):hover,
|
||||
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper', 'background-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .has-secondary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-secondary-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color,
|
||||
#editor .editor-styles-wrapper .has-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-background-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-background-color', 'background-color' ),
|
||||
|
||||
// Text-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-background-dark-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-dark-color', 'color', '-1' ),
|
||||
|
||||
// Background-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-background-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-dark-background-color', 'background-color', '-1' ),
|
||||
|
||||
// Text-color lightened
|
||||
array( '#editor .editor-styles-wrapper .has-background-light-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-light-color', 'color', '+1' ),
|
||||
|
||||
// Background-color lightened
|
||||
array( '#editor .editor-styles-wrapper .has-background-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-light-background-color', 'background-color', '+1' ),
|
||||
|
||||
), __( 'Background Color' ) );
|
||||
|
||||
// Link Color (Blue)
|
||||
// $config-global--color-primary-default
|
||||
add_editor_color_rule( 'link', '#20603C', array(
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .wp-block-button.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: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-latest-posts > li > a:active,
|
||||
#editor .editor-styles-wrapper .wp-block-latest-posts > li > a:focus,
|
||||
#editor .editor-styles-wrapper .wp-block-latest-posts > li > a:hover', 'color' ),
|
||||
|
||||
// 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-button__link.is-style-outline,
|
||||
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
|
||||
|
||||
// Border-left-color
|
||||
array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-primary-background-color', 'background-color' ),
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-primary-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-primary-color', 'color' ),
|
||||
|
||||
), __( 'Link Color' ) );
|
||||
|
||||
// Text Color
|
||||
// $config-global--color-foreground-default
|
||||
add_editor_color_rule( 'txt', '#3C2323', array(
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
|
||||
#editor .editor-styles-wrapper .wp-block-latest-posts > li > a,
|
||||
#editor .editor-styles-wrapper .wp-block-pullquote,
|
||||
#editor .editor-styles-wrapper .wp-block-separator.is-style-dots:before,
|
||||
#editor .editor-styles-wrapper hr.is-style-dots:before,
|
||||
#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
|
||||
#editor .editor-styles-wrapper', 'color' ),
|
||||
|
||||
// Border-top-color
|
||||
array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color' ),
|
||||
|
||||
// Border-bottom-color
|
||||
array( '#editor .editor-styles-wrapper .wp-block-pullquote,
|
||||
#editor .editor-styles-wrapper .wp-block-separator,
|
||||
#editor .editor-styles-wrapper hr', 'border-bottom-color' ),
|
||||
|
||||
// Border-right-color
|
||||
array( '#editor .editor-styles-wrapper .wp-block-separator[style*="text-align: right"],
|
||||
#editor .editor-styles-wrapper .wp-block-separator[style*="text-align:right"],
|
||||
#editor .editor-styles-wrapper hr[style*="text-align: right"],
|
||||
#editor .editor-styles-wrapper hr[style*="text-align:right"]', 'border-right-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-background-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-background-color,
|
||||
#editor .editor-styles-wrapper .has-background-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-dark-background-color,
|
||||
#editor .editor-styles-wrapper .has-background-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-light-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-background-color', 'background-color' ),
|
||||
|
||||
// Text-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-dark-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-dark-color', 'color', '-1' ),
|
||||
|
||||
// Background-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color', 'background-color', '-1' ),
|
||||
|
||||
// Text-color brightened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-light-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-light-color', 'color', '+2' ),
|
||||
|
||||
// Background-color brightened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color', 'background-color', '+2' ),
|
||||
|
||||
), __( 'Text Color' ) );
|
||||
|
||||
// Accent Color
|
||||
// $config-global--color-secondary-default
|
||||
add_editor_color_rule( 'fg1', '#655441', array(
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-secondary-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-secondary-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-secondary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-secondary-background-color', 'background-color' ),
|
||||
|
||||
), __( 'Secondary Color' ) );
|
21
barnsbury/inc/wpcom.php
Normal file
21
barnsbury/inc/wpcom.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?
|
||||
/**
|
||||
* Adds support for wp.com-specific theme functions.
|
||||
*
|
||||
* @global array $themecolors
|
||||
*/
|
||||
function barnsbury_wpcom_setup() {
|
||||
global $themecolors;
|
||||
|
||||
// Set theme colors for third party services.
|
||||
if ( ! isset( $themecolors ) ) {
|
||||
$themecolors = array(
|
||||
'bg' => 'FFFDF6', // $config-global--color-background-default
|
||||
'border' => '3C2323', // $config-global--color-border-default
|
||||
'text' => '3C2323', // $config-global--color-foreground-default
|
||||
'link' => '20603C', // $config-global--color-primary-default
|
||||
'url' => '20603C', // $config-global--color-primary-default
|
||||
);
|
||||
}
|
||||
}
|
||||
add_action( 'after_setup_theme', 'barnsbury_wpcom_setup' );
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -62,49 +62,52 @@ if ( ! function_exists( 'brompton_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'] : '#C04239'; // $config-global--color-primary-default;
|
||||
$secondary = ! empty( $colors_array ) ? $colors_array['colors']['fg1'] : '#FFFFFF'; // $config-global--color-secondary-default;
|
||||
$background = ! empty( $colors_array ) ? $colors_array['colors']['bg'] : '#E8E4DD'; // $config-global--color-background-default;
|
||||
$foreground = ! empty( $colors_array ) ? $colors_array['colors']['txt'] : '#252E36'; // $config-global--color-foreground-default;
|
||||
$foreground_light = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#252E36' ) ? $colors_array['colors']['txt'] : '#666666'; // $config-global--color-foreground-light-default;
|
||||
$foreground_dark = ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#252E36' ) ? $colors_array['colors']['txt'] : '#474747'; // $config-global--color-foreground-dark-default;
|
||||
|
||||
// Editor color palette.
|
||||
add_theme_support(
|
||||
'editor-color-palette',
|
||||
array(
|
||||
array(
|
||||
'name' => __( 'Primary', 'brompton' ),
|
||||
'slug' => 'primary',
|
||||
'color' => '#C04239',
|
||||
'color' => $primary,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Secondary', 'brompton' ),
|
||||
'slug' => 'secondary',
|
||||
'color' => '#FFFFFF',
|
||||
'color' => $secondary,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Dark Gray', 'brompton' ),
|
||||
'slug' => 'foreground-dark',
|
||||
'color' => '#474747',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Gray', 'brompton' ),
|
||||
'slug' => 'foreground',
|
||||
'color' => '#505050',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Light Gray', 'brompton' ),
|
||||
'slug' => 'foreground-light',
|
||||
'color' => '#666666',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Dark Ivory', 'varia' ),
|
||||
'slug' => 'background-dark',
|
||||
'color' => '#B9B6B2',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Ivory', 'varia' ),
|
||||
'slug' => 'background-light',
|
||||
'color' => '#CFCDC7',
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Light Ivory', 'brompton' ),
|
||||
'name' => __( 'Background', 'barnsbury' ),
|
||||
'slug' => 'background',
|
||||
'color' => '#E8E4DD',
|
||||
'color' => $background,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Foreground', 'barnsbury' ),
|
||||
'slug' => 'foreground',
|
||||
'color' => $foreground,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Foreground Light', 'barnsbury' ),
|
||||
'slug' => 'foreground-light',
|
||||
'color' => $foreground_light,
|
||||
),
|
||||
array(
|
||||
'name' => __( 'Foreground Dark', 'barnsbury' ),
|
||||
'slug' => 'foreground-dark',
|
||||
'color' => $foreground_dark,
|
||||
),
|
||||
)
|
||||
);
|
||||
|
@ -197,5 +200,15 @@ function brompton_editor_styles() {
|
|||
|
||||
// Enqueue Google fonts in the editor, if necessary
|
||||
wp_enqueue_style( 'brompton-editor-fonts', brompton_fonts_url(), array(), null );
|
||||
|
||||
// Hide duplicate palette colors
|
||||
$colors_array = get_theme_mod('colors_manager', array( 'colors' => true )); // color annotations array()
|
||||
if ( ! empty( $colors_array ) && $colors_array['colors']['txt'] != '#505050' ) { // $config-global--color-foreground-light-default;
|
||||
$inline_palette_css = '.components-circular-option-picker__option-wrapper:nth-child(5),
|
||||
.components-circular-option-picker__option-wrapper:nth-child(6) {
|
||||
display: none;
|
||||
}';
|
||||
wp_add_inline_style( 'wp-edit-blocks', $inline_palette_css );
|
||||
}
|
||||
}
|
||||
add_action( 'enqueue_block_editor_assets', 'brompton_editor_styles' );
|
||||
|
|
502
brompton/inc/wpcom-colors.php
Normal file
502
brompton/inc/wpcom-colors.php
Normal file
|
@ -0,0 +1,502 @@
|
|||
<?php
|
||||
/* Custom Colors: Brompton */
|
||||
|
||||
// Background Color
|
||||
// $config-global--color-background-default
|
||||
add_color_rule( 'bg', '#E8E4DD', array(
|
||||
|
||||
// Background-color
|
||||
array( '.has-background-background-color[class],
|
||||
.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 .button', '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-background-color,
|
||||
.has-background-dim,
|
||||
.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-cover-image:not([class*="background-color"]) .wp-block-cover-image-text,
|
||||
.wp-block-cover-image:not([class*="background-color"]) .wp-block-cover-text,
|
||||
.wp-block-cover-image: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:not([class*="background-color"]) .wp-block-cover__inner-container,
|
||||
.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,
|
||||
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="submit"],
|
||||
.footer-navigation .footer-menu,
|
||||
.main-navigation,
|
||||
.main-navigation > div > ul > li.current-menu-item > a,
|
||||
.main-navigation > div > ul > li:hover li > a,
|
||||
.main-navigation a,
|
||||
.main-navigation a:link,
|
||||
.main-navigation a:visited,
|
||||
.site-branding,
|
||||
.site-info,
|
||||
.site-title,
|
||||
.social-navigation a', 'color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Text-color
|
||||
array( '.has-foreground-background-color,
|
||||
.has-foreground-background-color.has-background-dim,
|
||||
.has-foreground-dark-background-color,
|
||||
.has-foreground-dark-background-color.has-background-dim,
|
||||
.has-foreground-light-background-color,
|
||||
.has-foreground-light-background-color.has-background-dim,
|
||||
.has-primary-background-color,
|
||||
.has-primary-background-color.has-background-dim,
|
||||
.has-secondary-background-color,
|
||||
.has-secondary-background-color.has-background-dim,
|
||||
.has-background-color,
|
||||
.has-background-dark-color,
|
||||
.has-background-light-color', 'color' ),
|
||||
// Background-color
|
||||
array( '.has-background-background-color,
|
||||
.has-background-background-color.has-background-dim', 'background-color' ),
|
||||
// Background-color darkened
|
||||
array( '.has-background-dark-color', 'color', '-1' ),
|
||||
array( '.has-background-dark-background-color,
|
||||
.has-background-dark-background-color.has-background-dim', 'background-color', '-1' ),
|
||||
// Background-color lightened
|
||||
array( '.has-background-light-color', 'color', '+1' ),
|
||||
array( '.has-background-light-background-color,
|
||||
.has-background-light-background-color.has-background-dim', 'background-color', '+1' ),
|
||||
|
||||
/**
|
||||
* Grays
|
||||
* Uses a slightly darker color
|
||||
*/
|
||||
// Border-color
|
||||
array( '.wp-block-code,
|
||||
.wp-block-table td,
|
||||
.wp-block-table th,
|
||||
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,
|
||||
table td,
|
||||
table th,
|
||||
textarea', 'border-color', '-1' ),
|
||||
// Border-top-color
|
||||
array( '.comment-list .children > li,
|
||||
.comment-list > li,
|
||||
.wp-block-pullquote', 'border-top-color', '-1' ),
|
||||
// Color
|
||||
array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
|
||||
|
||||
// Background-color
|
||||
array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept.has-focus,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:focus,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept:hover', '-1' ),
|
||||
|
||||
/**
|
||||
* Menu Hovers
|
||||
* Uses a slightly less opaque color
|
||||
*/
|
||||
// Text-color
|
||||
array( '#masthead a:hover,
|
||||
.site-title a:hover,
|
||||
.social-navigation a:hover,
|
||||
.footer-navigation .footer-menu a:hover,
|
||||
.site-info a:hover', 'color', 0.8 ),
|
||||
|
||||
// Background-color
|
||||
array( '.main-navigation #toggle-menu:active,
|
||||
.main-navigation #toggle-menu:focus,
|
||||
.main-navigation #toggle-menu:hover', 'background-color', 0.8 ),
|
||||
|
||||
), __( 'Background Color' ) );
|
||||
|
||||
// Link Color
|
||||
// $config-global--color-primary-default
|
||||
add_color_rule( 'link', '#C04239', array(
|
||||
|
||||
// Background-color
|
||||
array( '.a8c-posts-list-item__featured span,
|
||||
.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,
|
||||
.sticky-post,
|
||||
.wp-block-button__link:focus,
|
||||
.wp-block-button__link:hover,
|
||||
.wp-block-file__button:focus,
|
||||
.wp-block-file__button:hover,
|
||||
.wp-block-pullquote.is-style-solid-color,
|
||||
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' ),
|
||||
|
||||
// Text-color
|
||||
array( '.a8c-posts-list .a8c-posts-list-item__meta a:active,
|
||||
.a8c-posts-list .a8c-posts-list-item__meta a:focus,
|
||||
.a8c-posts-list .a8c-posts-list-item__meta a:hover,
|
||||
.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,
|
||||
.comments-area .comment-meta a:active,
|
||||
.comments-area .comment-meta a:focus,
|
||||
.comments-area .comment-meta a:hover,
|
||||
.comments-area .reply a:active,
|
||||
.comments-area .reply a:focus,
|
||||
.comments-area .reply a:hover,
|
||||
.entry-footer a:active,
|
||||
.entry-footer a:focus,
|
||||
.entry-footer a:hover,
|
||||
.page-title a:active,
|
||||
.page-title a:focus,
|
||||
.page-title a:hover,
|
||||
.pagination .nav-links > *.current,
|
||||
.pagination .nav-links > *:active,
|
||||
.pagination .nav-links > *:focus,
|
||||
.pagination .nav-links > *:hover,
|
||||
.post-navigation a:active,
|
||||
.post-navigation a:focus,
|
||||
.post-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.has-focus,
|
||||
.wp-block-button.is-style-outline:focus,
|
||||
.wp-block-button.is-style-outline:hover,
|
||||
.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,
|
||||
article .entry-header .entry-title a:active,
|
||||
article .entry-header .entry-title a:focus,
|
||||
article .entry-header .entry-title a:hover', '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( '#colophon .site-info,
|
||||
#masthead', 'border-bottom-color' ),
|
||||
|
||||
// Border color top
|
||||
array( '#colophon .footer-navigation,
|
||||
#colophon .site-info,
|
||||
#masthead', 'border-top-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Background-color
|
||||
array( '.has-primary-background-color,
|
||||
.has-primary-background-color.has-background-dim', 'background-color' ),
|
||||
|
||||
// Text-color
|
||||
array( '.has-primary-color', 'color' ),
|
||||
|
||||
), __( 'Link Color' ) );
|
||||
|
||||
// Text Color
|
||||
// $config-global--color-foreground-default
|
||||
add_color_rule( 'txt', '#252E36', array(
|
||||
|
||||
// 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,
|
||||
.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,
|
||||
.main-navigation .button,
|
||||
.pagination .nav-links > *,
|
||||
.post-navigation .meta-nav,
|
||||
.screen-reader-text:focus,
|
||||
.wp-block-button.is-style-outline .wp-block-button__link: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:active,
|
||||
.wp-block-button.is-style-outline.wp-block-button__link:not(.has-text-color),
|
||||
.wp-block-code,
|
||||
.wp-block-code pre,
|
||||
.wp-block-newspack-blocks-homepage-articles article .cat-links a:active,
|
||||
.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:hover,
|
||||
.wp-block-newspack-blocks-homepage-articles article .entry-title a:hover,
|
||||
.wp-block-pullquote,
|
||||
.wp-block-table.is-style-stripes tbody tr:nth-child(odd),
|
||||
table.is-style-stripes tbody tr:nth-child(odd),
|
||||
a:hover,
|
||||
body,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#colophon .footer-navigation,
|
||||
#colophon .site-info,
|
||||
#masthead,
|
||||
#masthead:before,
|
||||
#page:before,
|
||||
.a8c-posts-list__view-all,
|
||||
.button,
|
||||
.wp-block-button__link,
|
||||
.wp-block-cover,
|
||||
.wp-block-cover-image,
|
||||
.wp-block-cover-image.has-background-dim:not([class*="background-color"]),
|
||||
.wp-block-cover.has-background-dim:not([class*="background-color"]),
|
||||
.wp-block-file .wp-block-file__button,
|
||||
.wp-block-file__button,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law input.accept,
|
||||
body .widget_eu_cookie_law_widget #eu-cookie-law.negative,
|
||||
button,
|
||||
button[data-load-more-btn],
|
||||
input[type="submit"],
|
||||
.main-navigation > div > ul > li > .sub-menu,
|
||||
.main-navigation > div > ul > li:hover li > a,
|
||||
.main-navigation > div > ul > li.focus li > a,
|
||||
.main-navigation > div > ul > li.current-menu-item li > a', 'background-color' ),
|
||||
|
||||
// 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' ),
|
||||
|
||||
// Border-top-color
|
||||
array( '.wp-block-pullquote', 'border-top-color' ),
|
||||
|
||||
// Border-bottom-color
|
||||
array( '.comment-list,
|
||||
.wp-block-pullquote,
|
||||
hr,
|
||||
hr.wp-block-separator', 'border-bottom-color', '-1' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Foreground
|
||||
array( '.has-background-background-color,
|
||||
.has-background-background-color.has-background-dim,
|
||||
.has-background-dark-background-color,
|
||||
.has-background-dark-background-color.has-background-dim,
|
||||
.has-background-light-background-color,
|
||||
.has-background-light-background-color.has-background-dim,
|
||||
.has-foreground-color', 'color' ),
|
||||
|
||||
array( '.has-background-dim,
|
||||
.has-foreground-background-color,
|
||||
.has-foreground-background-color.has-background-dim', '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,
|
||||
.comments-area .reply,
|
||||
.entry-footer,
|
||||
.entry-meta,
|
||||
.has-foreground-light-color[class],
|
||||
.post-navigation a,
|
||||
.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' ),
|
||||
|
||||
), __( 'Text Color' ) );
|
||||
|
||||
// Accent Color
|
||||
// $config-global--color-secondary-default
|
||||
add_color_rule( 'fg1', '#FFFFFF', array(
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
// Text-color
|
||||
array( '.has-secondary-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '.has-secondary-background-color,
|
||||
.has-secondary-background-color.has-background-dim', 'background-color' ),
|
||||
|
||||
), __( 'Secondary Color' ) );
|
||||
|
||||
/**
|
||||
* Custom CSS
|
||||
*/
|
||||
|
||||
function brompton_custom_colors_extra_css() {
|
||||
$colors_array = get_theme_mod( 'colors_manager' );
|
||||
$bg = $colors_array['colors']['bg'];
|
||||
?>
|
||||
|
||||
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="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: black;
|
||||
background: white;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 560px) {
|
||||
.main-navigation > div > ul > li:hover li > a,
|
||||
.main-navigation > div > ul > li.focus li > a,
|
||||
.main-navigation > div > ul > li.current-menu-item li > a {
|
||||
border-top-color: currentColor;
|
||||
}
|
||||
}
|
||||
<?php }
|
||||
add_theme_support( 'custom_colors_extra_css', 'brompton_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' );
|
224
brompton/inc/wpcom-editor-colors.php
Normal file
224
brompton/inc/wpcom-editor-colors.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
/*
|
||||
* Custom Editor Colors: Brompton
|
||||
*/
|
||||
|
||||
// Background Color (White)
|
||||
// $config-global--color-background-default
|
||||
add_editor_color_rule( 'bg', '#E8E4DD', array(
|
||||
|
||||
// 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 .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:not(.is-style-button) .wp-block-button__link,
|
||||
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-button) .wp-block-button__link.has-focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-button) .wp-block-button__link:focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-button) .wp-block-button__link:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-cover,
|
||||
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim:not([class*="background-background-color"]),
|
||||
#editor .editor-styles-wrapper .wp-block-cover:not([class*="background-color"]) .block-editor-block-list__block,
|
||||
#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-image,
|
||||
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim:not([class*="background-background-color"]),
|
||||
#editor .editor-styles-wrapper .wp-block-cover-image:not([class*="background-color"]) .block-editor-block-list__block,
|
||||
#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-pullquote.is-style-solid-color', 'color' ),
|
||||
|
||||
// Color
|
||||
array( 'hr.wp-block-separator.is-style-dots:before', 'color', '-1' ),
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper', 'background-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-dark-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-light-background-color,
|
||||
#editor .editor-styles-wrapper .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .has-secondary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-secondary-background-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-background-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-background-color', 'background-color' ),
|
||||
|
||||
// Text-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-background-dark-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-dark-color', 'color', '-1' ),
|
||||
|
||||
// Background-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-background-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-dark-background-color', 'background-color', '-1' ),
|
||||
|
||||
// Text-color lightened
|
||||
array( '#editor .editor-styles-wrapper .has-background-light-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-light-color', 'color', '+1' ),
|
||||
|
||||
// Background-color lightened
|
||||
array( '#editor .editor-styles-wrapper .has-background-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-light-background-color', 'background-color', '+1' ),
|
||||
|
||||
), __( 'Background Color' ) );
|
||||
|
||||
// Link Color (Blue)
|
||||
// $config-global--color-primary-default
|
||||
add_editor_color_rule( 'link', '#C04239', array(
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a,
|
||||
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:hover,
|
||||
#editor .editor-styles-wrapper a', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .button.has-focus,
|
||||
#editor .editor-styles-wrapper .button:focus,
|
||||
#editor .editor-styles-wrapper .button:hover,
|
||||
#editor .editor-styles-wrapper .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-primary-background-color,
|
||||
#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:not(.is-style-outline) .wp-block-button__link.has-focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-pullquote.is-style-solid-color', 'background-color' ),
|
||||
|
||||
array( '#editor .editor-styles-wrapper .wp-block-quote', 'border-left-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-primary-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-primary-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-primary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-primary-background-color', 'background-color' ),
|
||||
|
||||
), __( 'Link Color' ) );
|
||||
|
||||
// Text Color (Gray)
|
||||
// $config-global--color-foreground-default
|
||||
add_editor_color_rule( 'txt', '#252E36', array(
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .editor-post-title__block .editor-post-title__input,
|
||||
#editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link,
|
||||
#editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link.has-focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link:focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button.is-style-outline .wp-block-button__link:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline,
|
||||
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline.has-focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline.has-focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:focus,
|
||||
#editor .editor-styles-wrapper .wp-block-button__link.is-style-outline:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links a:active,
|
||||
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .cat-links a:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-meta a:active,
|
||||
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-meta a:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .entry-title a:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .more-link:active,
|
||||
#editor .editor-styles-wrapper .wp-block-a8c-blog-posts .more-link:hover,
|
||||
#editor .editor-styles-wrapper .wp-block-pullquote,
|
||||
#editor .editor-styles-wrapper .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
|
||||
#editor .editor-styles-wrapper table.is-style-stripes tbody tr:nth-child(odd),
|
||||
#editor .editor-styles-wrapper a:hover,
|
||||
#editor .editor-styles-wrapper', 'color' ),
|
||||
|
||||
// Border-top-color
|
||||
array( '#editor .editor-styles-wrapper .wp-block-pullquote', 'border-top-color' ),
|
||||
|
||||
// Border-bottom-color
|
||||
array( '#editor .editor-styles-wrapper .comment-list,
|
||||
#editor .editor-styles-wrapper .wp-block-pullquote,
|
||||
#editor .editor-styles-wrapper hr,
|
||||
#editor .editor-styles-wrapper hr.wp-block-separator', 'border-bottom-color' ),
|
||||
|
||||
// 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,
|
||||
#editor .editor-styles-wrapper .wp-block-cover-image,
|
||||
#editor .editor-styles-wrapper .wp-block-cover-image.has-background-dim,
|
||||
#editor .editor-styles-wrapper .wp-block-cover,
|
||||
#editor .editor-styles-wrapper .wp-block-cover.has-background-dim', 'background-color' ),
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-background-background-color,
|
||||
#editor .editor-styles-wrapper .has-background-dark-background-color,
|
||||
#editor .editor-styles-wrapper .has-background-light-background-color,
|
||||
#editor .editor-styles-wrapper .has-foreground-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-background-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-background-color', 'background-color' ),
|
||||
|
||||
// Text-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-dark-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-dark-color', 'color', '-1' ),
|
||||
|
||||
// Background-color darkened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-dark-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-dark-background-color', 'background-color', '-1' ),
|
||||
|
||||
// Text-color brightened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-light-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-light-color', 'color', '+2' ),
|
||||
|
||||
// Background-color brightened
|
||||
array( '#editor .editor-styles-wrapper .has-foreground-light-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-foreground-light-background-color', 'background-color', '+2' ),
|
||||
|
||||
), __( 'Text Color' ) );
|
||||
|
||||
// Accent Color (Red)
|
||||
// $config-global--color-secondary-default
|
||||
add_editor_color_rule( 'fg1', '#FFFFFF', array(
|
||||
|
||||
/**
|
||||
* Utility Classes
|
||||
*/
|
||||
|
||||
// Text-color
|
||||
array( '#editor .editor-styles-wrapper .has-secondary-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-secondary-color', 'color' ),
|
||||
|
||||
// Background-color
|
||||
array( '#editor .editor-styles-wrapper .has-secondary-background-color,
|
||||
#editor .editor-styles-wrapper .wp-block .has-secondary-background-color', 'background-color' ),
|
||||
|
||||
), __( 'Secondary Color' ) );
|
21
brompton/inc/wpcom.php
Normal file
21
brompton/inc/wpcom.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
<?
|
||||
/**
|
||||
* Adds support for wp.com-specific theme functions.
|
||||
*
|
||||
* @global array $themecolors
|
||||
*/
|
||||
function brompton_wpcom_setup() {
|
||||
global $themecolors;
|
||||
|
||||
// Set theme colors for third party services.
|
||||
if ( ! isset( $themecolors ) ) {
|
||||
$themecolors = array(
|
||||
'bg' => 'E8E4DD', // $config-global--color-background-default
|
||||
'border' => 'B9B6B2', // $config-global--color-border-default
|
||||
'text' => '252E36', // $config-global--color-foreground-default
|
||||
'link' => 'C04239', // $config-global--color-primary-default
|
||||
'url' => 'C04239', // $config-global--color-primary-default
|
||||
);
|
||||
}
|
||||
}
|
||||
add_action( 'after_setup_theme', 'brompton_wpcom_setup' );
|
10
brompton/package-lock.json
generated
10
brompton/package-lock.json
generated
|
@ -546,7 +546,7 @@
|
|||
"requires": {
|
||||
"bluebird": "3.5.5",
|
||||
"chokidar": "3.0.2",
|
||||
"lodash": "4.17.15",
|
||||
"lodash": "^4.17.19",
|
||||
"yargs": "13.3.0"
|
||||
},
|
||||
"dependencies": {
|
||||
|
@ -1520,7 +1520,7 @@
|
|||
"dev": true,
|
||||
"requires": {
|
||||
"glob": "~7.1.1",
|
||||
"lodash": "~4.17.10",
|
||||
"lodash": "^4.17.19",
|
||||
"minimatch": "~3.0.2"
|
||||
}
|
||||
},
|
||||
|
@ -2414,7 +2414,7 @@
|
|||
"get-stdin": "^4.0.1",
|
||||
"glob": "^7.0.3",
|
||||
"in-publish": "^2.0.0",
|
||||
"lodash": "^4.17.15",
|
||||
"lodash": "^4.17.19",
|
||||
"meow": "^3.7.0",
|
||||
"mkdirp": "^0.5.1",
|
||||
"nan": "^2.13.2",
|
||||
|
@ -3733,7 +3733,7 @@
|
|||
"dev": true,
|
||||
"requires": {
|
||||
"chalk": "^2.4.1",
|
||||
"lodash": "^4.17.11",
|
||||
"lodash": "^4.17.19",
|
||||
"log-symbols": "^2.2.0",
|
||||
"postcss": "^7.0.7"
|
||||
},
|
||||
|
@ -4058,7 +4058,7 @@
|
|||
"dev": true,
|
||||
"requires": {
|
||||
"glob": "^7.0.0",
|
||||
"lodash": "^4.0.0",
|
||||
"lodash": "^4.17.19",
|
||||
"scss-tokenizer": "^0.2.3",
|
||||
"yargs": "^13.3.2"
|
||||
}
|
||||
|
|
|
@ -171,6 +171,10 @@
|
|||
padding-right: #{map-deep-get($config-header, "main-nav", "link-padding")};
|
||||
}
|
||||
|
||||
& > div > ul > li > .sub-menu {
|
||||
background: #{map-deep-get($config-global, "color", "foreground", "default")};
|
||||
}
|
||||
|
||||
& > div > ul > li:hover,
|
||||
& > div > ul > li.focus,
|
||||
& > div > ul > li.current-menu-item {
|
||||
|
@ -643,6 +647,11 @@ table,
|
|||
border-bottom: 1px solid map-deep-get($config-global, "color", "border", "light");
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
|
||||
li > ul {
|
||||
padding-left: inherit;
|
||||
}
|
||||
}
|
||||
|
||||
li {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
@ -4175,6 +4173,9 @@ body.admin-bar .widget_eu_cookie_law_widget.widget.top {
|
|||
.main-navigation > div > ul > li:last-of-type > a {
|
||||
padding-left: 16px;
|
||||
}
|
||||
.main-navigation > div > ul > li > .sub-menu {
|
||||
background: #252E36;
|
||||
}
|
||||
.main-navigation > div > ul > li:hover > ul,
|
||||
.main-navigation > div > ul > li.focus > ul,
|
||||
.main-navigation > div > ul > li.current-menu-item > ul {
|
||||
|
@ -4610,6 +4611,25 @@ table th,
|
|||
border-bottom: 1px solid #CFCDC7;
|
||||
list-style: none;
|
||||
margin-right: 0;
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.widget_archive ul li > ul,
|
||||
.widget_categories ul li > ul,
|
||||
.widget_links ul li > ul,
|
||||
.widget_meta ul li > ul,
|
||||
.widget_nav_menu ul li > ul,
|
||||
.widget_pages ul li > ul,
|
||||
.widget_recent_comments ul li > ul,
|
||||
.widget_recent_entries ul li > ul,
|
||||
.widget_rss ul li > ul,
|
||||
.widget_rss_links ul li > ul,
|
||||
.widget_top-posts ul li > ul,
|
||||
.widget_authors ul li > ul,
|
||||
.widget_jp_blogs_i_follow ul li > ul,
|
||||
.widget_top-click ul li > ul,
|
||||
.widget_upcoming_events_widget ul li > ul {
|
||||
padding-right: inherit;
|
||||
}
|
||||
|
||||
.widget_archive li,
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
@ -4204,6 +4202,9 @@ body.admin-bar .widget_eu_cookie_law_widget.widget.top {
|
|||
.main-navigation > div > ul > li:last-of-type > a {
|
||||
padding-right: 16px;
|
||||
}
|
||||
.main-navigation > div > ul > li > .sub-menu {
|
||||
background: #252E36;
|
||||
}
|
||||
.main-navigation > div > ul > li:hover > ul,
|
||||
.main-navigation > div > ul > li.focus > ul,
|
||||
.main-navigation > div > ul > li.current-menu-item > ul {
|
||||
|
@ -4639,6 +4640,25 @@ table th,
|
|||
border-bottom: 1px solid #CFCDC7;
|
||||
list-style: none;
|
||||
margin-left: 0;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.widget_archive ul li > ul,
|
||||
.widget_categories ul li > ul,
|
||||
.widget_links ul li > ul,
|
||||
.widget_meta ul li > ul,
|
||||
.widget_nav_menu ul li > ul,
|
||||
.widget_pages ul li > ul,
|
||||
.widget_recent_comments ul li > ul,
|
||||
.widget_recent_entries ul li > ul,
|
||||
.widget_rss ul li > ul,
|
||||
.widget_rss_links ul li > ul,
|
||||
.widget_top-posts ul li > ul,
|
||||
.widget_authors ul li > ul,
|
||||
.widget_jp_blogs_i_follow ul li > ul,
|
||||
.widget_top-click ul li > ul,
|
||||
.widget_upcoming_events_widget ul li > ul {
|
||||
padding-left: inherit;
|
||||
}
|
||||
|
||||
.widget_archive li,
|
||||
|
|
|
@ -3175,15 +3175,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3194,15 +3194,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -141,6 +141,7 @@ function hever_fonts_url() {
|
|||
$query_args = array(
|
||||
'family' => urlencode( implode( '|', $font_families ) ),
|
||||
'subset' => urlencode( 'latin,latin-ext' ),
|
||||
'display' => 'swap'
|
||||
);
|
||||
|
||||
$fonts_url = add_query_arg( $query_args, 'https://fonts.googleapis.com/css' );
|
||||
|
|
|
@ -5,7 +5,7 @@ Author: Automattic
|
|||
Author URI: https://automattic.com/
|
||||
Description: A fully responsive theme, ideal for creating a strong — yet beautiful — online presence for your business.
|
||||
Requires at least: WordPress 4.9.6
|
||||
Version: 1.4.1
|
||||
Version: 1.4.2
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: LICENSE
|
||||
Template: varia
|
||||
|
|
|
@ -6,7 +6,7 @@ Author: Automattic
|
|||
Author URI: https://automattic.com/
|
||||
Description: A fully responsive theme, ideal for creating a strong — yet beautiful — online presence for your business.
|
||||
Requires at least: WordPress 4.9.6
|
||||
Version: 1.4.1
|
||||
Version: 1.4.2
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: LICENSE
|
||||
Template: varia
|
||||
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -6,7 +6,7 @@ Author: Automattic
|
|||
Author URI: https://automattic.com/
|
||||
Description: A fully responsive theme, ideal for creating a strong — yet beautiful — online presence for your business.
|
||||
Requires at least: WordPress 4.9.6
|
||||
Version: 1.4.1
|
||||
Version: 1.4.2
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: LICENSE
|
||||
Template: varia
|
||||
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -226,6 +226,21 @@ p.has-drop-cap:not(:focus)::first-letter {
|
|||
display: flex;
|
||||
}
|
||||
|
||||
/* Blog Posts */
|
||||
|
||||
.wp-block-newspack-blocks-homepage-articles.is-grid .entry-meta {
|
||||
width: initial;
|
||||
}
|
||||
|
||||
.wp-block-newspack-blocks-homepage-articles.is-grid .entry-title,
|
||||
.wp-block-newspack-blocks-homepage-articles.is-grid .cat-links {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.wp-block-newspack-blocks-homepage-articles.is-grid .entry-meta:before {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
3.0 Blocks - Formatting Blocks
|
||||
--------------------------------------------------------------*/
|
||||
|
|
|
@ -558,6 +558,12 @@
|
|||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* Blog Posts */
|
||||
|
||||
.wp-block-a8c-blog-posts .entry-title {
|
||||
text-trasform: uppercase;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------
|
||||
4.0 Blocks - Formatting
|
||||
--------------------------------------------------------------*/
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3176,15 +3176,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3195,15 +3195,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -48,26 +48,6 @@ GNU General Public License for more details.
|
|||
--global--color-tertiary: var(--wp--preset--color--tertiary);
|
||||
}
|
||||
|
||||
/* Set up alignments */
|
||||
.wp-block-group .wp-block-group__inner-container > * {
|
||||
max-width: var(--responsive--aligndefault-width);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.wp-block-group .wp-block-group__inner-container > .alignwide {
|
||||
max-width: var(--responsive--alignwide-width);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.wp-block-group .wp-block-group__inner-container > .alignfull {
|
||||
max-width: calc(100% + (2 * var(--global--spacing-horizontal)));
|
||||
width: calc(100% + (2 * var(--global--spacing-horizontal)));
|
||||
margin-left: calc(-1 * var(--global--spacing-horizontal));
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* Make sure full-width items in entry content show up as full-width. */
|
||||
.wp-block-group.site-content .wp-block-group__inner-container .entry-content {
|
||||
max-width: calc(100% + (2 * var(--global--spacing-horizontal)));
|
||||
|
|
|
@ -155,36 +155,6 @@ hr.wp-block-separator.is-style-wide {
|
|||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
.page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 432px;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 432px;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 542px;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 100%;
|
||||
margin-left: auto;
|
||||
|
@ -215,33 +185,33 @@ hr.wp-block-separator.is-style-wide {
|
|||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator) {
|
||||
*[class*="inner-container"] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator) {
|
||||
*[class*="inner-container"] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 432px;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator) {
|
||||
*[class*="inner-container"] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 432px;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator) {
|
||||
*[class*="inner-container"] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 542px;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator) {
|
||||
*[class*="inner-container"] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator) {
|
||||
*[class*="inner-container"] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
|
@ -372,38 +342,38 @@ hr.wp-block-separator.is-style-wide {
|
|||
}
|
||||
}
|
||||
|
||||
.entry-content > .alignwide {
|
||||
.alignwide {
|
||||
max-width: 100%;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content > .alignwide {
|
||||
.alignwide {
|
||||
max-width: 432px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content > .alignwide {
|
||||
.alignwide {
|
||||
max-width: 542px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content > .alignwide {
|
||||
.alignwide {
|
||||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content > .alignwide {
|
||||
.alignwide {
|
||||
max-width: 772px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content > .alignwide {
|
||||
.alignwide {
|
||||
max-width: 772px;
|
||||
}
|
||||
}
|
||||
|
@ -422,7 +392,7 @@ hr.wp-block-separator.is-style-wide {
|
|||
margin-right: auto;
|
||||
}
|
||||
|
||||
.entry-content > .alignfull {
|
||||
.alignfull {
|
||||
max-width: calc(100% + 50px);
|
||||
width: calc(100% + 50px);
|
||||
margin-left: -25px;
|
||||
|
@ -443,7 +413,7 @@ hr.wp-block-separator.is-style-wide {
|
|||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
.entry-content > .alignfull {
|
||||
.alignfull {
|
||||
max-width: 100%;
|
||||
width: auto;
|
||||
margin-left: auto;
|
||||
|
@ -457,7 +427,7 @@ hr.wp-block-separator.is-style-wide {
|
|||
}
|
||||
}
|
||||
|
||||
.entry-content > .alignwide [class*="inner-container"] > .alignwide {
|
||||
.alignwide [class*="inner-container"] > .alignwide {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 100%;
|
||||
|
@ -465,36 +435,36 @@ hr.wp-block-separator.is-style-wide {
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content > .alignwide [class*="inner-container"] > .alignwide {
|
||||
.alignwide [class*="inner-container"] > .alignwide {
|
||||
width: 432px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content > .alignwide [class*="inner-container"] > .alignwide {
|
||||
.alignwide [class*="inner-container"] > .alignwide {
|
||||
width: 542px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content > .alignwide [class*="inner-container"] > .alignwide {
|
||||
.alignwide [class*="inner-container"] > .alignwide {
|
||||
width: 602px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content > .alignwide [class*="inner-container"] > .alignwide {
|
||||
.alignwide [class*="inner-container"] > .alignwide {
|
||||
width: 772px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content > .alignwide [class*="inner-container"] > .alignwide {
|
||||
.alignwide [class*="inner-container"] > .alignwide {
|
||||
width: 772px;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-content > .alignfull [class*="inner-container"] > .alignwide {
|
||||
.alignfull [class*="inner-container"] > .alignwide {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 100%;
|
||||
|
@ -502,31 +472,31 @@ hr.wp-block-separator.is-style-wide {
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content > .alignfull [class*="inner-container"] > .alignwide {
|
||||
.alignfull [class*="inner-container"] > .alignwide {
|
||||
width: 432px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content > .alignfull [class*="inner-container"] > .alignwide {
|
||||
.alignfull [class*="inner-container"] > .alignwide {
|
||||
width: 542px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content > .alignfull [class*="inner-container"] > .alignwide {
|
||||
.alignfull [class*="inner-container"] > .alignwide {
|
||||
width: 602px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content > .alignfull [class*="inner-container"] > .alignwide {
|
||||
.alignfull [class*="inner-container"] > .alignwide {
|
||||
width: 772px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content > .alignfull [class*="inner-container"] > .alignwide {
|
||||
.alignfull [class*="inner-container"] > .alignwide {
|
||||
width: 772px;
|
||||
}
|
||||
}
|
||||
|
@ -539,174 +509,6 @@ hr.wp-block-separator.is-style-wide {
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
/*rtl:ignore*/
|
||||
margin-left: calc(50vw - 216px);
|
||||
/*rtl:ignore*/
|
||||
margin-right: 25px;
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-file.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
/*rtl:ignore*/
|
||||
margin-left: calc(50vw - 216px);
|
||||
/*rtl:ignore*/
|
||||
margin-right: 25px;
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-pullquote.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
/*rtl:ignore*/
|
||||
margin-left: calc(50vw - 216px);
|
||||
/*rtl:ignore*/
|
||||
margin-right: 25px;
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-video.alignleft {
|
||||
margin-left: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
.entry-content > .alignleft {
|
||||
/*rtl:ignore*/
|
||||
margin-left: calc(50vw - 216px);
|
||||
|
@ -773,174 +575,6 @@ hr.wp-block-separator.is-style-wide {
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
/*rtl:ignore*/
|
||||
margin-left: 25px;
|
||||
/*rtl:ignore*/
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-file.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
/*rtl:ignore*/
|
||||
margin-left: 25px;
|
||||
/*rtl:ignore*/
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-pullquote.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
.entry-content .wp-block-video.alignright {
|
||||
/*rtl:ignore*/
|
||||
margin-left: 25px;
|
||||
/*rtl:ignore*/
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 216px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 271px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content .wp-block-video.alignright {
|
||||
margin-right: calc(50vw - 301px);
|
||||
}
|
||||
}
|
||||
.entry-content > .alignright {
|
||||
/*rtl:ignore*/
|
||||
margin-left: 25px;
|
||||
|
@ -1886,10 +1520,6 @@ a:focus {
|
|||
}
|
||||
|
||||
a:active {
|
||||
color: undefined;
|
||||
}
|
||||
|
||||
p.has-background.has-link-color:not(.has-background-background-color) a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
|
@ -1897,6 +1527,14 @@ p.has-background.has-link-color:not(.has-background-background-color) a {
|
|||
border-bottom: 1px solid #000000;
|
||||
}
|
||||
|
||||
.has-background:not(.has-background-background-color) .has-link-color a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.has-background:not(.has-background-background-color).has-link-color a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
*:focus {
|
||||
outline-width: 1px;
|
||||
outline-style: dotted;
|
||||
|
@ -2562,6 +2200,30 @@ object {
|
|||
color: currentColor;
|
||||
}
|
||||
|
||||
.wp-block-cover .wp-block-cover__inner-container .has-link-color a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.wp-block-cover .wp-block-cover-image-text .has-link-color a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.wp-block-cover .wp-block-cover-text .has-link-color a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.wp-block-cover-image .wp-block-cover__inner-container .has-link-color a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.wp-block-cover-image .wp-block-cover-image-text .has-link-color a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.wp-block-cover-image .wp-block-cover-text .has-link-color a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.wp-block-cover:not([class*='background-color']) .wp-block-cover__inner-container {
|
||||
color: #FAFBF6;
|
||||
}
|
||||
|
@ -2728,7 +2390,7 @@ object {
|
|||
}
|
||||
|
||||
.wp-block-gallery {
|
||||
margin: 0;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.wp-block-gallery .blocks-gallery-image figcaption {
|
||||
|
@ -3275,10 +2937,6 @@ dd {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wp-block-media-text[class*="background-color"]:not(.has-background-background-color) .wp-block-media-text__content a, .wp-block-media-text[style*="background-color"] .wp-block-media-text__content a {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
|
||||
padding-top: 30px;
|
||||
|
@ -3363,6 +3021,10 @@ p.has-background {
|
|||
padding: 20px;
|
||||
}
|
||||
|
||||
p.has-text-color a {
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.a8c-posts-list__listing {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
|
@ -3439,8 +3101,6 @@ p.has-background {
|
|||
|
||||
.wp-block-pullquote {
|
||||
padding: 40px 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
text-align: left;
|
||||
border-top-color: transparent;
|
||||
border-top-width: 0;
|
||||
|
@ -3921,6 +3581,9 @@ table th {
|
|||
}
|
||||
|
||||
/* Block Alignments */
|
||||
/**
|
||||
* These selectors set the default max width for content appearing inside a post or page.
|
||||
*/
|
||||
/**
|
||||
* .alignleft
|
||||
*/
|
||||
|
@ -3935,6 +3598,40 @@ table th {
|
|||
margin-bottom: 30px;
|
||||
}
|
||||
|
||||
.entry-content > .alignleft {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content > .alignleft {
|
||||
max-width: 432px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content > .alignleft {
|
||||
max-width: 432px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content > .alignleft {
|
||||
max-width: 542px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content > .alignleft {
|
||||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content > .alignleft {
|
||||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* .aligncenter
|
||||
*/
|
||||
|
@ -3959,14 +3656,45 @@ table th {
|
|||
margin-left: 25px;
|
||||
}
|
||||
|
||||
.entry-content * > .alignleft + *,
|
||||
.entry-content * > .alignright + * {
|
||||
.entry-content > .alignright {
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content > .alignright {
|
||||
max-width: 432px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 592px) {
|
||||
.entry-content > .alignright {
|
||||
max-width: 432px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 652px) {
|
||||
.entry-content > .alignright {
|
||||
max-width: 542px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 822px) {
|
||||
.entry-content > .alignright {
|
||||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 1024px) {
|
||||
.entry-content > .alignright {
|
||||
max-width: 602px;
|
||||
}
|
||||
}
|
||||
|
||||
[class*="inner-container"] > .alignleft + *,
|
||||
[class*="inner-container"] > .alignright + * {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* .aligndefault
|
||||
*/
|
||||
/**
|
||||
* .alignwide
|
||||
*/
|
||||
|
|
|
@ -301,28 +301,29 @@ body {
|
|||
font-size: var(--global--font-size-root);
|
||||
}
|
||||
|
||||
a {
|
||||
.wp-block a {
|
||||
border-bottom: 1px solid var(--global--color-secondary);
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover, a:focus {
|
||||
.wp-block a:hover, .wp-block a:focus {
|
||||
color: var(--global--color-primary-hover);
|
||||
}
|
||||
|
||||
a:active {
|
||||
.wp-block a:active {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
p.has-background.has-link-color:not(.has-background-background-color) a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
.has-link-color a {
|
||||
.has-link-color .wp-block a {
|
||||
border-bottom: 1px solid var(--wp--style--color--link);
|
||||
}
|
||||
|
||||
.has-background:not(.has-background-background-color) .has-link-color a,
|
||||
.has-background:not(.has-background-background-color).has-link-color a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
button,
|
||||
a {
|
||||
cursor: pointer;
|
||||
|
@ -482,6 +483,17 @@ div[data-type="core/button"] {
|
|||
color: currentColor;
|
||||
}
|
||||
|
||||
.wp-block-cover .wp-block-cover__inner-container .has-link-color a,
|
||||
.wp-block-cover .wp-block-cover-image-text .has-link-color a,
|
||||
.wp-block-cover .wp-block-cover-text .has-link-color a,
|
||||
.wp-block-cover .block-editor-block-list__block .has-link-color a,
|
||||
.wp-block-cover-image .wp-block-cover__inner-container .has-link-color a,
|
||||
.wp-block-cover-image .wp-block-cover-image-text .has-link-color a,
|
||||
.wp-block-cover-image .wp-block-cover-text .has-link-color a,
|
||||
.wp-block-cover-image .block-editor-block-list__block .has-link-color a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
.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,
|
||||
|
@ -772,10 +784,6 @@ dt {
|
|||
padding-left: var(--global--spacing-horizontal);
|
||||
}
|
||||
|
||||
.wp-block-media-text[style*="background-color"]:not(.has-background-background-color) a {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
.wp-block-navigation .wp-block-navigation__container {
|
||||
background: var(--global--color-background);
|
||||
padding: 0;
|
||||
|
@ -811,10 +819,6 @@ p.has-background {
|
|||
padding: var(--global--spacing-unit);
|
||||
}
|
||||
|
||||
p.has-background:not(.has-background-background-color) a {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
.a8c-posts-list {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ body {
|
|||
}
|
||||
|
||||
// Links styles
|
||||
a {
|
||||
.wp-block a {
|
||||
border-bottom: 1px solid var(--global--color-secondary);
|
||||
color: var( --wp--style--color--link, var(--global--color-primary) );
|
||||
text-decoration: none;
|
||||
|
@ -31,18 +31,21 @@ a {
|
|||
color: var( --wp--style--color--link, var(--global--color-primary) );
|
||||
}
|
||||
|
||||
// Enforce the custom link color even if a custom background color has been set.
|
||||
// The extra specificity here is required to override the background color styles.
|
||||
p.has-background.has-link-color:not(.has-background-background-color) & {
|
||||
color: var( --wp--style--color--link, var(--global--color-primary) );
|
||||
}
|
||||
|
||||
// If a custom link color has been assigned,
|
||||
// switch the color of the bottom border too.
|
||||
.has-link-color & {
|
||||
border-bottom: 1px solid var(--wp--style--color--link);
|
||||
}
|
||||
}
|
||||
// Enforce the custom link color even if a custom background color has been set.
|
||||
// The extra specificity here is required to override the background color styles.
|
||||
.has-background:not(.has-background-background-color) {
|
||||
// Target both current level and nested block.
|
||||
.has-link-color a,
|
||||
&.has-link-color a {
|
||||
color: var( --wp--style--color--link, var(--global--color-primary) );
|
||||
}
|
||||
}
|
||||
|
||||
button,
|
||||
a {
|
||||
|
|
|
@ -90,12 +90,6 @@ a {
|
|||
}
|
||||
|
||||
&:active {
|
||||
color: var(--wp--style--color--link);
|
||||
}
|
||||
|
||||
// Enforce the custom link color even if a custom background color has been set.
|
||||
// The extra specificity here is required to override the background color styles.
|
||||
p.has-background.has-link-color:not(.has-background-background-color) & {
|
||||
color: var( --wp--style--color--link, var(--global--color-primary) );
|
||||
}
|
||||
|
||||
|
@ -105,6 +99,15 @@ a {
|
|||
border-bottom: 1px solid var( --wp--style--color--link, var(--global--color-primary) );
|
||||
}
|
||||
}
|
||||
// Enforce the custom link color even if a custom background color has been set.
|
||||
// The extra specificity here is required to override the background color styles.
|
||||
.has-background:not(.has-background-background-color) {
|
||||
// Target both current level and nested block.
|
||||
.has-link-color a,
|
||||
&.has-link-color a {
|
||||
color: var( --wp--style--color--link, var(--global--color-primary) );
|
||||
}
|
||||
}
|
||||
|
||||
// Focus styles
|
||||
*:focus {
|
||||
|
|
|
@ -15,6 +15,9 @@
|
|||
a {
|
||||
color: currentColor;
|
||||
}
|
||||
.has-link-color a {
|
||||
color: var( --wp--style--color--link, var(--global--color-primary) );
|
||||
}
|
||||
}
|
||||
|
||||
// Default & custom background-color
|
||||
|
|
|
@ -16,6 +16,9 @@
|
|||
a {
|
||||
color: currentColor;
|
||||
}
|
||||
.has-link-color a {
|
||||
color: var( --wp--style--color--link, var(--global--color-primary) );
|
||||
}
|
||||
}
|
||||
|
||||
/* default & custom background-color */
|
||||
|
|
|
@ -15,12 +15,4 @@
|
|||
display: inline-block;
|
||||
padding: calc(0.5 * var(--button--padding-vertical)) calc(0.5 * var(--button--padding-horizontal));
|
||||
}
|
||||
|
||||
.entry-content &.alignleft {
|
||||
@extend %responsive-alignleft;
|
||||
}
|
||||
|
||||
.entry-content &.alignright {
|
||||
@extend %responsive-alignright;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
.wp-block-gallery {
|
||||
|
||||
margin: 0;
|
||||
margin: 0 auto;
|
||||
|
||||
.blocks-gallery-image,
|
||||
.blocks-gallery-item {
|
||||
|
|
|
@ -3,10 +3,4 @@
|
|||
padding-right: var(--global--spacing-horizontal);
|
||||
padding-left: var(--global--spacing-horizontal);
|
||||
}
|
||||
|
||||
&[style*="background-color"]:not(.has-background-background-color) {
|
||||
a {
|
||||
color: currentColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -26,15 +26,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
&[class*="background-color"]:not(.has-background-background-color),
|
||||
&[style*="background-color"] {
|
||||
.wp-block-media-text__content {
|
||||
a {
|
||||
color: currentColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Block Options
|
||||
*/
|
||||
|
|
|
@ -3,9 +3,5 @@ p {
|
|||
|
||||
&.has-background {
|
||||
padding: var(--global--spacing-unit);
|
||||
|
||||
&:not(.has-background-background-color) a {
|
||||
color: currentColor;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,4 +6,9 @@ p {
|
|||
&.has-background {
|
||||
padding: var(--global--spacing-unit);
|
||||
}
|
||||
|
||||
// Override `color: inherit` from Core styles.
|
||||
&.has-text-color a {
|
||||
color: var( --wp--style--color--link, var(--global--color-primary) );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
.wp-block-pullquote {
|
||||
padding: calc( 2 * var(--global--spacing-unit) ) 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
text-align: left;
|
||||
// Theme?
|
||||
border-top-color: var(--pullquote--border-color);
|
||||
|
@ -72,12 +70,4 @@
|
|||
color: currentColor;
|
||||
}
|
||||
}
|
||||
|
||||
.entry-content &.alignleft {
|
||||
@extend %responsive-alignleft;
|
||||
}
|
||||
|
||||
.entry-content &.alignright {
|
||||
@extend %responsive-alignright;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,13 @@
|
|||
/* Block Alignments */
|
||||
|
||||
/**
|
||||
* These selectors set the default max width for content appearing inside a post or page.
|
||||
*/
|
||||
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce),
|
||||
*[class*="inner-container"] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce) {
|
||||
@extend %responsive-aligndefault-width;
|
||||
}
|
||||
|
||||
/**
|
||||
* .alignleft
|
||||
*/
|
||||
|
@ -14,7 +22,10 @@
|
|||
margin-bottom: var(--global--spacing-vertical);
|
||||
}
|
||||
|
||||
// Targeting the .entry-content class is necessary to ensure these styles
|
||||
// only apply when the block isn't nested.
|
||||
.entry-content > .alignleft {
|
||||
max-width: var(--responsive--aligndefault-width);
|
||||
@extend %responsive-alignleft-mobile;
|
||||
@extend %responsive-alignleft;
|
||||
}
|
||||
|
@ -43,38 +54,29 @@
|
|||
margin-left: var(--global--spacing-horizontal);
|
||||
}
|
||||
|
||||
// Targeting the .entry-content class is necessary to ensure these styles
|
||||
// only apply when the block isn't nested.
|
||||
.entry-content > .alignright {
|
||||
max-width: var(--responsive--aligndefault-width);
|
||||
@extend %responsive-alignright-mobile;
|
||||
@extend %responsive-alignright;
|
||||
}
|
||||
|
||||
// Make sure siblings of floated elements are top-aligned when nested
|
||||
.entry-content * > .alignleft + *,
|
||||
.entry-content * > .alignright + * {
|
||||
[class*="inner-container"] > .alignleft + *,
|
||||
[class*="inner-container"] > .alignright + * {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* .aligndefault
|
||||
*/
|
||||
.page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce),
|
||||
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce),
|
||||
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator) {
|
||||
@extend %responsive-aligndefault-width;
|
||||
}
|
||||
|
||||
/**
|
||||
* .alignwide
|
||||
*/
|
||||
.alignwide {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.entry-content > .alignwide {
|
||||
@extend %responsive-alignwide-width;
|
||||
}
|
||||
|
||||
.entry-content > .alignwide [class*="inner-container"] > .alignwide {
|
||||
.alignwide [class*="inner-container"] > .alignwide {
|
||||
@extend %responsive-alignwide-width-nested;
|
||||
}
|
||||
|
||||
|
@ -83,14 +85,11 @@
|
|||
*/
|
||||
.alignfull {
|
||||
clear: both;
|
||||
}
|
||||
|
||||
.entry-content > .alignfull {
|
||||
@extend %responsive-alignfull-width-mobile;
|
||||
@extend %responsive-alignfull-width;
|
||||
}
|
||||
|
||||
.entry-content > .alignfull [class*="inner-container"] > .alignwide {
|
||||
.alignfull [class*="inner-container"] > .alignwide {
|
||||
@extend %responsive-alignwide-width-nested;
|
||||
}
|
||||
|
||||
|
|
|
@ -7,14 +7,6 @@
|
|||
margin-bottom: var(--global--spacing-unit);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.entry-content &.alignleft {
|
||||
@extend %responsive-alignleft;
|
||||
}
|
||||
|
||||
.entry-content &.alignright {
|
||||
@extend %responsive-alignright;
|
||||
}
|
||||
}
|
||||
|
||||
* > figure > video {
|
||||
|
|
|
@ -259,6 +259,9 @@ if ( ! function_exists( 'seedlet_setup' ) ) :
|
|||
// Add support for responsive embedded content.
|
||||
add_theme_support( 'responsive-embeds' );
|
||||
|
||||
// Add support for custom line height controls.
|
||||
add_theme_support( 'custom-line-height' );
|
||||
|
||||
// Add support for experimental link color control.
|
||||
add_theme_support( 'experimental-link-color' );
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 197 KiB After Width: | Height: | Size: 78 KiB |
|
@ -355,21 +355,20 @@ Included in theme screenshot.
|
|||
/**
|
||||
* Extends
|
||||
*/
|
||||
.default-max-width, hr.wp-block-separator.is-style-wide, .page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce),
|
||||
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce),
|
||||
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .entry-content .wp-audio-shortcode, .post-thumbnail, .navigation {
|
||||
.default-max-width, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce),
|
||||
*[class*="inner-container"] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce), .entry-content .wp-audio-shortcode, .post-thumbnail, .navigation {
|
||||
max-width: var(--responsive--aligndefault-width);
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.wide-max-width, .entry-content > .alignwide {
|
||||
.wide-max-width, .alignwide {
|
||||
max-width: var(--responsive--alignwide-width);
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.full-max-width, .wp-block-group .wp-block-group__inner-container > *.alignfull, .entry-content > .alignfull, .singular .post-thumbnail {
|
||||
.full-max-width, .wp-block-group .wp-block-group__inner-container > *.alignfull, .alignfull, .singular .post-thumbnail {
|
||||
max-width: calc(100% + (2 * var(--global--spacing-horizontal)));
|
||||
width: calc(100% + (2 * var(--global--spacing-horizontal)));
|
||||
margin-right: calc(-1 * var(--global--spacing-horizontal));
|
||||
|
@ -377,7 +376,7 @@ Included in theme screenshot.
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.full-max-width, .entry-content > .alignfull, .singular .post-thumbnail {
|
||||
.full-max-width, .alignfull, .singular .post-thumbnail {
|
||||
max-width: var(--responsive--alignfull-width);
|
||||
width: auto;
|
||||
margin-right: auto;
|
||||
|
@ -385,7 +384,7 @@ Included in theme screenshot.
|
|||
}
|
||||
}
|
||||
|
||||
.entry-content > .alignwide [class*="inner-container"] > .alignwide, .entry-content > .alignfull [class*="inner-container"] > .alignwide {
|
||||
.alignwide [class*="inner-container"] > .alignwide, .alignfull [class*="inner-container"] > .alignwide {
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
width: var(--responsive--alignwide-width);
|
||||
|
@ -398,7 +397,7 @@ Included in theme screenshot.
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignleft, .entry-content .wp-block-pullquote.alignleft, .entry-content .wp-block-video.alignleft, .entry-content > .alignleft {
|
||||
.entry-content > .alignleft {
|
||||
margin-left: var(--responsive--alignleft-margin);
|
||||
margin-right: var(--global--spacing-horizontal);
|
||||
}
|
||||
|
@ -410,7 +409,7 @@ Included in theme screenshot.
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignright, .entry-content .wp-block-pullquote.alignright, .entry-content .wp-block-video.alignright, .entry-content > .alignright {
|
||||
.entry-content > .alignright {
|
||||
margin-left: var(--global--spacing-horizontal);
|
||||
margin-right: var(--responsive--alignright-margin);
|
||||
}
|
||||
|
@ -984,10 +983,6 @@ a:hover, a:focus {
|
|||
}
|
||||
|
||||
a:active {
|
||||
color: var(--wp--style--color--link);
|
||||
}
|
||||
|
||||
p.has-link-color.has-background a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
|
@ -995,6 +990,11 @@ p.has-link-color.has-background a {
|
|||
border-bottom: 1px solid var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
.has-background:not(.has-background-background-color) .has-link-color a,
|
||||
.has-background:not(.has-background-background-color).has-link-color a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
*:focus {
|
||||
outline-width: 1px;
|
||||
outline-style: dotted;
|
||||
|
@ -1392,6 +1392,15 @@ object {
|
|||
color: currentColor;
|
||||
}
|
||||
|
||||
.wp-block-cover .wp-block-cover__inner-container .has-link-color a,
|
||||
.wp-block-cover .wp-block-cover-image-text .has-link-color a,
|
||||
.wp-block-cover .wp-block-cover-text .has-link-color a,
|
||||
.wp-block-cover-image .wp-block-cover__inner-container .has-link-color a,
|
||||
.wp-block-cover-image .wp-block-cover-image-text .has-link-color a,
|
||||
.wp-block-cover-image .wp-block-cover-text .has-link-color a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
.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,
|
||||
|
@ -1491,7 +1500,7 @@ object {
|
|||
}
|
||||
|
||||
.wp-block-gallery {
|
||||
margin: 0;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.wp-block-gallery .blocks-gallery-image figcaption,
|
||||
|
@ -1884,10 +1893,6 @@ dd {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wp-block-media-text[class*="background-color"]:not(.has-background-background-color) .wp-block-media-text__content a, .wp-block-media-text[style*="background-color"] .wp-block-media-text__content a {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
|
||||
padding-top: var(--global--spacing-vertical);
|
||||
|
@ -1968,6 +1973,10 @@ p.has-background {
|
|||
padding: var(--global--spacing-unit);
|
||||
}
|
||||
|
||||
p.has-text-color a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
.a8c-posts-list__listing {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
|
@ -2040,8 +2049,6 @@ p.has-background {
|
|||
|
||||
.wp-block-pullquote {
|
||||
padding: calc( 2 * var(--global--spacing-unit)) 0;
|
||||
margin-right: 0;
|
||||
margin-left: 0;
|
||||
text-align: right;
|
||||
border-top-color: var(--pullquote--border-color);
|
||||
border-top-width: var(--pullquote--border-width);
|
||||
|
@ -2345,6 +2352,9 @@ table th,
|
|||
}
|
||||
|
||||
/* Block Alignments */
|
||||
/**
|
||||
* These selectors set the default max width for content appearing inside a post or page.
|
||||
*/
|
||||
/**
|
||||
* .alignleft
|
||||
*/
|
||||
|
@ -2356,6 +2366,10 @@ table th,
|
|||
margin-bottom: var(--global--spacing-vertical);
|
||||
}
|
||||
|
||||
.entry-content > .alignleft {
|
||||
max-width: var(--responsive--aligndefault-width);
|
||||
}
|
||||
|
||||
/**
|
||||
* .aligncenter
|
||||
*/
|
||||
|
@ -2378,14 +2392,15 @@ table th,
|
|||
margin-left: var(--global--spacing-horizontal);
|
||||
}
|
||||
|
||||
.entry-content * > .alignleft + *,
|
||||
.entry-content * > .alignright + * {
|
||||
.entry-content > .alignright {
|
||||
max-width: var(--responsive--aligndefault-width);
|
||||
}
|
||||
|
||||
[class*="inner-container"] > .alignleft + *,
|
||||
[class*="inner-container"] > .alignright + * {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* .aligndefault
|
||||
*/
|
||||
/**
|
||||
* .alignwide
|
||||
*/
|
||||
|
|
|
@ -355,21 +355,20 @@ Included in theme screenshot.
|
|||
/**
|
||||
* Extends
|
||||
*/
|
||||
.default-max-width, hr.wp-block-separator.is-style-wide, .page-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce),
|
||||
.entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce),
|
||||
.entry-content [class*="inner-container"] > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator), .entry-content .wp-audio-shortcode, .post-thumbnail, .navigation {
|
||||
.default-max-width, hr.wp-block-separator.is-style-wide, .entry-content > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce),
|
||||
*[class*="inner-container"] > *:not(.entry-content):not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright):not(.wp-block-separator):not(.entry-attachment):not(.woocommerce), .entry-content .wp-audio-shortcode, .post-thumbnail, .navigation {
|
||||
max-width: var(--responsive--aligndefault-width);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.wide-max-width, .entry-content > .alignwide {
|
||||
.wide-max-width, .alignwide {
|
||||
max-width: var(--responsive--alignwide-width);
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
.full-max-width, .wp-block-group .wp-block-group__inner-container > *.alignfull, .entry-content > .alignfull, .singular .post-thumbnail {
|
||||
.full-max-width, .wp-block-group .wp-block-group__inner-container > *.alignfull, .alignfull, .singular .post-thumbnail {
|
||||
max-width: calc(100% + (2 * var(--global--spacing-horizontal)));
|
||||
width: calc(100% + (2 * var(--global--spacing-horizontal)));
|
||||
margin-left: calc(-1 * var(--global--spacing-horizontal));
|
||||
|
@ -377,7 +376,7 @@ Included in theme screenshot.
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.full-max-width, .entry-content > .alignfull, .singular .post-thumbnail {
|
||||
.full-max-width, .alignfull, .singular .post-thumbnail {
|
||||
max-width: var(--responsive--alignfull-width);
|
||||
width: auto;
|
||||
margin-left: auto;
|
||||
|
@ -385,7 +384,7 @@ Included in theme screenshot.
|
|||
}
|
||||
}
|
||||
|
||||
.entry-content > .alignwide [class*="inner-container"] > .alignwide, .entry-content > .alignfull [class*="inner-container"] > .alignwide {
|
||||
.alignwide [class*="inner-container"] > .alignwide, .alignfull [class*="inner-container"] > .alignwide {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: var(--responsive--alignwide-width);
|
||||
|
@ -400,7 +399,7 @@ Included in theme screenshot.
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignleft, .entry-content .wp-block-pullquote.alignleft, .entry-content .wp-block-video.alignleft, .entry-content > .alignleft {
|
||||
.entry-content > .alignleft {
|
||||
/*rtl:ignore*/
|
||||
margin-left: var(--responsive--alignleft-margin);
|
||||
/*rtl:ignore*/
|
||||
|
@ -416,7 +415,7 @@ Included in theme screenshot.
|
|||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.entry-content .wp-block-file.alignright, .entry-content .wp-block-pullquote.alignright, .entry-content .wp-block-video.alignright, .entry-content > .alignright {
|
||||
.entry-content > .alignright {
|
||||
/*rtl:ignore*/
|
||||
margin-left: var(--global--spacing-horizontal);
|
||||
/*rtl:ignore*/
|
||||
|
@ -992,10 +991,6 @@ a:hover, a:focus {
|
|||
}
|
||||
|
||||
a:active {
|
||||
color: var(--wp--style--color--link);
|
||||
}
|
||||
|
||||
p.has-background.has-link-color:not(.has-background-background-color) a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
|
@ -1003,6 +998,11 @@ p.has-background.has-link-color:not(.has-background-background-color) a {
|
|||
border-bottom: 1px solid var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
.has-background:not(.has-background-background-color) .has-link-color a,
|
||||
.has-background:not(.has-background-background-color).has-link-color a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
*:focus {
|
||||
outline-width: 1px;
|
||||
outline-style: dotted;
|
||||
|
@ -1400,6 +1400,15 @@ object {
|
|||
color: currentColor;
|
||||
}
|
||||
|
||||
.wp-block-cover .wp-block-cover__inner-container .has-link-color a,
|
||||
.wp-block-cover .wp-block-cover-image-text .has-link-color a,
|
||||
.wp-block-cover .wp-block-cover-text .has-link-color a,
|
||||
.wp-block-cover-image .wp-block-cover__inner-container .has-link-color a,
|
||||
.wp-block-cover-image .wp-block-cover-image-text .has-link-color a,
|
||||
.wp-block-cover-image .wp-block-cover-text .has-link-color a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
.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,
|
||||
|
@ -1499,7 +1508,7 @@ object {
|
|||
}
|
||||
|
||||
.wp-block-gallery {
|
||||
margin: 0;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.wp-block-gallery .blocks-gallery-image figcaption,
|
||||
|
@ -1892,10 +1901,6 @@ dd {
|
|||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.wp-block-media-text[class*="background-color"]:not(.has-background-background-color) .wp-block-media-text__content a, .wp-block-media-text[style*="background-color"] .wp-block-media-text__content a {
|
||||
color: currentColor;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 482px) {
|
||||
.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
|
||||
padding-top: var(--global--spacing-vertical);
|
||||
|
@ -1976,6 +1981,10 @@ p.has-background {
|
|||
padding: var(--global--spacing-unit);
|
||||
}
|
||||
|
||||
p.has-text-color a {
|
||||
color: var(--wp--style--color--link, var(--global--color-primary));
|
||||
}
|
||||
|
||||
.a8c-posts-list__listing {
|
||||
list-style: none;
|
||||
margin: 0;
|
||||
|
@ -2048,8 +2057,6 @@ p.has-background {
|
|||
|
||||
.wp-block-pullquote {
|
||||
padding: calc( 2 * var(--global--spacing-unit)) 0;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
text-align: left;
|
||||
border-top-color: var(--pullquote--border-color);
|
||||
border-top-width: var(--pullquote--border-width);
|
||||
|
@ -2353,6 +2360,9 @@ table th,
|
|||
}
|
||||
|
||||
/* Block Alignments */
|
||||
/**
|
||||
* These selectors set the default max width for content appearing inside a post or page.
|
||||
*/
|
||||
/**
|
||||
* .alignleft
|
||||
*/
|
||||
|
@ -2367,6 +2377,10 @@ table th,
|
|||
margin-bottom: var(--global--spacing-vertical);
|
||||
}
|
||||
|
||||
.entry-content > .alignleft {
|
||||
max-width: var(--responsive--aligndefault-width);
|
||||
}
|
||||
|
||||
/**
|
||||
* .aligncenter
|
||||
*/
|
||||
|
@ -2391,14 +2405,15 @@ table th,
|
|||
margin-left: var(--global--spacing-horizontal);
|
||||
}
|
||||
|
||||
.entry-content * > .alignleft + *,
|
||||
.entry-content * > .alignright + * {
|
||||
.entry-content > .alignright {
|
||||
max-width: var(--responsive--aligndefault-width);
|
||||
}
|
||||
|
||||
[class*="inner-container"] > .alignleft + *,
|
||||
[class*="inner-container"] > .alignright + * {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* .aligndefault
|
||||
*/
|
||||
/**
|
||||
* .alignwide
|
||||
*/
|
||||
|
|
|
@ -3176,15 +3176,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3195,15 +3195,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3177,15 +3177,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3196,15 +3196,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
1
theme-dev-utils
Symbolic link
1
theme-dev-utils
Symbolic link
|
@ -0,0 +1 @@
|
|||
/Users/allancole/GitHub/Automattic/theme-dev-utils
|
1
twentytwenty
Symbolic link
1
twentytwenty
Symbolic link
|
@ -0,0 +1 @@
|
|||
/Users/allancole/GitHub/WordPress/twentytwenty
|
|
@ -38,14 +38,13 @@
|
|||
}
|
||||
|
||||
// Overwrite iframe embeds that have inline styles.
|
||||
> iframe[style] {
|
||||
|
||||
margin: #{map-deep-get($config-global, "spacing", "vertical")} 0 !important;
|
||||
max-width: 100% !important;
|
||||
|
||||
@include media(mobile) {
|
||||
max-width: #{map-deep-get($config-global, "spacing", "vertical")} !important;
|
||||
}
|
||||
> iframe,
|
||||
> iframe[style],
|
||||
> fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
// Page links
|
||||
|
|
|
@ -3210,15 +3210,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-right: auto !important;
|
||||
margin-left: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
|
@ -3229,15 +3229,13 @@ body:not(.fse-enabled) .footer-menu a {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.entry-content > iframe[style] {
|
||||
margin: 32px 0 !important;
|
||||
max-width: 100% !important;
|
||||
}
|
||||
|
||||
@media only screen and (min-width: 560px) {
|
||||
.entry-content > iframe[style] {
|
||||
max-width: 32px !important;
|
||||
}
|
||||
.entry-content > iframe,
|
||||
.entry-content > iframe[style],
|
||||
.entry-content > fb\:post {
|
||||
display: block !important;
|
||||
margin-left: auto !important;
|
||||
margin-right: auto !important;
|
||||
overflow: scroll;
|
||||
}
|
||||
|
||||
.entry-attachment {
|
||||
|
|
Loading…
Reference in a new issue