38443-vm/assets/css/discord.css
2026-02-15 10:55:02 +00:00

630 lines
11 KiB
CSS

:root {
--bg-servers: #1e1f22;
--bg-channels: #2b2d31;
--bg-chat: #313338;
--bg-members: #2b2d31;
--text-primary: #dbdee1;
--text-muted: #949ba4;
--blurple: #5865f2;
--hover: #35373c;
--active: #3f4147;
}
body {
margin: 0;
padding: 0;
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background-color: var(--bg-servers);
color: var(--text-primary);
height: 100vh;
overflow: hidden;
}
.discord-app {
display: flex;
height: 100vh;
width: 100vw;
}
/* Servers Sidebar */
.servers-sidebar {
width: 72px;
background-color: var(--bg-servers);
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(--bg-chat);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
color: var(--text-primary);
text-decoration: none;
font-weight: bold;
}
.server-icon:hover {
border-radius: 16px;
background-color: var(--blurple);
}
.server-icon.active {
border-radius: 16px;
background-color: var(--blurple);
}
/* Channels Sidebar */
.channels-sidebar {
width: 240px;
background-color: var(--bg-channels);
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.channels-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;
}
.channels-list {
flex: 1;
padding: 8px;
overflow-y: auto;
}
.channel-item {
padding: 6px 8px;
border-radius: 4px;
cursor: pointer;
color: var(--text-muted);
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 2px;
text-decoration: none;
}
.channel-item:hover {
background-color: var(--hover);
color: var(--text-primary);
}
.channel-item.active {
background-color: var(--active);
color: var(--text-primary);
}
.channel-item::before {
content: "#";
font-size: 1.2em;
font-weight: 300;
}
.voice-item::before {
content: "🔊";
font-size: 0.9em;
}
.server-icon.add-btn {
color: #23a559;
}
.server-icon.add-btn:hover {
background-color: #23a559;
color: white;
}
.channel-category {
color: var(--text-muted);
font-size: 0.75em;
text-transform: uppercase;
font-weight: bold;
margin-bottom: 8px;
padding-left: 8px;
display: flex;
justify-content: space-between;
align-items: center;
}
.add-channel-btn {
cursor: pointer;
font-size: 1.2em;
margin-right: 8px;
line-height: 1;
}
.add-channel-btn:hover {
color: var(--text-primary);
}
/* Modals */
.modal-content {
background-color: var(--bg-channels);
color: var(--text-primary);
}
.modal-header {
border-bottom: 1px solid var(--bg-servers);
}
.modal-footer {
border-top: 1px solid var(--bg-servers);
}
.form-control {
background-color: var(--bg-servers);
border: none;
color: var(--text-primary);
}
.form-control:focus {
background-color: var(--bg-servers);
color: var(--text-primary);
box-shadow: 0 0 0 0.25rem rgba(88, 101, 242, 0.25);
}
/* User Panel */
.user-panel {
height: 52px;
background-color: #232428;
padding: 0 8px;
display: flex;
align-items: center;
gap: 8px;
}
.user-info {
flex: 1;
display: flex;
align-items: center;
gap: 8px;
padding: 4px;
border-radius: 4px;
cursor: pointer;
min-width: 0;
}
.user-info:hover {
background-color: var(--hover);
}
.user-actions {
display: flex;
gap: 4px;
}
/* Chat Area */
.chat-container {
flex: 1;
background-color: var(--bg-chat);
display: flex;
flex-direction: column;
}
.chat-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;
}
.messages-list {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 16px;
}
.message-item {
display: flex;
gap: 16px;
padding: 4px 0;
transition: background-color 0.1s;
}
.message-item:hover {
background-color: rgba(255, 255, 255, 0.02);
}
.message-avatar {
width: 40px;
height: 40px;
background-color: #4e5058;
border-radius: 50%;
flex-shrink: 0;
background-size: cover;
background-position: center;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.typing-indicator {
padding: 0 16px 8px 16px;
font-size: 0.75em;
color: var(--text-muted);
height: 20px;
font-style: italic;
}
.avatar-pick {
width: 60px;
height: 60px;
border-radius: 50%;
cursor: pointer;
border: 2px solid transparent;
transition: all 0.2s;
}
.avatar-pick:hover {
border-color: var(--blurple);
}
.avatar-pick.selected {
border-color: var(--blurple);
box-shadow: 0 0 10px var(--blurple);
}
.message-content {
flex: 1;
}
.message-author {
font-weight: bold;
font-size: 0.95em;
margin-bottom: 4px;
}
.message-text {
font-size: 0.95em;
line-height: 1.4;
color: #dbdee1;
}
.message-time {
font-size: 0.75em;
color: var(--text-muted);
margin-left: 8px;
font-weight: normal;
}
/* Input Area */
.chat-input-container {
padding: 0 16px 24px 16px;
}
.chat-input-wrapper {
background-color: #383a40;
border-radius: 8px;
padding: 11px 16px;
display: flex;
}
.chat-input {
background: transparent;
border: none;
color: var(--text-primary);
width: 100%;
outline: none;
font-size: 1em;
}
/* Members Sidebar */
.members-sidebar {
width: 240px;
background-color: var(--bg-members);
padding: 24px 8px;
display: none; /* Hidden on mobile/small screens */
}
/* Reactions */
.message-reactions {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
.reaction-badge {
background-color: #2b2d31;
border: 1px solid transparent;
border-radius: 8px;
padding: 2px 6px;
font-size: 0.8em;
cursor: pointer;
display: flex;
align-items: center;
gap: 4px;
transition: all 0.1s;
}
.reaction-badge:hover {
border-color: #5865f2;
background-color: #35373c;
}
.reaction-badge.active {
background-color: rgba(88, 101, 242, 0.15);
border-color: #5865f2;
}
.reaction-badge .count {
color: #5865f2;
font-weight: bold;
}
.reaction-badge.active .count {
color: white;
}
.add-reaction-btn {
opacity: 0;
cursor: pointer;
color: var(--text-muted);
font-size: 1.2em;
line-height: 1;
padding: 0 4px;
transition: opacity 0.2s;
}
.message-item:hover .add-reaction-btn,
.message-item:hover .message-actions-menu {
opacity: 1;
}
.message-actions-menu {
opacity: 0;
display: flex;
gap: 8px;
margin-left: auto;
transition: opacity 0.2s;
}
.action-btn {
color: var(--text-muted);
cursor: pointer;
padding: 2px;
}
.action-btn:hover {
color: var(--text-primary);
}
.action-btn.delete:hover {
color: #f23f42;
}
/* Search bar */
.search-container {
margin-left: auto;
position: relative;
width: 200px;
}
.search-input {
background-color: var(--bg-servers);
border: none;
border-radius: 4px;
padding: 4px 8px;
color: var(--text-primary);
font-size: 0.85em;
width: 100%;
}
.search-results-dropdown {
position: absolute;
top: 100%;
right: 0;
width: 300px;
background-color: var(--bg-channels);
border-radius: 8px;
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
z-index: 1000;
max-height: 400px;
overflow-y: auto;
display: none;
}
.search-result-item {
padding: 8px;
border-bottom: 1px solid var(--bg-servers);
cursor: pointer;
}
.search-result-item:hover {
background-color: var(--hover);
}
.search-result-author {
font-weight: bold;
font-size: 0.85em;
}
.search-result-text {
font-size: 0.8em;
color: var(--text-muted);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* DM Specific */
.dm-user-item {
display: flex;
align-items: center;
gap: 12px;
padding: 8px;
border-radius: 4px;
cursor: pointer;
text-decoration: none;
color: var(--text-muted);
}
.dm-user-item:hover {
background-color: var(--hover);
color: var(--text-primary);
}
.dm-user-item.active {
background-color: var(--active);
color: var(--text-primary);
}
.dm-status-indicator {
width: 12px;
height: 12px;
border-radius: 50%;
border: 2px solid var(--bg-channels);
}
.dm-status-online { background-color: #23a559; }
.dm-status-offline { background-color: #80848e; }
.emoji-picker {
position: fixed;
background-color: #1e1f22;
border: 1px solid #313338;
border-radius: 8px;
padding: 8px;
display: flex;
gap: 8px;
box-shadow: 0 4px 15px rgba(0,0,0,0.5);
z-index: 10000;
}
.emoji-picker span {
font-size: 1.5em;
cursor: pointer;
padding: 4px;
border-radius: 4px;
transition: background 0.1s;
}
.emoji-picker span:hover {
background-color: #35373c;
}
/* File Upload */
.upload-btn-label {
margin-right: 12px;
color: var(--text-muted);
cursor: pointer;
display: flex;
align-items: center;
}
.upload-btn-label:hover {
color: var(--text-primary);
}
.message-img-preview {
max-width: 100%;
max-height: 300px;
object-fit: contain;
background-color: #2b2d31;
}
.attachment-link {
transition: background 0.2s;
}
.attachment-link:hover {
background-color: #3f4147 !important;
}
/* Rich Embeds */
.rich-embed {
transition: transform 0.2s;
}
.rich-embed:hover {
transform: scale(1.01);
}
.embed-title {
color: #00a8fc !important;
}
.embed-title:hover {
text-decoration: underline !important;
}
.embed-image img {
border: 1px solid rgba(255, 255, 255, 0.05);
}
/* Voice active state */
.voice-item.active {
background-color: rgba(35, 165, 89, 0.1);
color: #23a559 !important;
}
.voice-user {
padding: 2px 4px;
border-radius: 4px;
}
.voice-user .message-avatar {
background-color: var(--bg-servers);
border: 1px solid rgba(255,255,255,0.1);
}
/* Roles Management */
#roles-list .list-group-item:hover {
background-color: rgba(255, 255, 255, 0.05) !important;
}
.nav-tabs .nav-link.active {
border-bottom: 2px solid var(--blurple) !important;
color: white !important;
}
.nav-tabs .nav-link {
font-size: 0.9em;
font-weight: 500;
padding: 12px;
}
.presence-indicator {
box-shadow: 0 0 2px rgba(0,0,0,0.5);
}
/* Mobile & Transitions */
@media (max-width: 768px) {
.servers-sidebar {
width: 60px;
}
.channels-sidebar {
width: 200px;
}
.server-icon {
width: 40px;
height: 40px;
}
}
.message-item {
animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(5px); }
to { opacity: 1; transform: translateY(0); }
}