Last active
April 21, 2022 14:19
-
-
Save PuddingNL/11280040 to your computer and use it in GitHub Desktop.
[CSS] Info boxes
This file contains hidden or 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
| .info, .success, .warning, .error, .validation { | |
| border: 1px solid; | |
| margin: 10px 0px; | |
| padding:15px 10px 15px 50px; | |
| background-repeat: no-repeat; | |
| background-position: 10px center; | |
| } | |
| .info { | |
| color: #00529B; | |
| background-color: #BDE5F8; | |
| background-image: url('info.png'); | |
| } | |
| .success { | |
| color: #4F8A10; | |
| background-color: #DFF2BF; | |
| background-image:url('success.png'); | |
| } | |
| .warning { | |
| color: #9F6000; | |
| background-color: #FEEFB3; | |
| background-image: url('warning.png'); | |
| } | |
| .error { | |
| color: #D8000C; | |
| background-color: #FFBABA; | |
| background-image: url('error.png'); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment