Created
April 15, 2014 02:12
-
-
Save sbrack8t/10696505 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
// ---- | |
// Sass (v3.3.4) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
%message { | |
padding: .5em; | |
margin-bottom: .5em; | |
border-radius: .15em; | |
border: 1px solid; | |
} | |
@mixin message($color) { | |
@extend %message; | |
color: $color; | |
border-color: lighten($color, 20%); | |
background: lighten($color, 40%); | |
} | |
$message-types: ( | |
error : #b94a48, | |
valid : #468847, | |
warning : #c09853, | |
info : #3a87ad | |
) !default; | |
@each $type, $color in $message-types { | |
.message-#{$type} { | |
@include message($color); | |
/* #{$type} | |
This comment is | |
* several lines long. | |
* since it uses the CSS comment syntax, | |
* it will appear in the CSS output. | |
*/ | |
} | |
} |
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
.message-error, .message-valid, .message-warning, .message-info { | |
padding: .5em; | |
margin-bottom: .5em; | |
border-radius: .15em; | |
border: 1px solid; | |
} | |
.message-error { | |
color: #b94a48; | |
border-color: #d59392; | |
background: #f1dcdc; | |
/* error | |
This comment is | |
* several lines long. | |
* since it uses the CSS comment syntax, | |
* it will appear in the CSS output. | |
*/ | |
} | |
.message-valid { | |
color: #468847; | |
border-color: #7aba7b; | |
background: #bdddbd; | |
/* valid | |
This comment is | |
* several lines long. | |
* since it uses the CSS comment syntax, | |
* it will appear in the CSS output. | |
*/ | |
} | |
.message-warning { | |
color: #c09853; | |
border-color: #dbc59e; | |
background: #f7f1e8; | |
/* warning | |
This comment is | |
* several lines long. | |
* since it uses the CSS comment syntax, | |
* it will appear in the CSS output. | |
*/ | |
} | |
.message-info { | |
color: #3a87ad; | |
border-color: #7ab5d3; | |
background: #c7e0ec; | |
/* info | |
This comment is | |
* several lines long. | |
* since it uses the CSS comment syntax, | |
* it will appear in the CSS output. | |
*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment