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
10 changes: 10 additions & 0 deletions tasks/1.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@ <h1 class="global-heading">&nbsp;</h1>
<section class="global-result">
<style>
/* ваш код здесь... */
div:first-child,
aside:last-child {
background: #6697FF;
}
.c1{
background: #FF6598;
}
#id{
background: #98FF66;
}
</style>

<article class="global-scope">
Expand Down
6 changes: 6 additions & 0 deletions tasks/10.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
.title::first-letter{
color:#FF6698;
}
.description::first-line{
color:#6898FF;
}
</style>

<section class="global-result">
Expand Down
9 changes: 9 additions & 0 deletions tasks/11.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
[value^="invalid"]{
border: 3px solid #FF6698;
}
[value*="@"]{
border: 3px solid #98FF66;
}
[value^="invalid"]:focus{
border: 3px solid #6395FF;
}
</style>

<section class="global-result">
Expand Down
8 changes: 8 additions & 0 deletions tasks/12.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
div{
background: #FFFF65
}
div:nth-child(odd):not(:nth-of-type(5)){
background: #FFB365;
}


</style>

<section class="global-result">
Expand Down
3 changes: 3 additions & 0 deletions tasks/13.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
article>div:nth-child(4n+1) div:first-child{
background: gray;
}
</style>

<section class="global-result">
Expand Down
3 changes: 3 additions & 0 deletions tasks/14.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
li::before{
content: "+ ";
}
</style>

<section class="global-result">
Expand Down
3 changes: 3 additions & 0 deletions tasks/15.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
[href$="zip"]::after{
content: " \2193";
}
</style>

<section class="global-result">
Expand Down
12 changes: 12 additions & 0 deletions tasks/16.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
div:first-child{
background: #FF6698;
}
.c1{
background: #6798FF !important;
}
#id1{
background: #FFB365 !important;
}
.c7{
background: #FFFF65 !important;
}
</style>

<section class="global-result">
Expand Down
3 changes: 3 additions & 0 deletions tasks/17.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
input:checked ~ input:not(:checked){
outline: 1px solid #ff6698;
}
</style>

<section class="global-result">
Expand Down
3 changes: 3 additions & 0 deletions tasks/18.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
article:hover div:not(:hover){
opacity: 0.3;
}
</style>

<section class="global-result">
Expand Down
18 changes: 18 additions & 0 deletions tasks/19.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
div{
background: white;
}
article>div{
background: #FFB365;
}
div:nth-of-type(1)>div:last-child{
background: #98FF66;
}
div:nth-of-type(2)>div:nth-of-type(even){
background: #FF6698;
}
div:nth-of-type(3)>div:nth-of-type(odd){
background: #6798FF;
}
div:nth-of-type(4)>div:first-child{
background: #FFFF65;
}
</style>

<section class="global-result">
Expand Down
11 changes: 11 additions & 0 deletions tasks/2.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
.c1 {
background: #FF6598;
border: 2px solid #000;
}
.c1.c2 {
background: #6697FF;
border: 2px solid #000;
}
.c2{
background: #FFB365;
}
</style>

<section class="global-result">
Expand Down
6 changes: 6 additions & 0 deletions tasks/20.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
div div:nth-last-child(n+3){
background: #FF6698;
}
div div:nth-last-child(n+3)~div{
background: #FF6698;
}
</style>

<section class="global-result">
Expand Down
6 changes: 6 additions & 0 deletions tasks/3.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
article>div{
border: 2px solid #000;
}
div div{
background: #6697FF;
}
</style>

<section class="global-result">
Expand Down
3 changes: 3 additions & 0 deletions tasks/4.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
article:not(:first-of-type){
border-top: 1px solid #000;
}
</style>

<section class="global-result">
Expand Down
83 changes: 47 additions & 36 deletions tasks/5.html
Original file line number Diff line number Diff line change
@@ -1,38 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
</head>
<body>
<h1 class="global-heading">&nbsp;</h1>
<p>Решите задачу, используя <code>background: &lt;color&gt;</code> и <code>color: &lt;color&gt;</code></p>

<main class="global-results">
<style>
/* ваш код здесь... */
</style>

<section class="global-result">
<article class="global-scope">
<label for="checkbox">Black Theme</label>
<input id="checkbox" type="checkbox"><br>
<div class="tab">Text</div>
</article>
</section>

<section class="global-result">
<img class="global-goal">
</section>
</main>

<nav class="global-nav">
<a class="global-prev">Предыдущее</a>
<a class="global-next">Следующее</a>
</nav>

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

<head>
<title>CSS-селекторы</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
</head>

<body>
<h1 class="global-heading">&nbsp;</h1>
<p>Решите задачу, используя <code>background: &lt;color&gt;</code> и <code>color: &lt;color&gt;</code></p>

<main class="global-results">
<style>
/* ваш код здесь... */
.tab {
color: black;
background: white;
}
#checkbox:checked+*+div.tab {
color: white;
background: black;
}
</style>

<section class="global-result">
<article class="global-scope">
<label for="checkbox">Black Theme</label>
<input id="checkbox" type="checkbox"><br>
<div class="tab">Text</div>
</article>
</section>

<section class="global-result">
<img class="global-goal">
</section>
</main>

<nav class="global-nav">
<a class="global-prev">Предыдущее</a>
<a class="global-next">Следующее</a>
</nav>

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

</html>
3 changes: 3 additions & 0 deletions tasks/6.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
[href*="yandex.ru"]{
color: #FF77A3;
}
</style>

<section class="global-result">
Expand Down
10 changes: 10 additions & 0 deletions tasks/7.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
div:first-child ~ div:not(:last-child){
opacity: 0.3;
}
/* можно сделать проще:
div:nth-child(2){
opacity: 0.3;
}
div:nth-child(3){
opacity: 0.3;
}*/
</style>

<section class="global-result">
Expand Down
10 changes: 10 additions & 0 deletions tasks/8.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
a {
color:#FF679A;
}
[href*="my-site.ru"]{
color:#2E00EE;
}
[href^="/"]:not([href^="//"]){
color:#2E00EE;
}

</style>

<section class="global-result">
Expand Down
12 changes: 12 additions & 0 deletions tasks/9.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<style>
/* ваш код здесь... */
a:hover{
color:#CAB4AA;
}
[href^="http"]:visited{
color:#FFB45F;
}
[href^="http"]:hover{
color:#FF6698;
}
[href^="http"]:active{
color:#98FF66;
}
</style>

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