dptxa-proxy / src /styles /global.css
TXAVLOG
Deploy DPTXA to Hugging Face Spaces
4bea261
Raw
History Blame Contribute Delete
5.02 kB
@import "tailwindcss";
:root {
/* Dreamy Purple & Blue Theme */
--primary: #7c3aed;
--primary-dark: #5b21b6;
--accent: #3b82f6;
--accent-light: #60a5fa;
--dark: #0b0c10;
--dark-light: #12141d;
--dark-lighter: #1f2231;
--glass-bg: rgba(20, 22, 34, 0.4);
--glass-border: rgba(255, 255, 255, 0.08);
}
/* Theme Overrides (Example for later) */
[data-theme="gold"] {
--primary: #ffcc00;
--primary-dark: #ccaa00;
}
@theme {
--color-primary: var(--primary);
--color-primary-dark: var(--primary-dark);
--color-accent: var(--accent);
--color-accent-light: var(--accent-light);
--color-dark: var(--dark);
--color-dark-light: var(--dark-light);
--color-dark-lighter: var(--dark-lighter);
}
html {
scroll-behavior: smooth;
font-size: 104.5%;
overflow-x: hidden;
width: 100%;
}
body {
background-color: #0f0f0f;
color: #fff;
font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
font-size: 15px;
overflow-x: hidden;
width: 100%;
position: relative;
}
::-webkit-scrollbar {
width: 8px;
}
::-webkit-scrollbar-track {
background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
background: #333;
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: #e50914;
}
.line-clamp-2 {
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
@utility glass {
background: var(--glass-bg);
backdrop-filter: blur(40px) saturate(200%);
border: 1px solid var(--glass-border);
}
@utility glass-white {
background: rgba(255, 255, 255, 0.03);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.05);
}
@utility scrollbar-hide {
scrollbar-width: none;
-ms-overflow-style: none;
&::-webkit-scrollbar {
display: none;
}
}
/* Spoiler Blur Style for Comments */
.spoiler-blur span:last-child {
filter: blur(7px);
user-select: none;
transition: filter 0.3s ease;
}
@utility glass-sub {
background: rgba(255, 255, 255, 0.02);
backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.04);
}
/* TXAToast - Liquid Glass Toast Notification System Styles */
.txa-toast {
pointer-events: auto;
position: relative;
padding: 16px 22px;
border-radius: 24px;
color: #ffffff;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: 14px;
font-weight: 600;
letter-spacing: -0.01em;
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
overflow: hidden;
background: rgba(255, 255, 255, 0.02);
backdrop-filter: blur(30px);
-webkit-backdrop-filter: blur(30px);
border: 1px solid rgba(255, 255, 255, 0.12);
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.2);
opacity: 0;
transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
/* Position-based Animations */
[id*="-right"] .txa-toast { transform: translateX(120%) scale(0.9); }
[id*="-left"] .txa-toast { transform: translateX(-120%) scale(0.9); }
[id*="-center"] .txa-toast { transform: translateY(50px) scale(0.9); }
[id*="top-center"] .txa-toast { transform: translateY(-50px) scale(0.9); }
.txa-toast.txa-show { transform: translate(0) scale(1); opacity: 1; }
.txa-toast.txa-hide { opacity: 0; scale: 0.85; }
.txa-toast::before {
content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%); pointer-events: none; mix-blend-mode: overlay;
}
.txa-toast-success { border-color: rgba(16, 185, 129, 0.4); box-shadow: 0 12px 35px rgba(16, 185, 129, 0.2); }
.txa-toast-success .txa-icon { color: #10b981; }
.txa-toast-error { border-color: rgba(239, 68, 68, 0.4); box-shadow: 0 12px 35px rgba(239, 68, 68, 0.2); }
.txa-toast-error .txa-icon { color: #ef4444; }
.txa-toast-info { border-color: rgba(59, 130, 246, 0.4); box-shadow: 0 12px 35px rgba(59, 130, 246, 0.2); }
.txa-toast-info .txa-icon { color: #3b82f6; }
.txa-toast-warning { border-color: rgba(245, 158, 11, 0.4); box-shadow: 0 12px 35px rgba(245, 158, 11, 0.2); }
.txa-toast-warning .txa-icon { color: #f59e0b; }
.txa-content-wrapper { display: flex; flex-direction: row; align-items: center; gap: 12px; flex-grow: 1; }
.txa-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 24px; }
.txa-message { line-height: 1.4; text-shadow: 0 1px 2px rgba(0,0,0,0.6); flex-grow: 1; }
.txa-close {
background: transparent; border: none; color: rgba(255, 255, 255, 0.4);
cursor: pointer; padding: 6px; display: flex; align-items: center;
justify-content: center; transition: all 0.2s; border-radius: 50%;
}
.txa-close:hover { color: #ffffff; background: rgba(255,255,255,0.1); transform: rotate(90deg); }
.txa-progress-bar {
position: absolute; bottom: 0; left: 0; height: 3px; width: 100%;
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
transform-origin: left; transform: scaleX(1);
}