333 lines
55 KiB
HTML
333 lines
55 KiB
HTML
|
<!DOCTYPE html><html><head><title>normalize | Ribs
|
||
|
</title><meta charset="utf-8"><style>*{-moz-box-sizing:border-box;box-sizing:border-box;margin:0;padding:0;border:0}body{padding:60px 0 40px;background-color:hsl(207,10%,90%);color:hsl(207,5%,30%)}.container{max-width:1300px;margin:0 auto;padding:0 20px}.section{position:relative;margin-bottom:20px}.docs{position:relative;z-index:2;width:68%;min-height:200px;background-color:hsl(207,0%,100%);background-clip:padding-box;border:1px solid hsla(207,5%,5%,.1);border-radius:5px;box-shadow:0 0 3px hsla(207,5%,5%,.1)}.code{position:absolute;top:5px;bottom:5px;right:0;z-index:1;width:33%;padding:10px 10px 10px 20px;border-radius:0 5px 5px 0;border:1px solid hsla(207,20%,10%,.1);background-color:hsla(207,20%,95%,.9);background-clip:padding-box;opacity:.5;-webkit-transition:opacity .4s;-moz-transition:opacity .4s;-o-transition:opacity .4s;transition:opacity .4s}.code:hover{opacity:1}.preview{background:hsl(207,0%,100%);border-top:1px solid hsl(207,30%,95%);position:relative;z-index:1}.preview-code+.preview{margin-top:0;border-top:0}.preview iframe{display:block;width:100%;height:100%;overflow:hidden}.preview-code{position:relative;z-index:2;display:block;width:100%;color:hsl(207,9%,37%);max-height:200px;padding:10px 20px;overflow-y:auto;background:hsl(207,30%,95%);border:1px solid hsl(207,30%,85%);border-left:0;border-right;box-shadow:inset 0 1px 2px hsla(207,30%,10%,.1);line-height:1.1!important;resize:none}.preview-code:focus{outline:0;background:hsl(207,30%,97%);box-shadow:inset 0 1px 2px hsla(207,30%,10%,.1),0 0 5px hsla(207,75%,75%,.9)}.preview-code:last-child{border-bottom:0;border-radius:0 0 5px 5px}.resizeable{padding:15px;overflow:auto;background:hsl(207,0%,100%);box-shadow:0 0 2px hsla(207,10%,20%,.2);resize:both}.preview-code,pre{white-space:pre-wrap;word-wrap:break-word;overflow-y:auto}.code pre{height:100%;margin-top:0}.bar{position:fixed;left:0;right:0;z-index:1010;min-height:40px;line-height:40px;background-image:-webkit-linear-gradient(hsla(207,10%,35%,.97),hsla(207,5%,25%,.92));background-image:-moz-linear-gradient(hsla(207,10%,35%,.97),hsla(207,5%,25%,.92));background-image:-o-linear-gradient(hsla(207,10%,35%,.97),hsla(207,5%,25%,.92));background-image:linear-gradient(hsla(207,10%,35%,.97),hsla(207,5%,25%,.92))}.bar.top{top:0;box-shadow:0 1px 2px hsla(207,5%,0%,.2)}.bar.bottom{bottom:0;box-shadow:0 -1px 2px hsla(207,5%,0%,.2)}.bar ul{margin:0!important}.bar li{display:block;list-style:none}.bar .icon path{fill:hsla(27,10%,75%,.75)}.docs .icon path{fill:hsla(207,10%,75%,.5)}.docs .permalink:hover .icon path{fill:hsl(207,10%,75%)}.bar button{color:hsla(27,10%,75%,.75)}.bar button:hover .icon path,.bar button.is-active .icon path{fill:hsl(27,10%,85%)}.bar button:hover,.bar button.is-active{color:hsl(27,10%,85%)}.bar .icon{vertical-align:middle;display:inline-block}.bar,.bar a,.bar a:visited{color:hsl(27,10%,85%);text-shadow:1px 1px 0 hsla(27,5%,0%,.5)}.bar a:hover,.bar a.is-active{color:hsl(27,10%,95%);text-shadow:1px 1px 0 hsla(27,5%,0%,1);text-decoration:none}.brand{float:left;margin-right:20px;font-weight:700;font-size:16px;text-decoration:none}.brand,a.brand,a.brand:visited{color:hsl(27,5%,5%);text-shadow:1px 1px 0 hsla(27,5%,100%,.2)}.brand:hover,a.brand:hover{color:hsl(27,5%,0%);text-shadow:1px 1px 0 hsla(27,5%,100%,.3);text-decoration:none}.menu{font-size:12px}.menu>li{float:left;position:relative}.menu a{display:block;margin-right:15px}.dropdown-toggle{position:relative;padding-right:15px}.dropdown-toggle:after{display:block;position:absolute;right:0;top:18px;content:'';border:4px solid;border-left-color:transparent;border-right-color:transparent;border-bottom-color:transparent}.nav-results,.dropdown{position:absolute;z-index:1020;top:32px;left:-16px;width:175px;max-height:500px;padding:10px 0;overflow-y:auto;word-wrap:break-word;font-size:11px;line-height:20px;background-color:hsla(207,10%,25%,.97);border:1px solid hsla(207,5%,70%,.3);border-radius:3px;box-shadow:0 0 3px hsla(207,5%,0%,.2)}.toc-list{width:200px}.nav-results{right:0;width:200px;left:auto;padding:5px 0}.nav-results-filename{display:block;font
|
||
|
<p> ==========================================================================</p>
|
||
|
</div></article><article id="html5-display-definitions" class="section"><div class="docs"><a href="#html5-display-definitions" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="html5-display-definitions"> HTML5 display definitions</h1>
|
||
|
<p><em>
|
||
|
</em> Correct <code>block</code> display not defined in IE 8/9.</p>
|
||
|
<p><em>
|
||
|
</em> Correct <code>inline-block</code> display not defined in IE 8/9.</p>
|
||
|
<p><em>
|
||
|
</em> Prevent modern browsers from displaying <code>audio</code> without controls.
|
||
|
* Remove excess height in iOS 5 devices.</p>
|
||
|
<p><em>
|
||
|
</em> Address <code>[hidden]</code> styling not present in IE 8/9.
|
||
|
* Hide the <code>template</code> element in IE, Safari, and Firefox < 22.</p>
|
||
|
<p> ==========================================================================</p>
|
||
|
</div><div class="code"><pre><code>article,
|
||
|
aside,
|
||
|
details,
|
||
|
figcaption,
|
||
|
figure,
|
||
|
footer,
|
||
|
header,
|
||
|
hgroup,
|
||
|
main,
|
||
|
nav,
|
||
|
section,
|
||
|
summary {
|
||
|
display: block;
|
||
|
}
|
||
|
|
||
|
|
||
|
audio,
|
||
|
canvas,
|
||
|
video {
|
||
|
display: inline-block;
|
||
|
}
|
||
|
|
||
|
|
||
|
audio:not([controls]) {
|
||
|
display: none;
|
||
|
height: 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
[hidden],
|
||
|
template {
|
||
|
display: none;
|
||
|
}</code></pre></div></article><article id="base" class="section"><div class="docs"><a href="#base" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="base"> Base</h1>
|
||
|
<p><em>
|
||
|
</em> 1. Set default font family to sans-serif.
|
||
|
<em> 2. Prevent iOS text size adjust after orientation change, without disabling
|
||
|
</em> user zoom.</p>
|
||
|
<p><em>
|
||
|
</em> Remove default margin.</p>
|
||
|
<p> ==========================================================================</p>
|
||
|
</div><div class="code"><pre><code>html {
|
||
|
font-family: sans-serif; /* 1 */
|
||
|
-ms-text-size-adjust: 100%; /* 2 */
|
||
|
-webkit-text-size-adjust: 100%; /* 2 */
|
||
|
}
|
||
|
|
||
|
|
||
|
body {
|
||
|
margin: 0;
|
||
|
}</code></pre></div></article><article id="links" class="section"><div class="docs"><a href="#links" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="links"> Links</h1>
|
||
|
<p><em>
|
||
|
</em> Remove the gray background color from active links in IE 10.</p>
|
||
|
<p><em>
|
||
|
</em> Address <code>outline</code> inconsistency between Chrome and other browsers.</p>
|
||
|
<p><em>
|
||
|
</em> Improve readability when focused and also mouse hovered in all browsers.</p>
|
||
|
<p> ==========================================================================</p>
|
||
|
</div><div class="code"><pre><code>a {
|
||
|
background: transparent;
|
||
|
}
|
||
|
|
||
|
|
||
|
a:focus {
|
||
|
outline: thin dotted;
|
||
|
}
|
||
|
|
||
|
|
||
|
a:active,
|
||
|
a:hover {
|
||
|
outline: 0;
|
||
|
}</code></pre></div></article><article id="typography" class="section"><div class="docs"><a href="#typography" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="typography"> Typography</h1>
|
||
|
<p><em>
|
||
|
</em> Address variable <code>h1</code> font-size and margin within <code>section</code> and <code>article</code>
|
||
|
* contexts in Firefox 4+, Safari 5, and Chrome.</p>
|
||
|
<p><em>
|
||
|
</em> Address styling not present in IE 8/9, Safari 5, and Chrome.</p>
|
||
|
<p><em>
|
||
|
</em> Address style set to <code>bolder</code> in Firefox 4+, Safari 5, and Chrome.</p>
|
||
|
<p><em>
|
||
|
</em> Address styling not present in Safari 5 and Chrome.</p>
|
||
|
<p><em>
|
||
|
</em> Address differences between Firefox and other browsers.</p>
|
||
|
<p><em>
|
||
|
</em> Address styling not present in IE 8/9.</p>
|
||
|
<p><em>
|
||
|
</em> Correct font family set oddly in Safari 5 and Chrome.</p>
|
||
|
<p><em>
|
||
|
</em> Improve readability of pre-formatted text in all browsers.</p>
|
||
|
<p><em>
|
||
|
</em> Set consistent quote types.</p>
|
||
|
<p><em>
|
||
|
</em> Address inconsistent and variable font size in all browsers.</p>
|
||
|
<p><em>
|
||
|
</em> Prevent <code>sub</code> and <code>sup</code> affecting <code>line-height</code> in all browsers.</p>
|
||
|
<p> ==========================================================================</p>
|
||
|
</div><div class="code"><pre><code>h1 {
|
||
|
font-size: 2em;
|
||
|
margin: 0.67em 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
abbr[title] {
|
||
|
border-bottom: 1px dotted;
|
||
|
}
|
||
|
|
||
|
|
||
|
b,
|
||
|
strong {
|
||
|
font-weight: bold;
|
||
|
}
|
||
|
|
||
|
|
||
|
dfn {
|
||
|
font-style: italic;
|
||
|
}
|
||
|
|
||
|
|
||
|
hr {
|
||
|
-moz-box-sizing: content-box;
|
||
|
box-sizing: content-box;
|
||
|
height: 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
mark {
|
||
|
background: #ff0;
|
||
|
color: #000;
|
||
|
}
|
||
|
|
||
|
|
||
|
code,
|
||
|
kbd,
|
||
|
pre,
|
||
|
samp {
|
||
|
font-family: monospace, serif;
|
||
|
font-size: 1em;
|
||
|
}
|
||
|
|
||
|
|
||
|
pre {
|
||
|
white-space: pre-wrap;
|
||
|
}
|
||
|
|
||
|
|
||
|
q {
|
||
|
quotes: "\201C" "\201D" "\2018" "\2019";
|
||
|
}
|
||
|
|
||
|
|
||
|
small {
|
||
|
font-size: 80%;
|
||
|
}
|
||
|
|
||
|
|
||
|
sub,
|
||
|
sup {
|
||
|
font-size: 75%;
|
||
|
line-height: 0;
|
||
|
position: relative;
|
||
|
vertical-align: baseline;
|
||
|
}
|
||
|
|
||
|
sup {
|
||
|
top: -0.5em;
|
||
|
}
|
||
|
|
||
|
sub {
|
||
|
bottom: -0.25em;
|
||
|
}</code></pre></div></article><article id="embedded-content" class="section"><div class="docs"><a href="#embedded-content" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="embedded-content"> Embedded content</h1>
|
||
|
<p><em>
|
||
|
</em> Remove border when inside <code>a</code> element in IE 8/9.</p>
|
||
|
<p><em>
|
||
|
</em> Correct overflow displayed oddly in IE 9.</p>
|
||
|
<p> ==========================================================================</p>
|
||
|
</div><div class="code"><pre><code>img {
|
||
|
border: 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
svg:not(:root) {
|
||
|
overflow: hidden;
|
||
|
}</code></pre></div></article><article id="figures" class="section"><div class="docs"><a href="#figures" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="figures"> Figures</h1>
|
||
|
<p><em>
|
||
|
</em> Address margin not present in IE 8/9 and Safari 5.</p>
|
||
|
<p> ==========================================================================</p>
|
||
|
</div><div class="code"><pre><code>figure {
|
||
|
margin: 0;
|
||
|
}</code></pre></div></article><article id="forms" class="section"><div class="docs"><a href="#forms" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="forms"> Forms</h1>
|
||
|
<p><em>
|
||
|
</em> Define consistent border, margin, and padding.</p>
|
||
|
<p><em>
|
||
|
</em> 1. Correct <code>color</code> not being inherited in IE 8/9.
|
||
|
* 2. Remove padding so people aren't caught out if they zero out fieldsets.</p>
|
||
|
<p><em>
|
||
|
</em> 1. Correct font family not being inherited in all browsers.
|
||
|
<em> 2. Correct font size not being inherited in all browsers.
|
||
|
</em> 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.</p>
|
||
|
<p><em>
|
||
|
</em> Address Firefox 4+ setting <code>line-height</code> on <code>input</code> using <code>!important</code> in
|
||
|
* the UA stylesheet.</p>
|
||
|
<p><em>
|
||
|
</em> Address inconsistent <code>text-transform</code> inheritance for <code>button</code> and <code>select</code>.
|
||
|
<em> All other form control elements do not inherit <code>text-transform</code> values.
|
||
|
</em> Correct <code>button</code> style inheritance in Chrome, Safari 5+, and IE 8+.
|
||
|
* Correct <code>select</code> style inheritance in Firefox 4+ and Opera.</p>
|
||
|
<p><em>
|
||
|
</em> 1. Avoid the WebKit bug in Android 4.0.<em> where (2) destroys native <code>audio</code>
|
||
|
</em> and <code>video</code> controls.
|
||
|
<em> 2. Correct inability to style clickable <code>input</code> types in iOS.
|
||
|
</em> 3. Improve usability and consistency of cursor style between image-type
|
||
|
* <code>input</code> and others.</p>
|
||
|
<p><em>
|
||
|
</em> Re-set default cursor for disabled elements.</p>
|
||
|
<p><em>
|
||
|
</em> 1. Address box sizing set to <code>content-box</code> in IE 8/9/10.
|
||
|
* 2. Remove excess padding in IE 8/9/10.</p>
|
||
|
<p><em>
|
||
|
</em> 1. Address <code>appearance</code> set to <code>searchfield</code> in Safari 5 and Chrome.
|
||
|
<em> 2. Address <code>box-sizing</code> set to <code>border-box</code> in Safari 5 and Chrome
|
||
|
</em> (include <code>-moz</code> to future-proof).</p>
|
||
|
<p><em>
|
||
|
</em> Remove inner padding and search cancel button in Safari 5 and Chrome
|
||
|
* on OS X.</p>
|
||
|
<p><em>
|
||
|
</em> Remove inner padding and border in Firefox 4+.</p>
|
||
|
<p><em>
|
||
|
</em> 1. Remove default vertical scrollbar in IE 8/9.
|
||
|
* 2. Improve readability and alignment in all browsers.</p>
|
||
|
<p> ==========================================================================</p>
|
||
|
</div><div class="code"><pre><code>fieldset {
|
||
|
border: 1px solid #c0c0c0;
|
||
|
margin: 0 2px;
|
||
|
padding: 0.35em 0.625em 0.75em;
|
||
|
}
|
||
|
|
||
|
|
||
|
legend {
|
||
|
border: 0; /* 1 */
|
||
|
padding: 0; /* 2 */
|
||
|
}
|
||
|
|
||
|
|
||
|
button,
|
||
|
input,
|
||
|
select,
|
||
|
textarea {
|
||
|
font-family: inherit; /* 1 */
|
||
|
font-size: 100%; /* 2 */
|
||
|
margin: 0; /* 3 */
|
||
|
}
|
||
|
|
||
|
|
||
|
button,
|
||
|
input {
|
||
|
line-height: normal;
|
||
|
}
|
||
|
|
||
|
|
||
|
button,
|
||
|
select {
|
||
|
text-transform: none;
|
||
|
}
|
||
|
|
||
|
|
||
|
button,
|
||
|
html input[type="button"], /* 1 */
|
||
|
input[type="reset"],
|
||
|
input[type="submit"] {
|
||
|
-webkit-appearance: button; /* 2 */
|
||
|
cursor: pointer; /* 3 */
|
||
|
}
|
||
|
|
||
|
|
||
|
button[disabled],
|
||
|
html input[disabled] {
|
||
|
cursor: default;
|
||
|
}
|
||
|
|
||
|
|
||
|
input[type="checkbox"],
|
||
|
input[type="radio"] {
|
||
|
box-sizing: border-box; /* 1 */
|
||
|
padding: 0; /* 2 */
|
||
|
}
|
||
|
|
||
|
|
||
|
input[type="search"] {
|
||
|
-webkit-appearance: textfield; /* 1 */
|
||
|
-moz-box-sizing: content-box;
|
||
|
-webkit-box-sizing: content-box; /* 2 */
|
||
|
box-sizing: content-box;
|
||
|
}
|
||
|
|
||
|
|
||
|
input[type="search"]::-webkit-search-cancel-button,
|
||
|
input[type="search"]::-webkit-search-decoration {
|
||
|
-webkit-appearance: none;
|
||
|
}
|
||
|
|
||
|
|
||
|
button::-moz-focus-inner,
|
||
|
input::-moz-focus-inner {
|
||
|
border: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
|
||
|
textarea {
|
||
|
overflow: auto; /* 1 */
|
||
|
vertical-align: top; /* 2 */
|
||
|
}</code></pre></div></article><article id="tables" class="section"><div class="docs"><a href="#tables" class="permalink"><svg viewBox="0 0 512 512" height="32" width="32" class="icon"><path d="M156.2,199.7c7.5-7.5,15.9-13.8,24.8-18.7c49.6-27.3,113.1-12.8,145,35.5l-38.5,38.5c-11.1-25.2-38.5-39.6-65.8-33.5c-10.3,2.3-20.1,7.4-28,15.4l-73.9,73.9c-22.4,22.4-22.4,58.9,0,81.4c22.4,22.4,58.9,22.4,81.4,0l22.8-22.8c20.7,8.2,42.9,11.5,64.9,9.9l-50.3,50.3c-43.1,43.1-113,43.1-156.1,0c-43.1-43.1-43.1-113-0-156.1L156.2,199.7z M273.6,82.3l-50.3,50.3c21.9-1.6,44.2,1.6,64.9,9.9l22.8-22.8c22.4-22.4,58.9-22.4,81.4,0c22.4,22.4,22.4,58.9,0,81.4l-73.9,73.9c-22.5,22.5-59.1,22.3-81.4,0c-5.2-5.2-9.7-11.7-12.5-18l-38.5,38.5c4,6.1,8.3,11.5,13.7,16.9c13.9,13.9,31.7,24.3,52.1,29.3c26.5,6.4,54.8,2.8,79.2-10.6c8.9-4.9,17.3-11.1,24.8-18.7l73.9-73.9c43.1-43.1,43.1-113,0-156.1C386.6,39.2,316.7,39.2,273.6,82.3z"></path></svg></a><h1 id="tables"> Tables</h1>
|
||
|
<p><em>
|
||
|
</em> Remove most spacing between table cells.</p>
|
||
|
</div><div class="code"><pre><code>table {
|
||
|
border-collapse: collapse;
|
||
|
border-spacing: 0;
|
||
|
}</code></pre></div></article></section><div class="bar bottom"><div hidden class="settings container"><!-- Icons from http://iconmonstr.com--><button title="Desktop (1280)" data-width='1280'><svg viewBox="0 0 412 386" height="24" width="26" class="icon"><path d="m147.6,343.9c-4.5,15.9-26.2,37.6-42.1,42.1h201c-15.3,-4-38.1,-26.8-42.1,-42.1H147.6zM387,0.5H25c-13.8,0-25,11.2-25,25V294c0,13.8 11.2,25 25,25h362c13.8,0 25,-11.2 25,-25V25.5C412,11.7 400.8,0.5 387,0.5zM369.9,238.2H42.1L42.1,42.6 369.9,42.6V238.2z"></path></svg></button><button title="Laptop (1024)" data-width='1024'><svg viewBox="0 0 384 312" height="23" width="28" class="icon"><path d="m349.2,20.5c0,-11-9,-20-20,-20H53.6c-11,0-20,9-20,20v194H349.2v-194zm-27,167H60.6V27.5H322.2v160zm28,42H32.6L2.6,282.1c-3.5,6.2-3.5,13.8 0.1,19.9 3.6,6.2 10.2,9.9 17.3,9.9H363.1c7.1,0 13.7,-3.8 17.3,-10 3.6,-6.2 3.6,-13.8 0,-20l-30.2,-52.5zm-196.9,54 8,-23.5h60.5l8,23.5h-76.5z"></path></svg></button><button title="Tablet (768)" data-width='768'><svg viewBox="0 0 317 412" height="24" width="18" class="icon"><path d="M 316.5,380 V 32 c 0,-17.7 -14.3,-32 -32,-32 H 32 C 14.3,0 0,14.3 0,32 v 348 c 0,17.7 14.3,32 32,32 h 252.5 c 17.7,0 32,-14.3 32,-32 z M 40,367 V 45 H 276.5 V 367 H 40 z m 109.8,22.7 c 0,-4.7 3.8,-8.5 8.5,-8.5 4.7,0 8.5,3.8 8.5,8.5 0,4.7 -3.8,8.5 -8.5,8.5 -4.7,0 -8.5,-3.8 -8.5,-8.5 z"></path></svg></button><button title="Smart phone (320)" data-width='320'><svg viewBox="0 0 224 412" height="24" width="13" class="icon"><path d="M 190.7,0 H 33 C 14.8,0 0,14.8 0,33 v 346 c 0,18.2 14.8,33 33,33 h 157.7 c 18.2,0 33,-14.8 33,-33 V 33 c 0,-18.2 -14.8,-33 -33,-33 z M 94.3,30.2 h 37 c 2.2,0 4,1.8 4,4 0,2.2 -1.8,4 -4,4 h -37 c -2.2,0 -4,-1.8 -4,-4 0,-2.2 1.8,-4 4,-4 z m 18.5,362.8 c -8.8,0 -16,-7.2 -16,-16 0,-8.8 7.2,-16 16,-16 8.8,0 16,7.2 16,16 0,8.8 -7.2,16 -16,16 z M 198.6,343.8 H 25.1 V 68.2 h 173.5 v 275.5 z"></path></svg></button><button title="Feature phone (240)" data-width='240'><svg viewBox="0 0 201 412" height="24" width="12" class="icon"><path d="M 165.5,0.2 V 45 H 25 c -13.8,0 -25,11.2 -25,25 V 387 c 0,13.8 11.2,25 25,25 h 150.5 c 13.8,0 25,-11.2 25,-25 V 0.2 h -35 z M 65.2,366.5 H 34.2 v -24.5 h 31 v 24.5 z m 0,-44.3 H 34.2 v -24.5 h 31 v 24.5 z m 50.5,44.3 H 84.7 v -24.5 h 31 v 24.5 z m 0,-44.3 H 84.7 v -24.5 h 31 v 24.5 z m 50.5,44.3 h -31 v -24.5 h 31 v 24.5 z m 0,-44.3 h -31 v -24.5 h 31 v 24.5 z m 0,-59.3 h -132 V 95.4 h 132 V 262.9 z"></path></svg></button><button title="Auto (100%)" data-width="auto" class="auto is-active">Auto</button></div></div><script>(function(){var a=[{title:"Ribs",filename:"Ribs",url:"Ribs.html"},{title:"Ribs",filename:"Ribs",url:"Ribs.html#ribs"},{title:"Import of normalize, variables and mixins",filename:"Ribs",url:"Ribs.html#import-of-normalize-variables-and-mixins"},{title:"General body style",filename:"Ribs",url:"Ribs.html#general-body-style"},{title:"General horizontal rule style",filename:"Ribs",url:"Ribs.html#general-horizontal-rule-style"},{title:"Import of ribs functionality",filename:"Ribs",url:"Ribs.html#import-of-ribs-functionality"},{title:"Example Media Queries",filename:"Ribs",url:"Ribs.html#example-media-queries"},{title:"forms",filename:"forms",url:"forms.html"},{title:"Buttons",filename:"forms",url:"forms.html#buttons"},{title:"Forms",filename:"forms",url:"forms.html#forms"},{title:"grid",filename:"grid",url:"grid.html"},{title:"Grid System",filename:"grid",url:"grid.html#grid-system"},{title:"Desktop Grid",filename:"grid",url:"grid.html#desktop-grid"},{title:"Tablet Grid",filename:"grid",url:"grid.html#tablet-grid"},{title:"Mobile Grid",filename:"grid",url:"grid.html#mobile-grid"},{title:"Clearing",filename:"grid",url:"grid.html#clearing"},{title:"images",filename:"images",url:"images.html"},{title:"Images",filename:"images",url:"images.html#images"},{title:"links",filename:"links",url:"links.html"},{title:"Links",filename:"links",url:"links.html#links"},{title:"lists",filename:"lists",url:"lists.html"},{title:"Lists",filename:"lists",url:"lists.html#lists"},{title:"mixins",filename:"mixins",url:"mixins.html"},{
|