Skip to content

Instantly share code, notes, and snippets.

@golubev-alex
Last active December 21, 2023 10:26
Show Gist options
  • Save golubev-alex/b1bce9593c9acba4ceeba1683b465938 to your computer and use it in GitHub Desktop.
Save golubev-alex/b1bce9593c9acba4ceeba1683b465938 to your computer and use it in GitHub Desktop.
// растягиваем 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