-
Notifications
You must be signed in to change notification settings - Fork 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
Денисов Андрей #127
base: master
Are you sure you want to change the base?
Денисов Андрей #127
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,18 @@ <h1 class="global-heading"> </h1> | |
|
||
<main class="global-results"> | ||
<style> | ||
/* your styles here */ | ||
div | ||
{ | ||
background-color: #ff6; | ||
} | ||
|
||
div:nth-of-type(1), | ||
:nth-of-type(3), | ||
:nth-of-type(7), | ||
:nth-of-type(9) | ||
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. Так работает, но можно было посмотреть внимательней на html ) Оранжевые и желтые квадраты отличаются там |
||
{ | ||
background-color: #ffb366; | ||
} | ||
</style> | ||
|
||
<section class="global-result"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,12 @@ <h1 class="global-heading"> </h1> | |
|
||
<main class="global-results"> | ||
<style> | ||
/* your styles here */ | ||
div:nth-child(1) > div:nth-child(1), | ||
div:nth-child(5) > div:nth-child(1), | ||
div:nth-child(9) > div:nth-child(1) | ||
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. Здесь тоже можно было посмотреть на html, и придумать более простой селектор: |
||
{ | ||
background-color: #ff6698; | ||
} | ||
</style> | ||
|
||
<section class="global-result"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,25 @@ <h1 class="global-heading"> </h1> | |
|
||
<main class="global-results"> | ||
<style> | ||
/* your styles here */ | ||
div | ||
{ | ||
background-color: #ff6698 !important; | ||
} | ||
|
||
.c1 | ||
{ | ||
background-color: #6698ff !important; | ||
} | ||
|
||
#id1 | ||
{ | ||
background-color: #ffb366 !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. Зачем везде |
||
} | ||
|
||
.c7 | ||
{ | ||
background-color: #ff6 !important; | ||
} | ||
</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 */ | ||
div | ||
{ | ||
opacity: .5; | ||
} | ||
|
||
div:hover | ||
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. Работает не совсем так. При наведении на один блок все остальные блоки должны становиться еще более прозрачными |
||
{ | ||
opacity: 1; | ||
} | ||
</style> | ||
|
||
<section class="global-result"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,17 @@ <h1 class="global-heading"> </h1> | |
|
||
<main class="global-results"> | ||
<style> | ||
/* your styles here */ | ||
article:not(:first-of-type) | ||
{ | ||
border-top: 1px solid rgb(0, 0, 0); | ||
} | ||
|
||
article:nth-child(4), | ||
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. Можно проще, используя |
||
:nth-child(6), | ||
:nth-child(8) | ||
{ | ||
background-color: #ff6; | ||
} | ||
</style> | ||
|
||
<section class="global-result"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,11 @@ <h1 class="global-heading"> </h1> | |
|
||
<main class="global-results"> | ||
<style> | ||
/* your styles here */ | ||
div:nth-of-type(2), | ||
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. Прозрачные картинки от непрозрачных отличаются атрибутом |
||
:nth-of-type(3) | ||
{ | ||
opacity: .5; | ||
} | ||
</style> | ||
|
||
<section class="global-result"> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,35 @@ <h1 class="global-heading"> </h1> | |
|
||
<main class="global-results"> | ||
<style> | ||
/* your styles here */ | ||
[href^='https'] | ||
{ | ||
color: #6698ff; | ||
} | ||
|
||
[href^='https']:visited | ||
{ | ||
color: #ffb366; | ||
} | ||
|
||
[href^='https']:hover | ||
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. не обязательно тут проверять на https, у псевдоссылок вообще нет атрибута |
||
{ | ||
color: #ff6698; | ||
} | ||
|
||
[href^='https']:active | ||
{ | ||
color: #98ff66; | ||
} | ||
|
||
a.link:hover | ||
{ | ||
opacity: .5; | ||
} | ||
|
||
a.link:active | ||
{ | ||
opacity: 1; | ||
} | ||
</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.
Можно объединить в один селектор с предыдущим