-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclick.css
More file actions
250 lines (218 loc) · 5.19 KB
/
click.css
File metadata and controls
250 lines (218 loc) · 5.19 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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
body {
background-image: url('clickbackground.png');
background-size: cover;
background-position: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f0f0f0;
position: relative;
overflow: hidden;
}
#connectButton {
margin-bottom: 20px;
font-size: 30px;
width: 180px;
height: 60px;
background-color: #006aff;
color: white;
border: none;
border-radius: 10px;
cursor: pointer;
font-family: 'Arial', sans-serif; /* 修改字體 */
font-weight: bold; /* 設置為粗體 */
transition: background-color 0.3s, box-shadow 0.3s;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
#connectButton:hover {
background-color: #004271;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
#connectButton:active {
background-color: #3e8e41;
transform: scale(0.98);
}
.button {
position: relative;
top: -10px;
border: none;
background: none;
cursor: pointer;
padding: 0;
margin: 5px;
}
.button img {
width: 80px; /* 設定圖片大小 */
height: auto; /* 保持比例 */
}
.button img:hover {
transform: scale(1.1); /* 鼠標懸停時放大效果 */
transition: transform 0.1s; /* 過渡效果 */
}
.button img:active {
transform: scale(0.9); /* 點擊時縮小效果 */
}
#record {
margin: 20px;
font-size: 30px;
width: 300px;
text-align: center;
color: #333;
font-family: 'Arial', sans-serif; /* 修改字體 */
font-weight: bold; /* 設置為粗體 */
}
#controls {
display: flex;
justify-content: center;
align-items: center;
gap: 10px; /* 按鈕之間的間距 */
position: relative;
top: 40px; /* 控制整體位置 */
font-family: 'Arial', sans-serif; /* 修改字體 */
font-weight: bold; /* 設置為粗體 */
}
#clearButton {
width: 100px;
height: 50px;
font-size: 30px;
/* position: relative;
top: -10px; */
border: none;
border-radius: 10px;
cursor: pointer;
transition: background-color 0.3s, box-shadow 0.3s;
color: white;
background-color: #a0a7ae;
}
#sendButton {
width: 200px;
height: 50px;
font-size: 30px;
/* position: relative; */
/* top: -60px;
left: 120px; */
border: none;
border-radius: 10px;
cursor: pointer;
transition: background-color 0.3s, box-shadow 0.3s;
color: white;
background-color: #ffa200;
}
#clearButton:hover {
background-color: #3a3a3a;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
#sendButton:hover {
background-color: #eb6f0a;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
#sendButton:active {
background-color: #fb6e09;
transform: scale(0.98);
}
#beeButton {
border: none;
background: none;
cursor: pointer;
padding: 0;
position: absolute;
top:3%;
left:10px;
text-align: center;
}
#beeButton img {
width: 100px; /* 設定寬度 */
height: auto; /* 高度自動,保持比例 */
}
#beeButton :hover {
transform: scale(1.05); /* 鼠標懸停時放大效果 */
}
#beeButton span {
display: block; /* 讓文字在圖片下方 */
font-size: 16px; /* 設定字體大小 */
margin-top: 5px; /* 增加文字與圖片之間的間距 */
color: #333; /* 字體顏色 */
}
#HBDButton {
border: none;
background: none;
cursor: pointer;
padding: 0;
position: absolute;
top:3%;
left:130px;
}
#HBDButton img {
width: 100px; /* 設定寬度 */
height: auto; /* 高度自動,保持比例 */
}
#HBDButton :hover {
transform: scale(1.05); /* 鼠標懸停時放大效果 */
}
.bopomofo {
font-size: 12px; /* 設定注音字體大小 */
color: #020202; /* 注音顏色 */
}
#regressionButton {
width: 100px;
height: 50px;
font-size: 30px;
/* position: relative;
top: -60px;
left:0px; */
border: none;
border-radius: 10px;
cursor: pointer;
transition: background-color 0.3s, box-shadow 0.3s;
color: white;
background-color: #a0a7ae;
}
#regressionButton:hover{
background-color: #424242;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}
/* 在寬度小於768px時進行樣式調整 */
@media (max-width: 1000px) {
#connectButton, #clearButton, #sendButton, #regressionButton {
width: 110px; /* 調整按鈕寬度 */
height: auto; /* 調整按鈕高度 */
font-size: 22px; /* 調整字體大小 */
}
#buttonContainer .button img , #beeButton img, #HBDButton img{
width: 60px; /* 調整圖片大小 */
}
#beeButton {
left: 3%;
}
#HBDButton{
left: 12%;
}
#record {
font-size: 20px; /* 調整紀錄文字大小 */
position: relative;
top: -20px;
}
#controls {
width: auto; /* 自動適應寬度 */
left: 20%; /* 居中對齊 */
top:-20px;
transform: translateX(-50%);
font-size: 20px;
}
#sendButton {
width: 100px;
height: auto;
top:20px;
left: 100px;
font-size: 20px;
}
#clearButton {
width: 80px;
height: auto;
top:20px;
font-size: 20px;
left:80px;
}
}