move webtorrent back into main window

We keep webtorrent running when the window is “closed” by hiding the
window instead.
This commit is contained in:
Feross Aboukhadijeh
2016-03-01 20:48:22 -08:00
parent bbe982d645
commit 1bfecb80a2
14 changed files with 344 additions and 393 deletions

40
main/index.css Normal file
View File

@@ -0,0 +1,40 @@
*,
*:after,
*:before {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
height: 100%;
overflow: auto;
font-family: BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
-webkit-user-select: none;
-webkit-app-region: drag;
}
body.drag .drag-layer {
display: block
}
body.drag::before {
content: '';
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
background: rgba(255, 0, 0, 0.3);
border: 5px #f00 dashed;
}
.player video {
display: block;
width: 100%;
}
.torrent {
height: 150px;
}