-
Notifications
You must be signed in to change notification settings - Fork 0
Evgeniybalagurov/#10 #22
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
base: develop
Are you sure you want to change the base?
Changes from all commits
7309f31
e18e43d
cc6d2f7
d44d5b8
857242d
012ab02
b282833
22fc98c
7a0c115
245f88e
a63a85c
bad0e54
180ca4f
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 @@ | ||
|
|
||
| .vscode |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| .authors__desc:first-of-type { | ||
| padding-right: 16px; | ||
| border-right: 1px solid var(--border-color); | ||
| } | ||
|
|
||
| .authors__desc:last-of-type { | ||
| padding-left: 16px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| .authors__list { | ||
| margin: 23px 0 0; | ||
| padding: 0; | ||
| list-style: none; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .authors__text-block { | ||
| padding: 0 120px 0 182px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .authors__text { | ||
| max-width: 420px; | ||
| margin: 4px 0 24px 24px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .lead__image { | ||
| width: 100%; | ||
| display: block; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| .lead__link { | ||
| margin-top: 16px; | ||
| padding: 16px; | ||
| width: 240px; | ||
| height: 56px; | ||
| box-sizing: border-box; | ||
| border: 1px solid var(--border-color-black); | ||
| position: relative; | ||
| transition: color .2s ease .1s; | ||
| } | ||
|
|
||
| .lead__link:before { | ||
| top: 14px; | ||
| right: 13px; | ||
| background-position: 85% 50%; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| .lead__text-block:first-of-type { | ||
| padding: 62px 120px; | ||
| } | ||
|
|
||
| .lead__text-block:last-of-type { | ||
| max-width: 720px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| .lead { | ||
| width: 100%; | ||
| display: grid; | ||
| grid-template-columns: repeat(2, 1fr); | ||
| grid-column: 1 / 3; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| .link { | ||
|
Owner
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. этот файл у нас много где будет использоваться, правильно же понимаю?
Collaborator
Author
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. Да, будет использоваться. Ок, протестим |
||
| display: block; | ||
| font-family: 'Formular', sans-serif; | ||
| font-style: normal; | ||
| font-weight: 300; | ||
| font-size: 16px; | ||
| line-height: 22px; | ||
| box-sizing: border-box; | ||
| text-transform: uppercase; | ||
| color: var(--link-color); | ||
| text-decoration: none; | ||
| } | ||
|
|
||
| .link:before { | ||
| content: ''; | ||
| display: block; | ||
| width: 25px; | ||
| height: 25px; | ||
| position: absolute; | ||
| top: 3px; | ||
| right: 0; | ||
| background: transparent var(--link-image) no-repeat center; | ||
| } | ||
|
|
||
| .link:after { | ||
| content: ''; | ||
| display: block; | ||
| position: absolute; | ||
| top: 0; | ||
| left: 0; | ||
| width: 0; | ||
| height: 100%; | ||
| background-color: var(--hover-bg-color); | ||
| transition: width .4s ease; | ||
| z-index: -1; | ||
| } | ||
|
|
||
| .link:hover { | ||
| color: var(--text-color-hover); | ||
| } | ||
|
|
||
| .link:hover:before { | ||
| background: var(--link-image-hover); | ||
| transition: background .2s ease .2s; | ||
| } | ||
|
|
||
| .link:hover:after { | ||
| width: 100%; | ||
| } | ||
|
|
||
| .link:active { | ||
| border-color: var(--active-bg-color); | ||
| } | ||
|
|
||
| .link:active:after { | ||
| transform: scale(1.1); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| .preview__container { | ||
| min-height: 300px; | ||
| margin-bottom: 16px; | ||
| display: flex; | ||
| flex-direction: column; | ||
| justify-content: space-between; | ||
| background: var(--preview-bg-color); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| .preview__items { | ||
| margin: 0; | ||
| padding: 0; | ||
| list-style: none; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .preview__link_rotate_arrow:before { | ||
| transform: rotate(90deg); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| .preview__link { | ||
| padding: 17px; | ||
| border-top: 1px solid var(--border-color); | ||
| position: relative; | ||
| z-index: 1; | ||
| } | ||
|
|
||
| .preview__link:before { | ||
| top: 16px; | ||
| right: 16px; | ||
| transform: rotate(-45deg); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .preview__title { | ||
| padding: 24px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .preview { | ||
| max-width: 240px; | ||
| margin-top: 80px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| .projects__link { | ||
| width: 120px; | ||
| height: 32px; | ||
| margin: 32px 0 0 30px; | ||
| padding: 3px 0 0 10px; | ||
| display: flex; | ||
| align-items: center; | ||
| border-bottom: 1px solid var(--border-color); | ||
| border-right: 1px solid var(--border-color); | ||
| grid-column: 1 / 3; | ||
|
Collaborator
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. стоит display: flex, а далее по коду grid-column: 1 / 3, не лишнее свойство? |
||
| position: relative; | ||
| transition: color .2s ease .1s; | ||
| } | ||
|
|
||
| .projects__link:before { | ||
| transform: rotate(180deg); | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .projects { | ||
| display: grid; | ||
| grid-template: 94px auto auto / repeat(2, 1fr); | ||
|
Owner
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. огонь!)) |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .text-block__desc-items { | ||
| display: flex; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .text-block__desc_font-size_s { | ||
| font-size: 16px; | ||
| line-height: 1.37; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .text-block__desc_margin-left { | ||
| margin-left: 5px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .text-block__desc_margin_size_l { | ||
| margin: 48px 0 68px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .text-block__desc_margin_size_s { | ||
| margin-top: 7px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| .text-block__desc { | ||
| margin: 0; | ||
| max-width: 590px; | ||
| font-family: 'Neue Machina', sans-serif; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| font-size: 28px; | ||
| line-height: 1.14; | ||
| letter-spacing: -0.01em; | ||
| color: var(--text-color); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| .text-block__link { | ||
| font-family: 'Formular', sans-serif; | ||
| font-style: normal; | ||
| font-weight: 300; | ||
| font-size: 16px; | ||
| line-height: 1.37; | ||
| color: var(--text-color); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .text-block__subtitle_placed_lead { | ||
| margin: 37px 0 212px 61px; | ||
| max-width: 400px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| .text-block__subtitle { | ||
| margin: 0; | ||
| font-family: 'Neue Machina', sans-serif; | ||
| font-style: normal; | ||
| font-weight: 400; | ||
| font-size: 20px; | ||
| line-height: 1.2; | ||
| letter-spacing: -0.01em; | ||
| color: var(--text-color); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| .text-block__text_placed_authors { | ||
| margin: 3px 0 25px 27px; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| .text-block__text_placed_brief { | ||
| max-width: 602px; | ||
| margin-bottom: 16px; | ||
| text-indent: 59px; | ||
| } | ||
|
|
||
| .text-block__text_placed_brief:first-of-type { | ||
| text-indent: 0; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,10 @@ | ||
| .text-block__text { | ||
| margin: 0; | ||
| font-family: 'Formular'; | ||
| font-family: 'Formular', sans-serif; | ||
| font-weight: 300; | ||
| font-size: 20px; | ||
| line-height: 1.4; | ||
| letter-spacing: -0.01em; | ||
| font-feature-settings: 'ss01' on; | ||
| color: var(--text-color); | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| .text-block__title-item { | ||
| margin: 0; | ||
| font-family: 'Formular', sans-serif; | ||
| font-style: normal; | ||
| font-weight: 300; | ||
| font-size: 16px; | ||
| line-height: 1.37; | ||
| color: var(--text-color); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .text-block__title_font-size_l { | ||
| font-size: 72px; | ||
| line-height: .97; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| .text-block__title_font-size_s { | ||
| font-size: 20px; | ||
| line-height: 1.2; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,9 @@ | ||
| .text-block__title { | ||
| margin: 0; | ||
| font-family: 'Neue Machina'; | ||
| font-family: 'Neue Machina', sans-serif; | ||
| font-weight: 400; | ||
| font-size: 40px; | ||
| line-height: 1; | ||
| letter-spacing: -0.01em; | ||
| color: var(--text-color); | ||
| flex-grow: 1; | ||
|
Owner
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. ненужное свойство было до тебя добавлено?
Collaborator
Author
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. Да, оно не требуется |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| .text-block_placed_slider-title { | ||
| max-width: 718px; | ||
| flex-direction: row; | ||
|
Collaborator
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. Переопределяешь свойство? Если нет, то значение row по умолчанию и тут не требуется |
||
| justify-content: space-between; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| .video__content { | ||
| width: 100%; | ||
| max-width: 691px; | ||
| min-height: 389px; | ||
| } |
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.
старайся писать в стилях сначала размеры, потом отступы, далее другие стили относящиеся к этому селектору.
В методолгии стайлкодинга, которую нам давали на первом спринте этот пунктик есть с ранжированием стилей в селекторе, в целом это не влияет никак на функционал, но структурированный код это всегда круто)