From 6fccb68222379985147f7fc5cc8fd4bc5d95779d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 9 Apr 2021 18:07:48 +0000 Subject: [PATCH] Bug 27695: (follow-up) Add specificity to CSS changes This patch moves the definition of .alert and .error classes into the block for .dialog in order to make sure they don't have an effect beyond the desired scope. The ".closebtn" section is redundant and has been removed. Signed-off-by: Jonathan Druart Signed-off-by: Jonathan Druart (cherry picked from commit c42c24fa03709496d0c21b98fe7db228f02d3983) Signed-off-by: Fridolin Somers --- .../prog/css/src/staff-global.scss | 30 +++++++------------ 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss index 7bd9f477dd..62a8cc24b5 100644 --- a/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss +++ b/koha-tmpl/intranet-tmpl/prog/css/src/staff-global.scss @@ -1754,30 +1754,22 @@ i { text-align: right; } } -} - -.alert, -.error { - background: linear-gradient(to bottom, #FEF8D3 0%, #FFEC91 9%, #FFED87 89%, #F9DC00 100%); - border: 1px solid #E0C726; - color: inherit; - text-align: center; - text-shadow: none; - strong { - color: #900; - } + &.alert, + &.error { + background: linear-gradient(to bottom, #FEF8D3 0%, #FFEC91 9%, #FFED87 89%, #F9DC00 100%); + border: 1px solid #E0C726; + color: inherit; + text-align: center; + text-shadow: none; - // Redefine a new style for Bootstrap's class "close" since we use that already - // Use × - .closebtn { - line-height: 20px; - position: relative; - right: -21px; - top: -2px; + strong { + color: #900; + } } } + .approve, .success { i { -- 2.20.1