Skip to content

Commit 2020a5f

Browse files
committed
- Adds a number input field for user-defined delay.
- Uses that delay in milliseconds when auto-forward or auto-backward is activated. - Disables/enables delay input along with auto buttons for a clean UX.
1 parent 21f47be commit 2020a5f

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

Sprint-3/slideshow/style.css

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,44 @@
11
/** Write your CSS in here **/
2+
3+
body {
4+
font-family: Arial, sans-serif;
5+
text-align: center;
6+
background-color: #f8f9fa;
7+
margin: 2em;
8+
}
9+
10+
img#carousel-img {
11+
max-width: 400px;
12+
height: auto;
13+
border-radius: 10px;
14+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
15+
margin-bottom: 1em;
16+
}
17+
18+
button,
19+
input[type="number"] {
20+
margin: 0.3em;
21+
padding: 0.6em 1.2em;
22+
font-size: 1em;
23+
border-radius: 6px;
24+
border: 1px solid #ccc;
25+
cursor: pointer;
26+
transition: background-color 0.3s;
27+
}
28+
29+
button:disabled,
30+
input:disabled {
31+
cursor: not-allowed;
32+
background-color: #eee;
33+
color: #999;
34+
}
35+
36+
button:hover:not(:disabled) {
37+
background-color: #007bff;
38+
color: white;
39+
}
40+
41+
label {
42+
font-weight: bold;
43+
margin-right: 0.5em;
44+
}

0 commit comments

Comments
 (0)