175 lines
3.1 KiB
CSS
175 lines
3.1 KiB
CSS
.user-profile {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.login-button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 3px 8px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 2px;
|
|
color: #888;
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.1s;
|
|
}
|
|
|
|
.login-button:hover:not(:disabled) {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #ccc;
|
|
}
|
|
|
|
.login-button:disabled {
|
|
opacity: 0.6;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.login-button .spinning {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.user-avatar-button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 2px 6px 2px 2px;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 2px;
|
|
color: #888;
|
|
font-size: 10px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.1s;
|
|
}
|
|
|
|
.user-avatar-button:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
color: #ccc;
|
|
}
|
|
|
|
.user-avatar,
|
|
.user-avatar-placeholder {
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.user-avatar {
|
|
object-fit: cover;
|
|
border: none;
|
|
}
|
|
|
|
.user-avatar-placeholder {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: #888;
|
|
border: none;
|
|
}
|
|
|
|
.user-name {
|
|
max-width: 80px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-menu {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
right: 0;
|
|
min-width: 220px;
|
|
background: var(--color-bg-secondary, #252526);
|
|
border: 1px solid var(--color-border, #333);
|
|
border-radius: 8px;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
z-index: 1000;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.user-menu-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 16px;
|
|
background: var(--color-bg-tertiary, #333);
|
|
}
|
|
|
|
.user-menu-avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
border: 2px solid var(--color-accent, #0e639c);
|
|
}
|
|
|
|
.user-menu-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-menu-name {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--color-text-primary, #cccccc);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-menu-login {
|
|
font-size: 12px;
|
|
color: var(--color-text-secondary, #858585);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.user-menu-divider {
|
|
height: 1px;
|
|
background: var(--color-border, #333);
|
|
}
|
|
|
|
.user-menu-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--color-text-primary, #cccccc);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
text-align: left;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.user-menu-item:hover {
|
|
background: var(--color-bg-hover, #2d2d30);
|
|
}
|
|
|
|
.user-menu-item:last-child {
|
|
color: #ff3b30;
|
|
}
|
|
|
|
.user-menu-item:last-child:hover {
|
|
background: rgba(255, 59, 48, 0.1);
|
|
}
|