-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.css
188 lines (182 loc) · 3.06 KB
/
main.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
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
@charset "UTF-8";
/**
* @author Silence ([email protected])
* @date 2017-08-03 22:52:33
*/
html {
height: -webkit-fill-available;
}
body {
margin: 0px;
height: -webkit-fill-available;
}
/* 整个容器*/
.flip-container {
width: 100%;
height: -webkit-fill-available;
}
@media screen and (min-width:1099px) {
.flip-container {
width: 420px !important;
position: absolute;
left: 50%;
transform: translateX(-50%);
}
.time {
font-size: 1.8em !important;
}
.phead {
font-size: 1.4em !important;
}
.table table {
font-size: 1.4em !important;
}
.btn {
font-size: 1.4em !important;
}
#vertical {
font-size: 5rem !important;
}
#d_table td {
height: 3rem !important;
}
}
/* 翻转速度设置 */
.flipper {
width: 100%;
transition: 1s;
transform-style: preserve-3d;
position: relative;
}
/* 翻转页的时候隐藏背面 */
.front, .back {
width: 100%;
height: -webkit-fill-available;
backface-visibility: hidden;
position: absolute;
top: 0;
left: 0;
}
/* 前面板放在上面 */
.front {
z-index: 2;
transform: rotateY(0deg);
background-color: white;
}
/* 背面初始的时候隐藏 */
.back {
transform: rotateY(180deg);
background-color: black;
}
body {
background-color: #454545c7;
}
.btn {
border: 1px solid grey;
width: 40%;
border-radius: 50px;
text-align: center;
height: 5%;
//padding-top: 6px;
color: grey;
font-size: 2em;
position: absolute;
bottom: 10%;
left: 30%;
}
#death, #life {
position: relative;
top: 50%;
transform: translateY(-50%);
}
.btn:hover {
background: #e5e5e5;
}
.clock {
background-image: url('src/clock_bg.png');
background-position: center 10%;
background-size: 38%;
background-repeat: no-repeat;
position: fixed;
width: 100%;
height: 100%;
}
.death_clock {
background-image: url('src/death_clock_bg.png');
background-position: center 10%;
background-size: 38%;
background-repeat: no-repeat;
position: fixed;
width: 100%;
height: 100%;
}
#cover {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 8.5%;
width: 35%;
//height: 35vw;
color: #80808057;
}
#vertical {
font-size: 9rem;
top: 50%;
position: absolute;
transform: translateY(-50%);
width: 100%;
text-align: center;
}
#canvas {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 8.5%;
width: 35%;
}
#d_canvas {
position: absolute;
left: 50%;
transform: translateX(-50%);
top: 8.5%;
width: 35%;
}
.time {
position: absolute;
top: 40%;
font-size: 2.3em;
text-align: center;
width: 100%;
}
.phead {
position: absolute;
top: 50%;
left: 5%;
font-size: 1.8em;
color: grey;
}
.table {
position: absolute;
top: 58%;
width: 90%;
left: 5%;
}
.table table {
border-collapse: collapse;
width: 100%;
text-align: center;
font-size: 1.9em;
}
#table td {
border: 1px solid grey;
width: 33.3%;
}
#d_table td {
border: 1px solid grey;
width: 50%;
height: 4.5rem;
color: grey;
}
.num {
margin: 0px;
}