-
Notifications
You must be signed in to change notification settings - Fork 699
Добавляет адаптив в демки DOMContentLoaded
#5913
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
base: main
Are you sure you want to change the base?
Conversation
|
Не могу же я ревьюить сама себя :D |
Превью контента из опубликовано. |
Inventoris
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.
Классно, что добралась до адаптива ;-)
По демке в целом меня как будто смущает, что при перезагрузке layout shift происходит у надписей и кнопки, но с другой стороны думаю это не критично в контексте два-три-клик примера.
StarHamster
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.
Меня не звали, а я сам пришёл 🫡
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
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.
В демке скроллы есть, их бы покрасить
| html { | |
| color-scheme: dark; | |
| } | |
| } | ||
|
|
||
| .tip { | ||
| margin-top: 40px; |
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.
Скролл появляется даже на десктопе. При чём при первой загрузке всё ок, а при перезагрузке он появлется. Тут либо айфрем увеличить на 10 пикселей, либо чуть-чуть подрезать воздух кнопке
| margin-block-start: 35px; |
Часть демки с подписями и кнопкой имеет высоту 430.56. Если кто-то знает, почему при первой загрузке браузер не обращает внимание на эти полпикселя, а потом начинает, объясните мне, пожалуйста 🥹
| .scrollable { | ||
| margin-inline-start: 0; | ||
| margin-block-start: 40px; | ||
| height: 100px; | ||
| } |
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.
На экранах меньше 420 пояляется скролл. А так не появится даже на самых маленьких 💅
| .scrollable { | |
| margin-inline-start: 0; | |
| margin-block-start: 40px; | |
| height: 100px; | |
| } | |
| .tip { | |
| margin-top: 30px; | |
| } | |
| .scrollable { | |
| margin-inline-start: 0; | |
| margin-block-start: 30px; | |
| height: 100px; | |
| } |
| padding: 0; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
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.
В демке скроллы есть, их бы покрасить
| html { | |
| color-scheme: dark; | |
| } | |
|
|
||
| .tip { | ||
| margin-top: 40px; | ||
| margin-block-start: 40px; |
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.
Скролл появляется даже на десктопе. При чём при первой загрузке всё ок, а при перезагрузке он появлется. Тут либо айфрем увеличить на 10 пикселей, либо чуть-чуть подрезать воздух кнопке
| margin-block-start: 40px; | |
| margin-block-start: 35px; |
Часть демки с подписями и кнопкой имеет высоту 430.56. Если кто-то знает, почему при первой загрузке браузер не обращает внимание на эти полпикселя, а потом начинает, объясните мне, пожалуйста 🥹
| .scrollable { | ||
| margin-inline-start: 0; | ||
| margin-block-start: 40px; | ||
| height: 100px; | ||
| } |
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.
На экранах меньше 420 пояляется скролл. А так не появится даже на самых маленьких 💅
| .scrollable { | |
| margin-inline-start: 0; | |
| margin-block-start: 40px; | |
| height: 100px; | |
| } | |
| .tip { | |
| margin-top: 30px; | |
| } | |
| .scrollable { | |
| margin-inline-start: 0; | |
| margin-block-start: 30px; | |
| height: 100px; | |
| } |
| } | ||
|
|
||
| .timings-line + .timings-line { | ||
| margin-top: 25px; |
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.
Давай в обоих демках поменяем на логические?
| margin-block-start: 25px; |
DOMContentLoaded




Описание
Неожиданно для себя обнаружила, что у любимой демки нет адаптива.