Skip to content

Commit 3f7887c

Browse files
Coding-HashiraDun-sin
authored andcommitted
fix: styled input field in animation section
styled input field for duration present in the animation section fix #185
1 parent 1048c39 commit 3f7887c

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,7 @@ <h1 id="head">Code Magic</h1>
322322
type="number"
323323
name="duration"
324324
id="animation-duration"
325+
class="styled-input"
325326
min="0"
326327
max="120"
327328
step="1"

src/style.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,25 @@ textarea {
280280
justify-content: space-between;
281281
}
282282

283+
.styled-input {
284+
background-color: var(--secondary-color);
285+
border: 1px solid #010204;
286+
border-radius: 5px;
287+
caret-color: var(--primary-color);
288+
color: var(--text-color);
289+
padding: 4px;
290+
}
291+
292+
.styled-input:focus, .styled-input:focus-visible {
293+
outline:none;
294+
}
295+
296+
.styled-input::-webkit-inner-spin-button,
297+
.styled-input::-webkit-outer-spin-button {
298+
-webkit-appearance: none;
299+
margin: 0;
300+
}
301+
283302
.duration-label > span {
284303
font-size: 0.9em;
285304
}

0 commit comments

Comments
 (0)