-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a banner component which can have 4 states (error, warning, success and info). This component aims to display brief messages to confirm action or alert the user.
- Loading branch information
Showing
5 changed files
with
73 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Banner | ||
// | ||
// A Row to display an inlined message | ||
|
||
.banner { | ||
@include make-container(); | ||
@include make-container-max-widths(); | ||
display: flex; | ||
padding: 1.4rem 1rem; | ||
margin: 1rem auto; | ||
|
||
&--error { | ||
@include r-scheme-colors(r-theme-val(banner, error)); | ||
} | ||
|
||
&--success { | ||
@include r-scheme-colors(r-theme-val(banner, success)); | ||
} | ||
|
||
&--info { | ||
@include r-scheme-colors(r-theme-val(banner, info)); | ||
} | ||
|
||
&--warning { | ||
@include r-scheme-colors(r-theme-val(banner, warning)); | ||
} | ||
|
||
&--rounded { | ||
border-radius: 6px; | ||
} | ||
|
||
&__icon { | ||
height: 1rem; | ||
margin-right: 1rem; | ||
width: 1rem; | ||
} | ||
|
||
&__message { | ||
font-size: 1em; | ||
margin-bottom: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters