Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,192 changes: 596 additions & 596 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 15 additions & 1 deletion tasks/1.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>
/* your styles here */
div,
aside
{
background: #6594ff;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Для задания цвета фона используй background-color

}

.c1
{
background: #ff6397;
}

#id
{
background: #95ff5b;
}
</style>

<section class="global-result">
Expand Down
10 changes: 9 additions & 1 deletion tasks/10.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>
/* your styles here */
.global-scope > .title:first-letter

Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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">
Expand Down
15 changes: 14 additions & 1 deletion tasks/11.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,20 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
.global-scope input:valid
{
border: 3px solid #95ff5b;
}

.global-scope input:invalid
{
border: 3px solid #ff6397;
}

.global-scope input:focus
{
border: 3px solid #6594ff;
}
</style>

<section class="global-result">
Expand Down
10 changes: 9 additions & 1 deletion tasks/12.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>
/* your styles here */
.global-scope div:empty
{
background: #ff56;
}

.global-scope div
{
background: #ffb366;
}
</style>

<section class="global-result">
Expand Down
5 changes: 4 additions & 1 deletion tasks/13.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>
/* your styles here */
.global-scope > div:nth-of-type(4n+1) > div:first-child

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Попробуй упростить селектор с помощью псевдокласса only-of-type

{
background: #ff6397;
}
</style>

<section class="global-result">
Expand Down
5 changes: 4 additions & 1 deletion tasks/14.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>
/* your styles here */
.global-scope > ul > li:before

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем такая вложенность?

{
content: '+';
}
</style>

<section class="global-result">
Expand Down
5 changes: 4 additions & 1 deletion tasks/15.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>
/* your styles here */
.global-scope a[href$='.zip']:after
{
content: '↓';
}
</style>

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

<main class="global-results">
<style>
/* your styles here */
.global-scope > div
{
background: #ff6397;
}

div.c1
{
background: #6594ff;
}

#id1
{
background: #ffb366;
}

.c7
{
background: #ffdc00 !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>
/* your styles here */
.global-scope input:checked ~ input
{
outline: 1px solid #ff6698;
}

.global-scope input:checked
{
outline: none !important;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно не переназначать правило, если в верхнем селекторе сузить выборку. Можно после оператора ~ выбирать только элемент, не содержащие псевдокласс checked

}
</style>

<section class="global-result">
Expand Down
6 changes: 5 additions & 1 deletion tasks/18.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>
/* your styles here */
.global-scope > div:not(:hover)
{
opacity: .3;
}

</style>

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

<main class="global-results">
<style>
/* your styles here */
.global-scope > div
{
background: #ffb366;
}

.global-scope > div > div
{
background: #fff;
}

.global-scope > div:first-of-type > div:last-of-type
{
background: #95ff5b;
}

.global-scope > div:last-of-type > div:first-of-type
{
background: #ff5;
}

.global-scope > div:nth-of-type(2) > div:nth-of-type(even)
{
background: #ff6397;
}

.global-scope > div:nth-of-type(3) > div:nth-of-type(odd)
{
background: #6594ff;
}

</style>

<section class="global-result">
Expand Down
16 changes: 15 additions & 1 deletion tasks/2.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>
/* your styles here */
.c1
{
border: 2px solid #000;
background: #ff6397;
}

.c2
{
background: #ffb366;
}

.c1.c2
{
background: #6594ff;
}
</style>

<section class="global-result">
Expand Down
5 changes: 4 additions & 1 deletion tasks/20.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>
/* your styles here */
.global-scope > .red-gt2:not(:nth-child(-n+2)) > div

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍 👍

{
background: #ff6397;
}
</style>

<section class="global-result">
Expand Down
11 changes: 10 additions & 1 deletion tasks/3.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>
/* your styles here */
.global-scope div
{
border: 2px solid #000;
}

.global-scope div > div
{
background: #6594ff;
border: none;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно не переназначать правило, если в верхнем селекторе выбрать только непосредственных потомков родительского элемента при помощи оператора >

}
</style>

<section class="global-result">
Expand Down
10 changes: 9 additions & 1 deletion tasks/4.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>
/* your styles here */
.global-scope > article:nth-of-type(odd)
{
background: #ff59;
}

.global-scope > article:not(:first-of-type)
{
border-top: 1px solid #000;
}
</style>

<section class="global-result">
Expand Down
6 changes: 5 additions & 1 deletion tasks/5.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>
/* your styles here */
#checkbox:checked ~ .tab
{
background: #000;
color: #fff;
}
</style>

<section class="global-result">
Expand Down
10 changes: 9 additions & 1 deletion tasks/6.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>
/* your styles here */
a[href*='yandex.ru']
{
color: #ff6397;
}

a
{
color: #6594ff;
}
</style>

<section class="global-result">
Expand Down
11 changes: 10 additions & 1 deletion tasks/7.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>
/* your styles here */
.global-scope > div:not(:first-of-type)
{
opacity: .3;
}

.global-scope > div:last-of-type
{
opacity: 1;
}

</style>

<section class="global-result">
Expand Down
8 changes: 7 additions & 1 deletion tasks/8.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>
/* your styles here */
.global-scope a[href^='http://']:not([href*='my-site.ru']),
.global-scope a[href^='https://']:not([href*='my-site.ru']),
.global-scope a[href^='//']:not([href*='my-site.ru'])
{
color: #ff6698;
}

</style>

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

<main class="global-results">
<style>
/* your styles here */
a:hover
{
color: #ff6397;
}

a:visited
{
color: #ffb366;
}

a:active
{
color: #95ff5b;

}

a:not([href]):hover
{
color: #888a8f;
}

a:not([href]):visited,
a:not([href]):active
{
color: #000;
}
</style>

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