-
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 #4427
base: master
Are you sure you want to change the base?
add task solution #4427
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,108 @@ | ||
/* add styles here */ | ||
/* #region PAGE */ | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir, sans-serif; | ||
src: url(./fonts/Avenir-Book.ttf); | ||
font-weight: 300; | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir, sans-serif; | ||
src: url(./fonts/Avenir-Heavy.ttf); | ||
font-weight: 700; | ||
} | ||
|
||
html { | ||
--border-color: #e1e7ed; | ||
--main-color: #3d4e61; | ||
--background-color: #fff; | ||
--box-shadow-color: rgba(61, 78, 97, 0.1); | ||
} | ||
|
||
.page { | ||
font-family: Avenir, sans-serif; | ||
} | ||
|
||
.page__form-container { | ||
margin-top: 20px; | ||
} | ||
|
||
/* #endregion */ | ||
.form__container { | ||
position: relative; | ||
} | ||
|
||
.form__search-bar { | ||
width: 100%; | ||
padding: 0; | ||
display: block; | ||
border-radius: 4px; | ||
border: 1px solid var(--border-color); | ||
box-shadow: 0 1px 8px 0 var(--box-shadow-color); | ||
font-family: inherit; | ||
outline: none; | ||
|
||
/* font-weight: 400; */ | ||
color: var(--main-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. delete all the comments from CSS file |
||
line-height: normal; | ||
} | ||
|
||
.form__search-bar::placeholder { | ||
color: var(--main-color); | ||
} | ||
|
||
.form__search-bar--big { | ||
font-size: 16px; | ||
|
||
height: 70px; | ||
|
||
padding-left: 62px; | ||
|
||
/* padding: 25px 62px 23px; */ | ||
} | ||
|
||
.form__search-bar--small { | ||
height: 42px; | ||
padding-left: 33px; | ||
font-size: 14px; | ||
} | ||
|
||
.form__search-bar--small:hover { | ||
box-shadow: 0 3px 8px 0 var(--box-shadow-color); | ||
} | ||
|
||
.form__search-bar--big:hover, | ||
.form__search-bar--big:focus { | ||
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25); | ||
} | ||
|
||
.form__search-bar:focus { | ||
border-radius: 3px; | ||
font-weight: 900; | ||
background: linear-gradient(180deg, var(--background-color) 0%, #f6f6f7 100%); | ||
} | ||
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. use variables for all colors |
||
|
||
.form__icon { | ||
background-image: url(./images/Search.svg); | ||
position: absolute; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: contain; | ||
} | ||
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. use background property for this as you did above |
||
|
||
.form__icon--big { | ||
width: 19px; | ||
height: 19px; | ||
top: 25px; | ||
left: 26px; | ||
} | ||
|
||
.form__icon--small { | ||
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.
Remove all comments