-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
115 lines (107 loc) · 1.99 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
* {
margin: 0%;
padding: 0%;
}
body {
background: linear-gradient(to right, rgb(255, 251, 213), rgb(178, 10, 44));
height: 100vh;
font-family: "Lucida Sans", "Lucida Sans Regular", "Lucida Grande",
"Lucida Sans Unicode", Geneva, Verdana, sans-serif;
display: flex;
justify-content: center;
align-items: center;
}
.container {
background-color: bisque;
border-radius: 16px;
padding: 20px;
box-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.title {
font-size: 30px;
margin-bottom: 1.5rem;
}
.timer {
font-size: 40px;
background-color: aliceblue;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 12px rgba(0, 0, 0, 0.9);
animation: pulse 1.5s infinite alternate;
}
@keyframes pulse {
from {
transform: scale(1);
}
to {
transform: scale(1.05);
}
}
.timer span {
width: 110px;
display: inline-block;
text-align: center;
}
.controls {
display: flex;
gap: 1rem;
}
button {
border: none;
color: white;
background-color: chocolate;
font-size: 1rem;
padding: 0.75rem 1.5rem;
border-radius: 8px;
cursor: pointer;
transition: background-color 0.3s ease-in-out;
}
button:hover {
background-color: brown;
}
.stopwatch {
display: flex;
gap: 20px;
flex-direction: column;
align-items: center;
justify-content: center;
}
.laptitle {
font-size: 1.5rem;
}
.laps {
width: 100%;
}
ul {
list-style-type: none;
padding: 0;
margin: 0;
overflow-y: auto;
max-height: 200px;
background-color: white;
border-radius: 8px;
box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}
li {
padding: 1rem;
border-bottom: 1px solid whitesmoke;
}
li:last-child {
border-bottom: none;
}
li span {
font-weight: 700;
}
@media screen and (max-width: 640px) {
.contorls {
display: flex;
gap: 0.5rem;
}
.timer span {
width: 80px;
}
}