-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
solution #4487
base: master
Are you sure you want to change the base?
solution #4487
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,27 @@ | |
/> | ||
</head> | ||
<body> | ||
<input | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
|
||
<input | ||
type="text" | ||
data-qa="hover" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
<form | ||
class="big-search-form" | ||
data-qa="big" | ||
> | ||
<input | ||
class="search-form__input search-form__input--big" | ||
type="text" | ||
data-qa="keypress" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
Comment on lines
+20
to
+29
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. Remember to use 2 spaces for indentation in your file. The |
||
</form> | ||
<form | ||
class="small-seach-form" | ||
data-qa="small" | ||
Comment on lines
+31
to
+33
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. There seems to be a typo in the class name |
||
> | ||
<input | ||
class="search-form__input search-form__input--small" | ||
type="text" | ||
data-qa="small" | ||
placeholder="Try “Los Angeles“" | ||
/> | ||
Comment on lines
+31
to
+40
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 indentation here is inconsistent with the rest of the file. Ensure that the |
||
</form> | ||
</body> | ||
</html> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,102 @@ | ||
/* add styles here */ | ||
@font-face { | ||
font-family: Avenir-Book; | ||
src: url(fonts/Avenir-Book.ttf); | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir-Heavy; | ||
src: url(fonts/Avenir-Heavy.ttf); | ||
} | ||
|
||
* { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
Comment on lines
+11
to
+14
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. Don't use |
||
|
||
body { | ||
margin: 8px; | ||
} | ||
|
||
html { | ||
font-weight: 300; | ||
|
||
--placeholder-color: #3d4e61; | ||
} | ||
|
||
.big-search-form { | ||
margin-top: 20px; | ||
} | ||
|
||
.search-form__input--big { | ||
height: 70px; | ||
background-position-x: 26px; | ||
background-position-y: 26px; | ||
|
||
padding-left: 62px; | ||
font-size: 16px; | ||
line-height: 22px; | ||
background-size: 19px 19px; | ||
} | ||
|
||
.search-form__input { | ||
width: 100%; | ||
outline: none; | ||
|
||
background-image: url(images/Search.svg); | ||
background-repeat: no-repeat; | ||
|
||
border-radius: 4px; | ||
border: 1px solid #e1e7ed; | ||
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.1); | ||
|
||
color: #3d4e61; | ||
|
||
font-family: Avenir-Book, serif; | ||
} | ||
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. Remember to use fallback fonts - alternative font-family in case the main one doesn't work. For example, |
||
|
||
.search-form__input::placeholder { | ||
font-family: Avenir-Book, sans-serif; | ||
color: var(--placeholder-color); | ||
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. Remember to use fallback fonts - alternative font-family in case the main one doesn't work. For example, |
||
} | ||
|
||
.search-form__input--big::placeholder { | ||
font-size: 16px; | ||
line-height: 22px; | ||
} | ||
|
||
.search-form__input--small::placeholder { | ||
font-size: 14px; | ||
line-height: 19px; | ||
} | ||
|
||
.search-form__input:hover { | ||
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.small-seach-form { | ||
margin-top: 20px; | ||
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. There is a typo in the class name |
||
} | ||
|
||
.search-form__input--small { | ||
height: 42px; | ||
|
||
padding-left: 33px; | ||
|
||
line-height: 19px; | ||
|
||
background-size: 11px 11px; | ||
background-position-x: 13px; | ||
background-position-y: 15px; | ||
} | ||
|
||
.search-form__input:focus { | ||
font-family: Avenir-Heavy, serif; | ||
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); | ||
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. Remember to use fallback fonts - alternative font-family in case the main one doesn't work. For example, |
||
} | ||
|
||
.search-form__input--small:focus { | ||
background: | ||
url('./images/Search.svg') no-repeat 13px 15px/11px 11px, | ||
linear-gradient(180deg, transparent, #f6f6f7); | ||
} |
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 class name
big-search-form
does not represent the meaning of the content. Consider using a name that reflects the function of the form rather than its appearance. For example,search-form
ormain-search-form
could be more appropriate if this form is intended for searching content.