Download frontend/src/styles/base.css from ilhamdev/quote-api: direct link, hf CLI and curl.
- Browser
- Download file 14.8 kB
-
https://huggingface.co/spaces/ilhamdev/quote-api/resolve/main/frontend/src/styles/base.css
- Command line
-
hf download hf://spaces/ilhamdev/quote-api/frontend/src/styles/base.css
-
curl -L -o base.css https://huggingface.co/spaces/ilhamdev/quote-api/resolve/main/frontend/src/styles/base.css
14.8 kB
| /* ========================================================================== | |
| NEUBRUTALISM DESIGN SYSTEM - BASE.CSS | |
| Based on DESIGN.md: Bold, Colorful, Raw, Playful, High-Contrast | |
| ========================================================================== */ | |
| :root { | |
| --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; | |
| --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, Menlo, monospace; | |
| /* Neubrutalism Core Palette */ | |
| --color-primary: #FFEB3B; /* Signature Yellow */ | |
| --color-secondary: #FF5252; /* Coral Red */ | |
| --color-tertiary: #2196F3; /* Electric Blue */ | |
| --color-accent-green: #00E676; /* Neubrutal Green */ | |
| --color-black: #000000; | |
| --color-charcoal: #1a1a1a; | |
| --color-white: #ffffff; | |
| /* Light Theme (Default Neubrutalism) */ | |
| --bg-page: #FFFDF0; /* Warm Cream Paper Base */ | |
| --bg-card: #ffffff; /* Pure White Surface */ | |
| --bg-card-hover: #FFFBEA; | |
| --bg-nested: #FFF9E6; /* Subtle Warm Tint */ | |
| --bg-input: #ffffff; | |
| --bg-stage: #1e242d; /* Neutral Stage for Telegram Bubble */ | |
| --text-primary: #000000; | |
| --text-secondary: #242424; | |
| --text-muted: #595959; | |
| --border-color: #000000; | |
| --border-width-sm: 2px; | |
| --border-width-md: 3px; | |
| --border-width-lg: 4px; | |
| --border-sm: var(--border-width-sm) solid var(--border-color); | |
| --border-md: var(--border-width-md) solid var(--border-color); | |
| --border-lg: var(--border-width-lg) solid var(--border-color); | |
| /* Hard 45deg Offset Drop Shadows (No Soft Blurs) */ | |
| --shadow-color: #000000; | |
| --shadow-sm: 2px 2px 0px var(--shadow-color); | |
| --shadow-md: 4px 4px 0px var(--shadow-color); | |
| --shadow-lg: 6px 6px 0px var(--shadow-color); | |
| --shadow-xl: 8px 8px 0px var(--shadow-color); | |
| --radius-xs: 4px; | |
| --radius-sm: 6px; | |
| --radius-md: 8px; /* Base Corner Radius from DESIGN.md */ | |
| --radius-lg: 10px; | |
| --transition-tactile: 150ms cubic-bezier(0.16, 1, 0.3, 1); | |
| } | |
| /* Dark Neubrutalism Theme */ | |
| [data-theme="dark"] { | |
| --bg-page: #121212; | |
| --bg-card: #1c1c1c; | |
| --bg-card-hover: #242424; | |
| --bg-nested: #222222; | |
| --bg-input: #151515; | |
| --bg-stage: #15181e; | |
| --text-primary: #ffffff; | |
| --text-secondary: #e6e6e6; | |
| --text-muted: #aaaaaa; | |
| --border-color: #ffffff; | |
| --border-sm: var(--border-width-sm) solid var(--border-color); | |
| --border-md: var(--border-width-md) solid var(--border-color); | |
| --border-lg: var(--border-width-lg) solid var(--border-color); | |
| --shadow-color: #FFEB3B; /* Neon Yellow Hard Shadow in Dark Mode */ | |
| --shadow-sm: 2px 2px 0px var(--shadow-color); | |
| --shadow-md: 4px 4px 0px var(--shadow-color); | |
| --shadow-lg: 6px 6px 0px var(--shadow-color); | |
| --shadow-xl: 8px 8px 0px var(--shadow-color); | |
| } | |
| /* Global Reset */ | |
| *, | |
| *::before, | |
| *::after { | |
| box-sizing: border-box; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| html { | |
| scroll-behavior: smooth; | |
| font-size: 16px; | |
| } | |
| body { | |
| font-family: var(--font-sans); | |
| background-color: var(--bg-page); | |
| color: var(--text-primary); | |
| min-height: 100vh; | |
| min-height: 100dvh; | |
| line-height: 1.6; | |
| -webkit-font-smoothing: antialiased; | |
| -moz-osx-font-smoothing: grayscale; | |
| overflow-x: hidden; | |
| width: 100%; | |
| transition: background-color var(--transition-tactile), color var(--transition-tactile); | |
| } | |
| /* Layout Container */ | |
| .app-layout { | |
| display: flex; | |
| flex-direction: column; | |
| min-height: 100vh; | |
| min-height: 100dvh; | |
| max-width: 1280px; | |
| width: 100%; | |
| margin: 0 auto; | |
| padding: 0 1.5rem 3rem; | |
| overflow-x: hidden; | |
| } | |
| /* ========================================================================== | |
| NAVBAR (NEUBRUTALISM HEADER) | |
| ========================================================================== */ | |
| .navbar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 1.25rem 0; | |
| border-bottom: var(--border-md); | |
| margin-bottom: 2rem; | |
| gap: 1rem; | |
| width: 100%; | |
| min-width: 0; | |
| } | |
| .brand { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.85rem; | |
| text-decoration: none; | |
| color: inherit; | |
| min-width: 0; | |
| flex-shrink: 0; | |
| } | |
| .brand-logo { | |
| width: 44px; | |
| height: 44px; | |
| border-radius: var(--radius-sm); | |
| border: var(--border-sm); | |
| box-shadow: var(--shadow-sm); | |
| display: block; | |
| flex-shrink: 0; | |
| object-fit: contain; | |
| background: var(--color-primary); | |
| transition: transform var(--transition-tactile); | |
| } | |
| .brand:hover .brand-logo { | |
| transform: rotate(-3deg) scale(1.05); | |
| } | |
| .brand-title-wrap { | |
| display: flex; | |
| flex-direction: column; | |
| min-width: 0; | |
| } | |
| .brand-title { | |
| font-size: 1.35rem; | |
| font-weight: 800; | |
| color: var(--text-primary); | |
| letter-spacing: -0.03em; | |
| white-space: nowrap; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .brand-tag { | |
| font-size: 0.65rem; | |
| font-family: var(--font-mono); | |
| font-weight: 800; | |
| background: var(--color-primary); | |
| color: #000; | |
| padding: 0.15rem 0.45rem; | |
| border: var(--border-sm); | |
| box-shadow: 1px 1px 0px var(--shadow-color); | |
| border-radius: var(--radius-xs); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| .brand-sub { | |
| font-size: 0.78rem; | |
| font-weight: 600; | |
| color: var(--text-muted); | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| /* Nav Links */ | |
| .nav-links { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .nav-anchor { | |
| color: var(--text-primary); | |
| text-decoration: none; | |
| font-size: 0.88rem; | |
| font-weight: 700; | |
| padding: 0.45rem 0.85rem; | |
| border: var(--border-sm); | |
| border-radius: var(--radius-sm); | |
| background: var(--bg-card); | |
| box-shadow: 2px 2px 0px var(--shadow-color); | |
| transition: all var(--transition-tactile); | |
| } | |
| .nav-anchor:hover { | |
| background: var(--color-primary); | |
| color: #000000; | |
| transform: translate(-2px, -2px); | |
| box-shadow: 4px 4px 0px var(--shadow-color); | |
| } | |
| .nav-anchor:active { | |
| transform: translate(2px, 2px); | |
| box-shadow: 0px 0px 0px var(--shadow-color); | |
| } | |
| /* Mobile Drawer Elements (Desktop Hidden) */ | |
| .mobile-nav-divider, | |
| .nav-links .mobile-drawer-btn { | |
| display: none; | |
| } | |
| /* Nav Actions */ | |
| .nav-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.65rem; | |
| flex-shrink: 0; | |
| } | |
| /* Status Badge */ | |
| .status-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| padding: 0.45rem 0.75rem; | |
| border-radius: var(--radius-sm); | |
| font-size: 0.75rem; | |
| font-family: var(--font-mono); | |
| font-weight: 800; | |
| border: var(--border-sm); | |
| box-shadow: var(--shadow-sm); | |
| background: var(--bg-card); | |
| white-space: nowrap; | |
| flex-shrink: 0; | |
| min-height: 40px; | |
| color: var(--text-primary); | |
| transition: transform var(--transition-tactile); | |
| } | |
| .status-dot { | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 50%; | |
| border: 1.5px solid #000; | |
| flex-shrink: 0; | |
| } | |
| .status-badge.online .status-dot { | |
| background-color: var(--color-accent-green); | |
| } | |
| .status-badge.online { | |
| background: #E8F5E9; | |
| color: #000000; | |
| } | |
| [data-theme="dark"] .status-badge.online { | |
| background: #1B3520; | |
| color: #ffffff; | |
| } | |
| .status-badge.checking .status-dot { | |
| background-color: var(--color-primary); | |
| } | |
| .status-badge.checking { | |
| background: #FFFDE7; | |
| color: #000000; | |
| } | |
| [data-theme="dark"] .status-badge.checking { | |
| background: #3B381A; | |
| color: #ffffff; | |
| } | |
| .status-badge.offline .status-dot { | |
| background-color: var(--color-secondary); | |
| } | |
| .status-badge.offline { | |
| background: #FFEBEE; | |
| color: #000000; | |
| } | |
| [data-theme="dark"] .status-badge.offline { | |
| background: #3B1B1B; | |
| color: #ffffff; | |
| } | |
| /* Theme Toggle Button */ | |
| .theme-toggle-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 42px; | |
| height: 42px; | |
| min-width: 42px; | |
| min-height: 42px; | |
| border-radius: var(--radius-sm); | |
| border: var(--border-sm); | |
| box-shadow: var(--shadow-sm); | |
| background: var(--color-primary); | |
| color: #000000; | |
| cursor: pointer; | |
| transition: all var(--transition-tactile); | |
| } | |
| .theme-toggle-btn:hover { | |
| transform: translate(-2px, -2px); | |
| box-shadow: var(--shadow-md); | |
| background: #FFD600; | |
| } | |
| .theme-toggle-btn:active { | |
| transform: translate(2px, 2px); | |
| box-shadow: 0px 0px 0px var(--shadow-color); | |
| } | |
| /* Nav Link Button */ | |
| .nav-link-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.45rem; | |
| font-size: 0.82rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| text-decoration: none; | |
| padding: 0.45rem 0.85rem; | |
| border-radius: var(--radius-sm); | |
| border: var(--border-sm); | |
| box-shadow: var(--shadow-sm); | |
| background: var(--bg-card); | |
| min-height: 40px; | |
| transition: all var(--transition-tactile); | |
| } | |
| .nav-link-btn:hover { | |
| background: var(--color-tertiary); | |
| color: #ffffff; | |
| transform: translate(-2px, -2px); | |
| box-shadow: var(--shadow-md); | |
| } | |
| .nav-link-btn:active { | |
| transform: translate(2px, 2px); | |
| box-shadow: 0px 0px 0px var(--shadow-color); | |
| } | |
| /* Mobile Menu Button */ | |
| .mobile-menu-btn { | |
| display: none; | |
| background: var(--color-primary); | |
| border: var(--border-sm); | |
| box-shadow: var(--shadow-sm); | |
| color: #000000; | |
| padding: 0.4rem; | |
| border-radius: var(--radius-sm); | |
| cursor: pointer; | |
| min-width: 44px; | |
| min-height: 44px; | |
| align-items: center; | |
| justify-content: center; | |
| transition: all var(--transition-tactile); | |
| } | |
| .mobile-menu-btn:hover { | |
| transform: translate(-2px, -2px); | |
| box-shadow: var(--shadow-md); | |
| } | |
| .mobile-menu-btn:active { | |
| transform: translate(2px, 2px); | |
| box-shadow: 0px 0px 0px var(--shadow-color); | |
| } | |
| /* ========================================================================== | |
| MOBILE STUDIO SWITCHER (TABS FOR SMALL SCREENS) | |
| ========================================================================== */ | |
| .mobile-studio-switcher { | |
| display: none; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 0.75rem; | |
| background: var(--bg-nested); | |
| padding: 0.5rem; | |
| border-radius: var(--radius-md); | |
| border: var(--border-md); | |
| box-shadow: var(--shadow-sm); | |
| margin-bottom: 1.5rem; | |
| width: 100%; | |
| } | |
| .studio-tab-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 0.5rem; | |
| padding: 0.65rem 0.85rem; | |
| min-height: 46px; | |
| border: var(--border-sm); | |
| border-radius: var(--radius-sm); | |
| background: var(--bg-card); | |
| color: var(--text-primary); | |
| font-size: 0.88rem; | |
| font-weight: 700; | |
| cursor: pointer; | |
| box-shadow: 2px 2px 0px var(--shadow-color); | |
| transition: all var(--transition-tactile); | |
| } | |
| .studio-tab-btn:hover { | |
| background: var(--bg-card-hover); | |
| } | |
| .studio-tab-btn.active { | |
| background: var(--color-primary); | |
| color: #000000; | |
| box-shadow: 3px 3px 0px var(--shadow-color); | |
| transform: translate(-1px, -1px); | |
| } | |
| .studio-tab-btn .tab-badge { | |
| font-size: 0.65rem; | |
| font-family: var(--font-mono); | |
| padding: 0.15rem 0.4rem; | |
| border-radius: var(--radius-xs); | |
| background: var(--color-accent-green); | |
| color: #000000; | |
| border: 1.5px solid #000; | |
| font-weight: 800; | |
| } | |
| /* ========================================================================== | |
| STUDIO CONTAINER GRID | |
| ========================================================================== */ | |
| .studio-container { | |
| display: grid; | |
| grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); | |
| gap: 1.75rem; | |
| align-items: start; | |
| width: 100%; | |
| min-width: 0; | |
| } | |
| /* Focus Ring standard for Keyboard Accessibility */ | |
| :focus-visible { | |
| outline: 3px solid var(--color-secondary) ; | |
| outline-offset: 3px ; | |
| } | |
| /* Custom Neubrutalist Scrollbars */ | |
| ::-webkit-scrollbar { | |
| width: 8px; | |
| height: 8px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: var(--bg-page); | |
| border-left: var(--border-sm); | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: var(--color-primary); | |
| border: var(--border-sm); | |
| border-radius: var(--radius-xs); | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: #FFD600; | |
| } | |
| /* Responsive Media Queries */ | |
| @media (max-width: 960px) { | |
| .mobile-studio-switcher { | |
| display: grid; | |
| } | |
| .studio-container { | |
| grid-template-columns: minmax(0, 1fr); | |
| gap: 1.25rem; | |
| } | |
| .panel:not(.active-mobile-view) { | |
| display: none; | |
| } | |
| .panel.active-mobile-view { | |
| display: block; | |
| animation: neubrutalFadeIn 0.2s ease-out; | |
| } | |
| } | |
| @media (max-width: 768px) { | |
| .app-layout { | |
| padding: 0 1rem 2.5rem; | |
| } | |
| .nav-links { | |
| display: none; | |
| position: absolute; | |
| top: calc(100% + 0.5rem); | |
| left: 0; | |
| right: 0; | |
| flex-direction: column; | |
| background: var(--bg-card); | |
| border: var(--border-md); | |
| border-radius: var(--radius-md); | |
| padding: 0.75rem; | |
| gap: 0.5rem; | |
| z-index: 100; | |
| box-shadow: var(--shadow-lg); | |
| } | |
| .nav-links.open { | |
| display: flex; | |
| animation: neubrutalFadeIn 0.2s ease-out; | |
| } | |
| .nav-links .nav-anchor { | |
| display: flex; | |
| align-items: center; | |
| padding: 0.75rem 1rem; | |
| min-height: 44px; | |
| width: 100%; | |
| font-size: 0.95rem; | |
| } | |
| .mobile-nav-divider { | |
| display: block; | |
| height: 2px; | |
| background: var(--border-color); | |
| margin: 0.35rem 0; | |
| opacity: 0.25; | |
| } | |
| .nav-links .mobile-drawer-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.65rem; | |
| font-weight: 700; | |
| } | |
| .nav-links .mobile-drawer-wa { | |
| background: #25D366; | |
| color: #000000; | |
| } | |
| .nav-links .mobile-drawer-wa:hover { | |
| background: #20BA5A; | |
| color: #000000; | |
| } | |
| .nav-links .mobile-drawer-github { | |
| background: var(--bg-card); | |
| color: var(--text-primary); | |
| } | |
| .mobile-menu-btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 42px; | |
| height: 42px; | |
| min-width: 42px; | |
| min-height: 42px; | |
| border-radius: var(--radius-sm); | |
| cursor: pointer; | |
| } | |
| /* Reflow secondary actions into mobile drawer to free header row */ | |
| .nav-actions .whatsapp-btn, | |
| .nav-actions .nav-link-btn { | |
| display: none; | |
| } | |
| .navbar { | |
| position: relative; | |
| padding: 1rem 0; | |
| margin-bottom: 1.5rem; | |
| gap: 0.75rem; | |
| } | |
| } | |
| @media (max-width: 640px) { | |
| .app-layout { | |
| padding: 0 0.85rem 2rem; | |
| } | |
| .brand-sub { | |
| display: none; | |
| } | |
| .brand-logo { | |
| width: 38px; | |
| height: 38px; | |
| } | |
| .brand-title { | |
| font-size: 1.15rem; | |
| } | |
| .nav-actions { | |
| gap: 0.5rem; | |
| } | |
| #apiStatusBadge .status-text { | |
| display: none; | |
| } | |
| #apiStatusBadge { | |
| padding: 0.4rem 0.55rem; | |
| min-height: 42px; | |
| min-width: 42px; | |
| width: 42px; | |
| height: 42px; | |
| justify-content: center; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .brand-tag { | |
| display: none; | |
| } | |
| .brand-title { | |
| font-size: 1.1rem; | |
| } | |
| .nav-actions { | |
| gap: 0.45rem; | |
| } | |
| } | |
| @media (max-width: 360px) { | |
| .app-layout { | |
| padding: 0 0.65rem 1.75rem; | |
| } | |
| .brand-logo { | |
| width: 34px; | |
| height: 34px; | |
| } | |
| .brand-title { | |
| font-size: 0.95rem; | |
| } | |
| .nav-actions { | |
| gap: 0.35rem; | |
| } | |
| .theme-toggle-btn, | |
| .mobile-menu-btn, | |
| #apiStatusBadge { | |
| width: 38px; | |
| height: 38px; | |
| min-width: 38px; | |
| min-height: 38px; | |
| } | |
| } | |
| @keyframes neubrutalFadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(6px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |