Files
trweb/style/trweb.css
Fehér Roland 7274285f95 Change scroll behavior
Only scroll the torrent list, not the whole document
2025-10-14 13:00:09 +02:00

98 lines
2.1 KiB
CSS

.trweb_torrentlistview {
background-color: cadetblue;
overflow-x: clip;
overflow-y: auto;
}
.trweb_torrentlistentry:nth-child(3n-1) {
background-color: darkcyan;
}
.trweb_torrentlistentry:nth-child(3n) {
background-color: cornflowerblue;
}
.trweb_torrentlistentry:hover {
background-color: aqua;
}
.trweb_torrentlistserver {
position: relative;
}
.trweb_torrentlistserver.trweb_status_offline {
visibility: hidden;
}
.trweb_torrentlistserver > div > * {
margin: 2px;
}
.trweb_torrentliststatusbar {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 50%;
/*background-color: darkslateblue;*/
background-clip: content-box;
padding: 2px;
border-radius: 6px;
}
.trweb_status_paused .trweb_torrentliststatusbar {
background-color: gray;
}
.trweb_status_verifqueued .trweb_torrentliststatusbar {
background-color: chocolate;
}
.trweb_status_verifying .trweb_torrentliststatusbar {
background-color: gold;
}
.trweb_status_downloading .trweb_torrentliststatusbar {
background-color: aquamarine;
}
.trweb_status_seeding .trweb_torrentliststatusbar {
background-color: chartreuse;
}
.trweb_torrentlistserverrow {
position: relative;
z-index: 1;
}
.trweb_torrentliststatus {
/*background-color: darkslateblue;
background-size: 50% auto;*/
}
.trweb_torrentlistserver.trweb_status_nonexistent .trweb_torrentliststatus,
.trweb_torrentlistserver.trweb_status_nonexistent .trweb_torrentliststatusbar,
.trweb_torrentlistserver.trweb_status_nonexistent .trweb_torrentlistcontrol,
.trweb_torrentlistentry.trweb_hide_buttons .trweb_torrentlistcontrol {
display: none;
}
.trweb_torrentlistcontrol,
.trweb_torrentlistmagnet,
.trweb_torrentlistdownload {
background-color: white;
font-weight: bold;
border: 1p solid black;
border-radius: 4px;
}
.trweb_torrentlistmagnet,
.trweb_torrentlistdownload {
display: none;
}
/* only display if magnet is available */
.trweb_torrentlistserver.trweb_status_nonexistent .trweb_torrentlistmagnet,
.trweb_torrentlistserver.trweb_status_nonexistent .trweb_hastorrent .trweb_torrentlistdownload {
display: block;
}