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

Try tweaking the specificity of the custom color syntax #15167

Merged
merged 3 commits into from
May 3, 2019
Merged
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
144 changes: 77 additions & 67 deletions packages/block-library/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,97 +25,107 @@
@import "./verse/style.scss";
@import "./video/style.scss";

// Class names are doubled to increase specificity to assure colors take effect
// over another base class color.
// The following selectors have increased specificity (using the :root prefix)
// to assure colors take effect over another base class color, mainly to let
// the colors override the added specificity by link states such as :hover.

.has-pale-pink-background-color.has-pale-pink-background-color {
background-color: #f78da7;
}
:root {
// Background colors.

.has-vivid-red-background-color.has-vivid-red-background-color {
background-color: #cf2e2e;
}
.has-pale-pink-background-color {
background-color: #f78da7;
}

.has-luminous-vivid-orange-background-color.has-luminous-vivid-orange-background-color {
background-color: #ff6900;
}
.has-vivid-red-background-color {
background-color: #cf2e2e;
}

.has-luminous-vivid-amber-background-color.has-luminous-vivid-amber-background-color {
background-color: #fcb900;
}
.has-luminous-vivid-orange-background-color {
background-color: #ff6900;
}

.has-light-green-cyan-background-color.has-light-green-cyan-background-color {
background-color: #7bdcb5;
}
.has-luminous-vivid-amber-background-color {
background-color: #fcb900;
}

.has-vivid-green-cyan-background-color.has-vivid-green-cyan-background-color {
background-color: #00d084;
}
.has-light-green-cyan-background-color {
background-color: #7bdcb5;
}

.has-pale-cyan-blue-background-color.has-pale-cyan-blue-background-color {
background-color: #8ed1fc;
}
.has-vivid-green-cyan-background-color {
background-color: #00d084;
}

.has-vivid-cyan-blue-background-color.has-vivid-cyan-blue-background-color {
background-color: #0693e3;
}
.has-pale-cyan-blue-background-color {
background-color: #8ed1fc;
}

.has-very-light-gray-background-color.has-very-light-gray-background-color {
background-color: #eee;
}
.has-vivid-cyan-blue-background-color {
background-color: #0693e3;
}

.has-cyan-bluish-gray-background-color.has-cyan-bluish-gray-background-color {
background-color: #abb8c3;
}
.has-very-light-gray-background-color {
background-color: #eee;
}

.has-very-dark-gray-background-color.has-very-dark-gray-background-color {
background-color: #313131;
}
.has-cyan-bluish-gray-background-color {
background-color: #abb8c3;
}

.has-pale-pink-color.has-pale-pink-color {
color: #f78da7;
}
.has-very-dark-gray-background-color {
background-color: #313131;
}

.has-vivid-red-color.has-vivid-red-color {
color: #cf2e2e;
}
// Foreground colors.

.has-luminous-vivid-orange-color.has-luminous-vivid-orange-color {
color: #ff6900;
}
.has-pale-pink-color {
color: #f78da7;
}

.has-luminous-vivid-amber-color.has-luminous-vivid-amber-color {
color: #fcb900;
}
.has-vivid-red-color {
color: #cf2e2e;
}

.has-light-green-cyan-color.has-light-green-cyan-color {
color: #7bdcb5;
}
.has-luminous-vivid-orange-color {
color: #ff6900;
}

.has-vivid-green-cyan-color.has-vivid-green-cyan-color {
color: #00d084;
}
.has-luminous-vivid-amber-color {
color: #fcb900;
}

.has-pale-cyan-blue-color.has-pale-cyan-blue-color {
color: #8ed1fc;
}
.has-light-green-cyan-color {
color: #7bdcb5;
}

.has-vivid-cyan-blue-color.has-vivid-cyan-blue-color {
color: #0693e3;
}
.has-vivid-green-cyan-color {
color: #00d084;
}

.has-very-light-gray-color.has-very-light-gray-color {
color: #eee;
}
.has-pale-cyan-blue-color {
color: #8ed1fc;
}

.has-cyan-bluish-gray-color.has-cyan-bluish-gray-color {
color: #abb8c3;
}
.has-vivid-cyan-blue-color {
color: #0693e3;
}

.has-very-light-gray-color {
color: #eee;
}

.has-very-dark-gray-color.has-very-dark-gray-color {
color: #313131;
.has-cyan-bluish-gray-color {
color: #abb8c3;
}

.has-very-dark-gray-color {
color: #313131;
}
}


// Font sizes.

.has-small-font-size {
font-size: 13px;
}
Expand Down