Last active
December 21, 2023 10:26
-
-
Save golubev-alex/b1bce9593c9acba4ceeba1683b465938 to your computer and use it in GitHub Desktop.
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
// растягиваем img | |
{ | |
object-fit: cover; | |
-o-object-fit: cover; | |
} | |
// Фикс элементов submit в мобильном safari | |
[type="submit"] { | |
-webkit-appearance: none; | |
} | |
Выровнять шрифты | |
* { | |
font-smooth: antialiased; | |
-webkit-font-smoothing: antialiased; | |
} | |
Скрыть горизонтальный скрол | |
*::-webkit-scrollbar { | |
display: none; | |
} | |
Отключить выделение текста | |
* { | |
-moz-user-select: none; | |
-webkit-user-select: none; | |
-ms-user-select: none; | |
user-select: none; | |
} | |
// Медиа-селектор для мобильных Safari | |
media screen and (-webkit-device-pixel-ratio : 2) { } | |
Обрезка текста до 3 строк | |
{ | |
display: -webkit-box; | |
-webkit-box-orient: vertical; | |
-webkit-line-clamp: 3; | |
overflow: hidden; | |
} | |
* добавить для p, иначе в IOS работает криво | |
{ | |
display: inline; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment