-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавляет статью про aria-роль generic (#5650)
* Добавляет статью про generic * Добавляет демку к статье про generic * Исправляет фирменный цвет в демке * Добавляет аватар и описание @teplostanski * Вносит синтаксические правки * быстренько подтягивает фирстиль * Меняет тайл демки, ставит ёлочки * Слегка форматирует, добавляет ссылки * Ещё раз изменяет тайтл демки --------- Co-authored-by: Svetlana Korobtseva <wizzzjer@gmail.com> Co-authored-by: Tatiana Fokina <fokinatatian@gmail.com>
- Loading branch information
1 parent
b1b34c2
commit 5e13447
Showing
4 changed files
with
169 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
<!DOCTYPE html> | ||
<html lang="ru"> | ||
<head> | ||
<title>Две статьи с ролью и без роли generic — generic — Дока</title> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="preconnect" href="https://fonts.googleapis.com"> | ||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap"> | ||
<style> | ||
*, *::before, *::after { | ||
margin: 0; | ||
padding: 0; | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
color-scheme: dark; | ||
} | ||
|
||
body { | ||
min-height: 100vh; | ||
padding: 50px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
background-color: #18191C; | ||
font-family: "Roboto", sans-serif; | ||
} | ||
|
||
h2 { | ||
margin-bottom: 17px; | ||
font-weight: 500; | ||
font-size: 1.375rem; | ||
} | ||
|
||
.container { | ||
width: 80%; | ||
max-width: 800px; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 20px; | ||
} | ||
|
||
.block { | ||
padding: 55px 40px; | ||
background-color: #FFFFFF; | ||
color: #000000; | ||
} | ||
|
||
.block--semantic { | ||
background-color: #10F3AF; | ||
} | ||
|
||
.block__title { | ||
margin-bottom: 10px; | ||
font-weight: 500; | ||
} | ||
|
||
.block__content { | ||
font-size: 16px; | ||
line-height: 1.5; | ||
} | ||
|
||
.highlight { | ||
color: #FFFFFF; | ||
border-radius: 3px; | ||
padding: 0 3px; | ||
background-color: #000000; | ||
} | ||
|
||
@media (max-width: 768px) { | ||
body { | ||
padding: 30px; | ||
} | ||
|
||
.container { | ||
width: 100%; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<section class="container"> | ||
<article class="block block--semantic"> | ||
<h2 class="block__title">Обычная статья</h2> | ||
<p class="block__content"> | ||
Этот элемент <span class="highlight">article</span> имеет | ||
семантическое значение статьи. Скринридеры объявят его как «статья». | ||
</p> | ||
</article> | ||
|
||
<article class="block" role="generic"> | ||
<h2 class="block__title">Статья со сброшенной ролью</h2> | ||
<p class="block__content"> | ||
Этот элемент <span class="highlight">article</span> с ролью | ||
<span class="highlight">generic</span> теряет своё семантическое значение. | ||
Скринридеры не объявят его как статью. | ||
</p> | ||
</article> | ||
</section> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
--- | ||
name: 'Игорь Теплостанский' | ||
url: https://github.com/teplostanski | ||
photo: avatar.png | ||
badges: | ||
- first-contribution-small | ||
--- | ||
|
||
Я frontend developer. В свободное время разрабатываю vite-plugin-pretty-module-classnames, Moonbloom Theme и многое другое. | ||
Мне нравится создавать приложения и проекты с открытым исходным кодом. |