ncase.me-trust/css/slides.css

528 lines
9.7 KiB
CSS
Raw Permalink Normal View History

2017-06-21 20:05:44 +00:00
@font-face{
font-family: 'FuturaHandwritten';
font-style: normal;
src: url('FuturaHandwritten.ttf') format('truetype');
}
2017-07-10 15:38:20 +00:00
html,body{
width: 100%;
height: 100%;
}
2017-06-20 11:10:41 +00:00
body{
2017-06-28 14:53:43 +00:00
2017-06-20 11:10:41 +00:00
margin:0;
overflow: hidden;
2017-07-20 18:45:11 +00:00
background: #fff;
2017-06-28 14:53:43 +00:00
font-family: 'FuturaHandwritten';
color: #333;
font-size: 20px;
2017-06-20 11:10:41 +00:00
}
2017-07-20 22:16:35 +00:00
#preloader{
position: absolute;
margin: auto;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 200px;
height: 50px;
font-size: 30px;
text-align: center;
}
2017-06-20 11:10:41 +00:00
#main{
width: 100%;
height: calc(100% - 60px);
position: relative;
overflow: hidden;
}
#footer{
2017-07-12 18:59:22 +00:00
position: absolute;
z-index: 1000;
2017-06-20 11:10:41 +00:00
width: 100%;
height: 60px;
background: #222;
}
2017-07-18 18:39:53 +00:00
s{
text-decoration: line-through;
}
2017-06-20 11:10:41 +00:00
2017-07-24 20:56:59 +00:00
/*************************/
/******* SOUND *******/
/*************************/
#sound{
position: absolute;
left:13px;
top:5px;
width: 100px;
height: 50px;
cursor: pointer;
}
#sound > div{
position: absolute;
}
#sound #sound_icon{
background: url(../assets/ui/sound.png);
background-size: auto 100%;
width: 40px;
height: 40px;
top: 5px;
left:2px;
}
#sound #sound_on, #sound #sound_off{
left: 52px;
font-size: 30px;
line-height: 55px;
}
#sound #sound_on{
color:#fff;
}
#sound #sound_off{
color:#595959;
}
#sound[sound=off] #sound_icon{
background-position: -40px 0;
}
#sound[sound=on] #sound_on, #sound[sound=off] #sound_off{
display: block;
}
#sound[sound=off] #sound_on, #sound[sound=on] #sound_off{
display: none;
}
.sharing{
position: absolute;
width:120px;
height:40px;
top:10px;
right:13px;
}
.sharing img{
width: 40px;
height: 40px;
}
2017-06-20 11:10:41 +00:00
/*************************/
/******* SLIDESHOW *******/
/*************************/
2017-07-13 15:07:33 +00:00
#slideshow_container{
width:0; height:0;
position:absolute;
margin:auto;
top:0; left:0; right:0; bottom:0;
}
2017-06-20 11:10:41 +00:00
#slideshow{
2017-06-21 21:53:53 +00:00
2017-07-05 18:19:46 +00:00
/*border: 1px solid rgba(0,0,0,0.2);*/
2017-06-20 11:10:41 +00:00
width:960px;
height:540px;
/* Center this thing */
position: absolute;
2017-07-13 15:07:33 +00:00
left:-480px;
top:-270px;
2017-06-20 11:10:41 +00:00
}
2017-07-13 18:49:49 +00:00
.object{
2017-06-20 11:10:41 +00:00
position: absolute;
2017-07-13 18:49:49 +00:00
transition: left 0.5s ease-in-out, top 0.5s ease-in-out;
2017-06-20 11:10:41 +00:00
}
.fader{
2017-07-15 02:29:31 +00:00
transition: opacity 0.5s ease-in-out !important;
2017-06-20 11:10:41 +00:00
}
2017-06-26 19:52:49 +00:00
/******** Text Box ********/
2017-06-28 14:53:43 +00:00
.textbox{}
2017-06-26 19:52:49 +00:00
.textbox > div{
position: absolute;
}
2017-07-10 15:38:20 +00:00
/* fake bold */
.textbox b{
font-weight: normal;
text-shadow:1px 0 0 currentColor;
}
2017-06-26 19:52:49 +00:00
2017-06-28 14:53:43 +00:00
.label{
position: absolute;
}
2017-06-26 19:52:49 +00:00
/********* Button ********/
2017-07-18 18:39:53 +00:00
.no-select{
2017-07-24 20:56:59 +00:00
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2017-07-18 18:39:53 +00:00
cursor: default;
}
2017-06-21 21:53:53 +00:00
.button{
z-index: 0;
2017-07-24 20:56:59 +00:00
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
2017-07-13 15:41:43 +00:00
transform-origin: 97.5px 27.5px;
transition: transform 0.1s ease-out;
2017-07-27 16:49:04 +00:00
text-align: center;
2017-06-21 21:53:53 +00:00
}
.button #background{
position: absolute;
2017-07-05 18:19:46 +00:00
background: url(../assets/ui/button.png);
2017-06-21 21:53:53 +00:00
width:250px; height:125px;
background-size: 100%;
top:-35px; left:-30px;
pointer-events:none;
2017-07-05 18:19:46 +00:00
cursor: default;
2017-06-21 21:53:53 +00:00
}
.button #text{
font-family: 'FuturaHandwritten';
color: #000;
2017-07-05 18:19:46 +00:00
font-size: 24px;
2017-06-21 21:53:53 +00:00
width: 180px;
height: 30px;
text-align: center;
position: absolute;
2017-07-05 18:19:46 +00:00
top:14px; left:5px;
cursor: default;
2017-06-21 21:53:53 +00:00
}
.button #hitbox{
position: absolute;
width:195px; height:55px;
cursor: pointer;
}
.button[hover=yes]{
z-index: 100;
2017-07-13 15:41:43 +00:00
transform: scale(1.02, 1.02);
2017-06-21 21:53:53 +00:00
}
.button[hover=yes] #background{
2017-07-13 15:07:33 +00:00
background-position: 0px -125px !important;
2017-06-21 21:53:53 +00:00
}
.button[deactivated=yes] #background{
2017-07-17 19:39:26 +00:00
background-position: 0px -250px !important;
2017-06-21 21:53:53 +00:00
}
.button[deactivated=yes] #text{
color: #CCCCCC;
}
.button[deactivated=yes] #hitbox{
display: none;
}
2017-07-13 15:41:43 +00:00
.button[size=short]{
transform-origin: 57.5px 27.5px;
}
2017-07-13 15:07:33 +00:00
.button[size=short] #background{
background: url(../assets/ui/button_short.png);
background-size: 100%;
width:150px; left:-20px;
}
.button[size=short] #text{
width:105px;
2017-07-20 22:16:35 +00:00
/*font-size: 18px;
top: 18px;*/
2017-07-13 15:07:33 +00:00
}
.button[size=short] #hitbox{
width:115px;
}
2017-07-13 15:41:43 +00:00
.button[size=long]{
transform-origin: 172.5px 27.5px;
}
2017-07-13 15:07:33 +00:00
.button[size=long] #background{
background: url(../assets/ui/button_long.png);
background-size: 100%;
width:400px;
}
.button[size=long] #text{
width:330px;
top: 11px;
}
.button[size=long] #hitbox{
width:345px;
}
2017-07-13 15:41:43 +00:00
.button:active{
transform: scale(0.95, 0.95);
}
2017-06-20 11:10:41 +00:00
2017-06-28 14:53:43 +00:00
/*************************/
/****** SANDBOX UI *******/
/*************************/
#sandbox_tabs{
position: absolute;
left: 460px; top:-10px;
2017-07-05 18:19:46 +00:00
background: url(../assets/ui/sandbox_tabs.png);
2017-06-28 14:53:43 +00:00
width:500px; height:470px;
background-size: auto 100%;
2017-06-28 20:28:15 +00:00
-webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */
user-select: none;
cursor: default;
2017-06-28 14:53:43 +00:00
}
#sandbox_tabs > div{
position: absolute;
}
#sandbox_tabs .hitbox{
cursor: pointer;
font-size: 25px;
top: 22px;
}
#sandbox_tabs .sandbox_page{
width: 433px;
height: 385px;
left: 33px;
top: 80px;
}
2017-06-28 20:28:15 +00:00
.incdec{
width: 0; height: 0;
position: absolute;
}
.incdec > div{
position: absolute;
}
.incdec > .incdec_num{
width:50px; height:50px;
font-size: 25px;
text-align: center;
top: -16px;
left: -25px;
cursor: default;
}
.incdec > .incdec_control{
left:-10px;
width:20px; height:20px;
2017-07-05 18:19:46 +00:00
background: url(../assets/ui/sandbox_incdec.png);
2017-06-28 20:28:15 +00:00
background-size: auto 100%;
cursor: pointer;
}
.incdec > .incdec_control[arrow=up]{ top:-35px; background-position:0px 0px; }
.incdec > .incdec_control[arrow=up]:hover{ background-position:-20px 0px; }
.incdec > .incdec_control[arrow=down]{ bottom:-35px; background-position:-40px 0px; }
.incdec > .incdec_control[arrow=down]:hover{ background-position:-60px 0px; }
2017-06-29 02:12:32 +00:00
.slider{
position: absolute;
height: 40px;
}
.slider > div{
position: absolute;
}
.slider > .slider_bg{
top:0;
width:100%; height:30px;
2017-07-05 18:19:46 +00:00
background: url(../assets/ui/slider_bg.png);
2017-06-29 02:12:32 +00:00
background-size: auto 100%;
}
.slider > .slider_knob{
top:0;
width:30px; height:30px;
2017-07-05 18:19:46 +00:00
background: url(../assets/ui/slider_knob.png);
2017-06-29 02:12:32 +00:00
background-size: 100% 100%;
2017-07-18 18:39:53 +00:00
cursor: -webkit-grab;
cursor: -moz-grab;
cursor: grab;
}
.slider > .slider_knob:active{
cursor: -webkit-grabbing;
cursor: -moz-grabbing;
cursor: grabbing;
2017-06-29 02:12:32 +00:00
}
.sandbox_pop{
position: absolute;
}
.sandbox_pop>div{
position: absolute;
}
.sandbox_pop_icon{
width: 40px;
height: 40px;
2017-07-05 18:19:46 +00:00
background: url(../assets/ui/sandbox_hats.png);
2017-06-29 02:12:32 +00:00
background-size: auto 100%;
}
.sandbox_pop_label{
font-size: 18px;
width: 150px;
top: 8px;
left: 50px;
}
2017-06-28 14:53:43 +00:00
2017-07-10 15:38:20 +00:00
/*************************/
/******* SCRATCHER *******/
/*************************/
2017-07-15 02:29:31 +00:00
.scratcher{
2017-07-10 15:38:20 +00:00
position: absolute;
top:0; left:0;
width: 100%; height: 100%;
background: url(../assets/ui/scratch.png);
background-size: 200% 2000%;
display: none;
2017-07-12 18:59:22 +00:00
z-index: 200;
2017-07-10 15:38:20 +00:00
}
2017-07-13 18:49:49 +00:00
/*************************/
/******* SCOREBOARD *******/
/*************************/
#scoreboard{
position: absolute;
width:200px; height:100px;
background: url(../assets/iterated/iterated_scoreboard.png);
background-size: 100% 100%;
}
#scoreboard > div{
position: absolute;
width: 60px; height: 60px;
text-align: center;
font-size: 50px;
color: #666666;
}
#scoreboard > div:nth-child(1){
left: 20px;
top: 21px;
}
#scoreboard > div:nth-child(2){
right: 15px;
top: 21px;
}
2017-07-10 15:38:20 +00:00
2017-07-15 02:29:31 +00:00
/*************************/
/******* CHARACTERS *******/
/*************************/
.character{
position: absolute;
height: 114px;
}
.character #peep{
background: url(../assets/tournament/peep_characters.png);
background-size: auto 100%;
width: 105px;
height: 114px;
top: -5px;
left: -10px;
}
.character #desc{
width: calc(100% - 100px);
font-size: 18px;
height: 114px;
right: 0;
line-height: 1.2em;
}
.character #peep[char=tft]{ background-position: 0 0; }
.character #peep[char=all_d]{ background-position: -105px 0; }
.character #peep[char=all_c]{ background-position: -210px 0; }
.character #peep[char=grudge]{ background-position: -315px 0; }
.character #peep[char=prober]{ background-position: -420px 0; }
.character #peep[char=tf2t]{ background-position: -525px 0; }
.character #peep[char=pavlov]{ background-position: -630px 0; }
.character #peep[char=random]{ background-position: -735px 0; }
.tft{ color:#4089DD; }
.all_d{ color:#52537F; }
.all_c{ color:#FF75FF; }
2017-07-17 19:39:26 +00:00
.grudge{ color:#efc701; }
.prober{ color:#f6b24c; }
2017-07-15 02:29:31 +00:00
.tf2t{ color:#88A8CE; }
.pavlov{ color:#86C448; }
.random{ color:#FF5E5E; }
2017-07-17 19:39:26 +00:00
.icon{
width:25px; height:25px;
background: url(../assets/ui/sandbox_hats.png);
background-size: auto 100%;
display: inline-block;
position: relative;
top: 1px;
}
.icon_label{
display: inline-block;
font-size: 20px;
position: relative;
top: -3px;
}
.tft .icon{ background-position: 0 0; }
.all_d .icon{ background-position: -25px 0; }
.all_c .icon{ background-position: -50px 0; }
.grudge .icon{ background-position: -75px 0; }
.prober .icon{ background-position: -100px 0; }
.tf2t .icon{ background-position: -125px 0; }
.pavlov .icon{ background-position: -150px 0; }
.random .icon{ background-position: -175px 0; }
/*************************/
/******* MISC STUFF *******/
/*************************/
.score_small{
width:40px; height:40px;
background: url(../assets/tournament/score_small.png);
background-size: auto 100%;
display: inline-block;
}
.score_small[payoff=R]{ background-position: 0 0; }
.score_small[payoff=T]{ background-position: -40px 0; }
.score_small[payoff=S]{ background-position: -80px 0; }
.score_small[payoff=P]{ background-position: -120px 0; }
2017-06-20 11:10:41 +00:00
/*************************/
/***** SLIDE SELECT ******/
/*************************/
#select{
width:100%;
text-align: center;
padding-top: 15px;
}
#select .dot{
width: 30px;
height: 30px;
border-radius: 40px;
border: 1px solid #fff;
display: inline-block;
margin: 0 5px;
cursor: pointer;
}
#select .dot[selected]{
background: #fff;
2017-07-10 15:38:20 +00:00
}
2017-07-25 18:52:06 +00:00
/*************************/
/***** CREDITS ******/
/*************************/
.credits{
color: #888;
}
.credits .big{
font-size:40px;
line-height: 42px;
color:#fff;
}
.credits .divider{
display: block;
2017-07-26 21:09:09 +00:00
height: 40px;
2017-07-25 18:52:06 +00:00
}
.credits a{
color:#dd4040;
}
.credits a:hover{
color:#ee5151;
}