-
Notifications
You must be signed in to change notification settings - Fork 0
/
style-switcher.css
84 lines (75 loc) · 1.83 KB
/
style-switcher.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
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
/* Style Switcher Container */
.style-switcher {
position: fixed;
right: 0;
top: 60px;
padding: 15px;
width: 200px;
border: 1px solid gray;
background: var(--bg-black-100);
z-index: 101;
border-radius: 5px;
transition: all 0.3s ease;
transform: translateX(100%);
}
/* Open Style Switcher */
.style-switcher.open {
transform: translateX(0);
}
/* Style Switcher Icon */
.style-switcher .s-icon {
position: absolute;
height: 40px;
width: 40px;
text-align: center;
font-size: 20px;
background: var(--bg-black-100);
color: black;
right: 100%;
border: 1px solid gray;
margin-right: 15px;
cursor: pointer;
transition: all 0.3s ease;
border-radius: 50%;
}
/* Icon Line Height */
.style-switcher .s-icon i {
line-height: 40px;
}
/* Style Switcher Toggler Position */
.style-switcher .style-switcher-toggler {
top: 0;
}
/* Day-Night Toggle Position */
.style-switcher .day-night {
top: 55px;
}
/* Style Switcher Header */
.style-switcher h4 {
margin: 0 0 10px;
color: var(--text-black-700);
font-size: 16px;
font-weight: 600;
text-transform: capitalize;
}
/* Color Options Container */
.style-switcher .colors {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
/* Color Option Style */
.style-switcher .colors span {
display: inline-block;
height: 30px;
width: 30px;
border-radius: 50%;
border: 1px solid transparent;
cursor: pointer;
}
/* Color Options */
.style-switcher .color-1 { background: #ec1839; }
.style-switcher .color-2 { background: #fa5b0f; }
.style-switcher .color-3 { background: #34b182; }
.style-switcher .color-4 { background: #1854b4; }
.style-switcher .color-5 { background: #f021b2; }