Skip to content
20 changes: 18 additions & 2 deletions tasks/1.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,23 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<section class="global-result">
<style>
/* your styles here */
/* your styles here -*/

div,
aside
{
background-color: #6698ff;
}

div.c1
{
background-color: #ff6698;
}

#id
{
background-color: #98ff66;
}
</style>

<article class="global-scope">
Expand All @@ -35,4 +51,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
14 changes: 12 additions & 2 deletions tasks/10.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

p.title::first-letter
{
color: #ff6698;
}

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

<section class="global-result">
Expand All @@ -33,4 +43,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
19 changes: 17 additions & 2 deletions tasks/11.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,22 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

input[value*='@yandex.ru']
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Есть :valid и :not. Здесь бы они подошли лучше, но ты молодец

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Я с ними попробую реализацию сделать. Спасибо за совет)

{
border: 3px solid #98ff66;
}

input:not([value*='@yandex.ru'])
{
border: 3px solid #ff6698;
}

input:focus:not([value*='@yandex.ru'])
{
border: 3px solid #6698ff;
}
</style>

<section class="global-result">
Expand All @@ -33,4 +48,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
15 changes: 13 additions & 2 deletions tasks/12.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

article > div:nth-child(odd)
{
background-color: #ffb366;
}

article > div:nth-child(even),
article > div:nth-child(5)
{
background-color: #ff6;
}
</style>

<section class="global-result">
Expand Down Expand Up @@ -44,4 +55,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
11 changes: 9 additions & 2 deletions tasks/13.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

article.global-scope > div:nth-child(1) > div:first-of-type,
article.global-scope > div:nth-child(5) > div:first-of-type,
article.global-scope > div:nth-child(9) > div:first-of-type
{
background-color: #ff6698;
}
</style>

<section class="global-result">
Expand Down Expand Up @@ -65,4 +72,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
9 changes: 7 additions & 2 deletions tasks/14.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

ul li::before
{
content: '+ ';
}
</style>

<section class="global-result">
Expand All @@ -36,4 +41,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
9 changes: 7 additions & 2 deletions tasks/15.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

a[href$='.zip'][download]::after
{
content: ' ↓';
}
</style>

<section class="global-result">
Expand Down Expand Up @@ -48,4 +53,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
24 changes: 22 additions & 2 deletions tasks/16.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,27 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

article.global-scope > div:first-child
{
background-color: #ff6698;
}

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

#id1
{
background-color: #ffb366;
}

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

<section class="global-result">
Expand All @@ -35,4 +55,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
14 changes: 12 additions & 2 deletions tasks/17.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,17 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

:checked ~ input
{
outline: 1px solid #ff6698;
}

input:checked
{
outline: none;
}
</style>

<section class="global-result">
Expand Down Expand Up @@ -41,4 +51,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
15 changes: 13 additions & 2 deletions tasks/18.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

article.global-scope > div
{
background-color: #ff6698;
opacity: .5;
}

article.global-scope > div:hover
{
opacity: 1;
}
</style>

<section class="global-result">
Expand Down Expand Up @@ -40,4 +51,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
36 changes: 34 additions & 2 deletions tasks/19.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,39 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

article.global-scope > div
{
background-color: #ffb366;
}

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

article.global-scope > div:first-of-type > div:last-of-type
{
background-color: #98ff66;
}

article.global-scope > div:nth-child(2) > div:nth-child(2),
article.global-scope > div:nth-child(2) > div:nth-child(4)
{
background-color: #ff6698;
}

article.global-scope > div:nth-child(3) > div:nth-child(1),
article.global-scope > div:nth-child(3) > div:nth-child(3)
{
background-color: #6698ff;
}

article.global-scope > div:last-of-type > div:first-of-type
{
background-color: #ff6;
}
</style>

<section class="global-result">
Expand Down Expand Up @@ -55,4 +87,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
15 changes: 13 additions & 2 deletions tasks/2.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

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

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

<section class="global-result">
Expand All @@ -35,4 +46,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
10 changes: 8 additions & 2 deletions tasks/20.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

div.red-gt2:nth-child(3) > div,
div.red-gt2:nth-child(4) > div
{
background-color: #ff6698;
}
</style>

<section class="global-result">
Expand Down Expand Up @@ -49,4 +55,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
15 changes: 13 additions & 2 deletions tasks/3.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* your styles here */
/* your styles here -*/

div
{
border: 2px solid #000;
}

div > div
{
background-color: #6698ff;
border: initial;
}
</style>

<section class="global-result">
Expand Down Expand Up @@ -55,4 +66,4 @@ <h1 class="global-heading">&nbsp;</h1>

<script src="../global.js"></script>
</body>
</html>
</html>
Loading