-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathclock.css
108 lines (94 loc) · 1.67 KB
/
clock.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
body {
margin: 0;
overflow-x: hidden;
font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
display: flex;
width: 100%;
height: 100vh;
flex-direction: column;
justify-content: space-evenly;
overflow: hidden;
}
.main {
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
width: 100%;
height: 100%;
}
.top {
text-align: center;
font-size: 4em;
}
.clock {
height: 300px;
text-align: center;
}
.bottom {
text-align: center;
font-size: 4em;
transform-origin: center;
position: relative;
/*animation: 0.2s linear 0s infinite normal none paused vibrate;*/
}
#time-left {
position: relative;
}
.smoke-img {
position: absolute;
opacity: 0;
top: 0%;
left: 0%;
transform: translateY(calc(-100% + 1em));
height: 200%;
width: 100%;
z-index: -1;
filter: blur(5px);
}
.sidebar {
position: fixed;
box-sizing: border-box;
}
.sidebar.left {
top: 10%;
height: 80%;
left: 52px;
width: 40px;
border: 2px solid black;
border-radius: 5px;
background: linear-gradient(180deg, #009ef7, #8aaaff, #fa8cff);
}
.sidebar.right {
right: 52px;
top: 50%;
height: 60%;
transform: translateY(-50%);
font-size: 2em;
display: flex;
flex-direction: column;
justify-content: space-around;
}
.valuebar {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: #ffffffe0;
border-radius: 3px;
}
/*@keyframes vibrate {
0% {
transform: rotate(0deg);
}
33% {
transform: rotate(1deg) translate(1px, 2px);
}
67% {
transform: rotate(-1deg) translate(0px, -3px);
}
100% {
transform: rotate(0deg) translate(-2px, 0px);
}
}*/