Skip to content

Commit

Permalink
checklist task
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxF1996 committed Aug 21, 2024
1 parent 8e551ca commit 6807e40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 36 deletions.
10 changes: 0 additions & 10 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
type="search"
placeholder="Try "Los Angeles""
/>
<img
class="search-icon"
src="./images/Search.svg"
alt="search icon"
/>
</form>
<form
class="form"
Expand All @@ -46,11 +41,6 @@
type="search"
placeholder="Try &#34;Los Angeles&#34;"
/>
<img
class="search-icon"
src="./images/Search.svg"
alt="search icon"
/>
</form>
</body>
</html>
38 changes: 12 additions & 26 deletions src/styles/blocks/form.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.form {
position: relative;
font-family: var(--form-font-family);
color: var(--form-text-color);
display: flex;
Expand All @@ -12,27 +11,6 @@
margin-bottom: 20px;
}

.form__input + .search-icon {
position: absolute;
top: 50%;

z-index: 0;
}

.form__input--big + .search-icon {
transform: translateY(-50%);
left: 26px;
width: 19px;
height: 19px;
}

.form__input--small + .search-icon {
left: 13px;
top: 15px;
width: 11px;
height: 11px;
}

.form__input {
box-sizing: border-box;
display: flex;
Expand All @@ -57,8 +35,6 @@
.form__input:focus {
color: currentColor;
font-weight: 700;

background: linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
}

.form__input:not(:last-of-type) {
Expand All @@ -69,6 +45,8 @@
line-height: 22px;
padding: 23px 62px;
font-size: 16px;

background: url('./../../images/Search.svg') no-repeat 26px center/19px 19px;
}

.form__input--big:hover {
Expand All @@ -79,6 +57,10 @@
font-weight: 700;
text-shadow: 0 4px 4px 0 #00000040;
box-shadow: 0 4px 4px 0 #00000040;

background:
url('./../../images/Search.svg') no-repeat 26px center/19px 19px,
linear-gradient(180deg, #fff 0%, #f6f6f7 100%);
}

.form__input--small {
Expand All @@ -87,7 +69,8 @@
font-weight: 400;

box-shadow: 0 1px 8px 0 #3d4e611a;
text-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
text-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); /* There is a text-shadow in figma mock */
background: url('./../../images/Search.svg') no-repeat 12px 49%/11px 11px;
}

/* reset text-shadow for qa-test */
Expand All @@ -96,7 +79,7 @@
text-shadow: none;
}

/* reset box-shadow for qa-test */
/* reset text-shadow for qa-test */

.form__input--small:hover {
text-shadow: none;
Expand All @@ -106,4 +89,7 @@

.form__input--small:focus {
text-shadow: none;
background:
url('./../../images/Search.svg') no-repeat 13px center/11px 11px,
linear-gradient(180deg, transparent, #f6f6f7);
}

0 comments on commit 6807e40

Please sign in to comment.