neuromodeljs/css/styles.css

264 lines
4.7 KiB
CSS

/* 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;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
* {
box-sizing: border-box;
}
body {
background-color: #ECEFF1;
font-family: 'Open Sans', sans-serif;
overflow-y: hidden;
}
.container {
display: flex;
width: 100%;
max-width: 1440px;
height: 100vh;
margin: 0 auto;
padding: 0 24px;
}
.main, .config {
display: block;
flex: 1;
padding: 32px 0;
max-height: 100vh;
overflow-y: auto;
}
.main {
margin: 0 48px 0 0;
overflow-y: hidden;
}
h1 {
font-size: 1.6em;
margin-bottom: 16px;
font-family: 'Overpass', sans-serif;
}
h1 span {
font-weight: 700;
}
h2 {
font-size: 1.2em;
font-weight: bold;
margin-bottom: 12px;
}
h3 {
font-weight: bold;
margin: 12px 0 4px;
}
label {
cursor: pointer;
user-select: none;
}
#modelSimContainer {
position: relative;
}
#modelSim {
width: 100%;
/* width: 50%; */
height: 480px;
margin: 0 0 32px;
}
#modelSim--snapshots {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.5;
pointer-events: none;
}
.panels {
display: flex;
flex-direction: row;
width: 100%;
flex-wrap: wrap;
}
.panel {
display: inline-block;
display: block;
flex: 1;
width: 100%;
min-width: 250px;
margin: 0 24px 24px 0;
padding: 16px;
background-color: #FFF;
border-radius: 3px;
box-shadow: 0px 3px 4px rgba(0,0,0,0.2);
}
.panel--2 {
flex: 2;
}
.panel--model h2 {
color: #263238;
}
.panel--stim h2 {
color: #B71C1C;
}
.panel--advanced h2 {
color: #FF6F00;
}
.panel__input {
display: block;
display: flex;
flex-direction: row;
align-items: center;
margin: 0 0 8px;
}
.panel__input span.label {
display: inline-block;
width: 65%;
padding: 0 8px 0 0;
text-align: right;
}
.panel__input span.unit {
opacity: 0.6;
font-size: 0.8em;
}
.panel__input input {
display: inline-block;
width: 30%;
padding: 2px 2px 2px 4px;
/* border: 1px solid #546E7A; */
border: 0px;
background-color: #CFD8DC;
font-size: 0.9em;
font-family: 'Open Sans', sans-serif;
}
.panel__checkboxes {
display: flex;
width: 100%;
}
.panel__input--checkbox {
flex: 1;
padding: 0;
background-color: #eee;
}
.panel__input--checkbox span.label {
width: 100%;
padding: 0px;
}
.panel__input--checkbox label {
display: block;
width: 100%;
padding: 6px 0;
text-align: center;
cursor: pointer;
}
.panel__checkboxes input {
display: none;
}
input:checked + .panel__input--checkbox {
color: #fff;
}
input#disp--mp:checked + .panel__input--checkbox {
background-color:#333;
}
input#disp--iinj:checked + .panel__input--checkbox {
background-color:#F44336;
}
input#disp--ik:checked + .panel__input--checkbox {
background-color:#1565C0;
}
input#disp--gk:checked + .panel__input--checkbox {
background-color:#1565C0;
}
input#disp--ek:checked + .panel__input--checkbox {
background-color:#1565C0;
}
input#disp--ina:checked + .panel__input--checkbox {
background-color:#2E7D32;
}
input#disp--gna:checked + .panel__input--checkbox {
background-color:#2E7D32;
}
input#disp--ena:checked + .panel__input--checkbox {
background-color:#2E7D32;
}
.panel--monitor p {
line-height: 1.3em;
}
.panel--monitor .label {
display: inline-block;
width: 16em;
}
.panel--monitor .value {
display: inline-block;
width: 5em;
padding: 2px 4px;
margin: 2px 8px 2px 0;
background-color: #fafafa;
border: solid #aaa 1px;
color: #555;
}
.clr--iinj {
color: #F44336;
}
.clr--ik {
color: #1565C0;
}
.clr--gk {
color: #64B5F6;
}
.clr--ina {
color: #2E7D32;
}
.clr--gna {
color: #81C784;
}
.source {
padding: 16px 0;
opacity: 0.5;
}
.source:hover {
opacity: 1;
}