Skip to content

Commit

Permalink
Replace img with background-image
Browse files Browse the repository at this point in the history
  • Loading branch information
YaroslavYarmoshyk committed Feb 4, 2025
1 parent 283f880 commit d4ba403
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@
data-qa="big"
>
<div class="search-bar search-bar--big">
<img
src="./images/Search.svg"
alt="Search-logo"
class="search-bar__icon search-bar__icon--big"
/>
<label>
<input
type="text"
Expand All @@ -43,11 +38,6 @@
data-qa="small"
>
<div class="search-bar search-bar--small">
<img
src="./images/Search.svg"
alt="Search-logo"
class="search-bar__icon search-bar__icon--small"
/>
<label>
<input
type="text"
Expand Down
6 changes: 6 additions & 0 deletions src/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ html {
.search-bar {
height: 40px;
width: 100%;
background-image: url('./images/Search.svg');
background-repeat: no-repeat;
margin: 20px;
display: flex;
justify-content: start;
Expand All @@ -44,10 +46,12 @@ html {

.search-bar--big {
height: 70px;
background-position: 26px center;
}

.search-bar--small {
height: 42px;
background-position: 13px center;
}

.search-bar__icon--big {
Expand All @@ -63,10 +67,12 @@ html {
}

.search-bar__input--big {
margin-left: 62px;
font-size: 16px;
}

.search-bar__input--small {
margin-left: 33px;
font-size: 14px;
font-weight: 400;
}
Expand Down

0 comments on commit d4ba403

Please sign in to comment.