-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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 a white style variant for gallery caption backgrounds #24897
Conversation
Size Change: +129 B (0%) Total Size: 1.17 MB
ℹ️ View Unchanged
|
@@ -57,6 +57,12 @@ | |||
font-size: $default-font-size; | |||
background: linear-gradient(0deg, rgba($color: $black, $alpha: 0.7) 0, rgba($color: $black, $alpha: 0.3) 70%, transparent); | |||
|
|||
// White background variation | |||
.is-style-white-caption-background & { | |||
color: inherit; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we could add user-selected colors for the caption and links within. In that case, would it make sense that this color is opinionated (black-ish) if the user hasn't selected any color?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do like the idea of the user providing the colors and having some defaults.
The gradient has actually been slightly headachy because it doesn't work with multiple lines. Not that we can change it easily, but I do like the idea of Global Styles expanding the palette here.
Closing this out due to inactivity. Will ensure the attached issue remains open. |
Addresses #24896 by adding a white gradient background variant for gallery captions.
Potential concerns:
Screenshot: