d3-metatable
Version:
a table element for heterogenous objects
426 lines (396 loc) • 8.91 kB
CSS
/* Reset ♥
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,
table, 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 {
margin:0;
padding:0;
border:0;
font-size:100%;
font:inherit;
vertical-align:baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display:block;
}
body { line-height:1; }
ol, ul { list-style:none; }
blockquote, q { quotes:none; }
blockquote:before, blockquote:after,
q:before, q:after { content:''; content:none; }
/* tables still need 'cellspacing="0"' in the markup */
table { border-collapse: collapse; border-spacing:0; }
/* remember to define focus styles. Hee Haw */
:focus { outline:0; }
/* Inline Elements & Typography
------------------------------------------------------- */
body,
input,
textarea {
color:#333;
font:15px/1.67 'Helvetica Neue', Helvetica, Arial, sans-serif;
-webkit-font-smoothing:antialiased;
}
*, *:after, *:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin:0;
font-weight:bold;
}
h1 {
font-size:32px;
margin-bottom:20px;
line-height:1em;
}
h2 {
font-size:28px;
margin-bottom:20px;
line-height:1.25em;
}
h3 {
font-size:20px;
margin-bottom:20px;
line-height:1.5em;
}
h4, h5 {
font-size:15px;
margin-bottom:0;
line-height:1.67em;
}
p {
margin:0 0 20px;
}
p:last-child { margin-bottom:0;}
abbr {
border-bottom:1px dotted #000;
cursor:help;
}
address { font-style:italic;}
small { font-size:11px;}
strong { font-weight:bold;}
em { font-style:italic;}
hr {
margin:0 0 20px;
border:0;
height:1px;
background:#f8f8f8;
}
/* Block Quotes */
blockquote,
q {
quotes:none;
font-style:italic;
padding-left:20px;
margin:10px;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
content:'';
}
/* Code Blocks & Pre */
code,
pre {
padding:5px;
font-family:Menlo, Bitstream Vera Sans Mono, Monaco, Consolas, monospace;
font-size:12px;
border-radius:3px;
}
code {
padding:5px;
background:#f8f8f8;
border:1px solid #ddd;
}
pre {
display:block;
padding:10px;
margin-bottom:10px;
font-size:12px;
word-break:break-all;
word-wrap:break-word;
white-space:pre;
white-space:pre-wrap;
background:#f8f8f8;
border:1px solid #ddd;
border-radius:3px;
}
pre code {
padding:0;
color:inherit;
background-color:transparent;
border:0;
}
.pre-scrollable {
max-height:300px;
overflow-y:scroll;
}
/* sub/superscripts */
sup,
sub {
height:0;
line-height:1;
vertical-align:baseline;
_vertical-align:bottom;
position:relative;
font-size:75%;
}
sup {
top:.5em;
bottom:1em;
}
label {
display:block;
}
select,
textarea,
input[type=text] {
display:inline-block;
height:30px;
width:95%;
max-width:400px;
margin-bottom:10px;
font-size:13px;
font-weight:500;
line-height:20px;
color:#a0a0a0;
vertical-align:middle;
padding:4px 6px;
-webkit-border-radius:1px;
border-radius:1px;
}
textarea,
input[type=text] {
background-color:#fff;
border:1px solid #ccc;
-webkit-box-shadow:1px 1px 2px rgba(0,0,0,0.1);
-moz-box-shadow:1px 1px 2px rgba(0,0,0,0.1);
box-shadow:1px 1px 2px rgba(0,0,0,0.1);
-webkit-transition:border linear .2s, box-shadow linear .2s;
-moz-transition:border linear .2s, box-shadow linear .2s;
-o-transition:border linear .2s, box-shadow linear .2s;
transition:border linear .2s, box-shadow linear .2s;
}
textarea:focus,
input[type=text]:focus {
outline:thin dotted\8; /* ie8 below */
color:#404040;
border-color:#00395D;
border-width:1px;
}
textarea {
height:200px;
max-width:none;
}
input[type=submit] {
background-color:#00395D;
cursor:pointer;
color:#fff;
font-weight:bold;
text-transform:uppercase;
border:none;
padding:9px 20px;
-webkit-box-shadow:2px 2px 4px rgba(0,0,0,0.1);
-moz-box-shadow:2px 2px 4px rgba(0,0,0,0.1);
box-shadow:2px 2px 4px rgba(0,0,0,0.1);
}
input[type=submit]:hover {
background-color:#002f4c;
}
input[type=submit]:active {
position:relative;
top:1px;
}
table {
width:100%;
background-color:transparent;
border-collapse:collapse;
border-spacing:0;
margin-bottom:20px;
table-layout:fixed;
}
th,
td {
padding:4px 0;
line-height:20px;
text-align:left;
vertical-align:top;
border-bottom:1px solid #d5d5d5;
}
th {
font-weight:bold;
}
thead th {
vertical-align:bottom;
color:#57594D;
}
/* Read content styling */
.prose ul {
list-style:disc;
margin-left:40px;
}
.prose ol {
list-style:decimal;
}
.prose p {
margin:0 0 10px;
}
.icon {
background:transparent url(img/sprite.png) no-repeat 0 0;
display:block;
width:30px;
height:30px;
text-indent:-999em;
}
/* Layout
------------------------------------------------------- */
.container {
max-width:1600px;
margin:0 auto;
overflow:hidden;
}
/* Columns
------------------------------------------------------- */
.col0 { float:left; width:04.1666%; }
.col1 { float:left; width:08.3333%; }
.col2 { float:left; width:16.6666%; }
.col3 { float:left; width:25.0000%; }
.col4 { float:left; width:33.3333%; }
.col5 { float:left; width:41.6666%; }
.col6 { float:left; width:50.0000%; }
.col7 { float:left; width:58.3333%; }
.col8 { float:left; width:66.6666%; }
.col9 { float:left; width:75.0000%; }
.col10 { float:left; width:83.3333%; }
.col11 { float:left; width:91.6666%; }
.col12 { width:100%; }
.margin0 { margin-left:04.1666%; }
.margin1 { margin-left:08.3333%; }
.margin2 { margin-left:16.6666%; }
.margin3 { margin-left:25.0000%; }
.margin4 { margin-left:33.3333%; }
.margin5 { margin-left:41.6666%; }
.margin6 { margin-left:50.0000%; }
.margin7 { margin-left:58.3333%; }
.margin8 { margin-left:66.6666%; }
.margin9 { margin-left:75.0000%; }
.margin10 { margin-left:83.3333%; }
.margin11 { margin-left:91.6666%; }
.margin12 { margin-left:100.0000%; }
/* Padding
------------------------------------------------------- */
.pad1 { padding:10px; }
.pad2 { padding:20px; }
.pad21h { padding:10px 20px; }
.pad2h { padding:0 20px; }
.pad4 { padding:40px; }
.pad4h { padding-left:40px; padding-right:40px; }
.pad8 { padding:80px 40px; }
.pad4c { padding:40px; }
/* Additional Utility Classes
------------------------------------------------------- */
.fr { float:right; }
.fl { float:left; }
.show { display:block; }
.hide { display:none; }
.deemphasize { color:#888; }
.center { text-align:center; }
.tip-top:after,
.tip-right:after,
.tip-bottom:after,
.tip-left:after {
content:'';
border-width:0 5px 5px;
border-style:solid;
position:absolute;
border-color:#333 transparent;
}
.tip-bottom:after {
border-width:5px 5px 0;
}
.tip-left:after {
border-width:5px 5px 5px 0;
border-color:transparent #333;
}
.tip-right:after {
border-width:5px 0 5px 5px;
}
/* Markup free clearing
Details: http://www.positioniseverything.net/easyclearing.html
------------------------------------------------------- */
.clearfix:after {
content:'.';
display:block;
height:0;
clear:both;
visibility:hidden;
}
.clearfix { display:inline-block; }
/* Tablet Layout
------------------------------------------------------- */
@media only screen and (max-width:770px) {
.hide-tablet { display:none; }
.show-tablet { display:block; }
}
/* Mobile Layout
------------------------------------------------------- */
@media only screen and (max-width:640px) {
.col1,
.col2,
.col3,
.col4,
.col5,
.col6,
.col7,
.col8,
.col9,
.col10,
.col11,
.col12 { width:100%; max-width:100%; }
.margin0,
.margin1,
.margin2,
.margin3,
.margin4,
.margin5,
.margin6,
.margin7,
.margin8,
.margin9,
.margin10,
.margin11,
.margin12 { margin-left:0; }
.pad4c { padding:0; }
.pad4,
.pad4h { padding-left:20px; padding-right:20px; }
.pad8 { padding:40px 20px; }
.hide-mobile { display:none; }
.show-mobile { display:block; }
.icon {
background-image:url(img/sprite@2x.png);
background-size:240px 240px;
}
}