Summary Files Commits Branches @commit @diff @stats
path: root / src / _toasts.scss
diff options
context:
space:
mode:
1 files changed, 42 insertions, 0 deletions
-rw-r--r--src/_toasts.scss42
diff --git a/src/_toasts.scss b/src/_toasts.scss
new file mode 100644
index 0000000..99b2e2a
--- /dev/null
+++ b/src/_toasts.scss
@@ -0,0 +1,42 @@
+// Toasts
+.toast {
+ @include toast-variant($dark-color);
+ border: $border-width solid $dark-color;
+ border-radius: $border-radius;
+ color: $light-color;
+ display: block;
+ padding: $layout-spacing;
+ width: 100%;
+
+ &.toast-primary {
+ @include toast-variant($primary-color);
+ }
+
+ &.toast-success {
+ @include toast-variant($success-color);
+ }
+
+ &.toast-warning {
+ @include toast-variant($warning-color);
+ }
+
+ &.toast-error {
+ @include toast-variant($error-color);
+ }
+
+ a {
+ color: $light-color;
+ text-decoration: underline;
+
+ &:focus,
+ &:hover,
+ &:active,
+ &.active {
+ opacity: .75;
+ }
+ }
+
+ .btn-clear {
+ margin: 2px -2px 2px 4px;
+ }
+}