Merge pull request #5020 from consul/unify_color_variables
Unify duplicate SCSS color variables
This commit is contained in:
@@ -16,6 +16,8 @@ $white: #fdfdfd !default;
|
|||||||
|
|
||||||
$body-font-family: "Source Sans Pro", "Helvetica", "Arial", sans-serif !important !default;
|
$body-font-family: "Source Sans Pro", "Helvetica", "Arial", sans-serif !important !default;
|
||||||
|
|
||||||
|
$closebutton-color: $black !default;
|
||||||
|
|
||||||
$global-radius: rem-calc(3) !default;
|
$global-radius: rem-calc(3) !default;
|
||||||
$global-width: rem-calc(1200) !default;
|
$global-width: rem-calc(1200) !default;
|
||||||
|
|
||||||
@@ -62,17 +64,12 @@ $font-family-serif: Georgia, "Times New Roman", Times, serif !default;
|
|||||||
|
|
||||||
$brand: #004a83 !default;
|
$brand: #004a83 !default;
|
||||||
$brand-secondary: darken($brand, 10%) !default;
|
$brand-secondary: darken($brand, 10%) !default;
|
||||||
$dark: $brand-secondary !default;
|
|
||||||
|
|
||||||
$text: $black !default;
|
|
||||||
$text-medium: #515151 !default;
|
$text-medium: #515151 !default;
|
||||||
$text-light: #bfbfbf !default;
|
$text-light: #bfbfbf !default;
|
||||||
|
|
||||||
$border: #dee0e3 !default;
|
$border: #dee0e3 !default;
|
||||||
|
|
||||||
$link: $brand !default;
|
|
||||||
$link-hover: darken($link, 20%) !default;
|
|
||||||
|
|
||||||
$debates: $brand !default;
|
$debates: $brand !default;
|
||||||
|
|
||||||
$like: #7bd2a8 !default;
|
$like: #7bd2a8 !default;
|
||||||
@@ -148,14 +145,15 @@ $sdg-colors: (
|
|||||||
// 3. Foundation overrides depending on CONSUL variables
|
// 3. Foundation overrides depending on CONSUL variables
|
||||||
// -----------------------------------------------------
|
// -----------------------------------------------------
|
||||||
|
|
||||||
|
$anchor-color: $brand !default;
|
||||||
|
$anchor-color-hover: darken($anchor-color, 20%) !default;
|
||||||
|
|
||||||
$tab-background-active: $white !default;
|
$tab-background-active: $white !default;
|
||||||
|
|
||||||
$tab-item-font-size: $base-font-size !default;
|
$tab-item-font-size: $base-font-size !default;
|
||||||
$tab-item-padding: $line-height / 2 0 !default;
|
$tab-item-padding: $line-height / 2 0 !default;
|
||||||
$tab-content-border: $border !default;
|
$tab-content-border: $border !default;
|
||||||
|
|
||||||
$closebutton-color: $text !default;
|
|
||||||
|
|
||||||
$tooltip-background-color: $brand !default;
|
$tooltip-background-color: $brand !default;
|
||||||
|
|
||||||
// 4. Foundation fixes
|
// 4. Foundation fixes
|
||||||
|
|||||||
@@ -515,7 +515,7 @@ code {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.number {
|
.number {
|
||||||
color: $text;
|
color: $body-font-color;
|
||||||
font-size: rem-calc(30);
|
font-size: rem-calc(30);
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,7 +87,7 @@
|
|||||||
|
|
||||||
&[aria-selected="true"],
|
&[aria-selected="true"],
|
||||||
&.is-active {
|
&.is-active {
|
||||||
@include background-with-text-contrast($dark);
|
@include background-with-text-contrast($brand-secondary);
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +100,6 @@
|
|||||||
&.current-phase-tab a {
|
&.current-phase-tab a {
|
||||||
@include background-with-text-contrast($brand-secondary);
|
@include background-with-text-contrast($brand-secondary);
|
||||||
padding-top: $line-height / 2;
|
padding-top: $line-height / 2;
|
||||||
|
|
||||||
&:hover {
|
|
||||||
background: $dark;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -95,17 +95,10 @@ p {
|
|||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: $link;
|
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active {
|
&:active {
|
||||||
color: $link-hover;
|
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:focus {
|
|
||||||
color: $link-hover;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a,
|
a,
|
||||||
@@ -696,7 +689,7 @@ body > header,
|
|||||||
}
|
}
|
||||||
|
|
||||||
.top-links {
|
.top-links {
|
||||||
@include background-with-text-contrast($dark);
|
@include background-with-text-contrast($brand-secondary);
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
font-size: $small-font-size;
|
font-size: $small-font-size;
|
||||||
@@ -775,7 +768,7 @@ body > header,
|
|||||||
width: auto;
|
width: auto;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $link;
|
color: $anchor-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-active {
|
&.is-active {
|
||||||
@@ -945,7 +938,7 @@ footer {
|
|||||||
.categories a,
|
.categories a,
|
||||||
.geozone a {
|
.geozone a {
|
||||||
background: $highlight;
|
background: $highlight;
|
||||||
color: $link;
|
color: $anchor-color;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&.is-active {
|
&.is-active {
|
||||||
@@ -2446,7 +2439,7 @@ table {
|
|||||||
p {
|
p {
|
||||||
|
|
||||||
&.description {
|
&.description {
|
||||||
color: $text;
|
color: $body-font-color;
|
||||||
word-wrap: break-word;
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,12 +31,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@mixin link {
|
@mixin link {
|
||||||
color: $link;
|
color: $anchor-color;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:active {
|
&:active {
|
||||||
color: $link-hover;
|
color: $anchor-color-hover;
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: $link;
|
color: $anchor-color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
@mixin body-colors {
|
@mixin body-colors {
|
||||||
background-color: $body-background;
|
background-color: $body-background;
|
||||||
color: $text;
|
color: $body-font-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin normal-selection {
|
@mixin normal-selection {
|
||||||
|
|||||||
@@ -1516,7 +1516,7 @@ $font-awesome-icons: (
|
|||||||
|
|
||||||
&:hover,
|
&:hover,
|
||||||
&:focus {
|
&:focus {
|
||||||
color: $link-hover;
|
color: $anchor-color-hover;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -326,7 +326,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.bullet {
|
.bullet {
|
||||||
color: $text;
|
color: $body-font-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
.budget-investment-show p {
|
.budget-investment-show p {
|
||||||
@@ -893,7 +893,7 @@
|
|||||||
|
|
||||||
a,
|
a,
|
||||||
.info {
|
.info {
|
||||||
color: lighten($text, 15%);
|
color: lighten($body-font-color, 15%);
|
||||||
font-size: $small-font-size;
|
font-size: $small-font-size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -926,7 +926,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.button-support {
|
.button-support {
|
||||||
background: $text;
|
background: $body-font-color;
|
||||||
color: $featured;
|
color: $featured;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
|
||||||
@@ -1482,7 +1482,7 @@
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
@include background-with-text-contrast($dark);
|
@include background-with-text-contrast($brand-secondary);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user