forked from Stigmatoz/web-activity-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
223 lines (220 loc) · 5.04 KB
/
main.css
File metadata and controls
223 lines (220 loc) · 5.04 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
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
::-webkit-scrollbar-track {
border-radius: 10px;
background-color: #f5f5f5;
}
::-webkit-scrollbar {
width: 7px;
background-color: #f5f5f5;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #7c7c7c;
}
html,
body {
width: 600px;
height: 590px;
padding: 0;
margin: 0;
}
.tabs {
}
.tabs input[name='tab-control'] {
display: none;
}
.tabs .content section h2,
.tabs ul li label {
font-size: 15px;
color: #428bff;
}
.tabs ul {
list-style-type: none;
padding-left: 0;
display: flex;
flex-direction: row;
margin-bottom: 10px;
justify-content: space-between;
align-items: flex-end;
flex-wrap: wrap;
}
.tabs ul li {
box-sizing: border-box;
flex: 1;
width: 25%;
padding: 0 10px;
text-align: center;
}
.tabs ul li label {
transition: all 0.3s ease-in-out;
color: #929daf;
padding: 5px auto;
overflow: hidden;
display: block;
cursor: pointer;
transition: all 0.2s ease-in-out;
white-space: nowrap;
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.tabs ul li label br {
display: none;
}
.tabs ul li label img {
filter: brightness(0) saturate(100%) invert(67%) sepia(15%) saturate(342%) hue-rotate(178deg)
brightness(91%) contrast(89%);
vertical-align: bottom;
margin-right: 0.2em;
transition: all 0.2s ease-in-out;
}
.tabs ul li label:hover,
.tabs ul li label:focus,
.tabs ul li label:active {
outline: 0;
color: #bec5cf;
}
.tabs ul li label:hover img,
.tabs ul li label:focus img,
.tabs ul li label:active img {
filter: #bec5cf;
}
.tabs .slider {
position: relative;
width: 25%;
transition: all 0.33s cubic-bezier(0.38, 0.8, 0.32, 1.07);
}
.tabs .slider .indicator {
position: relative;
width: 50px;
max-width: 100%;
margin: 0 auto;
height: 4px;
background: #428bff;
border-radius: 1px;
}
.tabs .content {
margin-top: 10px;
}
.tabs .content section {
display: none;
-webkit-animation-name: content;
animation-name: content;
-webkit-animation-direction: normal;
animation-direction: normal;
-webkit-animation-duration: 0.3s;
animation-duration: 0.3s;
-webkit-animation-timing-function: ease-in-out;
animation-timing-function: ease-in-out;
-webkit-animation-iteration-count: 1;
animation-iteration-count: 1;
line-height: 1.4;
}
.tabs .content section h2 {
color: #428bff;
display: none;
}
.tabs .content section h2::after {
content: '';
position: relative;
display: block;
width: 30px;
height: 3px;
background: #428bff;
margin-top: 5px;
left: 1px;
}
.tabs input[name='tab-control']:nth-of-type(1):checked ~ ul > li:nth-child(1) > label {
cursor: default;
color: #428bff;
}
.tabs input[name='tab-control']:nth-of-type(1):checked ~ ul > li:nth-child(1) > label img {
filter: brightness(0) saturate(100%) invert(59%) sepia(82%) saturate(4677%) hue-rotate(202deg)
brightness(103%) contrast(101%);
}
.tabs input[name='tab-control']:nth-of-type(1):checked ~ .slider {
transform: translateX(17%);
}
.tabs input[name='tab-control']:nth-of-type(1):checked ~ .content > section:nth-child(1) {
display: block;
}
.tabs input[name='tab-control']:nth-of-type(2):checked ~ ul > li:nth-child(2) > label {
cursor: default;
color: #428bff;
}
.tabs input[name='tab-control']:nth-of-type(2):checked ~ ul > li:nth-child(2) > label img {
filter: brightness(0) saturate(100%) invert(59%) sepia(82%) saturate(4677%) hue-rotate(202deg)
brightness(103%) contrast(101%);
}
.tabs input[name='tab-control']:nth-of-type(2):checked ~ .slider {
transform: translateX(150%);
}
.tabs input[name='tab-control']:nth-of-type(2):checked ~ .content > section:nth-child(2) {
display: block;
}
.tabs input[name='tab-control']:nth-of-type(3):checked ~ ul > li:nth-child(3) > label {
cursor: default;
color: #428bff;
}
.tabs input[name='tab-control']:nth-of-type(3):checked ~ ul > li:nth-child(3) > label img {
filter: brightness(0) saturate(100%) invert(59%) sepia(82%) saturate(4677%) hue-rotate(202deg)
brightness(103%) contrast(101%);
}
.tabs input[name='tab-control']:nth-of-type(3):checked ~ .slider {
transform: translateX(290%);
}
.tabs input[name='tab-control']:nth-of-type(3):checked ~ .content > section:nth-child(3) {
display: block;
}
@-webkit-keyframes content {
from {
opacity: 0;
transform: translateY(5%);
}
to {
opacity: 1;
transform: translateY(0%);
}
}
@keyframes content {
from {
opacity: 0;
transform: translateY(5%);
}
to {
opacity: 1;
transform: translateY(0%);
}
}
.tabs ul li label {
white-space: initial;
}
.tabs ul li label img {
height: 1.2em;
}
.tooltip {
position: relative;
display: inline-block;
vertical-align: middle;
}
.tooltip .tooltiptext {
font-size: 11px;
font-weight: 500;
visibility: hidden;
width: 180px;
background-color: #555;
color: #fff;
text-align: center;
padding: 10px 10px;
border-radius: 6px;
position: absolute;
z-index: 1;
transform: translate(-55%) translateY(-125%);
opacity: 0;
transition: opacity 0.3s;
}
.tooltip:hover .tooltiptext {
visibility: visible;
opacity: 1;
}