fix: FilePreview fileType case + Tailwind v4 gradient transparent bug
- FilePreview.vue: add normalizedFileType computed to handle backend returning uppercase HTML/MD/PPTX (fixes preview/download buttons) - FilePreview.vue: bg-gradient-to-r from-orange-500 -> bg-orange-500 (Tailwind v4 gradient + CSS variable = transparent) - ReportCard.vue: bg-gradient-to-r -> bg-orange-600 for selected state - Add .opencode/, node_modules/, dist/ to .gitignore - Initial git setup for publish project
This commit is contained in:
@@ -0,0 +1,129 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
/* Design System Variables - Orange Theme */
|
||||
:root {
|
||||
--background: #FFF7E6;
|
||||
--foreground: #1a1a1a;
|
||||
--card: rgba(255, 255, 255, 0.7);
|
||||
--card-foreground: #1a1a1a;
|
||||
--popover: rgba(255, 255, 255, 0.9);
|
||||
--popover-foreground: #1a1a1a;
|
||||
--primary: #FF7A45;
|
||||
--primary-foreground: #ffffff;
|
||||
--secondary: rgba(255, 122, 69, 0.1);
|
||||
--secondary-foreground: #FF7A45;
|
||||
--muted: #f5ede0;
|
||||
--muted-foreground: #6b6b6b;
|
||||
--accent: #FF9F6B;
|
||||
--accent-foreground: #1a1a1a;
|
||||
--destructive: #ef4444;
|
||||
--destructive-foreground: #ffffff;
|
||||
--border: rgba(255, 122, 69, 0.2);
|
||||
--input: rgba(255, 122, 69, 0.15);
|
||||
--ring: #FF7A45;
|
||||
--radius: 1rem;
|
||||
--sidebar: rgba(255, 255, 255, 0.6);
|
||||
--sidebar-foreground: #1a1a1a;
|
||||
--sidebar-primary: #FF7A45;
|
||||
--sidebar-border: rgba(255, 122, 69, 0.15);
|
||||
}
|
||||
|
||||
/* Base Styles */
|
||||
@layer base {
|
||||
* {
|
||||
border-color: var(--border);
|
||||
outline-color: var(--ring);
|
||||
}
|
||||
|
||||
html, body {
|
||||
background-color: var(--background);
|
||||
color: var(--foreground);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
min-height: 100vh;
|
||||
font-family: 'Inter', system-ui, -apple-system, sans-serif;
|
||||
}
|
||||
}
|
||||
|
||||
/* Custom Scrollbar */
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-track {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb {
|
||||
background: var(--primary);
|
||||
opacity: 0.3;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--primary);
|
||||
opacity: 0.5;
|
||||
}
|
||||
|
||||
/* Hide scrollbar utility */
|
||||
.scrollbar-hide::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
.scrollbar-hide {
|
||||
-ms-overflow-style: none;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
/* Glass effect utility */
|
||||
.glass {
|
||||
background: var(--card);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
/* Extended glass variants */
|
||||
.glass-light {
|
||||
background: rgba(255, 255, 255, 0.5);
|
||||
backdrop-filter: blur(8px);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
}
|
||||
|
||||
.glass-dark {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
}
|
||||
|
||||
.glass-strong {
|
||||
background: var(--card);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
}
|
||||
|
||||
/* Backdrop blur utilities */
|
||||
.backdrop-blur-xl {
|
||||
backdrop-filter: blur(24px);
|
||||
-webkit-backdrop-filter: blur(24px);
|
||||
}
|
||||
|
||||
/* Shadow utilities */
|
||||
.shadow-primary\/20 {
|
||||
--tw-shadow-color: rgba(255, 122, 69, 0.2);
|
||||
}
|
||||
|
||||
/* Animation utilities */
|
||||
.transition-all {
|
||||
transition-property: all;
|
||||
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition-duration: 300ms;
|
||||
}
|
||||
|
||||
/* Card hover effect */
|
||||
.card-hover {
|
||||
transition: all 300ms ease;
|
||||
}
|
||||
.card-hover:hover {
|
||||
transform: translateY(-4px);
|
||||
box-shadow: 0 20px 25px -5px rgba(255, 122, 69, 0.15), 0 8px 10px -6px rgba(255, 122, 69, 0.1);
|
||||
}
|
||||
Reference in New Issue
Block a user