Spaces:
Paused

yaz / src /static /css /base-legacy.css
anaselamr's picture
fix: brand Yaz, Surgio UI/UX auto-load feed + search + blocked_count
d80907b
Raw History Blame Contribute Delete
11.4 kB
/* ─────────────────────────────────────────────────────────────
* base-legacy.css — YAZ Legacy Base Template Styles
* Migrated from base.html (root level) inline <style> block
* Used by: apps/stoka, apps/stay templates
* ─────────────────────────────────────────────────────────── */
:root {
/* Backgrounds - Clean, professional */
--bg: #fafbfc;
--surface: #ffffff;
--surface-hover: #f7f8fa;
--border: #e5e7eb;
--border-strong: #d1d5db;
/* Text - Optimized contrast (WCAG AA) */
--text: #1a1f2e;
--text-muted: #5c6370;
--text-light: #8b929f;
/* Brand colors */
--accent: #5c6bc0;
--accent-hover: #4a5ab8;
--primary: #5c6bc0;
--primary-hover: #4a5ab8;
--primary-light: #eef0f9;
/* Semantic colors */
--success: #4caf7c;
--warning: #e5a84c;
--error: #dc6b6b;
--info: #5b9bd5;
/* Shadows - Subtle, layered depth */
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
/* Sizing */
--radius: 6px;
--radius-lg: 10px;
}
[data-theme="dark"] {
--bg: #0c0f14;
--surface: #141921;
--surface-hover: #1c222d;
--border: #2a3140;
--border-strong: #3d4553;
--text: #eaeef4;
--text-muted: #9ba4b2;
--text-light: #6b7280;
--accent: #8b9ad8;
--accent-hover: #9aa7e1;
--primary: #8b9ad8;
--primary-hover: #9aa7e1;
--primary-light: #1c2235;
--shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.15);
--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.25), 0 2px 4px -1px rgba(0, 0, 0, 0.15);
}
/* Dark mode overrides for hardcoded Tailwind classes */
[data-theme="dark"] .bg-white { background-color: var(--surface) !important; }
[data-theme="dark"] .bg-gray-50,
[data-theme="dark"] .bg-gray-100 { background-color: var(--bg) !important; }
[data-theme="dark"] .bg-gray-200 { background-color: var(--border) !important; }
[data-theme="dark"] .text-zinc-900,
[data-theme="dark"] .text-gray-900,
[data-theme="dark"] .text-black { color: var(--text) !important; }
[data-theme="dark"] .text-zinc-700,
[data-theme="dark"] .text-gray-700,
[data-theme="dark"] .text-gray-600 { color: var(--text-muted) !important; }
[data-theme="dark"] .text-zinc-500,
[data-theme="dark"] .text-gray-500,
[data-theme="dark"] .text-gray-400 { color: var(--text-light) !important; }
[data-theme="dark"] .border-gray-200,
[data-theme="dark"] .border-gray-300 { border-color: var(--border) !important; }
[data-theme="dark"] .divide-gray-200 > * + * { border-color: var(--border) !important; }
[data-theme="dark"] .shadow { box-shadow: var(--shadow-md) !important; }
[data-theme="dark"] .shadow-sm { box-shadow: var(--shadow-sm) !important; }
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
background-color: var(--surface) !important;
color: var(--text) !important;
border-color: var(--border) !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
color: var(--text-light) !important;
}
[data-theme="dark"] .hover\:bg-gray-100:hover { background-color: var(--border) !important; }
[data-theme="dark"] .hover\:bg-gray-50:hover { background-color: var(--surface) !important; }
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
}
body {
font-family: 'Inter', -apple-system, sans-serif;
line-height: 1.6;
color: var(--text);
background: var(--bg);
min-height: 100vh;
transition: background-color 0.15s ease, color 0.15s ease;
}
.skip-link {
position: absolute;
top: -100%;
left: 1rem;
z-index: 9999;
padding: 0.75rem 1.25rem;
background: var(--accent);
color: #fff;
border-radius: var(--radius);
font-weight: 600;
text-decoration: none;
}
.skip-link:focus {
top: 0.5rem;
}
{
% block styles %
}
{
% endblock %
}
/* PWA UI Components */
.network-status {
position: fixed;
top: 10px;
right: 10px;
padding: 8px 16px;
border-radius: 20px;
font-size: 12px;
font-weight: 600;
z-index: 9999;
transition: opacity 0.12s ease, transform 0.12s ease;
}
.network-status.online {
background: var(--success);
color: white;
}
.network-status.offline {
background: var(--warning);
color: white;
animation: pulse 2s infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.7;
}
}
.sync-indicator {
position: fixed;
bottom: 20px;
right: 20px;
background: var(--accent);
color: white;
padding: 12px 20px;
border-radius: 8px;
box-shadow: var(--shadow-md);
z-index: 9998;
}
.storage-warning {
position: fixed;
top: 60px;
right: 10px;
background: var(--warning);
color: white;
padding: 12px 16px;
border-radius: 8px;
box-shadow: var(--shadow-md);
z-index: 9997;
display: flex;
align-items: center;
gap: 12px;
}
.storage-warning button {
background: white;
color: var(--warning);
border: none;
padding: 6px 12px;
border-radius: 4px;
font-weight: 600;
cursor: pointer;
}
.install-banner {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: var(--surface);
border-top: 1px solid var(--border);
padding: 16px;
z-index: 9996;
}
.install-content {
max-width: 600px;
margin: 0 auto;
text-align: center;
}
.install-content h3 {
margin-bottom: 8px;
color: var(--text);
}
.install-content p {
color: var(--text-muted);
margin-bottom: 16px;
}
.install-actions {
display: flex;
gap: 12px;
justify-content: center;
}
.btn-primary {
background: var(--accent);
color: white;
border: none;
padding: 10px 24px;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
transition: background 0.12s ease;
}
.btn-primary:hover {
background: var(--accent-hover);
}
.btn-secondary {
background: transparent;
color: var(--text-muted);
border: 1px solid var(--border);
padding: 10px 24px;
border-radius: 6px;
font-weight: 600;
cursor: pointer;
}
/* Lazy loading placeholder */
img[data-src] {
filter: blur(5px);
transition: filter 0.15s ease;
}
img[data-src].loaded {
filter: blur(0);
}
/* Two-Step UI Components (Inline) */
.processing-state,
.result-state {
padding: 2rem;
border-radius: var(--radius);
background: var(--surface);
border: 1px solid var(--border);
text-align: center;
margin: 1rem 0;
}
.spinner {
width: 40px;
height: 40px;
margin: 0 auto 1rem;
border: 3px solid var(--border);
border-top-color: var(--accent);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.result-state.success {
background: var(--c-success-50);
border-color: var(--success);
}
.result-state.error {
background: var(--c-error-50);
border-color: var(--c-error-500);
}
.result-icon {
width: 60px;
height: 60px;
margin: 0 auto 1rem;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 2rem;
font-weight: bold;
}
.result-state.success .result-icon {
background: var(--success);
color: white;
}
.result-state.error .result-icon {
background: var(--c-error-500);
color: white;
}
.result-data {
display: grid;
gap: 0.75rem;
margin: 1.5rem 0;
text-align: left;
}
.result-item {
display: flex;
justify-content: space-between;
padding: 0.75rem;
background: var(--bg);
border-radius: 8px;
border: 1px solid var(--border);
}
.item-label {
font-weight: 600;
color: var(--text-muted);
}
.item-value {
color: var(--text);
font-weight: 500;
}
.result-actions {
display: flex;
gap: 0.75rem;
justify-content: center;
margin-top: 1.5rem;
}
.field-error {
display: none;
color: var(--c-error-500);
font-size: 0.875rem;
margin-top: 0.25rem;
}
input.invalid,
select.invalid,
textarea.invalid {
border-color: var(--c-error-500);
background: var(--c-error-50);
}