Skip to content

Instantly share code, notes, and snippets.

@datu-cristian
Created May 17, 2013 10:26
Show Gist options
  • Save datu-cristian/5598286 to your computer and use it in GitHub Desktop.
Save datu-cristian/5598286 to your computer and use it in GitHub Desktop.
CSS : Reset
/*
Based on http://meyerweb.com/eric/tools/css/reset/
v2.0 | 20110126
License: none (public domain)
*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
margin: 0;
padding: 0;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
content: '';
content: none;
}
.group:before, .group:after {
content: "";
display: table;
}
.group:after {
content: "";
display: table;
clear: both;
}
.group {
zoom: 1;
}
:focus {
outline: none;
-moz-outline-style: none;
}
a {
color: inherit;
}
b, strong {
font-weight: 700;
}
i {
font-style: italic;
}
u {
text-decoration: underline;
}
blockquote:before, blockquote:after,
q:before, q:after{
content: "\201C";
font-size: 100%;
vertical-align: baseline;
position: relative;
top: 0
}
blockquote:after, q:after{
content: "\201D";
}
sup,
sub {
font-size: 70%;
vertical-align: baseline;
position: relative;
top: -0.4em;
}
sub {
top:0.4em;
}
img {
display: inline-block;
}
fieldset, legend, label, button, input, select, textarea {
border: 0;
background: transparent;
display: inline-block;
vertical-align: middle;
margin: 0;
padding: 0;
}
button {
text-align: center;
}
textarea {
overflow: auto;
}
input[type=search] {
-webkit-appearance: none;
}
input[type="search"]::-webkit-search-decoration, input[type="search"]::-webkit-search-cancel-button {
display: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment