Skip to content

Commit

Permalink
[not verified] Update Gutenberg colors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeherve committed Aug 4, 2020
1 parent aefee69 commit b63bc26
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion extensions/blocks/contact-form/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ input.components-text-control__input {

// TODO: make this a class, @enej
[data-type='jetpack/field-select'] & {
border: 1px solid $dark-gray-150;
border: 1px solid $gray-200;
border-radius: 4px;
padding: 4px;
}
Expand Down
8 changes: 4 additions & 4 deletions extensions/blocks/donations/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
border-radius: 0;
border-left: 1px solid $light-gray-700;
background-color: $white;
color: $dark-gray-800;
color: $gray-900;
box-shadow: none;

&:first-child {
Expand All @@ -28,14 +28,14 @@

// Complex selector needed to override specificity.
&:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover {
background-color: $light-gray-100;
background-color: $white;
box-shadow: none;
}

// Complex selector needed to override specificity.
&.is-active,
&.is-active:not(:disabled):not([aria-disabled=true]):not(.is-secondary):not(.is-primary):not(.is-tertiary):not(.is-link):hover {
background-color: $blue-wordpress-700;
background-color: var(--wp-admin-theme-color);
box-shadow: none;
color: $white;
}
Expand All @@ -58,7 +58,7 @@

.donations__amount .wp-block-button__link {
background-color: $white;
color: $dark-gray-800;
color: $gray-900;
border: 1px solid $light-gray-700;
cursor: text;

Expand Down
6 changes: 3 additions & 3 deletions extensions/blocks/gif/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
padding-bottom: calc( 100% / 10 - 4px );
width: calc( 100% / 10 - 4px );
&:hover {
box-shadow: 0 0 0 1px $dark-gray-500;
box-shadow: 0 0 0 1px $gray-600;
}
&:focus {
box-shadow: 0 0 0 2px $blue-medium-500;
box-shadow: 0 0 0 2px var(--wp-admin-theme-color);
outline: 0;
}
}
Expand All @@ -75,6 +75,6 @@
max-width: 200px;
}
svg path {
fill: $dark-gray-150;
fill: $gray-200;
}
}
2 changes: 1 addition & 1 deletion extensions/blocks/gif/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.wp-block-jetpack-gif-caption {
margin-top: 0.5em;
margin-bottom: 1em;
color: $dark-gray-500;
color: $gray-600;
text-align: center;
}
.wp-block-jetpack-gif-wrapper {
Expand Down
2 changes: 1 addition & 1 deletion extensions/blocks/map/add-point/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
box-shadow: none;
float: right;
path {
color: $dark-gray-150;
color: $gray-200;
}
}
2 changes: 1 addition & 1 deletion extensions/blocks/map/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
.wp-block-jetpack-map__gm-container {
width: 100%;
overflow: hidden;
background: $light-gray-500;
background: $gray-200;
min-height: 400px;
text-align: left;
}
Expand Down
8 changes: 4 additions & 4 deletions extensions/blocks/markdown/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

hr {
border: none;
border-bottom: 2px solid $dark-gray-100;
border-bottom: 2px solid $gray-100;
margin: 2em auto;
max-width: 100px;
}
Expand Down Expand Up @@ -86,20 +86,20 @@
// See https://github.com/WordPress/gutenberg/blob/db7decd27f7c476684bc8edde381ffab4c916cb2/packages/block-editor/src/components/rich-text/style.scss#L28-L39
code,
pre {
color: $dark-gray-800;
color: $gray-900;
font-family: $editor-html-font;
}

code {
background: $light-gray-200;
background: $gray-100;
border-radius: 2px;
font-size: inherit; // This is necessary to override upstream CSS.
padding: 2px;
}

pre {
border-radius: 4px;
border: 1px solid $light-gray-500;
border: 1px solid $gray-200;
font-size: $text-editor-font-size;
padding: 0.8em 1em;

Expand Down
2 changes: 1 addition & 1 deletion extensions/blocks/podcast-player/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $current-track-title-font-size: 24px;
$current-track-title-icon-size: 27px;
$track-status-icon-size: 22px;
$jetpack-podcast-player-primary: $black;
$jetpack-podcast-player-secondary: $dark-gray-300;
$jetpack-podcast-player-secondary: $gray-400;
$jetpack-podcast-player-background: $white;
$jetpack-podcast-player-error: $alert-red;

Expand Down
4 changes: 2 additions & 2 deletions extensions/blocks/publicize/editor.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import '../../shared/styles/gutenberg-base-styles.scss';

.jetpack-publicize-message-box {
background-color: $light-gray-300;
background-color: $gray-200;
border-radius: 4px;
}

Expand All @@ -24,7 +24,7 @@
}

.jetpack-publicize-gutenberg-social-icon {
fill: $dark-gray-500;
fill: $gray-600;
margin-right: 5px;

&.is-facebook {
Expand Down
2 changes: 1 addition & 1 deletion extensions/blocks/rating-star/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
margin-right: 0.3em;

// Mimic core focus style.
border-radius: $radius-round-rectangle;
border-radius: $radius-block-ui;

&:focus {
box-shadow: 0 0 0 1px currentColor;
Expand Down
4 changes: 2 additions & 2 deletions extensions/blocks/recurring-payments/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@
transform: translateY( 14px );

// Use opacity to work in various editor styles.
background: $dark-opacity-light-200;
background: $dark-gray-placeholder;

.is-dark-theme & {
background: $light-opacity-light-200;
background: $light-gray-placeholder;
}
}

Expand Down
2 changes: 1 addition & 1 deletion extensions/blocks/seo/editor.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import '../../shared/styles/gutenberg-base-styles.scss';

.jetpack-seo-message-box {
background-color: $light-gray-300;
background-color: $gray-200;
border-radius: 4px;
}

Expand Down
2 changes: 1 addition & 1 deletion extensions/blocks/slideshow/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

&:hover,
&:focus {
border: 1px solid $dark-gray-500;
border: 1px solid $gray-600;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion extensions/blocks/story/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

&:hover,
&:focus {
border: 1px solid $dark-gray-500;
border: 1px solid $gray-600;
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions extensions/blocks/tiled-gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
&.is-selected .tiled-gallery__item__move-menu,
&.is-selected .tiled-gallery__item__inline-menu {
background: $white;
border: 1px solid $dark-opacity-light-800;
border-radius: $radius-round-rectangle;
border: 1px solid $dark-gray-placeholder;
border-radius: $radius-block-ui;
transition: box-shadow 0.2s ease-out;
@include reduce-motion("transition");

Expand All @@ -77,7 +77,7 @@
}

.components-button {
color: $dark-opacity-300;
color: $dark-gray-placeholder;
padding: 2px;
height: $button-size-small;

Expand Down Expand Up @@ -128,7 +128,7 @@

&:hover,
&:focus {
border: 1px solid $dark-gray-500;
border: 1px solid $gray-600;
}
}
}
Expand Down Expand Up @@ -196,7 +196,7 @@
}

.components-menu-item__button.is-active {
color: $dark-gray-900;
box-shadow: 0 0 0 $active-item-outline-width $dark-gray-500 !important;
color: $gray-900;
box-shadow: 0 0 0 $active-item-outline-width $gray-600 !important;
}
}
4 changes: 2 additions & 2 deletions extensions/blocks/wordads/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
}

.components-menu-item__button.is-active {
color: $dark-gray-900;
box-shadow: 0 0 0 $active-item-outline-width $dark-gray-500 !important;
color: $gray-900;
box-shadow: 0 0 0 $active-item-outline-width $gray-600 !important;
}
}

Expand Down
2 changes: 1 addition & 1 deletion extensions/shared/components/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Styling copied from Gutenberg's `@wordpress/block-editor` styling for the Warning component
// so we can use it on the frontend.
.block-editor-warning {
border: $border-width solid $light-gray-500;
border: $border-width solid $gray-200;
padding: 10px 14px;

.block-editor-warning__message {
Expand Down
14 changes: 7 additions & 7 deletions extensions/shared/external-media/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,18 @@ $grid-size: 8px;

&:focus {
outline: none;
box-shadow: inset 0 0 0 2px $blue-medium-focus;
box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color);
border-radius: 2px + $border-width; // Add the 4px from the transparent.
}

&__selected {
box-shadow: inset 0 0 0 6px $blue-medium-focus;
box-shadow: inset 0 0 0 6px var(--wp-admin-theme-color);
border-radius: 2px + $border-width; // Add the 4px from the transparent.
}

&__selected:focus {
box-shadow: inset 0 0 0 2px $blue-medium-focus, inset 0 0 0 3px white,
inset 0 0 0 6px $blue-medium-focus;
box-shadow: inset 0 0 0 2px var(--wp-admin-theme-color), inset 0 0 0 3px white,
inset 0 0 0 6px var(--wp-admin-theme-color);
}
}

Expand All @@ -183,7 +183,7 @@ $grid-size: 8px;
height: 100px;
margin: $grid-size * 2;
animation: jetpack-external-media-loading-fade 1.6s ease-in-out infinite;
background-color: $light-gray-secondary;
background-color: $gray-400;
border: 0;
}

Expand Down Expand Up @@ -261,7 +261,7 @@ $grid-size: 8px;
justify-content: flex-start;

@media only screen and ( min-width: 600px ) {
border-left: 1px solid $light-gray-secondary;
border-left: 1px solid $gray-400;
margin-left: $grid-size * 2;
padding-left: $grid-size * 2;
}
Expand All @@ -286,7 +286,7 @@ $grid-size: 8px;
}

.components-input-control__backdrop {
border-color: $dark-gray-200;
border-color: $gray-200;
border-radius: 3px;
}

Expand Down

0 comments on commit b63bc26

Please sign in to comment.