beeta/frontend/src/lib/components/terminal/terminalStyles.css

992 lines
16 KiB
CSS
Raw Normal View History

2026-01-05 22:54:27 -05:00
/* Terminal Shared Styles
* This file contains CSS shared between ChatTerminal overlay and terminal popout page
*/
/* ============================================
HEADER & TAB NAVIGATION
============================================ */
.terminal-header {
display: flex;
align-items: center;
padding: 0.5rem 0.75rem;
background: #161b22;
border-bottom: 1px solid #30363d;
gap: 0.75rem;
}
.tab-bar {
display: flex;
gap: 0.25rem;
}
.tab-button {
display: flex;
align-items: center;
justify-content: center;
padding: 0.35rem 0.5rem;
background: rgba(255, 255, 255, 0.05);
border: 1px solid transparent;
border-radius: 4px;
color: #8b949e;
font-size: 0.875rem;
font-family: 'Consolas', 'Monaco', monospace;
cursor: pointer;
transition: all 0.15s ease;
}
.tab-button:hover {
color: #c9d1d9;
background: rgba(255, 255, 255, 0.1);
}
.tab-button.active {
color: #0f0;
background: rgba(0, 255, 0, 0.1);
border-color: rgba(0, 255, 0, 0.25);
}
/* Audio tab special color */
.tab-button.audio.active {
color: #ec4899;
background: rgba(236, 72, 153, 0.15);
border-color: rgba(236, 72, 153, 0.3);
}
.header-spacer {
flex: 1;
}
.status {
display: flex;
align-items: center;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #f85149;
}
.status-dot.connected {
background: #0f0;
}
.terminal-controls {
display: flex;
gap: 0.5rem;
align-items: center;
}
.control-button {
background: none;
border: none;
color: #8b949e;
cursor: pointer;
padding: 0.25rem;
width: 1.5rem;
height: 1.5rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: all 0.2s;
}
.control-button:hover {
background: #30363d;
color: #c9d1d9;
}
.close-button {
background: none;
border: none;
color: #8b949e;
font-size: 1.5rem;
cursor: pointer;
padding: 0;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
}
.close-button:hover {
background: #30363d;
color: #c9d1d9;
}
/* ============================================
TAB CONTENT CONTAINER
============================================ */
.tab-content {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
opacity: 0.9;
}
/* ============================================
TERMINAL MESSAGES
============================================ */
.terminal-messages {
flex: 1;
overflow-y: auto;
padding: 1rem;
color: #c9d1d9;
background: #0d1117;
}
.terminal-messages::-webkit-scrollbar {
width: 8px;
}
.terminal-messages::-webkit-scrollbar-track {
background: #0d1117;
}
.terminal-messages::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 4px;
}
.terminal-messages::-webkit-scrollbar-thumb:hover {
background: #484f58;
}
/* ============================================
TERMINAL INPUT
============================================ */
.terminal-input-line {
display: flex;
align-items: center;
gap: 0.35rem;
padding: 0.125rem 0;
margin-top: 0.25rem;
}
.prompt {
color: #0f0;
font-weight: 600;
white-space: nowrap;
font-size: 0.8rem;
}
.terminal-input {
flex: 1;
background: transparent;
border: none;
color: #c9d1d9;
font-family: inherit;
font-size: 0.8rem;
outline: none;
caret-color: #0f0;
}
.terminal-input::placeholder {
color: #484f58;
}
.terminal-input:disabled {
opacity: 0.5;
}
/* ============================================
SYSTEM MESSAGES
============================================ */
.system-message {
padding: 0.125rem 0;
color: #8b949e;
font-size: 0.8rem;
line-height: 1.3;
border-left: none;
padding-left: 0;
margin: 0;
}
.system-prefix {
color: #6e7681;
font-size: 0.75rem;
margin-right: 0.5rem;
}
.system-text {
color: #c9d1d9;
}
/* ============================================
CHAT MESSAGE OVERRIDES (compact terminal mode)
============================================ */
.terminal-messages :global(.chat-message) {
padding: 0.125rem 0;
margin: 0;
background: transparent;
border-radius: 0;
display: flex;
flex-direction: row;
align-items: baseline;
gap: 0.5rem;
flex-wrap: wrap;
}
.terminal-messages :global(.chat-message:hover) {
background: transparent;
}
.terminal-messages :global(.chat-message .message-header) {
margin-bottom: 0;
gap: 0.35rem;
font-size: 0.8rem;
flex-shrink: 0;
}
.terminal-messages :global(.chat-message .message-content) {
font-size: 0.8rem;
line-height: 1.3;
margin-left: 0;
flex: 1;
min-width: 0;
}
.terminal-messages :global(.chat-message .message-content p) {
margin: 0;
}
.terminal-messages :global(.chat-message .user-avatar),
.terminal-messages :global(.chat-message .user-avatar-placeholder) {
width: 16px;
height: 16px;
font-size: 0.5rem;
}
.terminal-messages :global(.chat-message .timestamp) {
font-size: 0.7rem;
}
.terminal-messages :global(.chat-message .badge) {
font-size: 0.55rem;
padding: 0.05rem 0.25rem;
}
/* Terminal mode: scale graffiti down to match text height */
.terminal-messages :global(.graffiti-img) {
width: auto !important;
height: 16px !important;
max-width: 100px !important;
max-height: 16px !important;
}
/* ============================================
STREAMS TAB
============================================ */
.streams-tab {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
background: #0d1117;
}
.streams-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0.75rem;
border-bottom: 1px solid #30363d;
}
.streams-title {
color: #8b949e;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.tile-toggle {
padding: 0.25rem 0.5rem;
background: rgba(0, 255, 0, 0.1);
border: 1px solid rgba(0, 255, 0, 0.25);
border-radius: 4px;
color: #0f0;
font-size: 0.7rem;
font-family: inherit;
cursor: pointer;
transition: all 0.15s ease;
}
.tile-toggle:hover {
background: rgba(0, 255, 0, 0.2);
}
.streams-list {
flex: 1;
overflow-y: auto;
padding: 0.5rem;
}
.streams-list::-webkit-scrollbar {
width: 6px;
}
.streams-list::-webkit-scrollbar-track {
background: #0d1117;
}
.streams-list::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 3px;
}
.streams-loading,
.streams-empty {
color: #8b949e;
font-size: 0.8rem;
text-align: center;
padding: 2rem 1rem;
}
.streams-section-header {
font-size: 0.7rem;
color: #8b949e;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.5rem 0.25rem 0.25rem;
border-bottom: 1px solid #21262d;
margin-bottom: 0.25rem;
}
.streams-section-header:not(:first-child) {
margin-top: 0.75rem;
}
.stream-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem;
border-radius: 4px;
transition: background 0.15s ease;
}
.stream-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.stream-item.offline {
opacity: 0.7;
}
.stream-item.offline:hover {
opacity: 1;
}
.stream-link {
display: flex;
align-items: center;
gap: 0.5rem;
flex: 1;
text-decoration: none;
color: inherit;
min-width: 0;
}
.stream-preview {
width: 48px;
height: 27px;
border-radius: 3px;
overflow: hidden;
background: #1a1a1a;
flex-shrink: 0;
}
.stream-preview img {
width: 100%;
height: 100%;
object-fit: cover;
}
.preview-placeholder {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #561d5e, #8b3a92);
color: white;
font-size: 0.75rem;
font-weight: 600;
}
.preview-placeholder.live {
background: linear-gradient(135deg, #da3633, #f85149);
}
.preview-placeholder.offline {
background: linear-gradient(135deg, #30363d, #484f58);
}
.stream-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.1rem;
}
.stream-name {
color: #c9d1d9;
font-size: 0.8rem;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.stream-meta {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.7rem;
color: #8b949e;
}
.viewer-count {
color: #f85149;
font-weight: 500;
}
.viewer-count::before {
content: '';
margin-right: 0.2rem;
font-size: 0.5rem;
vertical-align: middle;
}
.stream-user {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.offline-badge {
color: #8b949e;
font-size: 0.65rem;
background: rgba(139, 148, 158, 0.2);
padding: 0.1rem 0.3rem;
border-radius: 3px;
}
.tile-btn {
width: 24px;
height: 24px;
border-radius: 4px;
border: 1px solid #30363d;
background: rgba(255, 255, 255, 0.05);
color: #8b949e;
font-size: 0.9rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s ease;
flex-shrink: 0;
}
.tile-btn:hover {
background: rgba(0, 255, 0, 0.15);
border-color: rgba(0, 255, 0, 0.3);
color: #0f0;
}
.tile-btn.active {
background: rgba(0, 255, 0, 0.2);
border-color: #0f0;
color: #0f0;
}
/* ============================================
AUDIO TAB
============================================ */
.audio-tab {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
background: #0d1117;
}
/* Player section (foobar/winamp style) */
.player-section {
padding: 0.75rem;
background: linear-gradient(180deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05));
border-bottom: 1px solid rgba(236, 72, 153, 0.2);
}
.player-track-info {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.5rem;
}
.player-thumb {
width: 48px;
height: 48px;
border-radius: 4px;
overflow: hidden;
background: #222;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.player-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.player-thumb .placeholder {
font-size: 1.5rem;
}
.player-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.player-title {
font-size: 0.85rem;
color: #c9d1d9;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.player-artist {
font-size: 0.7rem;
color: #8b949e;
}
/* Progress bar */
.player-progress {
height: 6px;
background: rgba(255, 255, 255, 0.1);
border-radius: 3px;
cursor: pointer;
margin-bottom: 0.25rem;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, #ec4899, #f472b6);
border-radius: 3px;
transition: width 0.1s linear;
}
.player-times {
display: flex;
justify-content: space-between;
font-size: 0.65rem;
color: #8b949e;
font-family: monospace;
margin-bottom: 0.5rem;
}
/* Player controls */
.player-controls {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
margin-bottom: 0.5rem;
}
.ctrl-btn {
width: 28px;
height: 28px;
border-radius: 50%;
border: none;
background: rgba(255, 255, 255, 0.1);
color: #c9d1d9;
font-size: 0.75rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s ease;
}
.ctrl-btn:hover {
background: rgba(255, 255, 255, 0.2);
}
.ctrl-btn.active {
background: rgba(236, 72, 153, 0.3);
color: #ec4899;
}
.ctrl-btn.play {
width: 36px;
height: 36px;
background: #ec4899;
font-size: 0.9rem;
}
.ctrl-btn.play:hover {
background: #f472b6;
}
/* Volume control */
.player-volume {
display: flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
}
.vol-btn {
width: 24px;
height: 24px;
border: none;
background: transparent;
color: #8b949e;
font-size: 0.8rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.vol-btn:hover {
color: #c9d1d9;
}
.volume-slider {
width: 80px;
height: 4px;
-webkit-appearance: none;
appearance: none;
background: rgba(255, 255, 255, 0.1);
border-radius: 2px;
cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
-webkit-appearance: none;
width: 12px;
height: 12px;
border-radius: 50%;
background: #ec4899;
cursor: pointer;
}
.volume-slider::-moz-range-thumb {
width: 12px;
height: 12px;
border-radius: 50%;
background: #ec4899;
cursor: pointer;
border: none;
}
/* Empty player state */
.player-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 1.5rem;
color: #8b949e;
font-size: 0.85rem;
}
.player-hint {
font-size: 0.7rem;
color: #6e7681;
margin-top: 0.25rem;
}
/* Queue section */
.queue-section {
border-bottom: 1px solid #30363d;
}
.queue-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0.75rem;
background: rgba(0, 0, 0, 0.2);
font-size: 0.7rem;
color: #8b949e;
}
.clear-btn {
padding: 0.15rem 0.4rem;
background: rgba(248, 81, 73, 0.2);
border: 1px solid rgba(248, 81, 73, 0.3);
border-radius: 3px;
color: #f85149;
font-size: 0.65rem;
font-family: inherit;
cursor: pointer;
}
.clear-btn:hover {
background: rgba(248, 81, 73, 0.3);
}
.queue-list {
max-height: 120px;
overflow-y: auto;
}
.queue-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.35rem 0.75rem;
font-size: 0.75rem;
color: #8b949e;
cursor: pointer;
transition: background 0.15s ease;
}
.queue-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.queue-item.active {
background: rgba(236, 72, 153, 0.1);
color: #ec4899;
}
.queue-index {
width: 20px;
text-align: center;
font-size: 0.65rem;
}
.queue-title {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #c9d1d9;
}
.queue-item.active .queue-title {
color: #ec4899;
}
.queue-duration {
font-size: 0.65rem;
font-family: monospace;
}
.remove-btn {
width: 18px;
height: 18px;
border: none;
background: transparent;
color: #8b949e;
font-size: 0.9rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
opacity: 0;
transition: all 0.15s ease;
}
.queue-item:hover .remove-btn {
opacity: 1;
}
.remove-btn:hover {
background: rgba(248, 81, 73, 0.2);
color: #f85149;
}
/* Browse section */
.audio-browse-header {
font-size: 0.7rem;
color: #8b949e;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.5rem 0.75rem;
border-bottom: 1px solid #21262d;
}
.audio-list {
flex: 1;
overflow-y: auto;
padding: 0.5rem;
}
.audio-list::-webkit-scrollbar {
width: 6px;
}
.audio-list::-webkit-scrollbar-track {
background: #0d1117;
}
.audio-list::-webkit-scrollbar-thumb {
background: #30363d;
border-radius: 3px;
}
.audio-loading,
.audio-empty {
color: #8b949e;
font-size: 0.8rem;
text-align: center;
padding: 2rem 1rem;
}
.audio-item {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.4rem;
border-radius: 4px;
transition: background 0.15s ease;
}
.audio-item:hover {
background: rgba(255, 255, 255, 0.05);
}
.audio-thumb {
width: 40px;
height: 40px;
border-radius: 4px;
overflow: hidden;
background: #1a1a1a;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
position: relative;
}
.audio-thumb img {
width: 100%;
height: 100%;
object-fit: cover;
}
.audio-thumb .placeholder {
font-size: 1rem;
opacity: 0.5;
}
.audio-thumb .duration {
position: absolute;
bottom: 2px;
right: 2px;
background: rgba(0, 0, 0, 0.8);
color: white;
font-size: 0.5rem;
padding: 1px 3px;
border-radius: 2px;
}
.audio-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.1rem;
}
.audio-name {
color: #c9d1d9;
font-size: 0.8rem;
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.audio-meta {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.7rem;
color: #8b949e;
}
.audio-plays {
color: #ec4899;
}
.audio-user {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.audio-actions {
display: flex;
gap: 0.25rem;
opacity: 0;
transition: opacity 0.15s ease;
}
.audio-item:hover .audio-actions {
opacity: 1;
}
.audio-btn {
width: 26px;
height: 26px;
border-radius: 50%;
border: 1px solid #30363d;
background: rgba(255, 255, 255, 0.05);
color: #8b949e;
font-size: 0.75rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.15s ease;
}
.audio-btn:hover {
background: rgba(236, 72, 153, 0.15);
border-color: rgba(236, 72, 153, 0.3);
color: #ec4899;
}
.audio-btn.play {
background: rgba(236, 72, 153, 0.2);
border-color: rgba(236, 72, 153, 0.3);
color: #ec4899;
}
.audio-btn.play:hover {
background: #ec4899;
color: white;
}