Skip to content
Snippets Groups Projects
Friend.module.scss 4.3 KiB
Newer Older
insert's avatar
insert committed
.list {
    padding: 0 10px 10px 10px;
insert's avatar
insert committed
    user-select: none;
    overflow-y: scroll;

    .overline {
        display: flex;
        position: sticky;
        align-items: center;
        top: 0;
        background: var(--primary-background);
        padding: 5px 0;
        z-index: 10;
        cursor: pointer;
        svg {
            margin-inline-end: 4px;
        }
    details {
        summary {
            outline: none;
            list-style: none;
            transition: .2s opacity;

            &::marker, &::-webkit-details-marker {
                display: none;
            }

            svg {
                flex-shrink: 0;
                transition: .2s ease transform;
            }
        }

        &:not([open]) {
            summary {
                opacity: .7;
            }
            
            summary svg {
                transform: rotateZ(-90deg);
            }
        }
    }

insert's avatar
insert committed
    &[data-empty="true"] {
        img {
            height: 120px;
            border-radius: 8px;
        }

        gap: 16px;
        height: 100%;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }
}

.friend {
    padding: 0 10px;
    height: 60px;
insert's avatar
insert committed
    display: flex;
    border-radius: 5px;
    align-items: center;
    cursor: pointer;

    &:hover {
        background: var(--secondary-background);

        :global(.button) {
            background-color: var(--primary-background);
        }
    }

    .name {
        flex-grow: 1;
        margin: 0 12px;
        font-size: 16px;
        font-weight: 600;
insert's avatar
insert committed
        display: flex;
        flex-direction: column;
        text-overflow: ellipsis;
        overflow: hidden;

        span {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
insert's avatar
insert committed

        .subtext {
            font-size: 12px;
            font-weight: 400;
insert's avatar
insert committed
            color: var(--tertiary-foreground);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
insert's avatar
insert committed
        }
    }

    .actions {
        display: flex;
        gap: 12px;

        .button {
            width: 36px;
            height: 36px;
            &:hover.error {
                background: var(--error);
            &:hover.success {
                background: var(--success);
.divider {
    width: 1px;
    height: 24px;
    margin: 0 8px;
    background: var(--primary-background);
}

insert's avatar
insert committed
.title {
    flex-grow: 1;
}

.pending {
    padding: 1em;
    display: flex;
    cursor: pointer;
    margin-top: 1em;
    border-radius: 7px;
insert's avatar
insert committed
    align-items: center;
    flex-direction: row;
    background: var(--secondary-background);

    svg {
        flex-shrink: 0;
    }

insert's avatar
insert committed
    .avatars {
        display: flex;
        flex-shrink: 0;
        margin-inline-end: 15px;
insert's avatar
insert committed

        svg:not(:first-child) {
            position: relative;
            margin-left: -32px;
        }
insert's avatar
insert committed
    }

    .details {
        flex-grow: 1;
        display: flex;
        flex-direction: column;

        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;

insert's avatar
insert committed
        > div {
            font-size: 16px;
insert's avatar
insert committed
            font-weight: 800;
            display: flex;
            gap: 6px;
            align-items: center;
            min-width: 0;

            
            .title {
                text-overflow: ellipsis;
                overflow: hidden;
                white-space: nowrap;
            }
insert's avatar
insert committed

            span {
                width: 1.5em;
                height: 1.5em;
                font-size: 12px;
insert's avatar
insert committed

                border-radius: 50%;
                align-items: center;
                display: inline-flex;
                justify-content: center;
                background: var(--error);
                flex-shrink: 0;
            }
        }

        .from {
            .user {
                font-weight: 600;
            font-weight: 400;
            font-size: 12px;
insert's avatar
insert committed
            color: var(--tertiary-foreground);

            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
nizune's avatar
nizune committed
@media only screen and (max-width: 768px) {
    .list {
        padding: 0 8px 8px 8px;
nizune's avatar
nizune committed
    }
nizune's avatar
nizune committed
}