1185 lines
20 KiB
CSS
1185 lines
20 KiB
CSS
:root {
|
|
--background-primary: #313338;
|
|
--background-secondary: #2b2d31;
|
|
--background-tertiary: #1e1f22;
|
|
--background-accent: #35373c;
|
|
--header-primary: #f2f3f5;
|
|
--text-normal: #dbdee1;
|
|
--text-muted: #949ba4;
|
|
--interactive-normal: #b5bac1;
|
|
--interactive-hover: #dbdee1;
|
|
--brand: #5865f2;
|
|
--brand-hover: #4752c4;
|
|
--server-sidebar-width: 72px;
|
|
--channel-sidebar-width: 240px;
|
|
--background-modifier-hover: rgba(78, 80, 88, 0.3);
|
|
--background-modifier-active: rgba(78, 80, 88, 0.6);
|
|
--background-modifier-selected: rgba(78, 80, 88, 0.6);
|
|
--background-floating: #1e1f22;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
font-family:
|
|
"gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
background-color: var(--background-tertiary);
|
|
color: var(--text-normal);
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
}
|
|
|
|
#root {
|
|
height: 100%;
|
|
}
|
|
|
|
.chat-container {
|
|
display: flex;
|
|
height: 100vh;
|
|
width: 100vw;
|
|
}
|
|
|
|
/* Server List */
|
|
.server-list {
|
|
width: var(--server-sidebar-width);
|
|
background-color: var(--background-tertiary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
padding: 12px 0;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.server-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background-color: var(--background-accent);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition:
|
|
border-radius 0.2s,
|
|
background-color 0.2s;
|
|
font-weight: bold;
|
|
color: var(--text-normal);
|
|
position: relative;
|
|
}
|
|
|
|
.server-icon:hover {
|
|
border-radius: 16px;
|
|
background-color: var(--brand);
|
|
color: white;
|
|
}
|
|
|
|
.server-icon.active {
|
|
border-radius: 16px;
|
|
background-color: var(--brand);
|
|
color: white;
|
|
}
|
|
|
|
.server-icon.active::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: -12px;
|
|
width: 8px;
|
|
height: 40px;
|
|
background-color: white;
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
|
|
/* Channel Sidebar */
|
|
.sidebar-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: var(--background-secondary);
|
|
width: var(--channel-sidebar-width);
|
|
height: 100%;
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.channel-sidebar {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
overflow-x: visible;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.server-header {
|
|
height: 48px;
|
|
padding: 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.server-header.clickable {
|
|
cursor: pointer;
|
|
transition: background-color 0.1s;
|
|
}
|
|
|
|
.server-header.clickable:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.server-dropdown {
|
|
background-color: var(--background-floating);
|
|
margin: 0 8px 8px 8px;
|
|
border-radius: 4px;
|
|
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
|
|
overflow: hidden;
|
|
z-index: 100;
|
|
}
|
|
|
|
.server-dropdown-item {
|
|
padding: 8px 12px;
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
transition: background-color 0.1s;
|
|
}
|
|
|
|
.server-dropdown-item:hover {
|
|
background-color: var(--brand);
|
|
color: white;
|
|
}
|
|
|
|
.server-dropdown-item.danger:hover {
|
|
background-color: #f23f43;
|
|
}
|
|
|
|
.server-dropdown-item.muted {
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.server-dropdown-item.muted:hover {
|
|
color: white;
|
|
}
|
|
|
|
.channel-section {
|
|
padding: 16px 8px;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0 8px;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.add-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
font-size: 1.2rem;
|
|
line-height: 1;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.add-btn:hover {
|
|
color: var(--interactive-hover);
|
|
}
|
|
|
|
.channel-item {
|
|
padding: 6px 8px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
color: var(--interactive-normal);
|
|
}
|
|
|
|
.channel-item:hover {
|
|
background-color: var(--background-accent);
|
|
color: var(--interactive-hover);
|
|
}
|
|
|
|
.channel-item.active {
|
|
background-color: var(--background-modifier-selected);
|
|
color: white;
|
|
}
|
|
|
|
.channel-item-hash {
|
|
font-size: 1.2rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* User Info Bar */
|
|
.user-info-bar {
|
|
background-color: #232428;
|
|
padding: 0 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: 52px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-info-main {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.avatar {
|
|
border-radius: 50%;
|
|
background-color: var(--brand);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: bold;
|
|
flex-shrink: 0;
|
|
overflow: hidden;
|
|
color: white;
|
|
}
|
|
|
|
.avatar.small {
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.avatar.tiny {
|
|
width: 24px;
|
|
height: 24px;
|
|
font-size: 0.65rem;
|
|
}
|
|
|
|
.avatar.talking {
|
|
border: 2px solid #23a559;
|
|
box-shadow: 0 0 0 2px rgba(35, 165, 89, 0.15);
|
|
}
|
|
|
|
/* Voice Member Item */
|
|
.voice-member-list {
|
|
padding-left: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.voice-member-status-container {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
height: 100%;
|
|
padding: 0 4px;
|
|
cursor: help;
|
|
gap: 6px;
|
|
}
|
|
|
|
.voice-member-indicators {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
}
|
|
|
|
.voice-indicator-icon {
|
|
font-size: 0.75rem;
|
|
opacity: 0.8;
|
|
filter: grayscale(0.5);
|
|
}
|
|
|
|
.voice-member-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 4px 8px;
|
|
margin: 0 4px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.1s;
|
|
position: relative;
|
|
height: 32px;
|
|
}
|
|
|
|
.voice-member-item:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
}
|
|
|
|
.voice-member-name {
|
|
font-size: 0.9rem;
|
|
color: var(--text-muted);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-weight: 500;
|
|
transition: color 0.1s;
|
|
}
|
|
|
|
.voice-member-name.talking {
|
|
color: white;
|
|
}
|
|
|
|
.avatar.talking {
|
|
border: 2px solid #23a559;
|
|
box-shadow: 0 0 0 2px rgba(35, 165, 89, 0.15);
|
|
}
|
|
|
|
.me-badge {
|
|
color: var(--text-muted);
|
|
font-size: 0.75rem;
|
|
margin-left: 4px;
|
|
}
|
|
|
|
.member-item.offline {
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.member-name.talking {
|
|
color: white;
|
|
}
|
|
|
|
.member-list-section-header {
|
|
padding: 16px 8px 8px 8px;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.member-list-section-header:first-child {
|
|
padding-top: 0;
|
|
}
|
|
|
|
.user-details {
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-display-name {
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.user-status {
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.user-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.icon-btn {
|
|
background: none;
|
|
border: none;
|
|
color: var(--interactive-normal);
|
|
cursor: pointer;
|
|
padding: 4px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.icon-btn:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--interactive-hover);
|
|
}
|
|
|
|
.icon-btn.active {
|
|
color: var(--brand);
|
|
}
|
|
|
|
.icon-btn.active:hover {
|
|
background-color: var(--background-modifier-selected);
|
|
}
|
|
|
|
.icon-btn.danger.active {
|
|
color: #f23f43;
|
|
}
|
|
|
|
/* Main Content Area */
|
|
.main-content {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background-color: var(--background-primary);
|
|
min-width: 0;
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.chat-header {
|
|
height: 48px;
|
|
padding: 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
|
|
font-weight: bold;
|
|
z-index: 10;
|
|
}
|
|
|
|
.message-list {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.message-item {
|
|
padding: 8px 16px;
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
|
|
.message-item:hover {
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.message-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.message-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
.message-header {
|
|
display: flex;
|
|
align-items: baseline;
|
|
gap: 8px;
|
|
}
|
|
|
|
.user-name {
|
|
font-weight: 600;
|
|
color: var(--header-primary);
|
|
}
|
|
|
|
.message-time {
|
|
font-size: 0.75rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.message-text {
|
|
line-height: 1.4;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.url-link {
|
|
color: #00a8fc;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.url-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.message-image-container {
|
|
margin-top: 8px;
|
|
max-width: 400px;
|
|
max-height: 300px;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
border: 1px solid var(--background-accent);
|
|
background-color: var(--background-tertiary);
|
|
}
|
|
|
|
.message-image {
|
|
max-width: 100%;
|
|
max-height: 300px;
|
|
display: block;
|
|
object-fit: contain;
|
|
cursor: zoom-in;
|
|
}
|
|
|
|
.thread-link {
|
|
font-size: 0.75rem;
|
|
color: var(--brand);
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.thread-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* Chat Input */
|
|
.chat-input-container {
|
|
padding: 0 16px 24px 16px;
|
|
}
|
|
|
|
.chat-input {
|
|
background-color: var(--background-tertiary);
|
|
border-radius: 8px;
|
|
padding: 11px 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.chat-input input {
|
|
flex: 1;
|
|
background: none;
|
|
border: none;
|
|
outline: none;
|
|
color: var(--text-normal);
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Video Chat Layout */
|
|
.video-grid {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 16px;
|
|
background-color: var(--background-primary);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.video-grid-content {
|
|
display: grid;
|
|
gap: 16px;
|
|
width: 100%;
|
|
height: 100%;
|
|
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
|
|
align-content: start;
|
|
}
|
|
|
|
/* Layout when someone is sharing/focused */
|
|
.video-grid.has-sharer .video-grid-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.video-tile-container.is-hero {
|
|
flex: 1;
|
|
min-height: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
/* We'll add a row-container to wrap only the row items in VideoGrid.svelte */
|
|
.video-participants-row {
|
|
display: flex;
|
|
gap: 12px;
|
|
height: 160px;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
padding-bottom: 4px; /* Space for scrollbar */
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.video-tile-container.is-grid {
|
|
width: 100%;
|
|
aspect-ratio: 16 / 9;
|
|
}
|
|
|
|
.video-tile-container.is-row {
|
|
width: 284px; /* 16:9 aspect for 160px height is 284px */
|
|
flex-shrink: 0;
|
|
height: 100%;
|
|
}
|
|
|
|
.video-tile {
|
|
position: relative;
|
|
background-color: var(--background-tertiary);
|
|
border-radius: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
border: 2px solid transparent;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.video-tile:not(.hero) {
|
|
aspect-ratio: 16 / 9;
|
|
}
|
|
|
|
.video-tile.hero {
|
|
flex: 1;
|
|
}
|
|
|
|
.video-tile.talking {
|
|
border-color: #23a559;
|
|
}
|
|
|
|
.video-tile video {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
background-color: black;
|
|
}
|
|
|
|
.video-controls,
|
|
.tile-actions-right {
|
|
position: absolute;
|
|
display: flex;
|
|
gap: 8px;
|
|
opacity: 0;
|
|
transition: opacity 0.2s;
|
|
z-index: 10;
|
|
}
|
|
|
|
.video-controls {
|
|
top: 8px;
|
|
right: 8px;
|
|
}
|
|
|
|
.tile-actions-right {
|
|
bottom: 8px;
|
|
right: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.volume-control-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
background-color: rgba(30, 31, 34, 0.85);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
transition: background-color 0.2s;
|
|
}
|
|
|
|
.volume-control-container:hover {
|
|
background-color: rgba(43, 45, 49, 0.95);
|
|
}
|
|
|
|
.volume-slider {
|
|
cursor: pointer;
|
|
height: 4px;
|
|
-webkit-appearance: none;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 2px;
|
|
outline: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
accent-color: white;
|
|
transition:
|
|
width 0.2s,
|
|
opacity 0.2s;
|
|
}
|
|
|
|
/* Default for VideoTile is hidden until hover */
|
|
.volume-control-container .volume-slider {
|
|
width: 0;
|
|
opacity: 0;
|
|
}
|
|
|
|
.volume-control-container:hover .volume-slider {
|
|
width: 80px;
|
|
opacity: 1;
|
|
}
|
|
|
|
/* Context menu slider is always visible and full width */
|
|
.context-menu-section .volume-slider {
|
|
width: 100%;
|
|
opacity: 1;
|
|
display: block;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.volume-slider::-webkit-slider-runnable-track {
|
|
width: 100%;
|
|
height: 4px;
|
|
cursor: pointer;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.volume-slider::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
width: 14px;
|
|
height: 14px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
margin-top: -5px; /* Centers thumb on 4px track */
|
|
border: none;
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.volume-slider::-moz-range-track {
|
|
width: 100%;
|
|
height: 4px;
|
|
cursor: pointer;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.volume-slider::-moz-range-thumb {
|
|
width: 14px;
|
|
height: 14px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: none;
|
|
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.volume-control-container .mute-tile-btn {
|
|
background-color: transparent;
|
|
padding: 4px;
|
|
min-width: 24px;
|
|
}
|
|
|
|
.volume-control-container .mute-tile-btn:hover {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.video-tile:hover .video-controls,
|
|
.video-tile:hover .tile-actions-right {
|
|
opacity: 1;
|
|
}
|
|
|
|
.watch-btn,
|
|
.mute-tile-btn {
|
|
background-color: var(--brand);
|
|
color: white;
|
|
border: none;
|
|
padding: 4px 12px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.watch-btn.active,
|
|
.mute-tile-btn {
|
|
background-color: rgba(30, 31, 34, 0.7);
|
|
}
|
|
|
|
.watch-btn.active:hover,
|
|
.mute-tile-btn:hover {
|
|
background-color: rgba(43, 45, 49, 0.9);
|
|
}
|
|
|
|
.fullscreen-btn {
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
color: white;
|
|
border: none;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.avatar-placeholder-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.avatar-placeholder {
|
|
width: 60px;
|
|
height: 60px;
|
|
border-radius: 50%;
|
|
background-color: var(--brand);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.tile-info {
|
|
position: absolute;
|
|
bottom: 8px;
|
|
left: 8px;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
padding: 2px 8px;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 0.85rem;
|
|
color: white;
|
|
}
|
|
|
|
.sharing-badge {
|
|
background-color: #f23f43;
|
|
color: white;
|
|
font-size: 0.6rem;
|
|
padding: 1px 4px;
|
|
border-radius: 2px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Member List */
|
|
.member-list {
|
|
padding: 16px 8px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
}
|
|
|
|
.member-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 6px 8px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
color: var(--interactive-normal);
|
|
}
|
|
|
|
.member-item:hover {
|
|
background-color: var(--background-modifier-hover);
|
|
color: var(--interactive-hover);
|
|
}
|
|
|
|
.member-avatar {
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
cursor: help;
|
|
}
|
|
|
|
.status-dot.green {
|
|
background-color: #23a559;
|
|
}
|
|
|
|
.status-dot.yellow {
|
|
background-color: #f0b232;
|
|
}
|
|
|
|
.status-dot.red {
|
|
background-color: #f23f43;
|
|
}
|
|
.status-dot.grey {
|
|
background-color: #80848e;
|
|
}
|
|
|
|
/* Connection Popover */
|
|
.connection-popover {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 12px;
|
|
margin-top: 4px;
|
|
width: 216px;
|
|
background-color: var(--background-floating, #1e1f22);
|
|
border-radius: 8px;
|
|
padding: 12px;
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
|
|
z-index: 2000;
|
|
color: var(--text-normal, #dbdee1);
|
|
font-family: "gg sans", sans-serif;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.connection-popover::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: -6px;
|
|
left: 20px;
|
|
width: 12px;
|
|
height: 12px;
|
|
background-color: var(--background-floating);
|
|
transform: rotate(45deg);
|
|
}
|
|
|
|
.popover-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.popover-name {
|
|
font-weight: bold;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.popover-status {
|
|
font-size: 0.7rem;
|
|
text-transform: uppercase;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.popover-status.green {
|
|
color: #23a559;
|
|
}
|
|
.popover-status.yellow {
|
|
color: #f0b232;
|
|
}
|
|
.popover-status.red {
|
|
color: #f23f43;
|
|
}
|
|
|
|
.popover-info {
|
|
font-size: 0.8rem;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
.stats-section {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.stats-section:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 0.65rem;
|
|
font-weight: 800;
|
|
color: var(--text-muted);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.stat-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.75rem;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.stat-row span:last-child {
|
|
color: var(--header-primary);
|
|
font-family: monospace;
|
|
}
|
|
|
|
.member-name {
|
|
font-size: 0.9rem;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Right Sidebar (Users/Thread) */
|
|
.right-sidebar {
|
|
width: 240px;
|
|
background-color: var(--background-secondary);
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-shrink: 0;
|
|
border-left: 1px solid rgba(0, 0, 0, 0.2);
|
|
position: relative;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.thread-view {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.thread-header {
|
|
height: 48px;
|
|
padding: 0 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.thread-messages-list {
|
|
padding: 8px 0;
|
|
}
|
|
|
|
.thread-message-item {
|
|
padding: 4px 16px;
|
|
gap: 12px;
|
|
}
|
|
|
|
.thread-message-item .user-name {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.thread-message-item .message-text {
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Modals */
|
|
.modal-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.modal-content {
|
|
background-color: var(--background-primary);
|
|
padding: 24px;
|
|
border-radius: 8px;
|
|
width: 400px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.modal-content h2 {
|
|
margin: 0;
|
|
}
|
|
|
|
.modal-content input {
|
|
background-color: var(--background-tertiary);
|
|
border: none;
|
|
padding: 10px;
|
|
border-radius: 4px;
|
|
color: white;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--brand);
|
|
color: white;
|
|
border: none;
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
/* Voice Connected Bar */
|
|
.voice-status-bar {
|
|
background-color: #232428;
|
|
padding: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.voice-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.voice-connected-text {
|
|
color: #23a559;
|
|
font-size: 0.8rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.voice-channel-name {
|
|
color: var(--text-muted);
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.screen-share-btn {
|
|
background-color: #3f4147;
|
|
color: white;
|
|
border: none;
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
margin-left: auto;
|
|
cursor: pointer;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.screen-share-btn.active {
|
|
background-color: #23a559;
|
|
}
|
|
|
|
/* Context Menu */
|
|
.context-menu {
|
|
position: fixed;
|
|
z-index: 10000;
|
|
background: #18191c;
|
|
border-radius: 4px;
|
|
padding: 8px;
|
|
min-width: 180px;
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
|
|
}
|
|
|
|
.context-menu-header {
|
|
padding: 8px;
|
|
font-size: 0.75rem;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.context-menu-item {
|
|
padding: 8px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
border-radius: 2px;
|
|
font-size: 0.9rem;
|
|
color: white;
|
|
}
|
|
|
|
.context-menu-item:hover {
|
|
background: var(--primary);
|
|
color: white;
|
|
}
|
|
|
|
.context-menu-section {
|
|
padding: 8px;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.06);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.context-menu-section label {
|
|
display: block;
|
|
font-size: 0.75rem;
|
|
font-weight: bold;
|
|
color: var(--text-muted);
|
|
text-transform: uppercase;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.context-menu-section .volume-slider {
|
|
width: 100%;
|
|
opacity: 1;
|
|
display: block;
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.context-menu-section div:last-child {
|
|
font-size: 0.7rem;
|
|
text-align: right;
|
|
margin-top: 4px;
|
|
}
|