UNPKG

peermesh

Version:

Send files peer-to-peer over a mesh network built with WebRTC.

375 lines (300 loc) 5.21 kB
/*------------------------- Simple reset --------------------------*/ *{ margin:0; padding:0; } /*------------------------- General Styles --------------------------*/ html{ } a, a:visited { outline:none; color:#389dc1; } a:hover{ text-decoration:none; } section, footer, header, aside{ display:block; } /*------------------------- The main page elements --------------------------*/ body{ background-color:#75c0d1; font:15px/1.3 'Raleway', sans-serif; color:#fff; width:100%; height:100%; position:absolute; } #stage{ width:100%; height:100%; position:absolute; top:0; left:0; transition:top 0.4s; } #stage > div{ /* The step divs */ position:relative; } #stage h1{ font-weight:normal; font-size:48px; text-align:center; color:#fff; margin-bottom:60px; } #stage h2{ font-weight:normal; font-size:14px; font-family:Arial, Helvetica, sans-serif; margin:-40px 0 45px; font-style:italic; } .content{ position:absolute; text-align:center; left:0; width:100%; } .content input[type=file]{ display:none; } a#newMesh{ color: white; cursor: pointer; z-index: 10; opacity: 0.3; font-size: 48px; } a#newMesh:hover{ opacity:0.8; } input { font-family:Arial; } /*------------------------- Conditional classes --------------------------*/ [class*="if-"]{ display:none; } body.send .if-send{ display:block; } body.receive .if-receive{ display:block; } /*------------------------- Button styles --------------------------*/ .button{ width:240px; height:70px; text-align:center; text-decoration:none !important; color:#fff !important; text-transform:uppercase; font-weight:bold; border-radius:1px; display:block; line-height:70px; box-shadow:3px 3px 0 rgba(0,0,0,0.08); cursor:pointer; font-size:18px; margin:10px auto; opacity:0.9; } .button:hover{ opacity:1; } .button::before{ content:''; background:url(vendor/icons.svg) no-repeat; display:inline-block; width:32px; height:32px; vertical-align:middle; padding-right:13px; } .button.green{ background-color:#92cd84; } .button.magenta{ background-color:#e661b7; } .button.blue{ background-color:#798dd7; } .button.red{ background-color:#c15645; } /* Styles for specific buttons */ .button.browse{ width:180px; } .button.process{ width:190px; } .button.download{ width:216px; } .button.upload{ width:180px; } .button.send::before{ background-position:0 0; } .button.receive::before{ background-position:-96px 0; } .button.browse::before{ background-position:-240px 0; } .button.process::before{ background-position:-142px 0; } .button.download::before{ background-position:-48px 0; } .button.upload::before{ background-position:-190px 0; } .button { } .button.requesting-peer { width: 436px; background-repeat: no-repeat; background-position: -436px 0; background-image: url(green-big.png); opacity: 0; cursor: default; } /*------------------------- The steps --------------------------*/ #stage { } body.send #step2{ background-color:#9ad58c; } body.receive #step2{ background-color:#d5d788; } input[type=url]{ background-color:#fff; border:none; padding:8px 10px; line-height:1; font:inherit; display:inline-block; outline:none; width:426px; margin:12px 0 10px; border-radius:2px; box-shadow:3px 3px 0 rgba(0,0,0,0.05); font-size:36px; color:#555; } #step2 .button { cursor: default; opacity:1; } #step3{ background-color:#9ad58c; } .content{ margin-top:-90px;} /*---------------------------- The Demo Footer -----------------------------*/ footer{ width:770px; font:normal 16px Arial, Helvetica, sans-serif; padding:15px 35px; position:fixed; bottom:0; left:50%; margin-left:-420px; background-color:#1f1f1f; background-image:linear-gradient(to bottom, #1f1f1f, #101010); border-radius:2px 2px 0 0; box-shadow:0 -1px 4px rgba(0,0,0,0.4); z-index:1; opacity: 0; } footer a.tz{ font-weight:normal; font-size:16px !important; text-decoration:none !important; display:block; margin-right:300px; text-overflow:ellipsis; white-space:nowrap; color:#bfbfbf !important; z-index:1; } footer a.tz:before{ content:''; background:url('http://cdn.tutorialzine.com/misc/enhance/v2_footer_bg.png') no-repeat 0 -53px; width:138px; height:20px; display:inline-block; position:relative; bottom:-3px; } footer .close{ position:absolute; cursor:pointer; width:8px; height:8px; background:url('http://cdn.tutorialzine.com/misc/enhance/v2_footer_bg.png') no-repeat 0 0px; top:10px; right:10px; z-index:3; } footer #tzine-actions{ position:absolute; top:8px; width:500px; right:50%; margin-right:-650px; text-align:right; z-index:2; } footer #tzine-actions iframe{ display:inline-block; height:21px; width:95px; position:relative; float:left; margin-top:11px; } /*---------------------------- Misc -----------------------------*/ a.github { opacity:0.5; color:black; font-weight:bold; text-decoration:none; } a.github:hover { text-decoration:underline; } a.github::before{ content:''; background:url(vendor/github.png) no-repeat; background-size:10px; display:inline-block; width:12px; height:10px; margin-left:2px; } #total-downloads { font-weight: bold; }