From 5405a8b5c8d86dbe20ab6af972bc8e77d9854d2f Mon Sep 17 00:00:00 2001 From: Efynox Date: Sun, 5 Jan 2020 13:42:52 +0100 Subject: [PATCH] improvement | notification: add light colors (#2709) * notification: add light and dark colors * notification: add light and dark colors (fix indentation) --- sass/elements/notification.sass | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sass/elements/notification.sass b/sass/elements/notification.sass index 24122e78..32a0ee13 100644 --- a/sass/elements/notification.sass +++ b/sass/elements/notification.sass @@ -34,3 +34,10 @@ $notification-padding: 1.25rem 2.5rem 1.25rem 1.5rem !default &.is-#{$name} background-color: $color color: $color-invert + // If light and dark colors are provided + @if length($pair) >= 4 + $color-light: nth($pair, 3) + $color-dark: nth($pair, 4) + &.is-light + background-color: $color-light + color: $color-dark