crowds/index.css

223 lines
3.7 KiB
CSS
Raw Normal View History

2018-03-28 14:57:19 +00:00
html, body{
width:100%;
height:100%;
overflow: hidden;
2018-04-01 16:34:52 +00:00
cursor: none;
2018-03-28 14:57:19 +00:00
}
2018-03-26 15:52:43 +00:00
body{
margin:0;
font-family: "FuturaHandwritten";
2018-04-04 15:57:35 +00:00
font-size: 20px;
2018-04-01 16:34:52 +00:00
line-height: 1.5em;
2018-03-26 15:52:43 +00:00
}
2018-03-27 17:39:08 +00:00
/* SIMULATION and SLIDESHOW */
2018-04-02 17:43:20 +00:00
#container{
2018-03-26 15:52:43 +00:00
position: absolute;
2018-03-27 17:39:08 +00:00
top:0; left:0;
2018-03-26 15:52:43 +00:00
width: 100%;
height: calc(100% - 60px);
2018-04-02 17:43:20 +00:00
}
2018-04-03 17:32:26 +00:00
#container[sim_is_running]{
background: #eee;
}
2018-04-02 17:43:20 +00:00
#container > div{
position: absolute;
width: 100%; height: 100%;
2018-03-28 14:57:19 +00:00
overflow: hidden;
cursor: none;
2018-03-26 15:52:43 +00:00
}
2018-03-27 17:39:08 +00:00
#simulations, #slideshow{
2018-03-26 15:52:43 +00:00
position: absolute;
width: 960px;
height: 540px;
margin: auto;
top:0; left:0; right:0; bottom:0;
2018-03-27 17:39:08 +00:00
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2018-03-26 15:52:43 +00:00
}
2018-04-01 16:34:52 +00:00
#simulations canvas, #slideshow > div{
2018-03-26 15:52:43 +00:00
position: absolute;
}
2018-03-28 17:12:05 +00:00
#slideshow .box.image{
background-size: 100% 100%;
}
2018-04-01 16:34:52 +00:00
#slideshow .next_button{
2018-04-03 17:32:26 +00:00
display: inline-block;
/*margin: 0 auto;*/
2018-04-01 16:34:52 +00:00
position: relative;
top: -10px;
2018-03-28 17:12:05 +00:00
width: 300px;
height: 20px;
padding: 40px 0;
background-image: url(sprites/button_large.png);
background-size: 100% auto;
text-align: center;
}
2018-04-01 16:34:52 +00:00
#slideshow .next_button:hover{
2018-03-28 17:12:05 +00:00
background-position: 0 -100px;
}
2018-04-03 15:25:13 +00:00
.transitionable{
2018-04-03 17:32:26 +00:00
transition: opacity 0.3s ease-in-out,
left 0.3s ease-in-out,
top 0.3s ease-in-out;
2018-04-02 17:43:20 +00:00
}
#scratch{
display: none;
pointer-events: none;
background-image: url(sprites/scratch.png);
background-size: 200% 2000%;
background-position: 0% 0%;
}
2018-04-03 15:25:13 +00:00
.sim_button{
2018-04-03 17:32:26 +00:00
position: absolute;
width: 200px;
height: 100px;
border: none !important;
}
.sim_button > div{
position: absolute;
background: #dd4040;
color: #fff;
text-align: center;
border-radius: 10px;
}
.sim_button > #reset_button{
width: 150px;
left:25px;
top:0px;
font-size: 0.8em;
transition: top 0.3s ease-in-out;
}
.sim_button > #start_button{
width: 200px;
padding: 0.5em 0;
}
.sim_button[active] > #reset_button{
top:60px;
2018-04-03 15:25:13 +00:00
}
2018-04-02 17:43:20 +00:00
/* MODAL */
#modal{
display: none;
}
2018-03-26 15:52:43 +00:00
2018-03-27 17:39:08 +00:00
/* NAVIGATION */
2018-04-04 15:57:35 +00:00
#navigation_container{
2018-03-26 15:52:43 +00:00
position: absolute;
bottom:0;
background: #222;
width: 100%;
height:60px;
2018-04-04 15:57:35 +00:00
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
#navigation{
position: absolute;
top: 10px;
left: calc(50% - 300px);
width: 600px;
text-align: center;
}
#navigation > div{
width: 35px;
height: 35px;
background: #222;
color:#fff;
border-radius: 20px;
display: inline-block;
border: 1px solid #fff;
margin: 0 1px;
text-align: center;
overflow: hidden;
line-height: 34px;
}
#navigation > div[highlight]{
background: #fff;
color: #222;
}
#navigation > div > span:nth-child(1){
position: relative;
top: 1px;
display: block;
}
#navigation > div > span:nth-child(2){
display: none;
}
#navigation > div:hover{
background: rgba(255,255,255,0.25);
}
#navigation > div[highlight]:hover{
background: #fff;
}
#navigation > span.nav_divider{
width: 2px;
height: 40px;
background: rgba(255,255,255,0.2);
border-radius: 20px;
display: inline-block;
margin: 0 8px;
}
#navigation > span#nav_bubble{
transition: opacity 0.2s ease-in-out,
left 0.2s ease-in-out,
top 0.2s ease-in-out;
display: none;
opacity: 0;
position: absolute;
top:-80px;
left:0;
background: rgba(0,0,0,0.8);
color: #fff;
text-align: center;
border-radius: 20px;
font-size: 18px;
width: 220px;
padding: 6px 0;
}
#navigation > span#nav_bubble:after{
top: 100%;
left: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
border-color: rgba(0, 0, 0, 0);
border-top-color: rgba(0,0,0,0.8);
border-width: 15px;
margin-left: -15px;
2018-03-26 15:52:43 +00:00
}
2018-03-27 17:39:08 +00:00
/* PENCIL */
#pencil{
position: absolute;
width:100px;
height:100px;
pointer-events: none;
2018-03-28 14:57:19 +00:00
cursor: none;
2018-03-27 17:39:08 +00:00
}
/* THIS THING'S WORDS */
2018-03-26 15:52:43 +00:00
words, bonus, glossary{
display: none;
2018-03-27 17:39:08 +00:00
}
2018-04-03 15:25:13 +00:00
/* TO SEE LAYOUT */
.box, #simulations{
border: 1px solid #eee;
}