-
Notifications
You must be signed in to change notification settings - Fork 166
Update flash message styles #995
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,8 +5,7 @@ $ico-offset: -10px; | |
| background-color: $blue-light; | ||
| border-radius: $space-1; | ||
| color: #5b616a; | ||
| font-size: $sm-h6; | ||
| font-weight: $bold-font-weight; | ||
| font-size: 1rem; | ||
| line-height: $line-height-2; | ||
| margin-bottom: $space-4; | ||
| padding: $space-2 1.5rem; | ||
|
|
@@ -26,22 +25,22 @@ $ico-offset: -10px; | |
|
|
||
| .alert-notice, | ||
| .alert-success { | ||
| background-color: #f0faed; | ||
| background-color: #ebfcef; | ||
|
|
||
| &::before { background-image: url(image-path('alert/ico-check.svg')); } | ||
| &::before { background-image: url(image-path('alert/success.svg')); } | ||
| } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this image now unused / removable?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I left it in there for now because it is being used by the progress bar, but we can remove it after that is gone. Again, I will likely do an audit of all the various icons in the future to clean up an unnecessary images. |
||
|
|
||
| .alert-error, | ||
| .alert-alert { | ||
| background-color: #fff0f2; | ||
| background-color: #fff0f3; | ||
|
|
||
| &::before { background-image: url(image-path('alert/ico-exclamation.svg')); } | ||
| &::before { background-image: url(image-path('alert/error.svg')); } | ||
| } | ||
|
|
||
| .alert-warning { | ||
| background-color: #fff4db; | ||
| background-color: #fffccf; | ||
|
|
||
| &::before { background-image: url(image-path('alert/ico-warning.svg')); } | ||
| &::before { background-image: url(image-path('alert/warning.svg')); } | ||
| } | ||
|
|
||
| .alert-no-icon::before { content: none; } | ||
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.
should these be named?
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.
These colors aren't being used elsewhere at this point so I think it's fine that they are one-offs in this case. I did talk with Ryan yesterday and we tried to consolidate all of the colors into one color palette and I will likely do some naming/renaming in a future PR for that.