summaryrefslogtreecommitdiff
path: root/scss/bar.scss
blob: f776f199b026b6d71a7dba676dde9b9f9405566f (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
@use "sass:color";
@use "lib";
@use "scheme";
@use "font";

.bar {
    @include lib.rounded(10, $tl: 0, $tr: 0);
    @include lib.border(scheme.$rosewater, 0.7, 2);
    @include font.mono;

    border-top: none;
    background-color: scheme.$base;
    padding: lib.s(8) lib.s(20);
    font-size: lib.s(14);

    @include lib.spacing(10);

    & > * {
        @include lib.spacing(10);
    }

    .module {
        @include lib.rounded(5);

        padding: lib.s(3) lib.s(8);
        background-color: scheme.$surface0;

        @include lib.spacing;
    }

    label.icon {
        font-size: lib.s(18);
    }

    .os-icon {
        @include lib.border(scheme.$yellow);

        color: scheme.$yellow;
        font-size: lib.s(14);
        padding-right: lib.s(12);
    }

    .active-window {
        color: scheme.$pink;
    }

    .media-playing {
        color: scheme.$lavender;

        @include lib.spacing(8);

        icon {
            font-size: lib.s(16);
        }
    }

    .workspaces {
        @include lib.border(scheme.$maroon);

        padding: lib.s(3) lib.s(18);

        & > * {
            @include lib.rounded(2);
            @include lib.element-decel;

            min-width: lib.s(20);
            min-height: lib.s(4);
            background-color: scheme.$surface1;

            &.occupied {
                background-color: scheme.$sky;
            }

            &.focused {
                min-width: lib.s(30);
                background-color: scheme.$mauve;
            }
        }
    }

    .tray {
        font-size: lib.s(15);

        @include lib.spacing(10);
    }

    .status-icons {
        color: scheme.$rosewater;
    }

    .pkg-updates {
        color: scheme.$blue;
    }

    .notif-count {
        color: scheme.$mauve;
    }

    .date-time {
        color: scheme.$peach;
    }

    .power {
        @include lib.border(scheme.$red);
        @include lib.element-decel;
        @include font.icon;

        color: scheme.$red;
        font-weight: bold;
        font-size: lib.s(16);

        &:hover,
        &:focus {
            background-color: scheme.$surface1;
        }

        &:active {
            background-color: scheme.$surface2;
        }
    }
}