Skip to content

Commit 1b6151c

Browse files
author
megh-mm
committed
add styles
1 parent 7bbd5c6 commit 1b6151c

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

src/styles/stopwatch.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
body {
2+
padding: 0;
3+
margin: 0;
4+
display: flex;
5+
justify-content: center;
6+
align-items: center;
7+
min-height: 100vh;
8+
background-color: #F1F0F0;
9+
}
10+
.stopwatch {
11+
padding: 4rem;
12+
display: flex;
13+
flex-flow:column;
14+
position: relative;
15+
}
16+
.stopwatch__head {
17+
display: flex;
18+
}
19+
.stopwatch__timer {
20+
width: 250px;
21+
height: 250px;
22+
color: #060606;
23+
line-height: 11rem;
24+
margin-right: 4rem;
25+
border-radius: 50%;
26+
display: flex;
27+
justify-content: center;
28+
align-items: center;
29+
font-variant-numeric: tabular-nums;
30+
font-size: 2rem;
31+
font-weight: 300;
32+
font-family: "Fjalla One", sans-serif;
33+
position: relative;
34+
overflow: hidden;
35+
}
36+
.stopwatch__button {
37+
margin-top: 5rem;
38+
color: #3a3a3a;
39+
margin-right: 1rem;
40+
width: 5rem;
41+
border-radius: 50%;
42+
height: 5rem;
43+
font-size: 0.75rem;
44+
font-family: "Fjalla One", sans-serif;
45+
border: rgb(118, 118, 118) solid 1px;
46+
cursor: pointer;
47+
}
48+
.stopwatch__button:active {
49+
border: rgb(118, 118, 118) dashed 1px;
50+
}
51+
.stopwatch__laps {
52+
font-family: "Fjalla One", sans-serif;
53+
list-style-type: none;
54+
padding: 0;
55+
text-align: center;
56+
line-height: 1.25;
57+
position: absolute;
58+
bottom: -2rem;
59+
left: 0;
60+
right: 0;
61+
}

0 commit comments

Comments
 (0)