crowds/css/index.css

607 lines
10 KiB
CSS
Raw Normal View History

2018-04-15 21:24:22 +00:00
/* FONT FACE */
@font-face {
2018-04-18 18:02:27 +00:00
font-family: "PatrickHand";
font-style: normal;
font-weight: 400;
src: url(PatrickHand-Regular.ttf) format('truetype');
2018-04-15 21:24:22 +00:00
}
/* HTML & BODY */
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;
2018-04-26 14:15:00 +00:00
font-family: "PatrickHand", Helvetica, Arial;
2018-04-15 21:24:22 +00:00
font-size: 23px;
2018-04-01 16:34:52 +00:00
line-height: 1.5em;
2018-04-15 21:24:22 +00:00
2018-03-26 15:52:43 +00:00
}
2018-04-11 20:44:12 +00:00
/* fake bold */
b, strong{
font-weight: normal;
text-shadow:1px 0 0 currentColor;
}
2018-04-25 19:34:37 +00:00
a{
color: #ff4040;
}
a:hover{
color: #ff6060;
}
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-16 19:14:08 +00:00
cursor: none;
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-11 20:44:12 +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;
2018-04-27 12:24:33 +00:00
padding: 37px 0 43px 0;
2018-04-06 17:13:42 +00:00
background-image: url(../sprites/button_large.png);
2018-03-28 17:12:05 +00:00
background-size: 100% auto;
text-align: center;
2018-04-15 21:24:22 +00:00
line-height: 25px;
2018-03-28 17:12:05 +00:00
}
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-16 15:44:14 +00:00
#slideshow .next_button[disabled]{
pointer-events: none;
2018-04-16 19:14:08 +00:00
opacity: 0.3;
2018-04-16 15:44:14 +00:00
}
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
}
2018-04-02 17:43:20 +00:00
#scratch{
position: absolute;
cursor: none;
2018-04-02 17:43:20 +00:00
display: none;
pointer-events: none;
width: 100%; height: 100%;
2018-04-02 17:43:20 +00:00
}
2018-04-06 16:06:55 +00:00
2018-04-18 21:00:04 +00:00
/* Skip */
#container > #skip{
display: none;
position: absolute;
right:10px;
bottom:10px;
width: 80px;
height: 25px;
font-size: 25px;
line-height: 25px;
color: #aaa;
text-align: right;
2018-04-20 18:47:58 +00:00
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2018-04-18 21:00:04 +00:00
}
#container > #skip:hover{
color: #ccc;
}
2018-04-16 19:49:56 +00:00
/* Peep Icon */
.peep_icon{
height:1em;
position: relative;
top: 3px;
transform: scale(1.2);
}
2018-04-27 12:24:33 +00:00
/* Right & Down Arrows */
.rarr, .darr{
display: inline-block;
width: 1em;
height: 1em;
background: url(../sprites/ui/arrow.png);
background-size: 100% auto;
position: relative;
top: 3px;
}
.darr{
transform: rotate(90deg);
}
2018-04-06 16:06:55 +00:00
/* Sim UI */
.sim_ui{
2018-04-03 17:32:26 +00:00
position: absolute;
width: 200px;
height: 100px;
border: none !important;
}
2018-04-06 16:06:55 +00:00
.sim_ui > div{
2018-04-03 17:32:26 +00:00
position: absolute;
color: #fff;
text-align: center;
border-radius: 10px;
}
2018-04-06 16:06:55 +00:00
.sim_ui > #start_button{
2018-04-03 17:32:26 +00:00
width: 200px;
padding: 0.5em 0;
2018-04-18 18:02:27 +00:00
background-image: url(../sprites/red_button.png);
background-size: 100% auto;
position: relative;
top:0;
transition: top 0.1s ease-in-out;
}
.sim_ui[active] > #start_button{
background-position: 0 -62.5px;
}
.sim_ui > #start_button:hover{
top:-3px;
2018-04-03 17:32:26 +00:00
}
2018-04-18 18:02:27 +00:00
.sim_ui > #start_button:active{
top:3px;
2018-04-03 15:25:13 +00:00
}
2018-04-02 17:43:20 +00:00
2018-04-06 16:06:55 +00:00
/* Sandbox UI */
.sandbox_ui{
width: 270px;
}
.sandbox_ui input[type="range"]{
width: 100%;
2018-04-15 21:24:22 +00:00
cursor: none;
2018-04-06 16:06:55 +00:00
}
.choose_one{
overflow: hidden;
}
.choose_one > div{
float: left;
margin: 3px;
opacity: 0.25;
}
.choose_one > div[selected]{
opacity: 1;
}
.choose_color{
width: 40px;
height: 40px;
2018-04-06 17:13:42 +00:00
background: url(../sprites/peeps.png);
2018-04-06 16:06:55 +00:00
background-size: auto 100%;
transform: scale(1.2);
}
.choose_tool{
2018-04-06 17:13:42 +00:00
background: #fff;
2018-04-06 16:06:55 +00:00
font-size: 16px;
line-height: 16px;
border: 1px solid black;
padding: 3px;
border-radius: 5px;
}
2018-04-06 17:13:42 +00:00
.choose_tool > #icon{
display: inline-block;
width:16px; height:16px;
background: url(../sprites/sandbox_tools.png);
background-size: auto 100%;
}
2018-04-06 16:06:55 +00:00
#sandbox_shortcuts_label{
font-size: 18px;
}
#sandbox_shortcuts{
font-size: 14px;
line-height: 1.5em;
color: #999;
}
2018-04-02 17:43:20 +00:00
/* MODAL */
2018-04-16 19:14:08 +00:00
#modal_container{
top:100%;
transition: top 0.4s ease-in-out;
}
#modal_container[show]{
top:0%;
}
#modal_bg{
width: 100%;
height: 100%;
}
2018-04-02 17:43:20 +00:00
#modal{
2018-04-16 19:14:08 +00:00
position: absolute;
margin: auto;
top:0; left:0; right:0; bottom:0;
2018-04-18 14:51:44 +00:00
background: #444;
2018-04-16 19:14:08 +00:00
color: #fff;
}
2018-04-24 14:22:06 +00:00
#modal #modal_content > div:first-child > h3{
border-top: none;
}
#modal #modal_content > h3{
border-top: none;
}
2018-04-16 19:14:08 +00:00
#modal h3{
2018-04-22 14:17:49 +00:00
font-size: 1.3em;
margin-bottom: 0.7em;
padding-top: 0.7em;
margin-top: 1em;
2018-04-24 14:22:06 +00:00
border-top: 5px solid #282828;
2018-04-16 19:14:08 +00:00
}
#modal[size=small]{
2018-04-22 14:17:49 +00:00
width: 700px;
2018-04-16 19:14:08 +00:00
height: 300px;
}
#modal[size=large]{
width: 800px;
2018-04-22 14:17:49 +00:00
height: 540px;
2018-04-16 19:14:08 +00:00
}
#modal_close{
position: absolute;
top: 0;
right: 0;
width: 40px;
height: 40px;
font-size: 50px;
text-align: center;
line-height: 25px;
}
#modal_content_container{
overflow: auto;
width: 100%; height:100%;
}
#modal_content{
margin:1.5em;
letter-spacing: 1px;
2018-04-02 17:43:20 +00:00
}
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;
}
2018-04-20 20:10:18 +00:00
#sound{
2018-04-26 14:15:00 +00:00
position: absolute;
left:0; top:0;
2018-04-20 20:10:18 +00:00
color: #fff;
width: 150px;
font-size: 30px;
height: 60px;
}
2018-04-26 14:15:00 +00:00
#sound[mute=yes]{
opacity: 0.5;
}
2018-04-20 20:10:18 +00:00
#sound_icon{
2018-04-26 14:15:00 +00:00
background: url(../sprites/ui/sound.png);
background-size: auto 100%;
2018-04-20 20:10:18 +00:00
width: 60px; height: 60px;
position: absolute;
}
#sound_on, #sound_off{
position: absolute;
2018-04-26 14:15:00 +00:00
left:65px;
2018-04-20 20:10:18 +00:00
padding: 15px 0;
display: block;
line-height: 28px;
display: none;
letter-spacing: 2px;
}
#sound[mute=no] > #sound_icon{
2018-04-26 14:15:00 +00:00
/*background: rgba(255,255,255,0.5);*/
background-position: 0px 0px;
2018-04-20 20:10:18 +00:00
}
#sound[mute=yes] > #sound_icon{
2018-04-26 14:15:00 +00:00
/*background: rgba(255,255,255,0.25);*/
background-position: -60px 0px;
2018-04-20 20:10:18 +00:00
}
#sound[mute=no] > #sound_on{
display: block;
}
#sound[mute=yes] > #sound_off{
display: block;
}
2018-04-26 14:15:00 +00:00
#sharing{
position: absolute;
right:10px; top:0;
width: 150px;
overflow: hidden;
}
#sharing > a{
float: left;
display: block;
width: 50px;
height: 60px;
background: url(../sprites/ui/sharing.png);
background-size: auto 100%;
}
#sharing #fb{
background-position: 0px 0px;
}
#sharing #tw{
background-position: -50px 0px;
}
#sharing #em{
background-position: -100px 0px;
}
#share_desc{
display: none;
}
2018-04-23 17:53:36 +00:00
#translations{
position: absolute;
top: 14px;
left: calc(50% - 400px);
width: 800px;
text-align: center;
color: #fff;
font-size: 16px;
line-height: 16px;
letter-spacing: 0.5px;
}
2018-04-04 15:57:35 +00:00
#navigation{
2018-04-18 21:00:04 +00:00
display: none;
2018-04-04 15:57:35 +00:00
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;
2018-04-24 14:22:06 +00:00
position: relative;
2018-04-04 15:57:35 +00:00
}
#navigation > div[highlight]{
background: #fff;
color: #222;
}
#navigation > div > span:nth-child(1){
display: block;
2018-04-24 14:22:06 +00:00
position: absolute;
width: 100%;
2018-04-04 15:57:35 +00:00
}
#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;
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 */
2018-04-26 14:15:00 +00:00
#pencil_container{
position: absolute;
top:0; left:0;
width: 100%;
height: 100%;
overflow: hidden;
pointer-events: none;
cursor: none;
}
2018-03-27 17:39:08 +00:00
#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
}
2018-04-16 15:44:14 +00:00
/* PRE-PRELOADER */
#pre_preloader{
position: absolute;
background: #fff;
width:100%;
height: 100%;
cursor: default;
}
#pre_preloader > div{
text-align: center;
width:300px; height:40px;
line-height: 40px;
font-size: 40px;
margin: auto;
position: absolute;
top:-40px; left:0; right:0; bottom:0;
}
2018-03-27 17:39:08 +00:00
/* THIS THING'S WORDS */
2018-04-16 19:14:08 +00:00
words, bonus, reference{
2018-03-26 15:52:43 +00:00
display: none;
2018-03-27 17:39:08 +00:00
}
2018-04-03 15:25:13 +00:00
2018-04-16 19:14:08 +00:00
/* BONUS BOX */
bon{
2018-04-27 12:24:33 +00:00
margin: 0.75em auto;
2018-04-16 19:14:08 +00:00
display: block;
2018-04-27 12:24:33 +00:00
2018-04-16 19:14:08 +00:00
background: #ccc;
color: #444;
2018-04-27 12:24:33 +00:00
text-align: left;
width: 300px;
height: 56px;
padding: 23px 20px 17px 80px;
2018-04-16 19:14:08 +00:00
border-bottom: 4px solid rgba(0,0,0,0.25);
2018-04-27 12:24:33 +00:00
border-radius: 5px;
line-height: 1.1em;
background-size: 400px auto;
position: relative;
transition: top 0.1s ease-in-out;
top:0;
}
bon:before{
content: '';
display: block;
position: absolute;
left: 25px;
top: 14px;
width: 35px;
height: 70px;
background: url(../sprites/ui/bonus.png);
background-size: 100% 100%;
2018-04-16 19:14:08 +00:00
}
bon:hover{
2018-04-27 12:24:33 +00:00
top:-3px;
2018-04-16 19:14:08 +00:00
}
/* REFERENCES */
ref{
position: relative;
display: inline-block;
padding-left: 2px;
width: 21px;
}
ref:before{
content: '*';
background: #ddd;
color: #444;
padding: 3px;
width: 15px;
height: 15px;
display: block;
line-height: 26px;
border-radius: 20px;
font-size: 30px;
position: absolute;
text-align: center;
top: -25px;
}
ref:hover:before{
background: #eee;
color: #999;
}
2018-04-03 15:25:13 +00:00
/* TO SEE LAYOUT */
2018-04-18 20:52:50 +00:00
/*.box, #simulations{
2018-04-18 20:28:41 +00:00
border: 1px solid #eee;
2018-04-18 20:52:50 +00:00
}*/
2018-04-06 17:13:42 +00:00
2018-04-11 20:44:12 +00:00
/* A NICE CIRCLE */
/* Thanks to: https://skeate.github.io/2015/07/13/Wrapping-Text-to-Fit-Shaped-Containers-with-CSS.html */
.circle {
/*background: #accede;*/
text-align: center;
width: 540px;
height: 540px;
border-radius: 100%;
}
.circle::before {
2018-04-24 14:22:06 +00:00
content: '';
height: 100%;
width: 50%;
float: left;
shape-outside: polygon(0 0, 100% 0, 60% 4%, 40% 10%, 20% 20%, 10% 28.2%, 5% 34.4%, 0 50%, 5% 65.6%, 10% 71.8%, 20% 80%, 40% 90%, 60% 96%, 100% 100%, 0% 100%);
2018-04-11 20:44:12 +00:00
}
.circle > span::before {
2018-04-24 14:22:06 +00:00
content: '';
height: 100%;
width: 50%;
float: right;
shape-outside: polygon(100% 0, 0 0, 40% 4%, 60% 10%, 80% 20%, 90% 28.2%, 95% 34.4%, 100% 50%, 95% 65.6%, 90% 71.8%, 80% 80%, 60% 90%, 40% 96%, 0 100%, 100% 100%);
2018-04-11 20:44:12 +00:00
}