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
15 changes: 13 additions & 2 deletions tasks/1.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -13,7 +13,18 @@ <h1 class="global-heading">&nbsp;</h1>
<main class="global-results">
<section class="global-result">
<style>
/* ваш код здесь... */
article div:first-child {
background: #6698ff
}
div.c1 {
background-color: #ff6698
}
div#id {
background: #98ff66
}
aside {
background: #6698ff
}
</style>

<article class="global-scope">
Expand Down
9 changes: 7 additions & 2 deletions tasks/10.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,12 @@ <h1 class="global-heading">&nbsp;</h1>

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

<section class="global-result">
Expand Down
12 changes: 10 additions & 2 deletions tasks/11.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,15 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
input[value="invalid-email"] {
border: 3px solid #ff6698
}
input[value="email@yandex.ru"] {
border: 3px solid #98ff66
}
input:focus[value="invalid-email"] {
border: 3px solid #6698ff
}
</style>

<section class="global-result">
Expand Down
13 changes: 11 additions & 2 deletions tasks/12.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,16 @@ <h1 class="global-heading">&nbsp;</h1>

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

<section class="global-result">
Expand Down
6 changes: 4 additions & 2 deletions tasks/13.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,9 @@ <h1 class="global-heading">&nbsp;</h1>

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

<section class="global-result">
Expand Down
6 changes: 4 additions & 2 deletions tasks/14.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -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
6 changes: 4 additions & 2 deletions tasks/15.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -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
15 changes: 13 additions & 2 deletions tasks/16.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,18 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
article div:first-child {
background: #ff6698;
}
article div.c1 {
background: #6698ff;
}
article div#id1 {
background: #ffb366;
}
article div.c7 {
background: #ffff66 !important;
}
</style>

<section class="global-result">
Expand Down
9 changes: 7 additions & 2 deletions tasks/17.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,12 @@ <h1 class="global-heading">&nbsp;</h1>

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

<section class="global-result">
Expand Down
6 changes: 4 additions & 2 deletions tasks/18.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,9 @@ <h1 class="global-heading">&nbsp;</h1>

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

<section class="global-result">
Expand Down
21 changes: 19 additions & 2 deletions tasks/19.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,24 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
article div {
background: #ffb366
}
article div>div {
background: #ffffff;
}
article div:first-child>div:last-child {
background: #98ff66
}
article div:nth-child(2)>div:nth-child(2n) {
background: #ff6698
}
article div:nth-child(3)>div:nth-child(2n+1) {
background: #6698ff
}
article div:last-child>div:first-child {
background: #ffff66
}
</style>

<section class="global-result">
Expand Down
14 changes: 12 additions & 2 deletions tasks/2.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,17 @@ <h1 class="global-heading">&nbsp;</h1>

<main class="global-results">
<style>
/* ваш код здесь... */
div.c1.c2 {
background: #6698ff;
border: 2px solid #000
}
article div:nth-child(2n).c1 {
background-color: #ff6698;
border: 2px solid #000
}
article div:nth-child(3).c2 {
background: #ffb366;
}
</style>

<section class="global-result">
Expand Down
8 changes: 6 additions & 2 deletions tasks/20.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,11 @@ <h1 class="global-heading">&nbsp;</h1>

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

<section class="global-result">
Expand Down
9 changes: 7 additions & 2 deletions tasks/3.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,12 @@ <h1 class="global-heading">&nbsp;</h1>

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

<section class="global-result">
Expand Down
6 changes: 4 additions & 2 deletions tasks/4.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -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
7 changes: 5 additions & 2 deletions tasks/5.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>CSS-селекторы</title>
<title>CSS-селекторы_Барабаш Максим Сергеевич</title>
<meta charset="utf-8">

<link rel="stylesheet" type="text/css" href="../global.css">
Expand All @@ -12,7 +12,10 @@ <h1 class="global-heading">&nbsp;</h1>

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

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