-
Notifications
You must be signed in to change notification settings - Fork 111
Шумейко Евгений #113
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: master
Are you sure you want to change the base?
Шумейко Евгений #113
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,15 @@ <h1 class="global-heading"> </h1> | |
|
|
||
| <main class="global-results"> | ||
| <style> | ||
| /* your styles here */ | ||
| .global-scope > .title:first-letter | ||
|
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. Класс родителя точно нужно указывать? И в других местах по коду обрати внимание |
||
| { | ||
| color: red; | ||
| } | ||
|
|
||
| .global-scope > .description:first-line | ||
| { | ||
| color: #6594ff; | ||
| } | ||
| </style> | ||
|
|
||
| <section class="global-result"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,10 @@ <h1 class="global-heading"> </h1> | |
|
|
||
| <main class="global-results"> | ||
| <style> | ||
| /* your styles here */ | ||
| .global-scope > div:nth-of-type(4n+1) > div:first-child | ||
|
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. Попробуй упростить селектор с помощью псевдокласса only-of-type |
||
| { | ||
| background: #ff6397; | ||
| } | ||
| </style> | ||
|
|
||
| <section class="global-result"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,10 @@ <h1 class="global-heading"> </h1> | |
|
|
||
| <main class="global-results"> | ||
| <style> | ||
| /* your styles here */ | ||
| .global-scope > ul > li:before | ||
|
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. Зачем такая вложенность? |
||
| { | ||
| content: '+'; | ||
| } | ||
| </style> | ||
|
|
||
| <section class="global-result"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,15 @@ <h1 class="global-heading"> </h1> | |
|
|
||
| <main class="global-results"> | ||
| <style> | ||
| /* your styles here */ | ||
| .global-scope input:checked ~ input | ||
| { | ||
| outline: 1px solid #ff6698; | ||
| } | ||
|
|
||
| .global-scope input:checked | ||
| { | ||
| outline: none !important; | ||
|
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. Можно не переназначать правило, если в верхнем селекторе сузить выборку. Можно после оператора |
||
| } | ||
| </style> | ||
|
|
||
| <section class="global-result"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,10 @@ <h1 class="global-heading"> </h1> | |
|
|
||
| <main class="global-results"> | ||
| <style> | ||
| /* your styles here */ | ||
| .global-scope > .red-gt2:not(:nth-child(-n+2)) > div | ||
|
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. 👍 👍 👍 |
||
| { | ||
| background: #ff6397; | ||
| } | ||
| </style> | ||
|
|
||
| <section class="global-result"> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,16 @@ <h1 class="global-heading"> </h1> | |
|
|
||
| <main class="global-results"> | ||
| <style> | ||
| /* your styles here */ | ||
| .global-scope div | ||
| { | ||
| border: 2px solid #000; | ||
| } | ||
|
|
||
| .global-scope div > div | ||
| { | ||
| background: #6594ff; | ||
| border: none; | ||
|
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. Можно не переназначать правило, если в верхнем селекторе выбрать только непосредственных потомков родительского элемента при помощи оператора |
||
| } | ||
| </style> | ||
|
|
||
| <section class="global-result"> | ||
|
|
||
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.
Для задания цвета фона используй
background-color