2011-04-21 16:32:16 +00:00
|
|
|
/*
|
|
|
|
* Add display for HTML5 elements
|
2011-04-21 16:46:05 +00:00
|
|
|
* Fixes styling not present in IE6/7/8/9 FF3
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
article,
|
|
|
|
aside,
|
|
|
|
details,
|
|
|
|
figcaption,
|
|
|
|
figure,
|
|
|
|
footer,
|
|
|
|
header,
|
|
|
|
hgroup,
|
|
|
|
nav,
|
|
|
|
section {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2011-05-03 21:17:32 +00:00
|
|
|
/*
|
|
|
|
* Vertical align for display inline block elements
|
|
|
|
* Improves visual appearance in all browsers
|
|
|
|
*/
|
|
|
|
|
2011-04-21 16:32:16 +00:00
|
|
|
audio[controls],
|
2011-05-03 21:17:32 +00:00
|
|
|
button,
|
2011-04-21 16:32:16 +00:00
|
|
|
canvas,
|
2011-05-03 21:17:32 +00:00
|
|
|
img,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea,
|
2011-04-21 16:32:16 +00:00
|
|
|
video {
|
|
|
|
display: inline-block;
|
|
|
|
*display: inline;
|
2011-05-03 21:17:32 +00:00
|
|
|
vertical-align: top;
|
2011-04-21 16:32:16 +00:00
|
|
|
*zoom: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* 1.
|
|
|
|
* Make normal cursor the default for <html> element
|
2011-04-21 16:44:07 +00:00
|
|
|
* Improves visual focus of page during mouse movement in all browsers
|
2011-04-21 16:32:16 +00:00
|
|
|
* 2.
|
2011-04-21 16:44:07 +00:00
|
|
|
* Add vertical scrollbar to <html> element
|
|
|
|
* Improves page center consistency regardless of content height in all browsers
|
2011-04-21 16:32:16 +00:00
|
|
|
* 3.
|
|
|
|
* Remove text size adjust tap color for <html> element
|
2011-04-28 01:18:20 +00:00
|
|
|
* Fixes tap color displayed oddly in iOS
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
html {
|
|
|
|
cursor: default; /* 1 */
|
|
|
|
overflow-y: scroll; /* 2 */
|
|
|
|
-webkit-tap-highlight-color: transparent; /* 3 */
|
|
|
|
}
|
|
|
|
|
2011-04-29 00:12:49 +00:00
|
|
|
/*
|
|
|
|
* Remove margin and hide overflow from <body> element
|
|
|
|
* Margin overflow displayed incorrectly in IE6/7
|
|
|
|
*/
|
|
|
|
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2011-04-21 16:32:16 +00:00
|
|
|
/*
|
2011-04-29 16:49:05 +00:00
|
|
|
* 1.
|
|
|
|
* Make outline thin dotted for <a>
|
|
|
|
* Fixes outline displayed oddly in C10
|
|
|
|
* 2.
|
|
|
|
* Remove outline for <a> element when active or hovered
|
2011-04-21 16:44:07 +00:00
|
|
|
* Improves readability when focused and also mouse hovered in all browsers
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
2011-04-29 16:49:05 +00:00
|
|
|
/* 1 */
|
|
|
|
|
|
|
|
a:focus {
|
|
|
|
outline: thin dotted;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 2 */
|
|
|
|
|
2011-04-21 16:32:16 +00:00
|
|
|
a:active,
|
|
|
|
a:hover {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2011-05-03 21:17:32 +00:00
|
|
|
/*
|
|
|
|
* Make display based on controls for <audio> element
|
|
|
|
* Fixes styling not present in IE6/7/8
|
|
|
|
*/
|
|
|
|
|
|
|
|
audio {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
audio[controls] {
|
|
|
|
_display: expression(this.controls ? 'inline' : 'none');
|
|
|
|
}
|
|
|
|
|
2011-04-21 16:32:16 +00:00
|
|
|
/*
|
|
|
|
* 1.
|
|
|
|
* Disable border for <img> element
|
2011-04-21 16:44:07 +00:00
|
|
|
* Improves readability when inside <a> element in all browsers
|
2011-04-21 16:32:16 +00:00
|
|
|
* 2.
|
|
|
|
* Allow high quality bicubic image resampling for <img> element
|
2011-04-21 16:44:07 +00:00
|
|
|
* Improves readability when scaled in IE7
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
img {
|
|
|
|
border: 0; /* 1 */
|
|
|
|
-ms-interpolation-mode: bicubic; /* 2 */
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Add bottom border to <abbr> element
|
2011-04-21 16:54:43 +00:00
|
|
|
* Fixes styling not present in IE6/7/8/9 C10 S5
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
2011-04-22 20:34:18 +00:00
|
|
|
abbr[title] {
|
2011-04-21 16:32:16 +00:00
|
|
|
border-bottom: 1px dotted;
|
|
|
|
}
|
|
|
|
|
2011-04-22 20:34:18 +00:00
|
|
|
abbr {
|
|
|
|
_border-bottom: expression(this.title ? '1px dotted' : 'none');
|
|
|
|
}
|
|
|
|
|
2011-04-21 16:32:16 +00:00
|
|
|
/*
|
|
|
|
* Add italic font style to <dfn> element
|
2011-04-21 16:54:43 +00:00
|
|
|
* Fixes styling not present in C10 S5
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
dfn {
|
|
|
|
font-style: italic;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Add yellow background and black text to <mark> element
|
2011-04-21 16:44:07 +00:00
|
|
|
* Fixes styling not present in IE6/7/8/9
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
mark {
|
|
|
|
background-color: #FF0;
|
|
|
|
color: #000;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Redeclare monospace font family to <pre> <code> <kbd> <samp> elements
|
2011-04-28 01:18:20 +00:00
|
|
|
* 1.
|
2011-04-21 16:54:43 +00:00
|
|
|
* Fixes font family set oddly in C10 S5
|
2011-04-28 01:18:20 +00:00
|
|
|
* 2.
|
2011-04-29 16:49:05 +00:00
|
|
|
* Fixes monospace font family set oddly in IE6
|
|
|
|
* 3.
|
2011-04-28 01:18:20 +00:00
|
|
|
* Fixes monospace line-height overflow in iOS
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
pre,
|
|
|
|
code,
|
|
|
|
kbd,
|
|
|
|
samp {
|
2011-04-28 01:18:20 +00:00
|
|
|
font-family: monospace, sans-serif; /* 1 */
|
2011-04-29 16:49:05 +00:00
|
|
|
_font-family: 'Courier New', monospace, sans-serif;/* 2 */
|
|
|
|
vertical-align: top; /* 3 */
|
2011-04-21 16:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Allow line wrapping for <pre> element
|
2011-04-21 16:44:07 +00:00
|
|
|
* Improves readability of pre-formatted text in all browsers
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
pre {
|
|
|
|
white-space: pre;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Remove quotes from <q> element
|
|
|
|
* 1.
|
2011-04-21 16:44:07 +00:00
|
|
|
* Addresses CSS quotes not supported in IE6/7
|
2011-04-21 16:32:16 +00:00
|
|
|
* 2.
|
2011-04-21 16:54:43 +00:00
|
|
|
* Addresses quote attributes not supported in S4
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/* 1 */
|
|
|
|
|
|
|
|
q {
|
|
|
|
quotes: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 2 */
|
|
|
|
|
|
|
|
q:before,
|
|
|
|
q:after {
|
|
|
|
content: '';
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2011-04-29 16:49:05 +00:00
|
|
|
* Define alignment for <small> <sub> <sup> elements
|
2011-04-28 01:18:20 +00:00
|
|
|
* Fixes alignment within multi-line text displayed oddly in all browsers
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
2011-04-29 16:49:05 +00:00
|
|
|
small {
|
|
|
|
font-size: 75%;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
2011-04-21 16:32:16 +00:00
|
|
|
sub,
|
|
|
|
sup {
|
2011-04-28 01:18:20 +00:00
|
|
|
font-size: 75%;
|
2011-04-21 16:32:16 +00:00
|
|
|
line-height: 0;
|
2011-04-28 01:18:20 +00:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
sup {
|
|
|
|
top: 0.75em;
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
|
|
|
sub {
|
|
|
|
bottom: 0.75em;
|
|
|
|
vertical-align: bottom;
|
2011-04-21 16:32:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2011-04-21 16:44:07 +00:00
|
|
|
* Define alignment for <legend> element
|
|
|
|
* Fixes alignment displayed oddly in IE6/7
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
legend {
|
|
|
|
*margin-left: -7px;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Remove margin from form elements
|
2011-04-21 16:54:43 +00:00
|
|
|
* Fixes margin displayed oddly in C10 S5
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
button,
|
|
|
|
input,
|
|
|
|
select,
|
|
|
|
textarea {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2011-04-22 20:34:18 +00:00
|
|
|
* Define inner-spacing for button elements
|
|
|
|
* Targeting all inputs is harmless to non-button elements
|
2011-04-21 16:44:07 +00:00
|
|
|
* 1. Fixes spacing displayed oddly in IE6/7
|
2011-04-22 20:34:18 +00:00
|
|
|
* 2. Fixes border and padding displayed oddly in FF3/4
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
2011-04-22 20:34:18 +00:00
|
|
|
/* 1 */
|
|
|
|
|
2011-04-21 16:32:16 +00:00
|
|
|
button,
|
2011-04-22 20:34:18 +00:00
|
|
|
input {
|
|
|
|
*overflow: visible;
|
2011-04-21 16:32:16 +00:00
|
|
|
}
|
|
|
|
|
2011-04-22 20:34:18 +00:00
|
|
|
/* 2 */
|
2011-04-21 16:32:16 +00:00
|
|
|
|
|
|
|
button::-moz-focus-inner,
|
2011-04-22 20:34:18 +00:00
|
|
|
input::-moz-focus-inner {
|
2011-04-21 16:32:16 +00:00
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2011-04-21 16:44:07 +00:00
|
|
|
* Disable default vertical scrollbar for <textarea> element
|
|
|
|
* Fixes scrollbar displayed oddly in IE6/7/8/9
|
2011-04-21 16:32:16 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
overflow: auto;
|
2011-05-03 21:17:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Define box sizing for <input> <select> <textarea> element
|
|
|
|
* Addresses box sizing not supported in IE6/7
|
|
|
|
*/
|
|
|
|
|
|
|
|
input[type='button'],
|
|
|
|
input[type='checkbox'],
|
|
|
|
input[type='radio'],
|
|
|
|
input[type='submit'],
|
|
|
|
select {
|
|
|
|
box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
-webkit-box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
input[type='text'],
|
|
|
|
input[type='password'],
|
|
|
|
textarea {
|
|
|
|
-webkit-appearance: textfield;
|
|
|
|
box-sizing: content-box;
|
|
|
|
-moz-box-sizing: content-box;
|
|
|
|
-webkit-box-sizing: content-box;
|
2011-04-21 16:32:16 +00:00
|
|
|
}
|