Created
July 21, 2017 05:06
-
-
Save beardlessman/ebaa465c8d9c29ae2eaf6064f6c8574a to your computer and use it in GitHub Desktop.
Some hacks to make your responsive design on mobile better
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
/* не зумить страницу, если инпут в фокусе */ | |
@media(max-width:767px){ | |
input,select,textarea { | |
font-size:16px; | |
} | |
} | |
/* ховеры не нужны, включать только для десктопа */ | |
@media (min-width: 768px) { | |
.something:hover { | |
props: "value" | |
} | |
} | |
/* не увеличивает шрифт при повороте смартфона */ | |
html { | |
/* Устанавливает желаемый относительный размер шрифта */ | |
-webkit-text-size-adjust: 100%; | |
} | |
/* reset form's el style */ | |
input, button, select, textarea{ | |
-webkit-appearance: none; | |
-moz-appearance: none; | |
border-radius: 0px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment