-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Develop #4685
base: master
Are you sure you want to change the base?
Develop #4685
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,16 +17,32 @@ | |
/> | ||
</head> | ||
<body> | ||
<input | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<form | ||
action="#" | ||
data-qa="big" | ||
> | ||
<label> | ||
<input | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
class="form form__big" | ||
/> | ||
</label> | ||
</form> | ||
|
||
<input | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<form | ||
action="#" | ||
data-qa="small" | ||
> | ||
Comment on lines
+34
to
+37
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to the previous form, the |
||
<label> | ||
<input | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
class="form form__small" | ||
/> | ||
</label> | ||
</form> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,57 @@ | ||
/* add styles here */ | ||
@font-face { | ||
font-family: Avenir; | ||
src: url(./fonts/Avenir-Book.ttf); | ||
font-weight: 300; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The font-weight '300' is used here, which is typically considered a light weight. Ensure that this weight is supported by the font file 'Avenir-Book.ttf'. If not, consider using a more standard weight like 'normal' or 'bold'. |
||
|
||
@font-face { | ||
font-family: Avenir; | ||
src: url(./fonts/Avenir-Heavy.ttf); | ||
font-weight: bold; | ||
} | ||
|
||
.form { | ||
display: block; | ||
box-sizing: border-box; | ||
width: 100%; | ||
margin-top: 20px; | ||
background-image: url(../src/images/Search.svg); | ||
background-repeat: no-repeat; | ||
border: 1px solid #e1e7ed; | ||
border-radius: 4px; | ||
background-color: #fff; | ||
box-shadow: 0 1px 8px 0 #3d4e611a; | ||
color: #3d4e61; | ||
outline: none; | ||
font-family: Avenir, sans-serif; | ||
} | ||
|
||
.form__big { | ||
background-size: 19px; | ||
background-position-x: 26px; | ||
background-position-y: center; | ||
padding-left: 62px; | ||
height: 70px; | ||
font-size: 16px; | ||
line-height: 21.86px; | ||
} | ||
|
||
.form__small { | ||
background-size: 11px; | ||
background-position-x: 13px; | ||
background-position-y: center; | ||
padding-left: 33px; | ||
height: 42px; | ||
font-size: 14px; | ||
line-height: 19.12px; | ||
} | ||
|
||
.form:hover { | ||
box-shadow: 0 3px 8px 0 #3d4e6133; | ||
} | ||
|
||
.form:focus { | ||
box-shadow: 0 4px 4px 0 #00000040; | ||
border: 3px solid #e1e7ed; | ||
font-weight: bold; | ||
} |
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.
The
<form>
tag is self-closing, which is not valid in HTML. Forms should have an opening<form>
tag and a closing</form>
tag. Consider changing<form />
to<form>
and ensure it is properly closed with</form>
.