Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4747 | Rev 4767 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
4432 stevensc 1
.user__options-dropdown,
2
.nav__options-dropdown {
3
    position: absolute;
4
    right: 0;
5
    min-width: 220px;
6
    top: calc(100% + 10px);
7
    background-color: #fff;
8
    border-radius: 5px;
9
    border-top-right-radius: 0;
10
    box-shadow: 0 0 0 1px rgb(0 0 0 / 5%), 0 3px 3px rgb(0 0 0 / 30%);
11
    transition: all 0.2s ease-in-out;
12
    transform-origin: top;
13
    &.fadeOut {
14
        transform: scaleY(0);
15
        opacity: 0;
16
    }
17
    &.fadeIn {
18
        transform: scaleY(1);
19
        opacity: 1;
20
    }
21
    ul {
22
        display: flex;
23
        flex-direction: column;
24
        gap: 0.5rem;
25
        a {
26
            white-space: nowrap;
27
        }
28
    }
29
}
30
 
31
.user__options-item {
32
    padding: 1rem 10px;
33
    border-top: 1px solid rgba(0, 0, 0, 0.08);
34
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
35
    display: flex;
36
    flex-direction: column;
37
    gap: 0.5rem;
38
    h3 {
39
        font-weight: 600;
40
    }
41
    ul {
42
        display: flex;
43
        flex-direction: column;
44
        gap: 0.5rem;
45
        a {
46
            color: gray !important;
47
            &:hover {
48
                text-decoration: underline !important;
49
            }
50
        }
51
    }
52
}
53
 
54
.nav__options-dropdown {
55
    transform: scaleY(0);
4746 stevensc 56
    right: -10%;
4432 stevensc 57
    opacity: 0;
58
    padding: 1rem;
4747 stevensc 59
    min-width: fit-content;
4432 stevensc 60
    top: 99%;
61
    ul {
62
        display: flex;
63
        flex-direction: column;
64
        a {
65
            color: gray !important;
66
            &:hover {
67
                text-decoration: underline !important;
68
            }
69
        }
4766 stevensc 70
        li:not(:last-child) {
71
            padding-bottom: 0.5rem;
72
        }
4454 stevensc 73
        li:hover .navLinkLevelThree {
74
            display: block;
75
        }
4432 stevensc 76
    }
4454 stevensc 77
    .navLinkLevelThree {
78
        padding: 1rem;
79
        border: 1px solid lightgray;
80
        ul {
4456 stevensc 81
            overflow: hidden;
4455 stevensc 82
            max-height: none;
4454 stevensc 83
        }
84
    }
4432 stevensc 85
}
86
 
4743 stevensc 87
.nav__options-dropdown.mobile {
88
    top: initial;
89
    bottom: 99%;
4745 stevensc 90
    left: 50%;
4743 stevensc 91
    transform-origin: bottom;
92
}
93
 
4432 stevensc 94
li:hover .header__option ~ .nav__options-dropdown {
4745 stevensc 95
    transform: scaleY(1);
4432 stevensc 96
    opacity: 1;
97
}
98
 
4747 stevensc 99
li:hover .header__option.mobile ~ .nav__options-dropdown.mobile {
4746 stevensc 100
    transform: scaleY(1) translateX(-50%);
101
    opacity: 1;
102
}
103
 
4432 stevensc 104
.user__options-description {
105
    display: flex;
106
    flex-direction: column;
107
    align-items: center;
108
    gap: 0.5rem;
109
    padding: 10px;
110
    left: 0;
111
    right: initial;
112
    .btn__profile {
113
        padding: 2px;
114
        border: 1px solid #7405f9;
115
        width: 100%;
116
        border-radius: 30px;
117
        color: #7405f9;
118
        font-size: 0.9rem;
119
        text-align: center;
120
        transition: all 0.1s ease-in;
121
        &:hover {
122
            border: 2px solid #7405f9;
123
        }
124
    }
125
}
126
 
127
.user__options-info {
128
    display: flex;
129
    align-items: center;
130
    gap: 0.5rem;
131
    width: 100%;
132
    h3 {
133
        font-weight: 600;
134
        font-size: 1.1rem;
135
    }
136
}
137
 
138
.user__option-icon {
139
    height: 16px;
140
    width: 16px;
141
}
142
 
143
@media (min-width: 768px) {
144
    .nav__options-dropdown {
4745 stevensc 145
        right: initial;
4432 stevensc 146
    }
147
}