Skip to content

Instantly share code, notes, and snippets.

@angusjune
Last active December 30, 2015 05:29
Show Gist options
  • Save angusjune/7783156 to your computer and use it in GitHub Desktop.
Save angusjune/7783156 to your computer and use it in GitHub Desktop.
iOS web app snippets
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
<style>
@media only screen and (-webkit-min-device-pixel-ratio:1.5),
only screen and (min-device-pixel-ratio:1.5) {
button {
font-size: 26px; /* 2x */
line-height: 74px; /* 2x +2px */
border-radius: 6px; /* 2x */
padding: 0 30px; /* 2x */
border: solid 1px; /* Border 1px */
-webkit-transform: scale(0.5); /* Here's the magic */
color: #fff;
border-color: #2978B0 #266FA5 #1C557D;
background: linear-gradient(to bottom, #50A9E7, #307CB3);
box-shadow: inset 0 2px 0 rgba(255,255,255,.2),
0 2px 2px rgba(0,0,0,.08);
text-shadow: 0 -2px 0 rgba(0,0,0,.25);
}
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment