aboutsummaryrefslogtreecommitdiff
path: root/.config/swaync/style.css
blob: 29e2d30ebc51f51b8a3291acff386a6cec57c5b9 (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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
@import '../../.cache/wal/colors-waybar.css';

@define-color text            @foreground;
@define-color bg              @color1;
@define-color selected        @color6;
@define-color hover           alpha(@selected, .4);

* {
    outline: none;
    transition: 200ms;
}

.notification-row {
    outline: none;
    margin: 0;
    padding: 0px;
}

.notification-row .notification-background .close-button {
    /* The notification Close Button */
    background: transparent;
    color: @text;
    text-shadow: none;
    box-shadow: none;
    margin-top: 2px;
    margin-right: 2px;
    padding: 0;
    border: none;
    border-radius: 100%;
    min-width: 24px;
    min-height: 24px;
}

.notification-row .notification-background .close-button:hover {
    box-shadow: none;
    background: @hover;
    transition: background 0.15s ease-in-out;
    border: 0px;
}

.notification-row .notification-background .notification {
    /* The actual notification */
    background: @background;
}

.notification-row .notification-background .notification .notification-action, .notification-row .notification-background .notification .notification-default-action {
    color: @text;
}

.notification-row .notification-background .notification .notification-action:hover, .notification-row .notification-background .notification .notification-default-action:hover {
    -gtk-icon-effect: none;
    background: @hover;
}

.notification-group .notification-group-headers {
    /* Notficiation Group Headers */
    margin-top: 10px;
    margin-bottom: 10px;
}

.notification-group .notification-group-headers .notification-group-header {
    font-size: 20px;
    margin-left: 3px;
}

.notification-group.collapsed .notification-row .notification {
    background-color: @background;
}

.notification-group.collapsed:hover .notification-row:not(:only-child) .notification {
    /* Notification Group collapsed, hovered */
    box-shadow: 0 0 0 1px alpha(@hover, 0.3), 0 1px 3px 1px alpha(@hover, 0.3), 0 2px 6px 2px alpha(@hover, 0.3);
}

.control-center {
    /* The Control Center which contains the old notifications + widgets */
    box-shadow: 0px 2px 5px black;
    background: alpha(@background, .55);
    border: 2px solid @selected;
}

.control-center-clear-all {
    /* Clear All button */
    background: @bg;
}

.control-center-clear-all:hover {
    background: @hover;
}

.control-center-clear-all:active {
    background: @selected;
}

/*** Widgets ***/
/* Title widget */
.widget-title {
    background: none;
    margin-top: 15px;
    margin-left: 15px;
    margin-right: 15px;
}

/* Do Not Disturb widget */
.widget-dnd {
    background: none;
    margin-left: 15px;
    margin-right: 15px;
}

.widget-dnd > switch {
    background: @bg;
    font-size: initial;
    border-radius: 12px;
    box-shadow: none;
    padding: 2px;
}

.widget-dnd > switch:hover {
    background: @hover;
}

.widget-dnd > switch:checked {
    background: @selected;
}

.widget-dnd > switch slider {
    background: @text;
    border-radius: 12px;
}

/* Media Player widget */
@define-color mpris-album-art-overlay rgba(0, 0, 0, 0.55);
@define-color mpris-button-hover rgba(0, 0, 0, 0.50);
.widget-mpris {
}

.widget-mpris .widget-mpris-player {
    padding: 10px;
    margin: 8px 15px;
    background-color: @mpris-album-art-overlay;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.75);
    border: 2px;
}

.widget-mpris .widget-mpris-player .widget-mpris-title {
    font-size: 16px;
}

.widget-mpris .widget-mpris-player .widget-mpris-subtitle {
    font-size: 14px;
}

/* Buttons widget */
.widget-buttons-grid {
    background-color: alpha(@color2, 0.5);
}

.widget-buttons-grid > flowbox > flowboxchild > button {
    background: alpha(@color2, 0.5);
    border-radius: 12px;
    min-width: 45px;
}

.widget-buttons-grid > flowbox > flowboxchild > button:hover {
    background: @hover;
}

.widget-buttons-grid > flowbox > flowboxchild > button:active {
    background: @selected;
}

.widget-buttons-grid > flowbox > flowboxchild > button.toggle:checked {
    /* style given to the active toggle button */
    background: red;
}