-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Remarks are taken into account #636
base: master
Are you sure you want to change the base?
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"elementDivider": "__", | ||
"modifierDivider": "--", | ||
"ignore": [ | ||
"node_modules", | ||
"dist" | ||
], | ||
"rules": { | ||
"one-block": true, | ||
"one-element": true, | ||
"element-inside-parent-block": true, | ||
"no-double-element": true, | ||
"no-neighbour-parent-block": true, | ||
"modifiable-class": true | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
@font-face { | ||
font-family: Avenir; | ||
src: url(./fonts/avenir.ttc); | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir; | ||
src: url(./fonts/Avenir-Book.ttf); | ||
font-weight: 300; | ||
} | ||
|
||
@font-face { | ||
font-family: Avenir; | ||
src: url(./fonts/Avenir-Heavy.ttf); | ||
font-weight: 900; | ||
} | ||
|
||
body { | ||
font-family: Avenir, Helvetica, sans-serif; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.container { | ||
font-weight: 300; | ||
padding: 0 9px; | ||
} | ||
|
||
.field1 { | ||
height: 70px; | ||
font-size: 15px; | ||
background: url(./images/Search.svg) no-repeat scroll left center; | ||
background-position-x: 23px; | ||
padding-left: 60px; | ||
width: 100%; | ||
} | ||
|
||
.field2 { | ||
height: 40px; | ||
font-size: 13px; | ||
background: url(./images/Search.svg) no-repeat scroll left center; | ||
background-size: 12px; | ||
background-position-x: 11px; | ||
padding-left: 30px; | ||
width: 100%; | ||
} | ||
Comment on lines
+29
to
+46
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. У нас є search та search--small (--small - модифікатор). Тому всі стилі які прописані для “великого” інпуту ми задаємо для всіх інпутів в цілому, а за допомогою модифіктора small міняємо тільки потрібні значення, щоб наш інпут став малим. field1 и field2 очень непонятные классы |
||
|
||
.search { | ||
display: block; | ||
box-sizing: border-box; | ||
margin-top: 20px; | ||
border: 1px outset #5555; | ||
} | ||
|
||
.search:default { | ||
font-weight: 300; | ||
} | ||
Comment on lines
+55
to
+57
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. Думаю это можно прописать просто в .search |
||
|
||
.search:hover { | ||
font-weight: bold; | ||
box-shadow: -2px 2px 2px rgba(0,0,0,0.4); | ||
} | ||
|
||
.search:focus { | ||
font-weight: bold; | ||
background: url(./images/Search.svg) no-repeat scroll left center, linear-gradient(to top, rgba(241, 240, 240, 0.96), #fff); | ||
background-position-x: 22px; | ||
} |
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.
Ссылки не рабочие, выполни пунтк 15 отсюда