Skip to content

Commit 073e2c8

Browse files
committed
Initial Mobile/Tablet CSS
1 parent af4965a commit 073e2c8

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

public/styles.css

+28-9
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,30 @@ body {
88
margin: 0;
99
background-color: #f0f0f0;
1010
}
11-
1211
#timer-container {
1312
text-align: center;
1413
margin-bottom: 20px;
1514
}
16-
1715
.timer-item {
1816
background-color: #ffffff;
1917
border-radius: 10px;
2018
padding: 2rem;
2119
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
2220
transition: background-color 0.3s ease;
2321
}
24-
2522
.timer-item.warning {
2623
background-color: #ffff99; /* Light yellow for warning state */
2724
}
28-
2925
h2 {
3026
font-size: 2.5rem;
3127
margin-bottom: 1rem;
3228
color: #333;
3329
}
34-
3530
.time-display {
3631
font-size: 4rem;
3732
font-weight: bold;
3833
color: #007bff;
3934
}
40-
4135
.next-button {
4236
font-size: 1.2rem;
4337
padding: 10px 20px;
@@ -48,21 +42,46 @@ h2 {
4842
cursor: pointer;
4943
transition: background-color 0.3s;
5044
}
51-
5245
.next-button:hover {
5346
background-color: #218838;
5447
}
55-
5648
.next-button:disabled {
5749
background-color: #6c757d;
5850
cursor: not-allowed;
5951
}
60-
6152
footer {
6253
position: fixed;
6354
bottom: 10px;
6455
right: 10px;
6556
display: flex;
6657
gap: 10px;
6758
align-items: center;
59+
}
60+
61+
/* Mobile-specific styles */
62+
@media (max-width: 600px) {
63+
body {
64+
padding: 1rem;
65+
}
66+
#timer-container {
67+
width: 100%;
68+
}
69+
#next-item {
70+
width: 100%;
71+
padding: 1rem;
72+
}
73+
}
74+
75+
/* Tablet-specific styles */
76+
@media (min-width: 601px) and (max-width: 1024px) {
77+
body {
78+
padding: 2rem;
79+
}
80+
#timer-container {
81+
width: 75%;
82+
}
83+
#next-item {
84+
width: 70%;
85+
padding: 1rem;
86+
}
6887
}

0 commit comments

Comments
 (0)