Last active
July 11, 2019 04:54
-
-
Save samzeng/996361c300c5fba40439ee042f9cb309 to your computer and use it in GitHub Desktop.
reset CSS for mobile browsers
This file contains hidden or 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
@charset "utf-8"; | |
html { | |
color: #000; | |
background: #fff; | |
overflow-y: scroll; | |
-webkit-text-size-adjust: 100%; | |
-ms-text-size-adjust: 100% | |
} | |
html * { | |
outline: 0; | |
-webkit-text-size-adjust: none; | |
-webkit-tap-highlight-color: rgba(0, 0, 0, 0) | |
} | |
html, | |
body { | |
font-family: sans-serif | |
} | |
body, | |
div, | |
dl, | |
dt, | |
dd, | |
ul, | |
ol, | |
li, | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
pre, | |
code, | |
form, | |
fieldset, | |
legend, | |
input, | |
textarea, | |
p, | |
blockquote, | |
th, | |
td, | |
hr, | |
button, | |
article, | |
aside, | |
details, | |
figcaption, | |
figure, | |
footer, | |
header, | |
hgroup, | |
menu, | |
nav, | |
section { | |
margin: 0; | |
padding: 0 | |
} | |
input, | |
select, | |
textarea { | |
font-size: 100% | |
} | |
table { | |
border-collapse: collapse; | |
border-spacing: 0 | |
} | |
fieldset, | |
img { | |
border: 0 | |
} | |
abbr, | |
acronym { | |
border: 0; | |
font-variant: normal | |
} | |
del { | |
text-decoration: line-through | |
} | |
address, | |
caption, | |
cite, | |
code, | |
dfn, | |
em, | |
th, | |
var { | |
font-style: normal; | |
font-weight: 500 | |
} | |
ol, | |
ul { | |
list-style: none | |
} | |
caption, | |
th { | |
text-align: left | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-size: 100%; | |
font-weight: 500 | |
} | |
q:before, | |
q:after { | |
content: '' | |
} | |
sub, | |
sup { | |
font-size: 75%; | |
line-height: 0; | |
position: relative; | |
vertical-align: baseline | |
} | |
sup { | |
top: -.5em | |
} | |
sub { | |
bottom: -.25em | |
} | |
a:hover { | |
text-decoration: underline | |
} | |
ins, | |
a { | |
text-decoration: none | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment