Skip to content

Usenet streaming with a WebDAV server and a SABnzbd-compatible API

C#
5.1 KB
Raw Blame
.container {
    min-width: 100%;
    min-height: 100%;
    padding: 30px 35px 20px 35px;
    color: #93a1a1;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    position: absolute;
}

.item {
    position: relative;
    display: flex;
    flex-direction: row;
    border: 1px solid #ffffff20;

    a {
        text-decoration: inherit;
        color: inherit;
        width: 100%;
        height: 100%;
    }
}

.item+.item {
    border-top: none;
}

.item:first-of-type {
    border-radius: 10px 10px 0 0;
}

.item:last-of-type {
    border-radius: 0 0 10px 10px;
}

.item:first-of-type:last-of-type {
    border-radius: 10px 10px 10px 10px;
}

@media not (pointer: coarse),
(min-width: 900px) {
    .item:has(.item-content:hover) {
        background-color: #002b36;
        cursor: pointer;
    }
}

.item:has(.item-content:active) {
    background-color: #073642;
}

.item-content {
    padding: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-decoration: inherit;
    color: inherit;
    flex-grow: 1;
}

/* when an .item-content is immediately followed by .item-menu, */
/* set it's right padding to 0 */
.item:has(.item-menu) .item-content {
    padding-right: 5px;
}

.item-info {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 5px;
    transform: translateY(2px);
}

.item-name {
    word-break: break-all;
    overflow-wrap: break-word;
}

.item-size {
    font-size: 12px;
    color: #586e75;
    opacity: 0.8;
}

.loading {
    width: calc(100% - 75px);
    flex-grow: 1;
    position: unset;
    min-height: unset;
}

.hidden * {
    opacity: 50%;
}

.item-menu {
    padding: 15px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-decoration: inherit;
    color: inherit;
    border-top-right-radius: inherit;
    border-bottom-right-radius: inherit;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.open-item-menu {
    background-color: #ffffff11;
}

@media not (pointer: coarse),
(min-width: 900px) {
    .item-menu:hover {
        cursor: pointer;
        background-color: #ffffff15;
    }

    .item-menu:active {
        background-color: #ffffff11;
    }
}

.directory-icon {
    flex-shrink: 0;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2393a1a1' d='M2 4.75C2 3.784 2.784 3 3.75 3h4.971c.58 0 1.12.286 1.447.765l1.404 2.063a.25.25 0 0 0 .207.11h6.224c.966 0 1.75.783 1.75 1.75v.117H5.408a.848.848 0 0 0 0 1.695h15.484a1 1 0 0 1 .995 1.102L21 19.25c-.106 1.05-.784 1.75-1.75 1.75H3.75A1.75 1.75 0 0 1 2 19.25z'/%3E%3C/svg%3E");
}

.file-icon {
    flex-shrink: 0;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none'%3E%3Cpath d='m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z'/%3E%3Cpath fill='%2393a1a1' d='M12 2v6.5a1.5 1.5 0 0 0 1.356 1.493L13.5 10H20v10a2 2 0 0 1-1.85 1.995L18 22H6a2 2 0 0 1-1.995-1.85L4 20V4a2 2 0 0 1 1.85-1.995L6 2zm2 .043a2 2 0 0 1 .877.43l.123.113L19.414 7a2 2 0 0 1 .502.84l.04.16H14z'/%3E%3C/g%3E%3C/svg%3E");
}

.video-icon {
    flex-shrink: 0;
    display: inline-block;
    width: 40px;
    height: 40px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%2393a1a1' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'%3E%3Cpath d='M39 6H9a3 3 0 0 0-3 3v30a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3'/%3E%3Cpath fill='%2393a1a1' d='M20.5 28v-6.062l5.25 3.03L31 28l-5.25 3.031l-5.25 3.031z'/%3E%3Cpath d='M6 15h36m-9-9l-6 9m-6-9l-6 9'/%3E%3C/g%3E%3C/svg%3E");
}

.image-icon {
    flex-shrink: 0;
    display: inline-block;
    width: 40px;
    height: 35px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%2393a1a1'%3E%3Cpath d='M6.002 5.5a1.5 1.5 0 1 1-3 0a1.5 1.5 0 0 1 3 0'/%3E%3Cpath d='M2.002 1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2zm12 1a1 1 0 0 1 1 1v6.5l-3.777-1.947a.5.5 0 0 0-.577.093l-3.71 3.71l-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12V3a1 1 0 0 1 1-1z'/%3E%3C/g%3E%3C/svg%3E");
}