From 314fa1c61c3b5b568adda666f435d4808a5ee408 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 16 Nov 2017 10:10:58 -0500 Subject: [PATCH] fixed incorrect final colour when transitioning during alert timeouts, nodebb/nodebb#6069 --- less/modules/alerts.less | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/less/modules/alerts.less b/less/modules/alerts.less index 9ad5444..97168c9 100644 --- a/less/modules/alerts.less +++ b/less/modules/alerts.less @@ -34,9 +34,24 @@ } &.animate { + &.alert-info::before { + background-color: lighten(@brand-info, 25%); + } + + &.alert-warning::before { + background-color: lighten(@brand-warning, 25%); + } + + &.alert-success::before { + background-color: lighten(@brand-success, 25%); + } + + &.alert-danger::before { + background-color: lighten(@brand-danger, 25%); + } + &::before { width: ~"calc(100% + 50px)"; - background-color: lighten(@material-info, 50%); } }