-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
104 lines (90 loc) · 1.92 KB
/
style.css
File metadata and controls
104 lines (90 loc) · 1.92 KB
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
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,body{
width: 100%;
height: 100%;
}
/* ----------------------------------------- */
body{
background-color: lightgreen;
}
#timer{
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: 1.2rem;
color: #333;
}
span{
font-size: 5rem;
}
#stopwatch-container{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
padding: 2rem;
width: 60%;
height: 35vh;
border: 2px solid black;
border-radius: 35px;
display: flex;
flex-direction: column;
justify-content: space-evenly;
align-items: center;
background-color: rgb(209, 245, 245);
box-shadow: 0px 0px 16px rgba(0, 0, 0, 0.901);
}
/* Responsive Code */
@media screen and (max-width: 600px) {
#stopwatch-container{
height: auto;
}
#button-container{
flex-wrap: wrap;
}
}
@media screen and (min-width: 768px)
{
.button{
width: 10rem;
}
}
/* ------------------------------------------- */
/* Buttons CSS */
.button{
width: 26%;
min-width: 6rem;
height: 2.6rem;
margin: 0.8rem;
border-radius: 20px;
font-weight: 700;
letter-spacing: 1px;
border: 1px solid rgb(0, 0, 0);
background-color: white;
color: rgb(0, 0, 0);
box-shadow: 2px 2px 6px #333;
}
/* Button Hover */
.button:hover{
background-color: #0c3dff;
color: rgb(255, 255, 255);
border: 1px solid rgb(255, 255, 255);
transition: all ease-in-out 0.2s;
}
#button-container{
display: flex;
justify-content: space-evenly;
}
#reset-button{
background-color: rgba(243, 25, 51, 0.96);
color: white;
}
#start-button{
background-color: rgba(86, 242, 86, 0.833);
}
#start-button:hover{
color: black;
}
/* ---------------------------------------------- */