-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgtk-switch.css
59 lines (40 loc) · 1.31 KB
/
gtk-switch.css
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
/* Using switch widget as a radio button:
Slider button is transparent and as the switch
state is changed eg checked or unchecked the switch
background image changes instead. */
/* Unchecked, or switched off background. Changing "color:" to transparent
hides the off and on symbols */
switch {
min-width: 100px;
min-height: 24px;
color: transparent;
outline-offset: -4px;
background-color: transparent;
background-image: url("assets/switch.png"); }
/* Checked, or switched on background */
switch:checked {
min-width: 100px;
min-height: 24px;
color: transparent;
outline-offset: -4px;
background-color: transparent;
background-image: url("assets/switch_checked.png"); }
/* Disabled, switched on background */
switch:checked :disabled {
min-width: 100px;
min-height: 24px;
color: transparent;
outline-offset: -4px;
background-color: transparent;
background-image: url("assets/switch_checked_disabled.png"); }
/* Disabled, switched off background */
switch:disabled {
color: transparent;
outline-offset: -4px;
background-color: transparent;
background-image: url("assets/switch_disabled.png"); }
/* Make switch button transparent */
switch slider {
background-color: transparent; }
switch:disabled slider {
background-color: transparent; }