-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
98 lines (85 loc) · 1.63 KB
/
styles.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
/* General Setting */
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
background: url('./asset/bg.png') no-repeat center center / cover;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.stopwatch {
margin: 20px;
text-align: center;
padding: 30px 20px;
color: #fff;
border: 1px solid #fff;
outline: none;
border-radius: 10px;
box-shadow: 0 0 20px rgb(255, 255, 255, 0.5);
backdrop-filter: blur(1px);
animation: slideDown 0.9s ease forwards;
}
@keyframes slideDown {
0%{
opacity: 0;
transform: translateY(-100%);
}
100%{
opacity: 1;
transform: translateY(0);
}
}
.stopwatch h1{
color: #ffd700;
}
.timer-display {
font-size: 1.8rem;
margin: 30px 0;
}
.buttons button {
margin: 10px;
padding: 10px 20px;
font-size: 1rem;
border: 1px solid #fff;
border-radius: 5px;
cursor: pointer;
background: transparent;
color: #fff;
transition: transform 0.3s ease, color 0.3s ease;
box-shadow: 1px 1px 3px #fff;
}
.buttons button:hover {
color: #ffd700;
box-shadow: 1px 1px 3px #ffd700;
}
#laps {
list-style: none;
padding: 0;
margin: 20px 0;
max-height: 200px;
overflow-y: auto;
scrollbar-color: #ffd700;
}
#laps::-webkit-scrollbar {
width: 5px;
}
#laps::-webkit-scrollbar-track {
background-color: #10193b;
}
#laps::-webkit-scrollbar-thumb {
background-color: #ffd700;
border-radius: 10px;
}
#laps::-webkit-scrollbar-thumb:hover {
background-color: #ffc107;
}
#laps li {
padding: 5px 10px;
border-bottom: 1px solid #ddd;
font-size: 1rem;
}