-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy paththeme.css
More file actions
149 lines (130 loc) · 2.48 KB
/
theme.css
File metadata and controls
149 lines (130 loc) · 2.48 KB
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
:root {
--timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
main {
overflow: auto;
z-index: 2;
background: inherit;
position: relative;
}
.datails_title {
font-size: 20px;
font-weight: 600;
}
.page {
position: relative;
padding: 3em;
background: inherit;
box-shadow: 0 10px 100px 0 #2224261a;
transition: box-shadow 0.2s linear;
}
.contacts li a {
color: inherit;
transition: color 0.2s ease-in-out;
}
.details > input::after {
content: " ";
border-top: 0.35em solid transparent;
border-bottom: 0.35em solid transparent;
border-left: 0.5em solid #0a0db8;
border-right: 0.5em solid #0a0db8;
color: inherit;
position: relative;
width: 0.7em;
height: 0.9em;
cursor: pointer;
}
.divider.fat {
color: inherit;
border-top: 0.3571428571428571em solid;
width: 33%;
}
body {
margin: 0;
transition: background-color 150ms var(--timing-function);
}
body.light-theme {
background: #fff;
color: #333;
}
body.dark-theme {
background: #02011ab0;
color: #fff;
}
/* THEME SWITCH */
.theme-switch {
display: inline-flex;
position: fixed;
z-index: 100;
align-items: center;
justify-content: center;
background: transparent;
}
.theme-switch__icon {
color: currentColor;
height: 24px;
width: 24px;
margin-right: 8px;
margin-left: 8px;
}
.theme-switch__control {
display: flex;
align-items: center;
flex-shrink: 0;
position: relative;
width: 64px;
height: 32px;
border-radius: 50em;
padding: 3px 0;
}
.theme-switch__toggle {
position: absolute;
left: 0;
top: 0;
margin: 0;
padding: 0;
opacity: 0;
height: 0;
width: 0;
pointer-events: none;
}
.theme-switch__track {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
color: transparent;
user-select: none;
background-color: #333;
border-radius: inherit;
z-index: 1;
cursor: pointer;
}
.theme-switch__marker {
position: relative;
background-color: #fff;
width: 26px;
height: 26px;
border-radius: 50%;
z-index: 2;
pointer-events: none;
box-shadow: 0 1px 1px #00000040;
transform: translateX(3px);
transition: transform 250ms var(--timing-function);
}
.theme-switch__toggle:checked + .theme-switch__track {
background-color: #d3d3d4;
}
.theme-switch__toggle:checked ~ .theme-switch__marker {
transform: translateX(35px);
}
.theme-switch__toggle:focus + .theme-switch__track,
.theme-switch__toggle:active + .theme-switch__track {
box-shadow: 0 0 0 3px #2196f3;
}