-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add resolve for search bar #3444
base: master
Are you sure you want to change the base?
Conversation
src/style.css
Outdated
.input--big { | ||
height: 70px; | ||
padding-left: 62px; | ||
font-size: 16px; | ||
} | ||
|
||
.search-form__input--big::before { | ||
height: 19px; | ||
width: 19px; | ||
top: 25px; | ||
left: 26px; | ||
} | ||
|
||
.input--sm { | ||
height: 42px; | ||
font-size: 14px; | ||
padding-left: 33px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2'nd point in checklist, create base class and one where you will override needed styles
src/index.html
Outdated
<form | ||
action="#" | ||
method="post" | ||
data-qa="big" | ||
class="search-form" | ||
> | ||
|
||
<div class="search-form__input search-form__input--big"> | ||
|
||
<input | ||
type="text" | ||
class="input input--big " | ||
data-qa="keypress" | ||
placeholder="Try "Los Angeles"" | ||
> | ||
|
||
</div> | ||
|
||
</form> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<form | |
action="#" | |
method="post" | |
data-qa="big" | |
class="search-form" | |
> | |
<div class="search-form__input search-form__input--big"> | |
<input | |
type="text" | |
class="input input--big " | |
data-qa="keypress" | |
placeholder="Try "Los Angeles"" | |
> | |
</div> | |
</form> | |
<form | |
action="#" | |
method="post" | |
data-qa="big" | |
class="search-form" | |
> | |
<div class="search-form__input search-form__input--big"> | |
<input | |
type="text" | |
class="input input--big " | |
data-qa="keypress" | |
placeholder="Try "Los Angeles"" | |
> | |
</div> | |
</form> |
src/index.html
Outdated
class="search-form" | ||
> | ||
|
||
<div class="search-form__input search-form__input--big"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you really need this wrapper
src/index.html
Outdated
<input | ||
type="text" | ||
class="input input--big " | ||
data-qa="keypress" | ||
placeholder="Try "Los Angeles"" | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add name attribute to inputs
src/style.css
Outdated
@font-face { | ||
font-family: Avenir-Book; | ||
src: url(./fonts/Avenir-Book.ttf); | ||
font-weight: 300; | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir-Heavy; | ||
src: url(./fonts/Avenir-Heavy.ttf); | ||
font-weight: 700; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
7'th point in checklist
src/style.css
Outdated
.search-form::before { | ||
content: ""; | ||
position: absolute; | ||
background-image: url("./images/Search.svg"); | ||
background-position: center; | ||
background-size: cover; | ||
background-repeat: no-repeat; | ||
} | ||
|
||
.search-form--big::before { | ||
height: 19px; | ||
width: 19px; | ||
top: 25px; | ||
left: 26px; | ||
} | ||
|
||
.search-form--sm::before { | ||
width: 11px; | ||
height: 11px; | ||
top: 15px; | ||
left: 13px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2'nd point in checklist
src/style.css
Outdated
.input { | ||
width: 100%; | ||
box-sizing: border-box; | ||
font-family: "Avenir-Book", Arial, sans-serif; | ||
font-weight: 700; | ||
|
||
border-radius: 4px; | ||
border: 1px solid var(--border-color); | ||
background: var(--background-color); | ||
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.1); | ||
} | ||
/* if i*m wrong about fonts. I've confused in this - - Remember that inputs and | ||
other interactive elements don’t inherit font styles by default. | ||
- Remember that placeholder has its own set of styles available using ` | ||
::placeholder` pseudo-element. */ | ||
|
||
.input--big { | ||
height: 70px; | ||
padding-left: 62px; | ||
font-size: 16px; | ||
} | ||
|
||
.input--sm { | ||
height: 42px; | ||
font-size: 14px; | ||
padding-left: 33px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2'nd point in checklist
src/style.css
Outdated
@font-face { | ||
font-family: Avenir-Book; | ||
src: url(./fonts/Avenir-Book.ttf); | ||
font-weight: 300; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you need to connect this font with other font-weight also, check the design
</form> | ||
|
||
</body> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
</form> | |
</body> | |
</form> | |
</body> |
don't add spaces between child and parent elements
DEMO LINK
TEST REPORT LINK