Created
May 1, 2014 13:15
-
-
Save DLavin23/11451462 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
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
<div class="container"> | |
<div class="alert error"> | |
<p>Error</p> | |
</div> | |
<div class="alert success"> | |
<p>Success</p> | |
</div> | |
<div class="alert info"> | |
<p>Info</p> | |
</div> | |
</div> |
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
// ---- | |
// Sass (v3.3.6) | |
// Compass (v1.0.0.alpha.18) | |
// ---- | |
// Color settings | |
$color-red: #DB4437; | |
$color-green: #a9cf54; | |
$color-blue: #477dca; | |
$color-yellow: #F4B400; | |
$color-white: #ffffff; | |
$color-gray: #aaaaaa; | |
// Error settings | |
$alert-default: $color-gray; | |
$alert-error: $color-red; | |
$alert-success: $color-green; | |
$alert-info: $color-blue; | |
$alert-warning: $color-yellow; | |
// Spacing settings | |
$base-unit: 1em; | |
.container { | |
margin: 0 auto; | |
max-width: 50em; | |
overflow: hidden; | |
} | |
// .alert { | |
// border: 1px solid $color-gray; | |
// border-radius: 5px; | |
// margin-bottom: $base-unit; | |
// padding: $base-unit; | |
// overflow: hidden; | |
// text-align: center; | |
// &.error { | |
// border: 1px solid darken($alert-error, 20%); | |
// background: $alert-error; | |
// color: $color-white; | |
// &:hover { | |
// background: lighten($alert-error, 10%); | |
// } | |
// } | |
// &.success { | |
// border: 1px solid darken($alert-success, 20%); | |
// background: $alert-success; | |
// color: $color-white; | |
// &:hover { | |
// background: lighten($alert-success, 10%); | |
// } | |
// } | |
// &.info { | |
// border: 1px solid darken($alert-info, 20%); | |
// background: $alert-info; | |
// color: $color-white; | |
// &:hover { | |
// background: lighten($alert-info, 10%); | |
// } | |
// } | |
// } | |
// Alert placeholder selector | |
// %alert { | |
// border-radius: 5px; | |
// margin-bottom: 1em; | |
// overflow: hidden; | |
// padding: 1em; | |
// text-align: center; | |
// } | |
// $alerts: ( | |
// error: $alert-error, | |
// success: $alert-success, | |
// info: $alert-info, | |
// ); | |
// @each $alert, $bgcolor in $alerts { | |
// .alert.#{$alert} { | |
// // @extend %alert; | |
// background: $bgcolor; | |
// border: 1px solid darken($bgcolor, 20%); | |
// color: $color-white; | |
// } | |
// .alert.#{$alert}:hover { | |
// background: lighten($bgcolor, 10%); | |
// } | |
// } |
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
.container { | |
margin: 0 auto; | |
max-width: 50em; | |
overflow: hidden; | |
} |
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
<div class="container"> | |
<div class="alert error"> | |
<p>Error</p> | |
</div> | |
<div class="alert success"> | |
<p>Success</p> | |
</div> | |
<div class="alert info"> | |
<p>Info</p> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment