-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
135 lines (120 loc) · 2.4 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
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Ubuntu&display=swap');
*{
font-family: 'Ubuntu';
margin: 0;
padding: 0;
box-sizing: border-box;
font-size: 62.5%;
}
:root{
--background-color: #8c52ff;
--timer-text-color: #8c52ff;
}
body{
background: #8c52ff;
width: 100%;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 3rem;
}
.container{
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 3rem;
border-radius: 2rem;
background-color: #fff;
height: 50%;
width: 60%;
min-width: 50rem;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.338);
}
.lap_container{
display: none;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 2rem;
border-radius: 2rem;
background-color: #fff;
height: 30%;
width: 30%;
padding: 1.5rem 2rem;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.338);
}
.lap_container .laps{
padding: 0;
padding-right: 3rem;
display: flex;
align-items: flex-start;
justify-content: center;
flex-direction: column-reverse;
gap: 1rem;
overflow-y: scroll;
}
.activelaps{
display: flex;
}
.lap_container .laps li{
user-select: none;
color: #8c52ff;
font-size: 2rem;
}
#clearlaps{
cursor: pointer;
user-select: none;
font-size: 1.5rem;
border: 2px solid #8c52ff;
border-radius: .7rem;
padding: .5rem 5rem;
}
#clearlaps:hover{
color: #fff;
background: #e35209;
}
#clearlaps:active{
transform: scale(1.06);
}
.timer-display{
padding: 4rem;
text-align: center;
position: relative;
color: #8c52ff;
width: 90%;
background: #fff;
border-radius: 1rem;
box-shadow: 0 0 20px rgba(111, 0, 255, 0.511);
font-size: 5rem;
}
.buttons{
display: flex;
align-items: center;
justify-content: center;
flex-direction: row;
gap: 2rem;
width: 90%;
}
.buttons button{
width: 20rem;
height: 4rem;
background-color: #8c52ff;
font-size: 2rem;
color: #fff;
border: none;
border-radius: .6rem;
cursor: pointer;
outline: none;
}
.buttons button:nth-child(2){
background-color: #e35209;
}
.buttons button:nth-child(1){
background-color: #f7df1e;
}
.buttons button:hover{
box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
}