From: Efynox Date: Sun, 5 Jan 2020 12:42:52 +0000 (+0100) Subject: improvement | notification: add light colors (#2709) X-Git-Tag: 0.8.1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5405a8b5c8d86dbe20ab6af972bc8e77d9854d2f;p=thirdparty%2Fbulma.git improvement | notification: add light colors (#2709) * notification: add light and dark colors * notification: add light and dark colors (fix indentation) --- diff --git a/sass/elements/notification.sass b/sass/elements/notification.sass index 24122e78d..32a0ee132 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