-
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
add task solution #4318
base: master
Are you sure you want to change the base?
add task solution #4318
Changes from 3 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,65 @@ | ||||||
/* add styles here */ | ||||||
@font-face { | ||||||
font-family: Avenir; | ||||||
src: url('./fonts/Avenir-Book.ttf'); | ||||||
src: url('./fonts/Avenir-Heavy.ttf'); | ||||||
src: url('./fonts/Avenir.ttc'); | ||||||
font-style: normal; | ||||||
font-weight: normal; | ||||||
color: rgba(61, 78, 97, 1); | ||||||
} | ||||||
|
||||||
* { | ||||||
font-family: Avenir, Arial, Helvetica, sans-serif; | ||||||
box-sizing: border-box; | ||||||
font-weight: 300px; | ||||||
} | ||||||
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.
Suggested change
|
||||||
|
||||||
.search-bar-input { | ||||||
margin: 20px 0; | ||||||
box-sizing: border-box; | ||||||
border-radius: 4px; | ||||||
background-image: url(/src/images/Search.svg); | ||||||
background-repeat: no-repeat; | ||||||
width: 100%; | ||||||
border: 1px solid #e1e7ed; | ||||||
box-shadow: 0 1px 8px 0 rgba(61, 78, 97, 0.1); | ||||||
line-height: 21.86px; | ||||||
} | ||||||
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. do not set decimal pixel values |
||||||
|
||||||
.search-bar-input--top { | ||||||
display: flex; | ||||||
color: #3d4e61; | ||||||
font-size: 16px; | ||||||
height: 70px; | ||||||
padding-left: 62px; | ||||||
background-size: 19px 19px; | ||||||
background-position: 26px center; | ||||||
} | ||||||
|
||||||
.search-bar-input--down { | ||||||
display: flex; | ||||||
font-size: 14px; | ||||||
border-radius: 5; | ||||||
height: 42px; | ||||||
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.
Suggested change
|
||||||
padding-left: 33px; | ||||||
background-size: 11px 11px; | ||||||
background-position: 13px center; | ||||||
} | ||||||
|
||||||
.search-bar-input::placeholder { | ||||||
color: #3d4e61; | ||||||
} | ||||||
|
||||||
.search-bar-input :hover { | ||||||
box-shadow: 0 4px 4px 0; | ||||||
color: rgba(0, 0, 0, 0.25); | ||||||
} | ||||||
|
||||||
.search-bar-input :focus { | ||||||
box-shadow: 0 4px 4px 0; | ||||||
color: rgba(0, 0, 0, 0.25); | ||||||
font-size: 16px; | ||||||
line-height: 21.86px; | ||||||
text-align: left; | ||||||
font-family: Avenir-Heavy, sans-serif; | ||||||
} |
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.
it is better to set font-family for html tag selector and let other elements inherit it