summaryrefslogtreecommitdiff
path: root/Redcore-daylight/gtk-3.20/scss/widgets/_window.scss
blob: c58a1b370a4d6b53f8bbe0987d01929dc45701f5 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/**************
 ! Window frame
***************/

@include exports("window") {
    decoration {
        $_wm_border: if($variant == 'light', transparentize($black, .77), transparentize($borders_color, .1));

        border-radius: $roundness $roundness 0 0;
        // lamefun trick to get rounded borders regardless of CSD use
        //border-width: 0;

        //box-shadow: 0 3px 9px 1px transparentize($black, .3), 0 0 0 1px $wm_border_focused; //doing borders with box-shadow
        /* this is used for the resize cursor area */
        //margin: $spacing * 3;

        border-width: $spacing % 2;
        border-style: solid;
        //border-color: $wm_border_focused;
        //@TODO:
        border-color: $wm_border_unfocused;


        &:backdrop {
            //box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px transparentize($black, .6), 0 0 0 1px $wm_border_unfocused;
            border-color: $wm_border_unfocused;
            transition: 200ms ease-out;
        }

        .maximized &, .fullscreen &, .tiled & { border-radius: 0; }

        .popup & { box-shadow: none; }

        // this needs to be transparent
        // see bug #722563
        // server-side decorations as used by mutter
        // Fixed gtk-3.18 Unity bug (https://github.com/numixproject/numix-gtk-theme/issues/270)
        .ssd & { box-shadow: 0 0 0 1px $wm_border_focused; } //just doing borders, wm draws actual shadows

        .solid-csd & {
            border-radius: 0;
            //margin: 1px;
            //background-color: $bg_color;
            // Unity/compiz regression: Issue: https://github.com/numixproject/numix-gtk-theme/issues/206
            box-shadow: none;
        }

        .csd.popup & {
            border-radius: 0;
            box-shadow: 0 1px 2px transparentize($black, .8), 0 0 0 1px transparentize($_wm_border, .1);
        }

        tooltip.csd & {
            border-radius: $roundness;
            box-shadow: none;
        }

        messagedialog.csd & {
            border-radius: $roundness;
            box-shadow: 0 1px 2px transparentize($black, .8), 0 0 0 1px transparentize($_wm_border, .1);
        }
    }
}