Skip to content

Commit e89c4f5

Browse files
Improved Styling
1 parent f1f2e4e commit e89c4f5

File tree

1 file changed

+36
-19
lines changed

1 file changed

+36
-19
lines changed

style.css

Lines changed: 36 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
/* style.css */
22
body {
3-
font-family: sans-serif;
3+
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
44
display: flex;
55
flex-direction: column;
66
align-items: center;
7-
padding-top: 50px;
8-
background-color: #f4f4f4;
7+
padding-top: 60px;
8+
background-color: #f8f9fa;
99
}
1010

1111
h1 {
12-
margin-bottom: 20px;
13-
color: #333;
12+
margin-bottom: 30px;
13+
color: #343a40;
14+
text-align: center;
1415
}
1516

1617
.container {
17-
background-color: #fff;
18-
padding: 30px;
19-
border-radius: 8px;
20-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
18+
background-color: #ffffff;
19+
padding: 40px;
20+
border-radius: 10px;
21+
box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
2122
display: flex;
2223
flex-direction: column;
23-
gap: 15px;
24-
width: 300px;
24+
gap: 20px;
25+
width: 350px;
2526
}
2627

2728
.container > div {
@@ -31,27 +32,43 @@ h1 {
3132
}
3233

3334
label {
34-
font-weight: bold;
35-
color: #555;
35+
font-weight: 500;
36+
color: #495057;
3637
}
3738

3839
input[type="number"] {
39-
padding: 8px;
40-
border: 1px solid #ccc;
41-
border-radius: 4px;
42-
width: 150px;
40+
padding: 10px;
41+
border: 1px solid #ced4da;
42+
border-radius: 6px;
43+
width: 180px;
44+
font-size: 16px;
45+
}
46+
47+
input[type="number"]:focus {
48+
outline: none;
49+
border-color: #007bff;
50+
box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
4351
}
4452

4553
button {
46-
padding: 10px 20px;
54+
padding: 12px 24px;
4755
background-color: #007bff;
4856
color: white;
4957
border: none;
50-
border-radius: 4px;
58+
border-radius: 6px;
5159
cursor: pointer;
5260
font-size: 16px;
61+
transition: background-color 0.3s ease;
5362
}
5463

5564
button:hover {
5665
background-color: #0056b3;
66+
}
67+
68+
#clearButton {
69+
background-color: #6c757d;
70+
}
71+
72+
#clearButton:hover {
73+
background-color: #545b62;
5774
}

0 commit comments

Comments
 (0)