Files
webtorrent-desktop/main/index.css
Feross Aboukhadijeh c1cf9199b2 header: add nav buttons
2016-03-02 15:52:50 -08:00

186 lines
2.4 KiB
CSS

/*
* BASIC STYLES
*/
*,
*:after,
*:before {
box-sizing: border-box;
}
html,
body {
background: rgb(40, 40, 40);
cursor: default;
height: 100%;
font-family: BlinkMacSystemFont, 'Helvetica Neue', Helvetica, sans-serif;
font-size: 16px;
line-height: 1.5em;
margin: 0;
padding: 0;
overflow: auto;
-webkit-user-select: none;
-webkit-app-region: drag;
}
/*
* UTILITY CLASSES
*/
.ellipsis {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.disabled {
opacity: 0.3;
}
/*
* BUTTONS
*/
a {
cursor: default;
-webkit-app-region: no-drag;
}
a:not(.disabled):hover {
-webkit-filter: brightness(1.5);
}
.btn {
width: 50px;
height: 50px;
border-radius: 25px;
color: #FFF;
font-size: 24px;
transition: all 0.1s;
text-align: center;
}
/*
* WINDOW
*/
.header {
height: 37px;
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
overflow: hidden;
}
.header .nav {
color: #FFF;
font-size: 17px;
font-weight: bold;
margin-left: 82px;
margin-top: 6px;
}
.header .nav * {
float: left;
opacity: 0.6;
}
.header .nav .disabled {
opacity: 0.2;
}
.header .nav *:not(.disabled):hover {
opacity: 1;
}
.header .nav .back {
padding-right: 8px;
}
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
*/
.player {
height: 100%;
}
.player video {
display: block;
width: 100%;
}
/*
* TORRENT LIST
*/
.torrent {
height: 150px;
padding: 20px;
background: rgba(0, 0, 0, 0.5);
background-repeat: no-repeat;
background-size: cover;
background-position: 0 50%;
border-bottom: 1px solid rgba(0, 0, 0, 0.5);
transition: all 0.1s;
position: relative;
}
.torrent:hover {
-webkit-filter: brightness(1.2);
}
.torrent .metadata {
float: left;
width: calc(100% - 240px);
color: #FFF;
text-shadow: rgba(0, 0, 0, 0.5) 0 0 4px;
}
.torrent .btn {
float: right;
margin-top: 25px;
padding-top: 14px;
margin-left: 20px;
}
.torrent .play {
background-color: #C62828;
padding-left: 3px;
}
.torrent .chromecast {
background-color: #64B5F6;
}
.torrent .airplay {
background-color: #607D8B;
}
.torrent .name {
font-size: 1.6em;
font-weight: bold;
line-height: 1.5em;
}
.torrent .status {
font-size: 1em;
line-height: 1.5em;
position: absolute;
bottom: 20px;
}
.torrent .status :not(:last-child)::after {
content: ' — ';
}