148 lines
2.9 KiB
CSS
148 lines
2.9 KiB
CSS
|
|
|
||
|
|
/* Topbar identity chip */
|
||
|
|
.app-user-chip {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.55rem;
|
||
|
|
margin-left: 0.65rem;
|
||
|
|
padding: 0.2rem 0.35rem 0.2rem 0.2rem;
|
||
|
|
border-radius: 999px;
|
||
|
|
background: rgba(15, 23, 42, 0.75);
|
||
|
|
border: 1px solid rgba(148, 163, 184, 0.18);
|
||
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
|
||
|
|
}
|
||
|
|
|
||
|
|
.app-user-chip input[type="file"],
|
||
|
|
.user-avatar-input {
|
||
|
|
position: absolute !important;
|
||
|
|
width: 1px !important;
|
||
|
|
height: 1px !important;
|
||
|
|
padding: 0 !important;
|
||
|
|
margin: -1px !important;
|
||
|
|
overflow: hidden !important;
|
||
|
|
clip: rect(0, 0, 0, 0) !important;
|
||
|
|
border: 0 !important;
|
||
|
|
opacity: 0 !important;
|
||
|
|
pointer-events: none !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-avatar-btn {
|
||
|
|
appearance: none;
|
||
|
|
border: 0;
|
||
|
|
padding: 0;
|
||
|
|
margin: 0;
|
||
|
|
background: transparent;
|
||
|
|
cursor: pointer;
|
||
|
|
border-radius: 50%;
|
||
|
|
line-height: 0;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-avatar-btn:focus-visible {
|
||
|
|
outline: 2px solid rgba(251, 191, 36, 0.65);
|
||
|
|
outline-offset: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-avatar-img,
|
||
|
|
.user-avatar-fallback {
|
||
|
|
width: 36px;
|
||
|
|
height: 36px;
|
||
|
|
min-width: 36px;
|
||
|
|
min-height: 36px;
|
||
|
|
border-radius: 50%;
|
||
|
|
object-fit: cover;
|
||
|
|
border: 2px solid rgba(251, 191, 36, 0.55);
|
||
|
|
background: linear-gradient(145deg, #1e293b, #0f172a);
|
||
|
|
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-avatar-img {
|
||
|
|
display: block;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-avatar-fallback {
|
||
|
|
display: none; /* Alpine x-show zet dit aan indien geen foto */
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
color: #fbbf24;
|
||
|
|
font-size: 0.78rem;
|
||
|
|
font-weight: 700;
|
||
|
|
letter-spacing: 0.04em;
|
||
|
|
text-transform: uppercase;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Als Alpine display:flex/inline-flex zet via x-show */
|
||
|
|
.user-avatar-fallback[style*="flex"] {
|
||
|
|
display: inline-flex !important;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-avatar-meta {
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
min-width: 0;
|
||
|
|
padding-right: 0.15rem;
|
||
|
|
line-height: 1.15;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-avatar-name {
|
||
|
|
font-size: 0.8rem;
|
||
|
|
font-weight: 600;
|
||
|
|
color: #e2e8f0;
|
||
|
|
max-width: 120px;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-avatar-role {
|
||
|
|
font-size: 0.65rem;
|
||
|
|
color: #94a3b8;
|
||
|
|
text-transform: capitalize;
|
||
|
|
}
|
||
|
|
|
||
|
|
.user-logout-btn {
|
||
|
|
min-height: 30px !important;
|
||
|
|
padding: 0.2rem 0.65rem !important;
|
||
|
|
font-size: 0.7rem !important;
|
||
|
|
border-radius: 999px !important;
|
||
|
|
margin-right: 0.15rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 640px) {
|
||
|
|
.user-avatar-meta { display: none; }
|
||
|
|
.app-user-chip {
|
||
|
|
padding: 0.15rem;
|
||
|
|
gap: 0.35rem;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Settings list */
|
||
|
|
.user-card-avatar,
|
||
|
|
.user-form-avatar-preview {
|
||
|
|
width: 48px;
|
||
|
|
height: 48px;
|
||
|
|
border-radius: 50% !important;
|
||
|
|
object-fit: cover;
|
||
|
|
border: 2px solid rgba(251, 191, 36, 0.4);
|
||
|
|
background: #1e293b;
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
.user-card-avatar.fallback,
|
||
|
|
.user-form-avatar-preview.fallback {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
color: #fbbf24;
|
||
|
|
font-weight: 700;
|
||
|
|
}
|
||
|
|
.user-form-avatar-preview {
|
||
|
|
width: 72px;
|
||
|
|
height: 72px;
|
||
|
|
}
|
||
|
|
.user-form-avatar-row {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.85rem;
|
||
|
|
margin-bottom: 0.85rem;
|
||
|
|
}
|