Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 4746 | Rev 4766 | 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
        gap: 0.5rem;
65
        a {
66
            color: gray !important;
67
            &:hover {
68
                text-decoration: underline !important;
69
            }
70
        }
4454 stevensc 71
        li:hover .navLinkLevelThree {
72
            display: block;
73
        }
4432 stevensc 74
    }
4454 stevensc 75
    .navLinkLevelThree {
76
        padding: 1rem;
77
        border: 1px solid lightgray;
78
        ul {
4456 stevensc 79
            overflow: hidden;
4455 stevensc 80
            max-height: none;
4454 stevensc 81
        }
82
    }
4432 stevensc 83
}
84
 
4743 stevensc 85
.nav__options-dropdown.mobile {
86
    top: initial;
87
    bottom: 99%;
4745 stevensc 88
    left: 50%;
4743 stevensc 89
    transform-origin: bottom;
90
}
91
 
4432 stevensc 92
li:hover .header__option ~ .nav__options-dropdown {
4745 stevensc 93
    transform: scaleY(1);
4432 stevensc 94
    opacity: 1;
95
}
96
 
4747 stevensc 97
li:hover .header__option.mobile ~ .nav__options-dropdown.mobile {
4746 stevensc 98
    transform: scaleY(1) translateX(-50%);
99
    opacity: 1;
100
}
101
 
4432 stevensc 102
.user__options-description {
103
    display: flex;
104
    flex-direction: column;
105
    align-items: center;
106
    gap: 0.5rem;
107
    padding: 10px;
108
    left: 0;
109
    right: initial;
110
    .btn__profile {
111
        padding: 2px;
112
        border: 1px solid #7405f9;
113
        width: 100%;
114
        border-radius: 30px;
115
        color: #7405f9;
116
        font-size: 0.9rem;
117
        text-align: center;
118
        transition: all 0.1s ease-in;
119
        &:hover {
120
            border: 2px solid #7405f9;
121
        }
122
    }
123
}
124
 
125
.user__options-info {
126
    display: flex;
127
    align-items: center;
128
    gap: 0.5rem;
129
    width: 100%;
130
    h3 {
131
        font-weight: 600;
132
        font-size: 1.1rem;
133
    }
134
}
135
 
136
.user__option-icon {
137
    height: 16px;
138
    width: 16px;
139
}
140
 
141
@media (min-width: 768px) {
142
    .nav__options-dropdown {
4745 stevensc 143
        right: initial;
4432 stevensc 144
    }
145
}