/* Copyright 2013 The Chromium Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file. */
* {
box-sizing: border-box;
-webkit-font-smoothing:antialiased;
}
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
background: #FAFAFA;
font-family: 'Myriad Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
line-height: 1.35;
color: #666;
}
body {
display: flex;
flex-direction: row;
}
nav {
width: 230px;
background: #F3F3F3;
border-right: 1px solid #CCCCCC;
flex: 0 0 auto;
}
nav h1 {
font-family: 'Open Sans';
font-weight: 300;
color: #555;
margin: 0;
padding: 35px 0 20px 10px;
font-size: 22px;
border-bottom: 1px solid #CCC;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
}
nav ul li {
height: 52px;
line-height: 52px;
border-top: 1px solid #FFF;
border-bottom: 1px solid #CCC;
position: relative;
overflow: hidden;
}
nav ul li a {
padding-left: 50px;
display: block;
width: 100%;
height: 100%;
background-image: url(icons.png);
background-repeat: no-repeat;
background-color: #F3F3F3;
background-size: 30px 420px;
color: #444;
text-decoration: none;
transition: background-color 0.2s ease-out, color 0.3s ease-in-out;
}
nav ul li#lua a {
background-position: 14px 16px;
}
nav ul li#bullet a {
background-position: 14px -52px;
}
nav ul li#earth a {
background-position: 14px -108px;
}
nav ul li#life a {
background-position: 13px -166px;
}
nav ul li#voronoi a {
background-position: 15px -230px;
}
nav ul li#smoothlife a {
background-position: 13px -290px;
}
nav ul li#cube a {
background-position: 13px -350px;
}
nav ul li a:hover,
nav ul li a.active {
background-color: #444;
color: #FFF;
transition: background-color 0.1s ease-out, color 0.2s ease-in-out;
}
nav ul li:last-child:after {
content: '';
width: 100%;
height: 0;
border-bottom: 1px solid #FFF;
position: absolute;
left: 0;
bottom: -2px;
}
section {
padding: 25px;
flex: 1 1 auto;
display: flex;
flex-direction: column;
}
section iframe {
box-shadow: 0 1px 1px rgba(0,0,0,0.3);
width: 100%;
height: 100%;
background: #FFF;
flex: 1 1 auto;
}
.error {
background-color: #ccc;
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
}
.error h1 {
font-family: 'Open Sans';
font-weight: 300;
color: #555;
margin: 0;
padding: 20px 0 20px 10px;
font-size: 22px;
border-bottom: 1px solid #CCC;
margin-bottom: 20px;
}
.error .message {
background-color: #fff;
padding: 20px;
margin: auto;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
width: 500px;
height: 350px;
box-shadow: 0 1px 1px rgba(0,0,0,0.3);
}
.error img {
float: right;
margin-left: 20px;
}
.error[hidden] {
display: none;
}
/** Demo **/
.demo {
background: #FFF;
flex-direction: column;
}
.demo header {
flex: 0 1 auto;
padding: 15px 25px;
}
.demo header h1 {
margin: 0;
font-family: 'Open Sans';
font-weight: 300;
color: #000;
font-size: 62px;
letter-spacing: -0.05em;
}
.demo p {
margin: 0 0 1em 0;
font-size: 17px;
}
.demo ul {
margin: 0;
}
.demo section {
padding: 0 25px 25px 25px;
display: flex;
flex-direction: row;
}
.demo .intro {
max-width: 360px;
padding-right: 40px;
}
.demo div {
flex: 1 1 auto;
}
.demo div.Demo-body,
.demo div.Demo-content {
display: flex;
flex-direction: column;
}
.demo div.Demo-body {
border: 1px solid #DFDFDF;
position: relative;
padding: 10px;
}
.demo div.Demo-content embed {
flex: 1 1 auto;
}
.demo p {
font-size: 16px;
}
.demo a {
color: #00A3D9;
}
.demo p.note {
color: #666;
font-style: italic;
font-size: 14px;
}
.demo .panel-info {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid #CCC;
}
.demo .panel-body {
margin-bottom: 10px;
padding-bottom: 10px;
}
.demo tr {
font-size: 14px;
height: 30px;
line-height: 30px;
}
.demo td {
padding: 4px;
}
.demo tr:nth-child(2n) {
background: #f4f4f4;
}
.demo td.name {
font-weight: bold;
}
.demo h2 {
font-size: 16px;
font-family: 'Open Sans';
font-weight: 700;
margin: 0 0 0.2em 0;
color: #000;
letter-spacing: -0.06em;
}
.demo #loading-cover{
display: block;
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
width: 100%;
background-color: rgba(255, 255, 255, 0.8);
}
.demo #message {
position:absolute;
text-align: center;
width: 100%;
height: 100%;
z-index:10;
top:0;
left:0;
}
.demo #statusField {
padding-top: 200px;
color: #444;
font-size: 44px;
font-weight: 700;
font-family: 'Open Sans';
text-align: center;
width: 100%;
letter-spacing: -0.06em;
}
.demo #terminal {
width: 100%;
height: 100%;
position: relative;
display: flex;
}
.demo #terminal iframe {
width: auto;
height: auto;
}
.demo #rendererContainer {
width: calc(100% - 20px);
height: calc(100% - 20px);
position: absolute;
}
.no-pointer-events {
pointer-events: none;
}
.demo button {
background: #777;
color: #FFF;
width: 49%;
height: 35px;
border-radius: 6px;
border: none;
margin-bottom: 4px;
cursor: pointer;
transition: background-color 0.2s ease-out;
}
.demo button.block {
display: block;
}
.demo button.one-third {
width: 32%;
}
.demo button:hover {
background: #333;
}
.demo {
min-height: 645px;
}
.demo #progress {
margin: 20px auto;
width: 300px;
border-radius: 8px;
background: #FFF;
box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.progress-bar {
border-radius: 8px;
height: 40px;
background: #6DD900;
transition: width 0.1s ease-out;
}
.demo .credit {
margin-top: 20px;
font-size: 10px;
color: #AAA;
}