mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-14 14:38:35 +09:00
266 lines
5.7 KiB
CSS
266 lines
5.7 KiB
CSS
/* SPDX-License-Identifier: AGPL-3.0-or-later */
|
|
|
|
.userAreaInnerWrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
width: 100%;
|
|
background-color: var(--panel-control-bg);
|
|
border-radius: var(--footer-box-radius);
|
|
box-shadow: inset 0 0 0 0.0625rem var(--floating-surface-ring-color);
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.userAreaContainer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-3);
|
|
margin: 0;
|
|
padding-block: var(--user-area-padding-y);
|
|
padding-inline: var(--user-area-avatar-lead) var(--user-area-padding-x);
|
|
box-sizing: border-box;
|
|
background-color: transparent;
|
|
width: 100%;
|
|
min-height: var(--layout-user-area-height);
|
|
}
|
|
|
|
.popoutContainer {
|
|
--popout-radius: 0.375rem;
|
|
}
|
|
|
|
.voiceConnectionWrapper {
|
|
border-bottom: 0.0625rem solid var(--floating-surface-ring-color-strong);
|
|
}
|
|
|
|
.userInfo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-2);
|
|
flex: 1;
|
|
min-width: 0;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
margin: 0;
|
|
border-radius: var(--radius-md);
|
|
height: var(--user-area-content-height);
|
|
position: relative;
|
|
isolation: isolate;
|
|
transition: color var(--transition-normal);
|
|
outline: none;
|
|
}
|
|
|
|
.userInfo::before {
|
|
content: '';
|
|
position: absolute;
|
|
inset: calc(var(--spacing-1) * -1);
|
|
border-radius: calc(var(--radius-md) + var(--spacing-1));
|
|
background-color: transparent;
|
|
z-index: -1;
|
|
transition: background-color var(--transition-normal);
|
|
}
|
|
|
|
.userInfo.active::before,
|
|
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
|
|
.userInfo:hover::before {
|
|
background-color: color-mix(in srgb, var(--text-primary) 3%, transparent);
|
|
}
|
|
|
|
.userInfoText {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
min-width: 0;
|
|
user-select: text;
|
|
-webkit-user-select: text;
|
|
gap: 0.0625rem;
|
|
}
|
|
|
|
.userName {
|
|
font-weight: 500;
|
|
font-size: 0.875rem;
|
|
line-height: 1.125rem;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.userStatus {
|
|
font-size: 0.6875rem;
|
|
line-height: 0.875rem;
|
|
color: color-mix(in srgb, var(--text-primary-muted) 85%, transparent);
|
|
font-weight: 500;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
max-width: 100%;
|
|
margin-top: -0.0625rem;
|
|
}
|
|
|
|
.userStatus img,
|
|
.userStatus svg {
|
|
opacity: 0.85;
|
|
}
|
|
|
|
.userStatusLabel {
|
|
composes: userStatus;
|
|
}
|
|
|
|
.userCustomStatus {
|
|
composes: userStatus;
|
|
}
|
|
|
|
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
|
|
.userInfo:hover
|
|
.userCustomStatus {
|
|
--emoji-show-animated: 1;
|
|
}
|
|
|
|
.hoverRoll {
|
|
display: inline-block;
|
|
vertical-align: top;
|
|
position: relative;
|
|
width: 100%;
|
|
contain: paint;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.defaultState,
|
|
.hovered {
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
display: block;
|
|
transform-style: preserve-3d;
|
|
pointer-events: none;
|
|
width: 100%;
|
|
transition:
|
|
transform 0.22s ease,
|
|
opacity 0.22s ease;
|
|
}
|
|
|
|
.hovered {
|
|
opacity: 0;
|
|
transform: translate3d(0, 107%, 0);
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.forceHover .defaultState {
|
|
transform: translate3d(0, 107%, 0);
|
|
opacity: 0;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
|
|
.userInfo:hover
|
|
.hoverRoll
|
|
.defaultState {
|
|
transform: translate3d(0, 107%, 0);
|
|
opacity: 0;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
}
|
|
|
|
.forceHover .hovered {
|
|
transform: translate3d(0, 0, 0);
|
|
opacity: 1;
|
|
}
|
|
|
|
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
|
|
.userInfo:hover
|
|
.hoverRoll
|
|
.hovered {
|
|
transform: translate3d(0, 0, 0);
|
|
opacity: 1;
|
|
}
|
|
|
|
@media (pointer: coarse), (max-width: 767px) {
|
|
.hoverRoll .defaultState,
|
|
.hoverRoll .hovered {
|
|
transform: none;
|
|
opacity: 1;
|
|
position: static;
|
|
}
|
|
|
|
.hoverRoll .hovered {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.controlsContainer {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-1);
|
|
flex-shrink: 0;
|
|
padding-left: var(--spacing-3);
|
|
}
|
|
|
|
.controlButton {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 2rem;
|
|
width: 2rem;
|
|
background-color: transparent;
|
|
color: var(--control-button-normal-text);
|
|
border: none;
|
|
border-radius: var(--radius-md);
|
|
cursor: pointer;
|
|
position: relative;
|
|
padding: 0;
|
|
}
|
|
|
|
.controlButton.contextMenuHover:not(.active):not(.disabled) {
|
|
background-color: color-mix(in srgb, var(--control-button-normal-text) 10%, transparent);
|
|
color: var(--control-button-hover-text);
|
|
}
|
|
|
|
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
|
|
.controlButton:hover {
|
|
background-color: color-mix(in srgb, var(--control-button-normal-text) 10%, transparent);
|
|
color: var(--control-button-hover-text);
|
|
}
|
|
|
|
.controlButton.active {
|
|
background-color: color-mix(in srgb, var(--control-button-danger-text) 10%, transparent);
|
|
color: var(--control-button-danger-text);
|
|
}
|
|
|
|
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
|
|
.controlButton.active:hover {
|
|
background-color: color-mix(in srgb, var(--control-button-danger-text) 20%, transparent);
|
|
color: var(--control-button-danger-text);
|
|
}
|
|
|
|
.controlButton.disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
:global(:where(html.window-focused, html.unfocused-fully-interactive):not(.window-focus-activation-guard))
|
|
.controlButton.disabled:hover {
|
|
background-color: color-mix(in srgb, var(--control-button-danger-text) 15%, transparent);
|
|
color: var(--control-button-danger-text);
|
|
}
|
|
|
|
.controlIcon {
|
|
height: 1.25rem;
|
|
width: 1.25rem;
|
|
}
|
|
|
|
.controlIconWithDot {
|
|
mask-image: radial-gradient(circle at 85% 15%, transparent 0.34375rem, #000 calc(0.34375rem + 0.03125rem));
|
|
}
|
|
|
|
.controlDot {
|
|
position: absolute;
|
|
top: 0.3125rem;
|
|
right: 0.3125rem;
|
|
}
|