covid-19/sim/css/sim.css

334 lines
5.3 KiB
CSS
Raw Normal View History

2020-03-31 19:02:59 +00:00
body{
margin: 0;
2020-03-31 19:02:59 +00:00
font-family: Helvetica, Arial, sans-serif;
2020-04-20 02:23:35 +00:00
font-size: 15px;
2020-04-22 22:48:22 +00:00
font-weight: normal;
background: #ddd;
2020-04-30 20:12:02 +00:00
line-height: 15px;
}
2020-04-22 22:48:22 +00:00
div{
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none; /* Likely future */
}
#sandbox{
width: 800px;
2020-04-27 04:03:42 +00:00
height: 540px;
overflow: hidden;
background: #fff;
position: absolute;
margin:auto;
top:0; left:0; right:0; bottom:0;
2020-03-31 19:02:59 +00:00
}
#controls{
position: absolute;
left:15px;
top:20px;
2020-04-24 16:59:53 +00:00
width:270px;
2020-03-31 19:02:59 +00:00
/*height:500px;*/
float:left;
position: relative;
2020-04-30 21:28:25 +00:00
padding-bottom: 40px;
2020-03-31 19:02:59 +00:00
}
2020-04-22 22:48:22 +00:00
2020-04-24 16:59:53 +00:00
#label_s{
position: relative;
display: inline-block;
}
#label_s > .herd{
display: block;
position: absolute;
border-right: 2px dotted black;
width: 0;
height: 16px;
bottom: 3px;
left: 159px;
pointer-events: none;
}
2020-04-22 22:48:22 +00:00
#sim_controls{
2020-04-24 16:59:53 +00:00
width: 250px;
2020-04-30 20:12:02 +00:00
position: relative;
2020-04-22 22:48:22 +00:00
}
.big_button{
font-weight: 100;
background: #ff4040;
color: #fff;
padding:10px;
border-radius: 10px;
border-bottom: 4px solid rgba(0,0,0,0.2);
font-size: 30px;
cursor: pointer;
}
.big_button:hover{
background: #ff6060;
}
.big_button > div{
display: none;
2020-04-30 20:12:02 +00:00
position: relative;
top: -6px;
2020-04-22 22:48:22 +00:00
}
.big_button[label='start'] > #bb_start{
display: block;
}
.big_button:not([label='start']){
background: #dddddd;
color: #555;
}
.big_button:not([label='start']):hover{
background: #dddddd;
}
.big_button[label='continue'] > #bb_continue{
display: block;
}
.big_button[label='pause'] > #bb_pause{
display: block;
}
.big_button[label='reset'] > #bb_reset{
display: block;
}
2020-04-30 20:12:02 +00:00
#sb_reset, #sb_replay{
position: absolute;
2020-04-22 22:48:22 +00:00
color: #999;
2020-04-30 20:12:02 +00:00
font-size: 15px;
2020-04-22 22:48:22 +00:00
font-weight: 100;
cursor: pointer;
2020-04-30 20:12:02 +00:00
bottom: -22px;
display: none;
2020-04-22 22:48:22 +00:00
}
2020-04-30 20:12:02 +00:00
#sb_reset:hover, #sb_replay:hover{
color: #bbb;
2020-04-22 22:48:22 +00:00
}
2020-04-30 20:12:02 +00:00
#sb_reset{
right: 0px;
2020-04-22 22:48:22 +00:00
}
hr{
border:none;
border-bottom: 2px dashed #ddd;
margin: 15px 0;
2020-04-24 16:59:53 +00:00
width: 250px;
2020-04-22 22:48:22 +00:00
}
2020-04-20 02:23:35 +00:00
/*
2020-03-31 19:02:59 +00:00
#controls > div{
overflow: hidden;
margin-bottom: 1em;
position: relative;
border-left: 5px solid #ffffff;
padding-left: 10px;
}
#controls > div > div{
width: 150px;
float: left;
position: relative;
}
#controls > div > div.bar{
height:10px;
background: #eeeeee;
position: absolute;
bottom:0; left:150px;
overflow: hidden;
}
#controls > div > div.bar > div{
height: 100%;
float: left;
}
#controls > div > div.bar > div:nth-child(1){
background: #ff4040;
}
#controls > div > div.bar > div:nth-child(2){
background: #cc4040;
}
#controls > div > div.bar > div:nth-child(3){
background: #994040;
}
#controls > div > div.bar > div:nth-child(4){
background: #664040;
}
#controls > div > #r_end{
height: 30px;
}
#controls > #containment_line{
display: block;
width:1px;
height: 100%;
background: #000;
position: absolute;
top: 0;
}
#controls .cap{
background: #fff;
opacity: 0.8;
position: absolute;
bottom: 0;
right: 0;
width: 50px;
height: 20px;
2020-04-20 02:23:35 +00:00
}*/
2020-03-31 19:02:59 +00:00
2020-04-20 02:23:35 +00:00
#controls input[type=range]{
2020-04-24 16:59:53 +00:00
/*width: 100%;*/
width: 250px;
2020-04-19 18:03:23 +00:00
}
2020-04-21 05:19:39 +00:00
#controls div[strikethrough]{
2020-04-20 02:23:35 +00:00
text-decoration: line-through;
}
2020-04-21 05:19:39 +00:00
#controls div[strikethrough] > input[type=range]{
2020-04-20 02:23:35 +00:00
pointer-events: none;
opacity: 0.5;
}
2020-04-19 18:03:23 +00:00
2020-04-20 02:23:35 +00:00
/*
2020-03-31 19:02:59 +00:00
#controls > div[locked]{
opacity: 0.2;
pointer-events: none;
2020-04-20 02:23:35 +00:00
}*/
2020-03-31 19:02:59 +00:00
#graph{
position: absolute;
right:15px;
top:8px;
2020-03-31 19:02:59 +00:00
width: 500px;
2020-04-30 21:28:25 +00:00
pointer-events: none;
2020-03-31 19:02:59 +00:00
}
#graphCanvas{
width:500px;
height:500px;
border: 1px solid #ccc;
2020-03-31 19:02:59 +00:00
}
2020-04-22 22:48:22 +00:00
2020-03-31 19:02:59 +00:00
#graph > #month_ticks{
2020-04-22 22:48:22 +00:00
width: 500px;
height: 15px;
position: absolute;
left: 0;
top: 501px;
color: #bbb;
font-size: 14px;
font-weight: 100;
2020-03-31 19:02:59 +00:00
}
#graph > #month_ticks > div{
2020-04-22 22:48:22 +00:00
width: 100px;
2020-03-31 19:02:59 +00:00
height: 100%;
2020-04-22 22:48:22 +00:00
border-left: 1px solid #bbb;
position: absolute;
}
#graph > #month_ticks > div > span{
position: absolute;
left:7px;
top:5px;
}
icon{
display: inline-block;
width: 1em;
height: 1em;
position: relative;
top:0.1em;
background-size: 100% 100%;
}
icon[s]{
2020-04-30 21:28:25 +00:00
background-image: url(../../icons/s.png);
2020-04-22 22:48:22 +00:00
}
icon[e]{
2020-04-30 21:28:25 +00:00
background-image: url(../../icons/e.png);
2020-04-22 22:48:22 +00:00
}
icon[i]{
2020-04-30 21:28:25 +00:00
background-image: url(../../icons/i.png);
2020-04-22 22:48:22 +00:00
}
icon[r]{
2020-04-30 21:28:25 +00:00
background-image: url(../../icons/r.png);
2020-04-22 22:48:22 +00:00
}
#legend{
position: absolute;
top: 10px;
left: 10px;
/* font-size: 17px; */
font-weight: 100;
line-height: 1.4em;
}
#hide_on_first_playthrough{
transition: height 0.5s ease-in-out;
overflow: hidden;
height:0px;
2020-04-27 04:03:42 +00:00
/*padding-right: 2px;*/
2020-04-22 22:48:22 +00:00
}
#month_names{
display:none;
2020-04-23 16:21:18 +00:00
}
#pointer{
position: absolute;
display: none;
}
#hand_container{
position: absolute;
width:80px; height:80px;
transform-origin: 50% 50%;
}
#hand{
position: absolute;
2020-04-30 21:28:25 +00:00
background: url(../../icons/hand.png);
2020-04-23 16:21:18 +00:00
background-size: 100% 100%;
width:80px; height:80px;
animation: aniFrames linear 0.75s;
animation-iteration-count: infinite;
transform-origin: 50% 50%;
}
#pointer_words{
position: absolute;
font-size: 20px;
width: 250px;
2020-04-30 20:12:02 +00:00
line-height: 1.3em;
2020-04-23 16:21:18 +00:00
}
@keyframes aniFrames{
0% {
transform: translate(0px,0px);
}
50% {
transform: translate(0px,-5px);
}
100% {
transform: translate(0px,0px);
}
2020-04-30 20:12:02 +00:00
}
.control_icon{
width:36px;
height:36px;
2020-04-30 21:28:25 +00:00
background: url(../../icons/controls.png);
2020-04-30 20:12:02 +00:00
background-size: auto 100%;
display: inline-block;
position: relative;
top: 6px;
}
.control_icon[continue]{
background-position: -100% 0;
}
.control_icon[pause]{
background-position: -200% 0;
}
.control_icon[reset]{
background-position: -300% 0;
}
2020-04-30 21:28:25 +00:00
.simplebar-wrapper{
height: 450px !important;
}