Skip to content
Open
8 changes: 4 additions & 4 deletions colours.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

.yellow
{
color: #ffff66
color: #ffff66;
}

.green
{
color: #98ff66
color: #98ff66;
}

.blue
{
color: #6698ff
}
color: #6698ff;
}
12 changes: 11 additions & 1 deletion tasks/1.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<section class="global-result">
<style>
/* ваш код здесь... */
div, aside {
background: #6897FF;
}

.c1 {
background: #FE6697;
}

#id {
background: #98FF68;
}
</style>

<article class="global-scope">
Expand Down
8 changes: 7 additions & 1 deletion tasks/10.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
.title::first-letter {
color: #ff6698;
}

.description::first-line {
color: #6698ff;
}
</style>

<section class="global-result">
Expand Down
12 changes: 11 additions & 1 deletion tasks/11.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,17 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
input:first-child {
border: 3px solid #ff6698;
}

input:first-child:focus {
border: 3px solid #6698ff;
}

input:last-child {
border: 3px solid #98ff66;
}
</style>

<section class="global-result">
Expand Down
11 changes: 10 additions & 1 deletion tasks/12.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,16 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
div {
background: #ffff66;
}

div:first-child,
div:nth-child(3),
div:nth-child(7),
div:last-child {
background: #ffb366;
}
</style>

<section class="global-result">
Expand Down
6 changes: 5 additions & 1 deletion tasks/13.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
div:first-child div,
div:nth-child(5) div:first-child,
div:last-child div:first-child {
background: #ff6698;
}
</style>

<section class="global-result">
Expand Down
4 changes: 3 additions & 1 deletion tasks/14.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
li::before {
content: '+ '
}
</style>

<section class="global-result">
Expand Down
4 changes: 3 additions & 1 deletion tasks/15.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
a[href$='.zip']::after {
content: ' ↓';
}
</style>

<section class="global-result">
Expand Down
16 changes: 15 additions & 1 deletion tasks/16.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,21 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
.global-scope div {
background: #ff6698;
}

.global-scope .c1 {
background: #6698ff;
}

.global-scope #id1 {
background: #ffb366;
}

.global-scope .c7 {
background: #ffff66 !important;
}
</style>

<section class="global-result">
Expand Down
10 changes: 9 additions & 1 deletion tasks/17.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,15 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
input[type=checkbox]:nth-child(5):checked
~ input[type=checkbox] {
outline: 1px solid #ff6698;
}

input[type=checkbox]:nth-child(5):checked
~ input[type=checkbox]:nth-child(8):checked {
outline: none;
}
</style>

<section class="global-result">
Expand Down
8 changes: 7 additions & 1 deletion tasks/18.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
div {
opacity: 0.5;
}

div:hover {
opacity: 1;
}
</style>

<section class="global-result">
Expand Down
24 changes: 23 additions & 1 deletion tasks/19.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,29 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
div {
background: #ffb366;
}

div div {
background: #fff;
}

div:first-child div:last-child {
background: #98ff66;
}

div:nth-child(2) div:nth-child(2n) {
background: #ff6698;
}

div:nth-child(3) div:nth-child(2n-1) {
background: #6698ff;
}

div:last-child div:first-child {
background: #ffff66;
}
</style>

<section class="global-result">
Expand Down
13 changes: 12 additions & 1 deletion tasks/2.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,18 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
.c1 {
border: 2px solid #000;
background: #FE6697;
}

.c2 {
background-color: #FFB365;
}

.c1.c2 {
background-color: #6897FF;
}
</style>

<section class="global-result">
Expand Down
7 changes: 6 additions & 1 deletion tasks/20.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
div div:nth-last-child(3),
div div:nth-last-child(3) ~ div,
div div:nth-last-child(4),
div div:nth-last-child(4) ~ div {
background: #ff6698;
}
</style>

<section class="global-result">
Expand Down
9 changes: 8 additions & 1 deletion tasks/3.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,14 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
div {
border: 2px solid #000;
}

div div {
border: none;
background: #6A96FF;
}
</style>

<section class="global-result">
Expand Down
4 changes: 3 additions & 1 deletion tasks/4.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
article + article {
border-top: 1px solid #000;
}
</style>

<section class="global-result">
Expand Down
5 changes: 4 additions & 1 deletion tasks/5.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
input[type=checkbox]:checked ~ .tab {
background: #000;
color: #fff;
}
</style>

<section class="global-result">
Expand Down
8 changes: 7 additions & 1 deletion tasks/6.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
a:first-child {
color: #6A96FF;
}

a {
color: #FE6697;
}
</style>

<section class="global-result">
Expand Down
5 changes: 4 additions & 1 deletion tasks/7.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
div:nth-child(2) img,
div:nth-child(3) img {
opacity: 0.25;
}
</style>

<section class="global-result">
Expand Down
6 changes: 5 additions & 1 deletion tasks/8.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
li:nth-child(2) a,
li:nth-child(5) a,
li:last-child a {
color: #ff6698;
}
</style>

<section class="global-result">
Expand Down
24 changes: 23 additions & 1 deletion tasks/9.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,29 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
.link[href] {
color: #6698ff;
}

.link[href]:hover, .link[href]:visited:hover {
color: #ff6698;
}

.link[href]:hover + .link {
opacity: 0.5;
}

.link[href]:active, .link[href]:visited:active {
color: #98ff66;
}

.link[href]:active + .link {
opacity: 1;
}

.link[href]:visited {
color: #ffb366;
}
</style>

<section class="global-result">
Expand Down