summaryrefslogtreecommitdiff
path: root/Redcore-nighttime/gtk-3.20/scss/widgets/_infobar.scss
blob: bf82db21de382e07cbd556c1835648c9d6d57fbc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@import "button";


/*********
 ! Infobar
**********/

@include exports("infobar") {
    infobar {
        border: 0;

        $types: (
            info: ($info_fg_color, $info_bg_color),
            warning: ($warning_fg_color, $warning_bg_color),
            question: ($question_fg_color, $question_bg_color),
            error: ($error_fg_color, $error_bg_color),
        );

        @each $type, $colors in $types {
            $fg_color: nth($colors, 1);
            $bg_color: nth($colors, 2);

            &.#{$type} {
                &, &:backdrop { // Backdrop button fix: https://github.com/numixproject/numix-gtk-theme/issues/544
                    @include linear-gradient($bg_color);

                    border: 1px solid shade($bg_color, .8);
                    caret-color: currentColor;

                    label, & { color: $fg_color; }
                }

                button {
                    @include button($bg_color, $fg_color);

                    &.close { @extend %close_button; }
                }
            }
        }
    }
}