Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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.

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

<main class="global-results">
<style>
/* your styles here */
div
{
background-color: #6698ff;
}

aside

Choose a reason for hiding this comment

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

Можно объединить в один селектор с предыдущим

{
background-color: #6698ff;
}

.c1
{
background-color: #ff6698;
}

#id
{
background-color: #98ff66;
}
</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 */
.title::first-letter
{
color: #ff6698;
}

.description::first-line
{
color: #6698ff;
}
</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 */
input:valid
{
border: 3px solid #98ff66;
}

input:invalid
{
border: 3px solid #ff6698;
}

input:hover
{
border: 3px solid #6698ff;
}
</style>

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

div:nth-of-type(1),
:nth-of-type(3),
:nth-of-type(7),
:nth-of-type(9)

Choose a reason for hiding this comment

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

Так работает, но можно было посмотреть внимательней на html ) Оранжевые и желтые квадраты отличаются там

{
background-color: #ffb366;
}
</style>

<section class="global-result">
Expand Down
7 changes: 6 additions & 1 deletion tasks/13.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>
/* 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)

Choose a reason for hiding this comment

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

Здесь тоже можно было посмотреть на html, и придумать более простой селектор: div:only-of-type

{
background-color: #ff6698;
}
</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 */
li::before
{
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 */
[href$='.zip']::after
{
content: ' ↓';
}
</style>

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

<main class="global-results">
<style>
/* your styles here */
div
{
background-color: #ff6698 !important;
}

.c1
{
background-color: #6698ff !important;
}

#id1
{
background-color: #ffb366 !important;

Choose a reason for hiding this comment

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

Зачем везде !important? Его нужно использовать только в крайнем случае, когда других способов нет. Здесь хватило бы одного important в нужном селекторе

}

.c7
{
background-color: #ff6 !important;
}
</style>

<section class="global-result">
Expand Down
5 changes: 4 additions & 1 deletion tasks/17.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 */
input:checked ~ input:not(:checked)
{
outline: 1px solid #ff6698;
}
</style>

<section class="global-result">
Expand Down
10 changes: 9 additions & 1 deletion tasks/18.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 */
div
{
opacity: .5;
}

div:hover

Choose a reason for hiding this comment

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

Работает не совсем так. При наведении на один блок все остальные блоки должны становиться еще более прозрачными

{
opacity: 1;
}
</style>

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

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

div div
{
background-color: white;
}

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

div:nth-child(2) div:nth-child(2),
div:nth-child(2) div:nth-child(4)
{
background-color: #ff6698;
}

div:nth-child(3) div:first-child,
div:nth-child(3) div:nth-child(3)
{
background-color: #6698ff;
}

div:nth-child(4) div:first-child
{
background-color: #ff6;
}
</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.c2
{
background-color: #6698ff;
}

.c1
{
border: 2px solid #000;
background-color: #ff6698;
}

.c2
{
background-color: #ffb366;
}
</style>

<section class="global-result">
Expand Down
10 changes: 9 additions & 1 deletion tasks/3.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 */
div > div
{
background-color: #6698ff;
}

article > div
{
border: 2px solid #000;
}
</style>

<section class="global-result">
Expand Down
12 changes: 11 additions & 1 deletion tasks/4.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>
/* your styles here */
article:not(:first-of-type)
{
border-top: 1px solid rgb(0, 0, 0);
}

article:nth-child(4),

Choose a reason for hiding this comment

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

Можно проще, используя odd или even

:nth-child(6),
:nth-child(8)
{
background-color: #ff6;
}
</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 */
input#checkbox:checked ~ div
{
background-color: black;
color: white;
}
</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 */
[href^='https://']
{
color: #6698ff;
}

[href*='yandex.ru']
{
color: #ff6698;
}
</style>

<section class="global-result">
Expand Down
6 changes: 5 additions & 1 deletion tasks/7.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 */
div:nth-of-type(2),

Choose a reason for hiding this comment

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

Прозрачные картинки от непрозрачных отличаются атрибутом alt, можно это использовать

:nth-of-type(3)
{
opacity: .5;
}
</style>

<section class="global-result">
Expand Down
5 changes: 4 additions & 1 deletion tasks/8.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 */
[target='_blank']
{
color: #ff6698;
}
</style>

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

<main class="global-results">
<style>
/* your styles here */
[href^='https']
{
color: #6698ff;
}

[href^='https']:visited
{
color: #ffb366;
}

[href^='https']:hover

Choose a reason for hiding this comment

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

не обязательно тут проверять на https, у псевдоссылок вообще нет атрибута href. Можно использовать например :not для них

{
color: #ff6698;
}

[href^='https']:active
{
color: #98ff66;
}

a.link:hover
{
opacity: .5;
}

a.link:active
{
opacity: 1;
}
</style>

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