pathgl
Version:
A webgl renderer for data visualization, motion graphics and explorable explanations.
313 lines (264 loc) • 6.69 kB
CSS
* {
box-sizing: border-box;
}
body {
color: #222831;
margin: 0;
padding: 0;
font-family: "HelveticaNeue",Helvetica,Arial,sans-serif;
background: transparent;
background: -webkit-linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0));
background: -moz-linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0));
background: -ms-linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0));
background: -o-linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0));
background: linear-gradient(rgba(255,255,255,0.3),rgba(255,255,255,0));
background-color: #e8ebef;
background-repeat: no-repeat;
}
.nav {
position: relative;
overflow-y: scroll;
padding-left: 5px;
text-shadow: 0 1px 0 rgba(255,255,255,0.65);
background: rgba(255,255,255,0.25);
box-shadow: inset 0 1px 0 rgba(255,255,255,0.6),0 0 1px 1px rgba(80,84,92,0.1),0 1px 2px rgba(80,84,92,0.2);
}
h3 {
margin: 18px 0 7px;
text-transform: uppercase;
font-size: 11px;
font-weight: bold;
color: #9ca5b5;
}
.edit, canvas, svg {
padding-left: 1px;
position: absolute;
height: 89%;
width: 100%;
}
.right {
position: relative;
height: 100%;
width: 100%;
}
ul {
margin-left: -5px;
padding: 0px;
margin-top: 0px;
}
.nav li {
text-decoration: none;
list-style:none;
overflow: hidden;
}
.nav label, .nav a {
width: 100%;
color: #008cdd;
padding: 9px 17px;
text-decoration: none;
display: block;
}
a:hover {
text-decoration: underline;
}
.no-click {
pointer-events: none;
}
.CodeMirror {
margin: 50px 50px;
width: 75%;
height: 600px ;
font-size: 1.2em;
opacity: .75;
color: black;
}
.btn, .edit {
background: #eee;
background: #eee -moz-linear-gradient(top, rgba(255,255,255,.2) 0%, rgba(0,0,0,.2) 100%);
background: #eee -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.2)), color-stop(100%,rgba(0,0,0,.2)));
background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%);
background: #eee -o-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%);
background: #eee -ms-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%);
background: #eee linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%);
background: #eee -webkit-linear-gradient(top, rgba(255,255,255,.2) 0%,rgba(0,0,0,.2) 100%);
border: 1px solid #aaa;
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
color: #222;
display: inline-block;
font-size: 11px;
font-weight: bold;
text-decoration: none;
text-shadow: 0 1px rgba(255, 255, 255, .25);
cursor: pointer;
margin: 10px;
line-height: normal;
padding: 8px 10px;
align-items: flex-start;
text-align: center;
font: -webkit-small-control;
letter-spacing: normal;
word-spacing: normal;
text-transform: none;
text-indent: 0px;
outline: none;
left: 0px;
top: 0px;
}
.edit:hover {
color: #333;
background: #ddd;
background: #ddd -moz-linear-gradient(top, rgba(255,255,255,.3) 0%, rgba(0,0,0,.3) 100%);
background: #ddd -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.3)), color-stop(100%,rgba(0,0,0,.3)));
background: #ddd -webkit-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%);
background: #ddd -o-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%);
background: #ddd -ms-linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%);
background: #ddd linear-gradient(top, rgba(255,255,255,.3) 0%,rgba(0,0,0,.3) 100%);
border: 1px solid #888;
border-top: 1px solid #aaa;
border-left: 1px solid #aaa;
}
.edit {
display: none;
border: 1px solid #666;
background: #ccc;
background: #ccc -moz-linear-gradient(top, rgba(255,255,255,.35) 0%, rgba(10,10,10,.4) 100%);
background: #ccc -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,.35)), color-stop(100%,rgba(10,10,10,.4)));
background: #ccc -webkit-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%);
background: #ccc -o-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%);
background: #ccc -ms-linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%);
background: #ccc linear-gradient(top, rgba(255,255,255,.35) 0%,rgba(10,10,10,.4) 100%);
}
h3 {
margin: 5px 0px;
}
label, input {
cursor: pointer;
}
label {
display: block;
padding: 3px 12px;
}
#webgl {
margin-left: 8px;
}
#svg {
margin-left: 23px;
}
.running {
background: rgba(240, 248, 255, .9);
}
.container {
padding-top: 100px;
}
.three {
width: 30%;
float: left;
display: inline;
padding-right: 3%;
}
.center {
margin: 0 auto;
width: 50%;
}
.btn {
display: inline;
}
h1 {
width: 50%;
}
.mode {
display: none;
}
.source {}
.header {
position: relative;
width: 100%;
height: 10%;
}
html, body {
height: 100%;
}
@media (min-width: 1000px) {
.nav {
position: fixed;
left: 0;
top: 0;
height: 100%;
width: 15%;
}
.right {
left: calc(15% + 5px);
top: 0px;
width: 85%;
}
}
.x.axis .domain, .x.axis line {
fill: none;
stroke: #333;
}
@media (min-device-pixel-radio: 2) and (max-width: 640px) {
.desktop-only { display: none; }
}
@media (min-width: 640px) {
.mobile-only { display: none; }
}
ul li {
list-style: none;
}
.d3-tip {
line-height: 1;
font-weight: bold;
padding: 12px;
background: rgba(0, 0, 0, 0.8);
color: #fff;
border-radius: 2px;
pointer-events: none;
}
/* Creates a small triangle extender for the tooltip */
.d3-tip:after {
box-sizing: border-box;
display: inline;
font-size: 10px;
width: 100%;
line-height: 1;
color: rgba(0, 0, 0, 0.8);
position: absolute;
pointer-events: none;
}
/* Northward tooltips */
.d3-tip.n:after {
content: "\25BC";
margin: -1px 0 0 0;
top: 100%;
left: 0;
text-align: center;
}
/* Eastward tooltips */
.d3-tip.e:after {
content: "\25C0";
margin: -4px 0 0 0;
top: 50%;
left: -8px;
}
/* Southward tooltips */
.d3-tip.s:after {
content: "\25B2";
margin: 0 0 1px 0;
top: -8px;
left: 0;
text-align: center;
}
/* Westward tooltips */
.d3-tip.w:after {
content: "\25B6";
margin: -4px 0 0 -1px;
top: 50%;
left: 100%;
}
.blurb {
height: 10%;
}