Created
October 12, 2012 22:36
-
-
Save nonlinear/3882027 to your computer and use it in GitHub Desktop.
CSS: base CSS
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
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, font, 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, table, caption, tbody, tfoot, thead, tr, th, td { | |
margin: 0; | |
padding: 0; | |
border: 0; | |
outline: 0; | |
font-size: 100%; | |
vertical-align: baseline; | |
background: transparent; | |
} | |
* { | |
text-rendering: optimizeLegibility; | |
} | |
html { | |
-webkit-font-smoothing: antialiased; | |
} | |
a:hover, a:active { | |
outline: none; | |
} | |
body { | |
line-height: 1; | |
} | |
ol, ul { | |
list-style: none; | |
} | |
blockquote, q { | |
quotes: none; | |
} | |
blockquote:before, blockquote:after, q:before, q:after { | |
content: ''; | |
content: none; | |
} | |
input, select { | |
vertical-align:middle; | |
} | |
select, input, textarea { | |
font:99% sans-serif; | |
} | |
pre, code, kbd, samp { | |
font-family: monospace, sans-serif; | |
} | |
:focus { | |
outline: 0; | |
} | |
ins { | |
text-decoration: none; | |
} | |
del { | |
text-decoration: line-through; | |
} | |
/* tables still need 'cellspacing="0"' in the markup */ | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; | |
} | |
img, object, embed { | |
max-width: 100%; | |
} | |
section, article, header, footer, nav, aside, hgroup { | |
display: block; | |
} | |
::selection { | |
background: none; | |
} | |
::-moz-selection { | |
background: none; | |
} | |
img::selection { | |
background: transparent; | |
} | |
img::-moz-selection { | |
background: transparent; | |
} | |
@media print { | |
* { | |
background: transparent !important; | |
color: #444 !important; | |
text-shadow: none; | |
} | |
a, a:visited { | |
color: #444 !important; | |
text-decoration: underline; | |
} | |
a:after { | |
content: " (" attr(href) ")"; | |
} | |
abbr:after { | |
content: " (" attr(title) ")"; | |
} | |
.ir a:after { | |
content: ""; | |
} /* Don't show links for images */ | |
pre, blockquote { | |
border: 1px solid #999; | |
page-break-inside: avoid; | |
} | |
img { | |
page-break-inside: avoid; | |
} | |
@page { | |
margin: 0.5cm; | |
} | |
p, h2, h3 { | |
orphans: 3; | |
widows: 3; | |
} | |
h2, h3 { | |
page-break-after: avoid; | |
} | |
} | |
@media only screen and (max-device-width: 480px) { | |
html { | |
-webkit-text-size-adjust:none; | |
-ms-text-size-adjust:none; | |
} | |
a { | |
-webkit-tap-highlight-color: rgba(200,0,0,0.4); | |
} | |
* { | |
float: none; | |
font-size: 80%; | |
background: #fff; | |
color: #000; | |
} | |
} | |
@media all and (orientation:portrait) { | |
} | |
@media all and (orientation:landscape) { | |
} | |
abbr { | |
cursor: help; | |
} | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
img { | |
border: 0; | |
} | |
input[type="radio"] { | |
vertical-align: text-bottom; | |
} | |
input[type="checkbox"] { | |
vertical-align: bottom; | |
*vertical-align: baseline; | |
} | |
.ie6 input { | |
vertical-align: text-bottom; | |
} | |
.ie7 img { | |
-ms-interpolation-mode: bicubic; | |
} | |
small { | |
font-size:85%; | |
} | |
strong, th { | |
font-weight: bold; | |
} | |
td, td img { | |
vertical-align:top; | |
} | |
sub { | |
vertical-align: sub; | |
font-size: smaller; | |
} | |
sup { | |
vertical-align: super; | |
font-size: smaller; | |
} | |
label, input[type=button], input[type=submit], button { | |
cursor: pointer; | |
} | |
.hidden { | |
display:none; | |
} | |
input[type=search] { | |
-webkit-appearance: none; | |
} | |
input[type=search]::-webkit-search-decoration { | |
display: none; | |
} | |
input, select, textarea { | |
padding: 4px; | |
height: 25px; | |
border-top: solid 1px #333; | |
border-left: solid 1px #ccc; | |
border-right: solid 1px #333; | |
border-bottom: solid 1px #ccc; | |
-webkit-transition: all 300ms ease-out; | |
-moz-transition: all 300ms ease-out; | |
-o-transition: all 300ms ease-out; | |
transition: all 300ms ease-out; | |
} | |
a.button { | |
-webkit-appearance: none; | |
-moz-border-radius: 15px; | |
-webkit-border-radius: 15px; | |
border-radius: 15px; | |
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #fff), color-stop(1, #ddd)); | |
padding: 4px 10px; | |
height: 20px; | |
background: -moz-linear-gradient(top center, #fff 0%, #ddd 100%); | |
border: 1px solid; | |
border-color: #ddd #bbb #999; | |
cursor: pointer; | |
color: #333; | |
font-weight: bold; | |
text-decoration: none; | |
overflow: visible; | |
text-shadow: #fff 0 1px 1px; | |
width: auto; | |
} | |
input:hover, select:hover, textarea:hover, input:focus, select:focus, textarea:focus { | |
border: solid 1px #fff; | |
} | |
input:hover, select:hover, textarea:hover, a.button:hover { | |
-webkit-box-shadow: 0 0px 5px rgba(0, 0, 0, .4); | |
-moz-box-shadow: 0 0px 5px rgba(0, 0, 0, .4); | |
box-shadow: 0 0px 5px rgba(0, 0, 0, .4); | |
} | |
input:focus, select:focus, textarea:focus, a.button:active { | |
-webkit-box-shadow: 0 0px 5px rgba(0, 0, 0, .8); | |
-moz-box-shadow: 0 0px 5px rgba(0, 0, 0, .8); | |
box-shadow: 0 0px 5px rgba(0, 0, 0, .8); | |
} | |
input, select { | |
height: 25px; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment