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

Update theme progress color bar to match theme #4508

Merged
merged 1 commit into from
Jan 16, 2018
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
13 changes: 13 additions & 0 deletions editor/assets/stylesheets/_admin-schemes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@ $scheme-sunrise__spot-color: #de823f;
border-color: $spot-color;
}
}

// Saving state indicators
.editor-post-publish-button.is-saving,
.editor-post-publish-button.is-saving:disabled {
// Yes, these need to be !important because they !important upstream too ¯\_(ツ)_/¯
border-color: darken( $spot-color, 10 ) darken( $spot-color, 20 ) darken( $spot-color, 20 ) !important;
box-shadow: 0 1px 0 darken( $spot-color, 20 ) !important;
text-shadow: 0 -1px 1px darken( $spot-color, 20 ), 1px 0 1px darken( $spot-color, 20 ), 0 1px 1px darken( $spot-color, 20 ), -1px 0 1px darken( $spot-color, 20 ) !important;

&:before {
background-image: repeating-linear-gradient( -45deg, darken( $spot-color, 20 ), darken( $spot-color, 20 ) 11px, darken( $spot-color, 10 ) 10px, darken( $spot-color, 10 ) 20px );
}
}
}
}

Expand Down
10 changes: 5 additions & 5 deletions editor/components/post-publish-button/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
position: relative;

// These styles overrides the disabled state with the button primary styles
opacity: 1;
background: none !important;
border-color: #0073aa #006799 #006799 !important;
box-shadow: 0 1px 0 #006799 !important;
color: #fff !important;
text-decoration: none !important;
text-shadow: 0 -1px 1px #006799, 1px 0 1px #006799, 0 1px 1px #006799, -1px 0 1px #006799 !important;
opacity: 1;
color: $white !important;
border-color: $blue-wordpress $blue-wordpress-700 $blue-wordpress-700 !important;
box-shadow: 0 1px 0 $blue-wordpress-700 !important;
text-shadow: 0 -1px 1px $blue-wordpress-700, 1px 0 1px $blue-wordpress-700, 0 1px 1px $blue-wordpress-700, -1px 0 1px $blue-wordpress-700 !important;
// End of the overriding

&:hover {
Expand Down