File: Window.scss

package info (click to toggle)
granite-7 7.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,876 kB
  • sloc: xml: 86; makefile: 9
file content (60 lines) | stat: -rw-r--r-- 1,367 bytes parent folder | download | duplicates (2)
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
window {
    background-color: bg_color(2);
    color: $fg-color;

    &.csd {
        border-radius: rem($window_radius);
        box-shadow:
            highlight(),
            0 0 0 1px $toplevel-border-color,
            shadow(4);

        &:backdrop {
            box-shadow:
                highlight(),
                0 0 0 1px $toplevel-border-color,
                shadow(2);
        }

        // black behind corners
        &.maximized {
            box-shadow: 0 0 0 rem($window_radius / 2) black;
        }

        &.tiled-right:not(.maximized),
        &.tiled-left:not(.maximized) {
            box-shadow:
                0 0 0 1px $toplevel-border-color,
                shadow(2);
        }

        &.tiled-right:not(.maximized) {
            &.tiled-top {
                border-top-left-radius: 0;
            }

            &.tiled-bottom {
                border-bottom-left-radius: 0;
            }
        }

        &.tiled-left:not(.maximized) {
            &.tiled-top {
                border-top-right-radius: 0;
            }

            &.tiled-bottom {
                border-bottom-right-radius: 0;
            }
        }

        &.fullscreen {
            border-radius: 0;
        }
    }

    &.ssd {
        border-radius: $window_radius $window_radius 0 0;
        box-shadow: 0 0 0 1px $toplevel-border-color;
    }
}