Files
dashboards/components/AccountMenu.module.css
T

78 lines
1.3 KiB
CSS

.account {
position: relative;
display: flex;
align-items: center;
}
.trigger {
display: inline-flex;
align-items: center;
gap: 6px;
max-width: 160px;
padding: 0;
border: 0;
background: none;
font-size: 12px;
font-weight: 400;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--color-black);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer;
}
.chevron {
width: 7px;
height: 10px;
object-fit: contain;
transform: rotate(90deg);
opacity: 0.65;
flex-shrink: 0;
transition: transform 0.2s ease;
}
.chevronOpen {
transform: rotate(-90deg);
}
.menu {
position: absolute;
top: calc(100% + 10px);
right: 0;
z-index: 60;
min-width: 196px;
padding: 8px 0;
background: var(--color-white);
border: 1px solid #eee;
border-radius: 5px;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.item {
display: block;
width: 100%;
padding: 10px 16px;
border: 0;
background: none;
font-size: 11px;
font-weight: 400;
letter-spacing: 0.14em;
text-transform: uppercase;
text-align: left;
color: var(--color-soft);
cursor: pointer;
text-decoration: none;
}
.item:hover,
.item:focus-visible {
color: var(--color-black);
background: #f6f6f6;
}
.itemMuted {
color: #8e8e8e;
}