Style torrent detail sidebar

This commit is contained in:
John Furrow
2015-11-21 14:27:04 -08:00
parent 5379e830bb
commit 898705748a
6 changed files with 46 additions and 13 deletions
+15 -11
View File
@@ -1,29 +1,32 @@
.torrents {
display: flex;
flex: 5;
position: relative;
}
.torrent {
&__list {
background: $torrent-list--background;
box-shadow: -1px 0 0 0 $torrent-list--border;
margin: 0 0 0 10px;
padding: 10px 0;
position: relative;
&__wrapper {
height: auto;
list-style: none;
max-width: 100%;
opacity: 1;
overflow: auto;
position: relative;
transition: opacity 1s;
transition: max-width 0.5s, opacity 1s;
user-select: none;
}
z-index: 1;
&:before {
background: $torrent-list--background;
bottom: 0;
content: '';
left: 0;
position: absolute;
right: 0;
top: 0;
z-index: 0;
.has-sidepanel & {
max-width: 60%;
}
}
&--empty {
@@ -82,6 +85,7 @@
color: $torrent--primary--foreground;
flex: 4;
line-height: 1.3;
white-space: nowrap;
.is-stopped & {
color: $torrent--primary--foreground--stopped;
@@ -0,0 +1,18 @@
.transfer-data {
&--download {
color: $transfer-data--download;
.icon {
fill: $transfer-data--download;
}
}
&--upload {
color: $transfer-data--upload;
.icon {
fill: $transfer-data--upload;
}
}
}