Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colour Scheming: Replace Jetpack Variable #30232

Merged
merged 24 commits into from
Jan 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion assets/stylesheets/shared/_color-schemes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,11 @@
--color-link-900-rgb: #{hex-to-rgb( $muriel-blue-900 )};

--color-wpcom: #{$muriel-blue-500};
--color-jetpack: #{$green-jetpack};
--color-jetpack: #00be28;
--color-jetpack-light: #81d677;
--color-jetpack-dark: #2e8928;
--color-jetpack-400: #57ca53;

--color-email: #f8f8f8;
--color-eventbrite: #ff8000;
--color-facebook: #39579a;
Expand Down
3 changes: 0 additions & 3 deletions assets/stylesheets/shared/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ $blue-light: $muriel-blue-300;
$blue-medium: $muriel-blue-500;
$blue-dark: $muriel-blue-700;

// Jetpack Green
$green-jetpack: #00be28;

// Grays
$gray: $muriel-gray-300;
$gray-light: $muriel-gray-0;
Expand Down
4 changes: 2 additions & 2 deletions client/blocks/login/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
.login {
&.is-jetpack {
.button.is-primary {
background-color: $green-jetpack;
border-color: darken( $green-jetpack, 5% );
background-color: var( --color-jetpack );
border-color: var( --color-jetpack-dark );
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion client/components/upgrades/gsuite/gsuite-dialog/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
}

strong {
color: $green-jetpack;
color: var( --color-jetpack );
margin-left: 0.3em;

@include breakpoint( '<480px' ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
}

.jetpack-logo__icon-circle {
fill: $green-jetpack !important;
fill: var( --color-jetpack ) !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This caused #30469

}

.jetpack-logo__icon-triangle {
fill: $white !important;
fill: var( --color-white ) !important;
}
}
}
Expand Down
20 changes: 10 additions & 10 deletions client/jetpack-connect/jetpack-new-site/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
}

.jetpack-new-site__jetpack-site .jetpack-logo {
fill: $green-jetpack;
fill: var( --color-jetpack );
}

.jetpack-new-site__card-title {
Expand Down Expand Up @@ -130,31 +130,31 @@

input[type='text'] {
&:focus {
border-color: $green-jetpack;
box-shadow: 0 0 0 2px lighten( $green-jetpack, 25% );
border-color: var( --color-jetpack );
box-shadow: 0 0 0 2px var( --color-jetpack-light );
}
}

.button {
background-color: $green-jetpack;
border-color: darken( $green-jetpack, 5% );
background-color: var( --color-jetpack );
border-color: var( --color-jetpack-dark );
margin-top: 16px;
width: 100%;

&:hover,
&:focus {
border-color: darken( $green-jetpack, 30% );
background-color: var( --color-jetpack-400 );
}

&:focus {
box-shadow: 0 0 0 2px lighten( $green-jetpack, 25% );
box-shadow: 0 0 0 2px var( --color-jetpack-light );
}

&[disabled],
&:disabled {
background: tint( $green-jetpack, 50% );
border-color: tint( $green-jetpack, 35% );
color: $white;
background-color: var( --color-white );
border-color: var( --color-neutral-50 );
color: var( --color-neutral-50 );
}
}
}
Expand Down
30 changes: 15 additions & 15 deletions client/jetpack-connect/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@
}

.button.is-primary {
background-color: $green-jetpack;
border-color: darken( $green-jetpack, 5% );
background-color: var( --color-jetpack );
border-color: var( --color-jetpack-dark );

&:hover,
&:focus {
border-color: darken( $green-jetpack, 30% );
background-color: var( --color-jetpack-400 );
}

&:focus {
box-shadow: 0 0 0 2px lighten( $green-jetpack, 25% );
box-shadow: 0 0 0 2px var( --color-jetpack-light );
}

&[disabled],
&:disabled {
background: tint( $green-jetpack, 50% );
border-color: tint( $green-jetpack, 35% );
color: $white;
background: var( --color-white );
border-color: var( --color-neutral-50);
color: var( --color-neutral-50 );
}
}
}
Expand Down Expand Up @@ -231,7 +231,7 @@
.example-components__install-plugin-header {
width: 100%;
padding-bottom: 12%;
background-color: $green-jetpack;
background-color: var( --color-jetpack );
}

.example-components__install-plugin-body {
Expand All @@ -254,7 +254,7 @@
font-size: 12px;
padding: 7px 14px;
line-height: 1;
color: $white;
color: var( --color-white );
background-color: #008ec2; // wp-admin button blue
border: 1px solid #006799;
border-radius: 3px;
Expand Down Expand Up @@ -298,15 +298,15 @@
.example-components__content-wp-admin-connect-banner {
margin: 10px;
padding: 10px 10px 12px;
background-color: $white;
background-color: var( --color-white );
}

.example-components__content-wp-admin-connect-button {
display: inline-block;
font-size: 12px;
padding: 7px 14px;
line-height: 1;
color: $white;
color: var( --color-white );
border-radius: 3px;
background-color: #00be28;
border: 2px #00a523 solid;
Expand All @@ -328,7 +328,7 @@
font-size: 12px;
line-height: 1;
padding: 11px 10px;
color: $white;
color: var( --color-white );
background-color: #518d2a;
border-color: #518d2a;
border-radius: 4px;
Expand All @@ -339,7 +339,7 @@
.example-components__content-wp-admin-plugin-card {
margin: 10px;
padding: 12px 10px;
background-color: $white;
background-color: var( --color-white );
}

.example-components__content-wp-admin-plugin-name {
Expand Down Expand Up @@ -622,8 +622,8 @@
}

&.is-primary {
background-color: $green-jetpack;
border-color: darken( $green-jetpack, 5% );
background-color: var( --color-jetpack );
border-color: var( --color-jetpack-dark );
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@

&-item-icon {
width: 18px;
fill: $green-jetpack;
fill: var( --color-jetpack );
margin-right: 5px;
}

Expand Down
2 changes: 1 addition & 1 deletion client/my-sites/feature-upsell/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ $feature-upsell-break-at: '1040px';
&-guarantee {
display: block;
opacity: 0.8;
color: $green-jetpack;
color: var( --color-jetpack );
font-size: 15px;
line-height: 31px;
font-weight: 300;
Expand Down