Skip to content

Commit 539b58f

Browse files
dumartinssumn2u
authored andcommitted
enhanced styling
1 parent aad24fb commit 539b58f

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

examples/Live-Digital-Clock/styles.css

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
body {
1010
min-height: 100vh;
1111
font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
12-
background: #f5f6fa;
12+
background: edf2fb;
1313
color: #1f2a44;
1414
display: flex;
1515
align-items: center;
@@ -25,7 +25,7 @@ body {
2525

2626
.clock-card {
2727
width: 100%;
28-
background: #ffffff;
28+
background-color: rgba(202, 240, 248, 0.3);
2929
border: 1px solid #e4e7ee;
3030
border-radius: 14px;
3131
padding: 28px 22px;
@@ -39,16 +39,17 @@ body {
3939

4040

4141
.clock-header h1 {
42-
font-size: clamp(1.8rem, 3vw, 2.4rem);
42+
font-size: clamp(2.4rem, 4vw, 3rem);
43+
color: #034078;
4344
font-weight: 700;
4445
margin-bottom: 4px;
4546
}
4647

4748
.subtitle {
48-
margin-top: 20px;
49-
margin-bottom: 30px;
50-
color: #6b7280;
51-
font-size: 0.93rem;
49+
margin-top: 15px;
50+
margin-bottom: 25px;
51+
color: #034078;
52+
font-size: 1rem;
5253
line-height: 1.5;
5354
}
5455

@@ -63,7 +64,8 @@ body {
6364

6465
.time-block {
6566
text-align: center;
66-
background: #ffffff;
67+
color: #1282a2;
68+
background-color: #ffffff;
6769
border-radius: 10px;
6870
padding: 10px 8px;
6971
border: 1px solid #e4e7ee;
@@ -73,8 +75,9 @@ body {
7375

7476
.label {
7577
display: block;
76-
color: #6b7280;
78+
color: #034078;
7779
font-size: 0.85rem;
80+
font-weight: 500;
7881
margin-bottom: 4px;
7982
}
8083

@@ -89,16 +92,16 @@ body {
8992
text-align: center;
9093
font-size: clamp(2rem, 5vw, 2.4rem);
9194
font-weight: 700;
92-
color: #2563eb;
95+
color: #81c3d7;
9396
padding: 0 3px;
9497
}
9598

9699
.ampm {
97100
justify-self: end;
98101
padding: 10px 12px;
99102
border-radius: 10px;
100-
background: #e8f1ff;
101-
color: #1d4ed8;
103+
background: #34a0a4;
104+
color: #ffffff;
102105
font-weight: 600;
103106
border: 1px solid #d6e5ff;
104107
letter-spacing: 0.05em;
@@ -116,12 +119,12 @@ body {
116119
}
117120

118121
.controls button {
119-
background: #2563eb;
122+
background: #34a0a4;
120123
color: #ffffff;
121124
border: none;
122125
border-radius: 10px;
123126
padding: 12px 16px;
124-
font-weight: 600;
127+
font-weight: 700;
125128
cursor: pointer;
126129
transition: transform 0.15s ease, box-shadow 0.15s ease;
127130
box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);

0 commit comments

Comments
 (0)