-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
75 lines (65 loc) · 1.83 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
/* Google fonts to display the font family */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital@1&family=Noto+Sans:wght@300&family=Pangolin&family=Roboto+Mono&display=swap');
/* To remove default margin and padding from all HTML elements*/
*{
padding: 0;
margin: 0;
}
/* Background color of the web page */
body{
background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url(images/background.png); /* An image is set alongwith the linear gradient */
background-size: cover; /* background image will be set as cover */
background-position: center; /* position of the background image */
}
#name{
text-align: center;
margin: 30px auto;
font-size: 5rem;
letter-spacing: 5px;
font-family: monospace;
font-weight: bold;
color: #fffff1;
}
/* Styling of the container which contains the Stopwatch */
.container{
height: 65vh;
width: 65vw;
position: relative; /* position of the container */
top: 15%;
left: 20%;
margin-top: 30px;
border: 4px solid #fffff1;
padding: 5px auto;
border-radius: 20px;
text-align: center;
box-shadow: 0 10px 10px rgba(0,0,0,0.5);
}
/* This styling is for the timer */
.container h1{
font-family: 'Roboto Mono', monospace;
color: #fff;
font-size: 6rem;
font-weight: 300;
margin: 100px auto;
}
/* Setting the width and margin of the buttons */
.buttons img{
width: 60px;
cursor: pointer;
margin: 0 20px;
}
/* Increasing the width of Play button to differentiate it with others */
.buttons img:nth-child(2){
width: 80px;
}
/* Styling for the various buttons */
.buttons{
display: flex;
align-items: center;
justify-content: center;
}
/* On hover button shadow will appear */
.buttons img:hover{
box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
border-radius: 50%;
}