scrimba
Helen Chong's JavaScriptmas 2023 Solutions
Helen Chong's JavaScriptmas 2023 Day 21 solution
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Helen Chong's JavaScriptmas 2023 Day 21 solution
AboutCommentsNotes
Helen Chong's JavaScriptmas 2023 Day 21 solution
Expand for more info
index.css
run
preview
console
html, body {
margin: 0;
padding: 0;
}

:root {
--search-border: #bbb;
--search-focus-border: #3a71ca;
}

body {
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}

.container {
width: 100%;
padding: 1rem;
}

.search-bar {
width: 33%;
transition: width 0.3s;
border: 0.15em solid var(--search-border);
padding: 0.5em 0.15em;
border-radius: 0.3rem;
}

.search-bar:focus {
width: 100%;
border: 0.2em solid var(--search-focus-border);
}

.search-bar:focus::placeholder {
color: transparent;
}

.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0,0,0,0);
white-space: nowrap;
border: 0;
}
Console
/index.html
LIVE