This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsignal-checker.css
488 lines (462 loc) · 10.6 KB
/
signal-checker.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
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
/* 色指定 */
:root {
/* colors */
--primary_color: #FF4D77;
--secondary_color: #426BD4;
--white: #FFFFFF;
--BG: #FFFFFF;
--gray: #616274;
--dark_gray: #D0D2E0;
--light-gray: #EFF1F8;
--black: #373845;
--secondary_color_dark: #2247A7;
/* size */
--loader_size: 5em;
}
/* 文書全体での共通書式 */
body {
color: var(--black);
margin: 0px;
overflow-y: hidden;
}
a {
color: var(--secondary_color);
text-decoration: underline;
overflow-wrap: anywhere;
}
a:hover {
color: var(--secondary_color_dark);
}
/* デバッグ用情報表示場所 */
nav.debug {
visibility: hidden;
/* 背景色 */
background-color: var(--dark_gray);
/* 位置は画面の右下 */
position: absolute;
right: 0;
bottom: 0;
}
details.debug {
border: 1px solid #aaa;
border-radius: 8px;
padding: 0 0 0 .5em;
}
summary.debug {
font-weight: bold;
}
/* 画面幅による切り分け */
@media screen and (max-width:640px) {
/* 画面サイズが640pxまではここを読み込む */
:root {
--window-width: calc(100% - 16px * 2);
--window-width-narrow: calc(100%);
--ul_align: column;
--half_padding: 32px;
--half_width: calc(100% - var(--half_padding) * 2);
--full_width: calc(100% - var(--half_padding) * 2);
}
.big_logo {
width: 225px;
height: 20px;
}
.heading_16px_150p_bold, .text_14px_150p_fv {
text-align: left;
}
}
@media screen and (min-width:640px) {
/* 画面サイズが640px以上はここを読み込む */
:root {
--window-width: 640px;
--window-width-narrow: 600px;
--ul_align: row;
--half_padding: 20px;
--half_width: calc(50% - var(--half_padding) * 2);
--full_width: calc(100% - var(--half_padding) * 2);
}
.big_logo {
width: 428px;
height: 38px;
}
.heading_16px_150p_bold, .text_14px_150p_fv {
text-align: center;
}
}
/* 文字のスタイル */
.heading_32px_150p_bold {
font-style: normal;
font-weight: bold;
font-size: 32px;
line-height: 150%;
text-align: center;
}
.heading_28px_150p_bold,
.heading_28px_150p_bold_narrow {
font-style: normal;
font-weight: bold;
font-size: 28px;
line-height: 150%;
text-align: center;
}
.heading_28px_150p_bold_narrow {
width: var(--window-width-narrow);
margin-right: auto;
margin-left: auto;
}
.heading_20px_150p_bold {
font-style: normal;
font-weight: bold;
font-size: 20px;
line-height: 150%;
text-align: center;
}
.heading_16px_150p_bold {
font-style: normal;
font-weight: bold;
font-size: 16px;
line-height: 150%;
}
.text_16px_150p {
font-style: normal;
font-weight: normal;
font-size: 16px;
line-height: 150%;
text-align: left;
}
.text_14px_150p,
.text_14px_150p_fv {
font-style: normal;
font-weight: normal;
font-size: 14px;
line-height: 150%;
}
.text_14px_150p {
text-align: left;
}
/* 見出しの左脇に付ける線 */
.heading_mark {
border-left: solid 4px var(--black);
padding-left: 8px;
/* margin-left: var(--half_padding); */
}
/* 全画面共通のフッタの書式設定 */
.footer {
height: 52px;
/* 文字サイズとセンタリングを指定 */
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 18px;
text-align: center;
/* 画面最下部に配置する */
position: relative;
top: 80px;
left: 50%;
margin-right: -50%;
transform: translate(-50%);
}
/* スキャン停止時用ポップアップ */
.stop_scan_popup {
/* 背景色 ※別途指定を受ける */
background-color: var(--light-gray);
/* 画面中央に配置する */
position: absolute;
left: 50%;
margin-right: -50%;
transform: translate(-50%);
top: 10%;
/* 画面の8割を埋める */
height: 80%;
width: 80%;
padding: 0px;
/* 境界線は黒で角を丸める */
border: 1px solid var(--dark_gray);
border-radius: 16px;
/* 中身は左右センタリングする */
text-align: center;
/* 最初は表示しない */
visibility: hidden;
/* 縦にはみ出す場合はスクロールさせて縦にのばさせない */
overflow-y: auto;
/* 横のスクロールバーは消す */
overflow-x: hidden;
/* 中身をセンタリングする */
display: flex;
justify-content: center;
align-items: center;
}
/* 表示するオブジェクトを切り替えるための箱 */
.window_box_boot,
.window_box_main {
/* 画面中央に配置する */
position: absolute;
left: 50%;
margin-right: -50%;
transform: translate(-50%);
/* フッタ以外の全画面を埋める */
height: 100%;
width: 100%;
padding: 0px;
/* 中身は左右センタリングする */
text-align: center;
/* 最初は表示しない */
visibility: hidden;
/* 縦にはみ出す場合はスクロールさせて縦にのばさせない */
overflow-y: auto;
/* 横のスクロールバーは消す */
overflow-x: hidden;
}
.window_box_boot {
background-color: var(--light-gray);
}
.window_box_main {
background-color: var(--BG);
}
.window_box_content {
width: var(--window-width);
margin: 0 auto;
}
/* 操作をするためのボタン */
.touch_button {
background: var(--secondary_color);
box-shadow: 4px 10px 25px rgba(12, 21, 255, 0.25);
border-radius: 100px;
font-style: normal;
font-weight: bold;
font-size: 16px;
height: 48px;
width: 263px;
margin: 0 auto;
text-align: center;
display: table;
color: var(--white);
}
.touch_button:hover {
background-color: var(--secondary_color_dark);
}
.touch_button_inner {
display: table-cell;
vertical-align: middle;
}
/* アコーディオン表示 */
.accordion_header {
width: var(--window-width);
margin: 0 auto;
background: var(--white);
border-radius: 10px 10px 10px 10px;
padding: 24px;
display: none; /* スクリプトで display: flex; に切り替える */
flex-direction: row;
align-items: center;
}
.accordion_content {
width: var(--window-width);
margin: 0 auto;
background: var(--white);
border-radius: 0px 0px 10px 10px;
border-top: 1px solid var(--dark_gray);
padding: 24px;
text-align: left;
display: none;
}
/* 稼働中ヘッダ */
.working_header {
margin: 0 auto;
display: flex;
flex-direction: row;
justify-content: space-between;
}
/* COCOA情報,tips */
.column_box {
background-color: var(--light-gray);
width: var(--window-width);
margin: 0 auto;
border-radius: 10px;
}
.content_box {
display: flex;
justify-content: center;
flex-direction: var(--ul_align);
}
.content_text_full {
text-align: left;
width: var(--full_width);
padding: var(--half_padding);
}
.content_text_half {
text-align: left;
width: var(--half_width);
padding: var(--half_padding);
}
/* tipsのスライドアニメーション */
@keyframes tipsSlide {
0% {left: 0;}
45% {left: 0;}
50% {left: calc((-100%));}
95% {left: calc((-100%));}
100% {left: 0;}
}
.tips {
width: 200%;
height: 80px;
margin-left: 0;
padding-left: 0;
position: absolute;
list-style: none;
display: flex;
animation: tipsSlide 6s ease 0s infinite normal forwards running;
}
.tips li {
width: calc(100% / 2);
font-style: normal;
font-weight: bold;
font-size: 20px;
line-height: 150%;
padding-left: 12px;
padding-right: 12px;
}
/* FAQマークの?の色を変える */
.faq_mark {
filter: grayscale(100%);
}
.faq_mark:hover {
filter: grayscale(0);
}
/* 確認失敗時のメッセージ内のアコーディオン表示 */
summary.detect_failed_help_message {
font-weight: bold;
color: var(--secondary_color);
text-decoration: underline;
}
summary.detect_failed_help_message:hover {
color: var(--secondary_color_dark);
}
/* 動作確認直前にスマホを離して貰うアニメーション / 動作確認時にスマホをかざして貰うアニメーション */
@keyframes frame_prepare_start {
0% {
left: calc(50% - (76px / 2) - 14px);
}
100% {
left: calc(100% - 90px);
}
}
@keyframes frame_detection_start {
0% {
left: calc(100% - 90px);
}
100% {
left: calc(50% - (76px / 2) - 14px);
}
}
.frame_prepare {
position:relative;
height:245px;
}
.frame_tablet {
position: absolute;
top: 0px;
left: calc(50% - (229px / 2));
}
.frame_hand_detect,
.frame_hand_prepare {
position: absolute;
top: 106px;
left: calc(50% - (76px / 2) - 14px);
}
.frame_hand_detect.active {
animation: frame_detection_start 4s ease 0s infinite normal forwards paused;
}
.frame_hand_prepare.active {
animation: frame_prepare_start 3s ease 0s infinite normal forwards paused;
}
/*
ローディング中のクルクルは他サイトのものを引用
*/
/*
Code copyright 2014 Luke Haas https://github.com/lukehaas/css-loaders
Code released under the MIT license
https://opensource.org/licenses/mit-license.php
*/
.loader,
.loader:before,
.loader:after,
.loader2,
.loader2:before,
.loader2:after {
border-radius: 50%;
}
.loader,
.loader2 {
color: var(--secondary_color);
text-indent: -99999em;
margin: 10px auto;
position: relative;
width: var(--loader_size);
height: var(--loader_size);
box-shadow: inset 0 0 0 1em;
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
}
.loader:before,
.loader:after,
.loader2:before,
.loader2:after {
position: absolute;
content: '';
}
.loader:before,
.loader:after {
background: var(--BG);
}
.loader2:before,
.loader2:after {
background: var(--light-gray);
}
.loader:before,
.loader2:before {
width: calc(var(--loader_size)/2 + 0.2em);
height: calc(var(--loader_size) + 0.2em);
border-radius: calc(var(--loader_size) + 0.2em) 0 0 calc(var(--loader_size) + 0.2em);
top: -0.1em;
left: -0.1em;
-webkit-transform-origin: calc(var(--loader_size)/2 + 0.1em) calc(var(--loader_size)/2 + 0.1em);
transform-origin: calc(var(--loader_size)/2 + 0.1em) calc(var(--loader_size)/2 + 0.1em);
-webkit-animation: load2 2s infinite ease 1.5s;
animation: load2 2s infinite ease 1.5s;
}
.loader:after,
.loader2:after {
width: calc(var(--loader_size)/2 + 0.2em);
height: calc(var(--loader_size) + 0.2em);
border-radius: 0 calc(var(--loader_size) + 0.2em) calc(var(--loader_size) + 0.2em) 0;
top: -0.1em;
left: calc(var(--loader_size)/2 - 0.1em);
-webkit-transform-origin: 0.1em calc(var(--loader_size)/2 + 0.1em);
transform-origin: 0.1em calc(var(--loader_size)/2 + 0.1em);
-webkit-animation: load2 2s infinite ease;
animation: load2 2s infinite ease;
}
@-webkit-keyframes load2 {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes load2 {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
/*
ここまで引用
*/