Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4810 | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |

.user__options-dropdown,
.nav__options-dropdown {
    position: absolute;
    right: 0;
    min-width: 220px;
    top: calc(100% + 10px);
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 0 1px rgb(0 0 0 / 5%), 0 3px 3px rgb(0 0 0 / 30%);
    transition: all 0.2s ease-in-out;
    transform-origin: top;

    &.fadeOut {
        transform: scaleY(0);
        opacity: 0;
    }

    &.fadeIn {
        transform: scaleY(1);
        opacity: 1;
    }

    ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        a {
            white-space: nowrap;
        }
    }
}

.user__options-dropdown {
    border-top-right-radius: 0;
}

.user__options-item {
    padding: 1rem 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    h3 {
        font-weight: 600;
    }

    ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;

        a {
            color: gray !important;

            &:hover {
                text-decoration: underline !important;
            }
        }
    }
}

.nav__options-dropdown {
    transform: scaleY(0);
    right: -10%;
    opacity: 0;
    padding: 1rem;
    min-width: fit-content;

    ul {
        display: flex;
        flex-direction: column;

        a {
            color: gray !important;

            &:hover {
                text-decoration: underline !important;
            }
        }

        li:not(:last-child) {
            padding-bottom: 0.5rem;
        }

        li:hover .navigation-level_three {
            display: block;
        }
    }
}

.nav__options-dropdown.mobile {
    top: initial;
    bottom: 99%;
    left: 50%;
    transform-origin: bottom;
}

.nav__options-dropdown.show {
    transform: scaleY(1);
    opacity: 1;
}

li:hover .header__option.mobile~.nav__options-dropdown.mobile {
    transform: scaleY(1) translateX(-50%);
    opacity: 1;
}

.user__options-description {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 10px;
    left: 0;
    right: initial;

    .btn__profile {
        padding: 2px;
        border: 1px solid #7405f9;
        width: 100%;
        border-radius: 30px;
        color: #7405f9;
        font-size: 0.9rem;
        text-align: center;
        transition: all 0.1s ease-in;

        &:hover {
            border: 2px solid #7405f9;
        }
    }
}

.user__options-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;

    h3 {
        font-weight: 600;
        font-size: 1.1rem;
    }
}

.user__option-icon {
    height: 16px;
    width: 16px;
}

@media (min-width: 768px) {
    .nav__options-dropdown {
        right: 0;
        border-top-right-radius: 0;
    }
}