-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstyle.css
201 lines (139 loc) · 2.62 KB
/
style.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
189
190
191
192
193
194
195
196
197
198
199
200
201
/*
自定义CSS
*/
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background-image: linear-gradient(rgba(70, 25, 25, 0.3), rgba(70, 25, 25, 0.3)), url(BG.jpg);
background-size: cover;
font-family: Lato;
font-weight: 300;
position: relative;
height: 100vh;
}
/*border-radius圓角
transform 能旋轉、傾斜、縮放變形 box
translateX(o)指定元素由參考點橫向移動 o 距離。
translateY(o)指定元素由參考點縱向移動 o 距離。
box-shadow 產生陰影效果或光暈效果的特性
*/
.container {
width: 900px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background-color: #fff;
box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.3);
overflow: hidden;
border-radius: 20px;
}
.panel-1,
.panel-2 {
width: 50%;
float: left;
height: 590px;
padding: 100px;
}
.winner1 {
top: -65px;
position: relative;
width: 55px;
z-index: 1;
}
.winner2 {
top: -65px;
position: relative;
width: 55px;
z-index: 1;
}
.player {
font-size: 40px;
text-align: center;
letter-spacing: 2px;
font-weight: 100;
margin-top: 20px;
position: relative;
}
.score {
margin-top: 55px;
text-align: center;
font-size: 80px;
font-weight: 100;
color: #FF8525;
margin-bottom: 80px;
}
.active {
background-color: #f7f7f7;
}
.active .player {
font-weight: 300;
}
/*.active class 底下的 .player class 之後加上此style*/
.active .player::after {
content: "\2022";
font-size: 47px;
position: absolute;
color: #ff8525;
top: -7px;
right: 10px;
}
.box {
background-color: #ff8525;
color: #fff;
width: 40%;
margin: 0 auto;
padding: 12px;
text-align: center;
border-radius: 5px;
}
.label {
font-size: 18px;
}
.totalScore {
font-size: 35px;
}
/*cursor改變滑鼠游漂形態成pointer*/
button {
position: absolute;
left: 50%;
transform: translateX(-50%);
color: #555;
background: none;
border: none;
font-family: Lato;
font-size: 20px;
text-transform: uppercase;
cursor: pointer;
font-weight: 300;
transition: background-color 0.3s, color 0.3s;
}
button:hover {
font-weight: 400;
}
button:hover i {
margin-right: 20px;
}
button:focus {
outline: none;
}
.newGame {
top: 55px;
font-size: 30px;
}
.roll {
top: 430px;
font-size: 30px;
}
.dice {
position: absolute;
left: 50%;
top: 235px;
transform: translateX(-50%);
height: 100px;
box-shadow: 0px 10px 60px rgba(0, 0, 0, 0.10);
border-radius: 5px;
}