-
Notifications
You must be signed in to change notification settings - Fork 699
Добавляет доки про CSS Anchor Positioning, часть 1 #5922
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
Добавляет доки про CSS Anchor Positioning, часть 1 #5922
Conversation
c2a7427 to
df85722
Compare
df85722 to
029f262
Compare
solarrust
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Какие потрясающие демки! Какие наглядные! Спасибо тебе за них.
Как ты считаешь, когда будут написаны доки под отдельные свойства сможем ли мы это всё собрать в статью? По типу гайда по флексам. Мне это кажется хорошей идеей потому что сейчас некоторые отдельные свойства не дают понимания об их применении в реальной жизни. На это мысль из разряда «на потом».
Мне всё нравится =)
css/position-area/index.md
Outdated
|
|
||
| ```css | ||
| .target { | ||
| // располагаем элемент сверху слева относительно якоря |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // располагаем элемент сверху слева относительно якоря | |
| /* располагаем элемент сверху слева относительно якоря */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поправил
css/position-area/index.md
Outdated
|
|
||
| ```css | ||
| .target { | ||
| // располагаем элемент сверху по центру относительно якоря |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // располагаем элемент сверху по центру относительно якоря | |
| /* располагаем элемент сверху по центру относительно якоря */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поправил
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
У картинки есть потенциал для снижения веса
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
сжал
|
@solarrust, спасибо:) Да, такой план и был) Хочу вводную статью написать, которая будет описывать в целом апи, что с помощью него можно делать, а далее уже отдельные доки про каждое из свойств:) Но её в самом конце уже напишу) |
|
029f262 to
4c7e281
Compare
| - z-index | ||
| - inset | ||
| - anchor-name | ||
| - position-anchor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Сложил доки в раздел "Позиционирование".
Норм или лучше завести отдельный раздел под Anchor Positioning?
css/position-area/index.md
Outdated
|
|
||
| В обоих случаях нам потребовалось использовать два свойства, чтобы расположить элемент в нужном месте. Не очень удобно. Чтобы решить эту проблему было создано свойство `position-area`. С помощью него можно расположить таргет элемент относительно якоря используя концепцию сетки. | ||
|
|
||
|  |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
При локальном запуске всё ок, так что скорее всего это временная проблема предварительного просмотра.
|
В этом PR сделал демки адаптивными, добавил supports нотификации. Можно проверять. |
|
Также для интерактивной демки про |
Спасибо, посмотрю сегодня |
|
Ура! Всё супер. |
Превью контента из faad710 опубликовано. |
vitya-ne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Спасибо!
solarrust
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Большое спасибо номер раз =)



Описание
Добавляет доки про:
anchor-name;position-anchor;anchor();position-area.Это первый PR, закрывающий #5884. Далее их будет ещё несколько (с оставшимися свойствами).
Превью:
anchor-name– https://content-5922.dev.doka.guide/css/anchor-name/position-anchor– https://content-5922.dev.doka.guide/css/position-anchor/anchor()– https://content-5922.dev.doka.guide/css/anchor-function/position-area– https://content-5922.dev.doka.guide/css/position-area/Чек-лист
/css/color/,/tools/json/,/tools/gulp/#kak-ponyat)images/example.png,demos/example/,../demos/example/)