|
@@ -1,246 +0,0 @@
|
|
|
-<?php
|
|
|
-/* Custom Colors: Dalston */
|
|
|
-
|
|
|
-// Background Color
|
|
|
-// $config-global--color-background-default
|
|
|
-add_color_rule( 'bg', '#FFFFFF', array(
|
|
|
-
|
|
|
- // Background-color
|
|
|
- array( '.screen-reader-text:focus,
|
|
|
- body,
|
|
|
- body .widget_eu_cookie_law_widget #eu-cookie-law,
|
|
|
- body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
|
|
|
- .main-navigation > div > ul > li > .sub-menu', 'background-color' ),
|
|
|
-
|
|
|
- // Text-color
|
|
|
- // Needs contrast against `link` (primary)
|
|
|
- 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,
|
|
|
- .entry .entry-content .wp-block-media-text,
|
|
|
- .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"],
|
|
|
- .site-header .main-navigation > div > ul > li.current-menu-item li > a,
|
|
|
- .site-header .main-navigation > div > ul > li.focus li > a,
|
|
|
- .site-header .main-navigation > div > ul > li:hover li > a', 'color', 'link' ),
|
|
|
-
|
|
|
- // Border-color
|
|
|
- array( '.entry .entry-content .wp-block-media-text.is-style-inset-borders:before', 'border-color' ),
|
|
|
-
|
|
|
- /**
|
|
|
- * Utility Classes
|
|
|
- */
|
|
|
- // Text-color
|
|
|
- // Needs contrast against `link` (primary)
|
|
|
- array( '.has-primary-background-color[class]', 'color', 'link' ),
|
|
|
- // Text-color
|
|
|
- // Needs contrast against `fg1` (secondary)
|
|
|
- array( '.has-secondary-background-color[class]', 'color', 'fg1' ),
|
|
|
-
|
|
|
- // Text-color
|
|
|
- // Needs contrast against `txt` (foreground)
|
|
|
- array( '.has-foreground-background-color[class],
|
|
|
- .has-foreground-dark-background-color[class],
|
|
|
- .has-foreground-light-background-color[class]', 'color', 'txt', 12 ),
|
|
|
- // Text-color
|
|
|
- // Needs contrast against `txt` (background)
|
|
|
- array( '.has-background-color[class],
|
|
|
- .has-background-dark-color[class],
|
|
|
- .has-background-light-color[class],
|
|
|
- .has-background-background-color[class],
|
|
|
- .has-background-dark-background-color[class],
|
|
|
- .has-background-light-background-color[class]', 'color', 'bg', 12 ),
|
|
|
- // Background-color
|
|
|
- array( '.has-background-background-color[class]', 'background-color' ),
|
|
|
- // Background-color darkened
|
|
|
- array( '.has-background-dark-background-color[class]', 'background-color', '-1' ),
|
|
|
- // Background-color lightened
|
|
|
- array( '.has-background-light-background-color[class]', 'background-color', '+1' ),
|
|
|
-
|
|
|
-), __( 'Background Color' ) );
|
|
|
-
|
|
|
-// Link Color
|
|
|
-// $config-global--color-primary-default
|
|
|
-add_color_rule( 'link', '#0073AA', array(
|
|
|
-
|
|
|
- // Background-color
|
|
|
- array( '.a8c-posts-list-item__featured span,
|
|
|
- .a8c-posts-list__view-all,
|
|
|
- .button,
|
|
|
- .has-primary-background-color[class],
|
|
|
- .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"],
|
|
|
- .site-header .main-navigation > div > ul > li.current-menu-item li > a,
|
|
|
- .site-header .main-navigation > div > ul > li.focus li > a,
|
|
|
- .site-header .main-navigation > div > ul > li:hover li > a', 'background-color' ),
|
|
|
-
|
|
|
- // Text-color
|
|
|
- // Needs contrast against `bg`
|
|
|
- array( '.a8c-posts-list-item__featured span,
|
|
|
- .has-primary-color[class],
|
|
|
- .main-navigation a,
|
|
|
- .main-navigation a:link,
|
|
|
- .main-navigation a:visited,
|
|
|
- .site-title a:hover,
|
|
|
- .social-navigation a:hover,
|
|
|
- .sticky-post,
|
|
|
- .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,
|
|
|
- .wp-block-button.is-style-outline.wp-block-button__link:active,
|
|
|
- .wp-block-newspack-blocks-homepage-articles article .entry-title a,
|
|
|
- a', 'color', 'bg' ),
|
|
|
-
|
|
|
- // Border color left
|
|
|
- // Needs contrast against `bg`
|
|
|
- array( '.wp-block-quote', 'border-left-color', 'bg' ),
|
|
|
-
|
|
|
- // Border color right
|
|
|
- // Needs contrast against `bg`
|
|
|
- array( '.wp-block-quote[style*="text-align: right"],
|
|
|
- .wp-block-quote[style*="text-align:right"]', 'border-right-color', 'bg' ),
|
|
|
-
|
|
|
- // Border color bottom
|
|
|
- // Needs contrast against `bg`
|
|
|
- array( '.site-header .main-navigation > div > ul > li.current-menu-item > ul:before,
|
|
|
- .site-header .main-navigation > div > ul > li.focus > ul:before,
|
|
|
- .site-header .main-navigation > div > ul > li:hover > ul:before', 'border-bottom-color', 'bg' ),
|
|
|
-
|
|
|
- /**
|
|
|
- * Utility Classes
|
|
|
- */
|
|
|
- // Background-color
|
|
|
- array( '.has-primary-background-color[class]', 'background-color' ),
|
|
|
- // Text-color
|
|
|
- // Needs contrast against `bg`
|
|
|
- array( '.has-primary-color[class]', 'color', 'bg' ),
|
|
|
-
|
|
|
-), __( 'Link Color' ) );
|
|
|
-
|
|
|
-// Text Color
|
|
|
-// $config-global--color-foreground-default
|
|
|
-add_color_rule( 'txt', '#1e1e1e', array(
|
|
|
-
|
|
|
- // Text-color
|
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
- array( '.comment-meta .comment-metadata,
|
|
|
- .main-navigation,
|
|
|
- .screen-reader-text:focus,
|
|
|
- .wp-block-code,
|
|
|
- .wp-block-code pre,
|
|
|
- .wp-block-pullquote,
|
|
|
- body,
|
|
|
- body .widget_eu_cookie_law_widget #eu-cookie-law,
|
|
|
- body .widget_eu_cookie_law_widget #eu-cookie-law.negative input.accept,
|
|
|
- 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', 'bg', 7 ),
|
|
|
-
|
|
|
- // Background-color
|
|
|
- // Needs contrast against `bg` with more contrast
|
|
|
- array( 'body .widget_eu_cookie_law_widget #eu-cookie-law.negative', 'background-color', 'bg', 7 ),
|
|
|
-
|
|
|
- /**
|
|
|
- * Utility Classes
|
|
|
- */
|
|
|
- // Foreground
|
|
|
- // Needs contrast against `bg`
|
|
|
- array( '.has-foreground-color[class]', 'color', 'bg' ),
|
|
|
- array( '.has-foreground-background-color[class]', 'background-color' ),
|
|
|
-
|
|
|
- // Text-color darkened
|
|
|
- array( '.has-foreground-dark-color[class]', 'color', '-1' ),
|
|
|
- // Background-color darkened
|
|
|
- array( '.has-foreground-dark-background-color[class]', 'background-color', '-1' ),
|
|
|
-
|
|
|
- // Text-color brightened
|
|
|
- array( '.has-foreground-light-color[class]', 'color', '+2' ),
|
|
|
- // Background-color brightened
|
|
|
- array( '.has-foreground-light-background-color[class]', 'background-color', '+2' ),
|
|
|
-
|
|
|
-), __( 'Text Color' ) );
|
|
|
-
|
|
|
-// Accent Color
|
|
|
-// $config-global--color-secondary-default
|
|
|
-add_color_rule( 'fg1', '#0d1b24', array(
|
|
|
-
|
|
|
- /**
|
|
|
- * Utility Classes
|
|
|
- */
|
|
|
- // Text-color
|
|
|
- // Needs contrast against `bg`
|
|
|
- array( '.has-secondary-color[class]', 'color', 'bg' ),
|
|
|
-
|
|
|
- // Background-color
|
|
|
- array( '.has-secondary-background-color[class]', 'background-color' ),
|
|
|
-
|
|
|
-), __( 'Secondary Color' ) );
|