Skip to content

Commit 473b4a4

Browse files
committed
update css
1 parent 8cd966d commit 473b4a4

File tree

1 file changed

+86
-1
lines changed

1 file changed

+86
-1
lines changed

Sprint-3/alarmclock/style.css

Lines changed: 86 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,89 @@
1+
* {
2+
box-sizing: border-box;
3+
margin: 0;
4+
padding: 0;
5+
font-family: "Roboto", "Segoe UI", sans-serif;
6+
}
7+
8+
body {
9+
background: linear-gradient(#d49562, #9e897c);
10+
color: #797d8131;
11+
height: 100vh;
12+
display: flex;
13+
justify-content: center;
14+
align-items: center;
15+
}
16+
17+
/* Centered card*/
118
.centre {
19+
background-color: #a16093;
20+
padding: 40px 60px;
21+
border-radius: 10px;
22+
text-align: center;
23+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
24+
min-width: 300px;
25+
}
26+
27+
/* Time display */
28+
h1 {
29+
font-size: 2.5rem;
30+
margin-bottom: 30px;
31+
font-weight: 600;
32+
color: #f1bcaf;
33+
letter-spacing: 1px;
34+
}
35+
36+
/* Input time*/
37+
#alarmSet {
38+
padding: 4px 15px 6px 15px;
39+
font-size: 1.3rem;
40+
border-radius: 4px;
41+
border: 2px solid #cbc1bc;
42+
outline: none;
43+
margin-bottom: 20px;
44+
margin-right: 10px;
45+
width: 100px;
46+
text-align: center;
47+
background-color: #e8dfdb;
48+
color: #121212;
49+
}
50+
51+
/* Buttons */
52+
button {
53+
padding: 12px 25px;
54+
margin: 10px;
55+
font-size: 1rem;
56+
border-radius: 5px;
57+
border: none;
58+
cursor: pointer;
59+
font-weight: 600;
60+
transition: all 0.3s ease-in-out;
61+
}
62+
63+
/* Set Alarm */
64+
#set {
65+
background-color: #2b2c2d;
66+
color: #fff;
67+
}
68+
69+
#set:hover {
70+
background-color: #2b2c2d7b;
71+
transform: translateY(-2px);
72+
}
73+
74+
/* Stop Alarm */
75+
#stop {
76+
background-color: #2b2c2d;
77+
color: #fff;
78+
}
79+
80+
#stop:hover {
81+
background-color: brown;
82+
transform: translateY(-1px);
83+
}
84+
85+
/* keep old styling in case you need to revert back */
86+
/* .centre {
287
position: fixed;
388
top: 50%;
489
left: 50%;
@@ -12,4 +97,4 @@
1297
1398
h1 {
1499
text-align: center;
15-
}
100+
} */

0 commit comments

Comments
 (0)