Skip to content

Instantly share code, notes, and snippets.

@kalamun
Last active June 11, 2017 15:52
Show Gist options
  • Save kalamun/d9927ab9ac6dd8446ab3b010733d2bec to your computer and use it in GitHub Desktop.
Save kalamun/d9927ab9ac6dd8446ab3b010733d2bec to your computer and use it in GitHub Desktop.
CSS init
* {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100% ;
vertical-align: baseline;
background: transparent;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
::-moz-selection {
color: #01456C;
background: #ffc;
}
::selection {
color: #01456C;
background: yellow;
}
html, body {
width: 100% ;
height: 100% ;
}
body {
line-height: 1;
font-size: 12pt;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
font-smoothing: antialiased;
}
ol, ul {
padding-left: 2em;
}
li {
margin: .3em;
}
blockquote {
quotes: none;
}
blockquote: before, blockquote: after {
content: '';
content: none;
}
: focus {
outline: 0;
}
table {
border-style: none;
border-collapse: separate;
border-spacing: 0;
border: 0;
max-width: 100% ;
}
table td {
padding: 2px;
vertical-align: top;
}
img,
object,
iframe,
figure {
vertical-align: middle;
border: 0;
max-width: 100%;
}
h1, h2, h3, h4, h5, h6 {
font-weight: bold;
margin: 20px 0;
padding: 0;
}
h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
margin-top: 0;
}
h1 {
font-size: 2.5em;
}
h2 {
font-size: 2.2em;
}
h3 {
font-size: 1.4em;
}
h4 {
font-size: 1.3em;
}
h5 {
font-size: 1.2em;
}
h6 {
font-size: 1.1em;
}
p {
margin: .8em 0;
}
small {
font-size: .85em;
}
iframe {
max-width: 100% ;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment