Sha256: e906e74dc406a4b0be21e0a124a84e10e4b75270b05e6ec42c1a9fd186b535ca
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
@mixin thredded-alert($font-color, $background-color, $border-color: lighten($font-color, 50%)) { background: $background-color; border-color: $border-color; color: $font-color; a { color: darken($font-color, 10%); text-decoration: underline; &:focus, &:hover { color: darken($font-color, 15%); } } } %thredded--alert { border: solid 1px; border-radius: 3px; margin-bottom: $thredded-small-spacing; padding: $thredded-small-spacing; text-decoration: none; width: 100%; @include thredded-media-desktop-and-up { margin-bottom: $thredded-base-spacing; } } %thredded--alert--success { @include thredded-alert($thredded-alert-success-color, $thredded-alert-success-background); } %thredded--alert--danger { @include thredded-alert($thredded-alert-danger-color, $thredded-alert-danger-background); } %thredded--alert--info { @include thredded-alert($thredded-alert-info-color, $thredded-alert-info-background); } %thredded--alert--warning { @include thredded-alert($thredded-alert-warning-color, $thredded-alert-warning-background); }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thredded-0.15.4 | app/assets/stylesheets/thredded/base/_alerts.scss |
thredded-0.15.3 | app/assets/stylesheets/thredded/base/_alerts.scss |