-
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
Develop #4557
base: master
Are you sure you want to change the base?
Develop #4557
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 |
---|---|---|
@@ -1 +1,86 @@ | ||
/* 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); | ||
} | ||
|
||
body { | ||
margin: 0 8px; | ||
|
||
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. Consider using only top or bottom margin to avoid potential margin collapse. The checklist suggests being consistent with your margins. 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. I have couple comments here:
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. @etojeDenys please check these questions |
||
--big-box-shadow: 0 4px 4px 0 #00000040; | ||
--small-box-shadow: 0 3px 8px 0 #3d4e6133; | ||
} | ||
|
||
.form--big { | ||
margin: 20px 0; | ||
} | ||
|
||
.input { | ||
width: 100%; | ||
background: url('./images/Search.svg') no-repeat; | ||
box-sizing: border-box; | ||
background-size: contain; | ||
border-radius: 4px; | ||
border: 1px solid #e1e7ed; | ||
font-weight: 300; | ||
box-shadow: 0 1px 8px 0 #3d4e611a; | ||
font-family: Avenir-Heavy, sans-serif; | ||
color: #3d4e61; | ||
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. It's a good practice to provide fallback fonts. Consider adding a generic font family like 'sans-serif' as a fallback for 'Avenir-Heavy'. |
||
} | ||
|
||
.input::placeholder { | ||
font-family: Avenir-Book, sans-serif; | ||
color: inherit; | ||
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. Consider adding a generic font family like 'sans-serif' as a fallback for 'Avenir-Book' to ensure proper rendering if the custom font fails to load. |
||
font-weight: inherit; | ||
text-shadow: none; | ||
} | ||
|
||
.input:focus { | ||
outline: none; | ||
background: | ||
url('./images/Search.svg') no-repeat, | ||
linear-gradient(180deg, #fff 0%, #f6f6f7 100%); | ||
} | ||
|
||
.input--big { | ||
min-height: 70px; | ||
background-size: 19px; | ||
background-position: 26px center; | ||
padding-left: 62px; | ||
font-size: 16px; | ||
line-height: 22px; | ||
text-shadow: 0 4px 4px 0 #00000040; | ||
} | ||
|
||
.input--big:hover { | ||
box-shadow: var(--big-box-shadow); | ||
} | ||
|
||
.input--big:focus { | ||
box-shadow: var(--big-box-shadow); | ||
background-position: 26px center; | ||
background-size: 19px; | ||
} | ||
|
||
.input--small { | ||
min-height: 42px; | ||
background-size: 11px; | ||
background-position: 13px center; | ||
padding-left: 33px; | ||
font-size: 14px; | ||
line-height: 19px; | ||
} | ||
|
||
.input--small:hover { | ||
box-shadow: var(--small-box-shadow); | ||
} | ||
|
||
.input--small:focus { | ||
box-shadow: var(--small-box-shadow); | ||
background-position: 13px center; | ||
background-size: 11px; | ||
} |
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 margin property should be consistent with the checklist recommendation to avoid potential margin collapse. Consider using only top or bottom margin, but not both.