agora-ai/frontend/src/style.css
Muyue 97c4ad9f6c Add marked syntax highlighting and random name generator
- Install marked and highlight.js for better markdown rendering
- Create nameGenerator service with 50 unique names
- Update DocumentViewer to use marked instead of regex parsing
- Add syntax highlighting for code blocks
- Improve styling for code with proper colors
2025-10-18 22:57:59 +02:00

139 lines
2.8 KiB
CSS

@import 'highlight.js/styles/atom-one-dark.css';
:root {
--primary: #667eea;
--primary-dark: #5568d3;
--secondary: #764ba2;
--accent: #f093fb;
--dark-bg: #0f0c29;
--mid-bg: #302b63;
--light-bg: #24243e;
--text-primary: #ffffff;
--text-secondary: rgba(255, 255, 255, 0.7);
--glass-bg: rgba(255, 255, 255, 0.05);
--glass-border: rgba(255, 255, 255, 0.1);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
line-height: 1.6;
font-weight: 400;
color-scheme: dark;
color: var(--text-primary);
background-color: var(--dark-bg);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
margin: 0;
min-width: 320px;
min-height: 100vh;
}
a {
color: var(--primary);
text-decoration: none;
transition: all 0.3s ease;
}
a:hover {
color: var(--accent);
text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: 1.2;
}
h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.5em; }
button {
border-radius: 12px;
border: 1px solid var(--glass-border);
padding: 0.75em 1.5em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background: rgba(102, 126, 234, 0.8);
color: var(--text-primary);
cursor: pointer;
transition: all 0.3s ease;
backdrop-filter: blur(10px);
box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}
button:hover:not(:disabled) {
background: rgba(102, 126, 234, 0.95);
transform: translateY(-2px);
box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
border-color: var(--glass-border);
}
button:active:not(:disabled) {
transform: translateY(0);
}
button:disabled {
opacity: 0.5;
cursor: not-allowed;
}
button.secondary {
background: rgba(118, 75, 162, 0.6);
}
button.secondary:hover:not(:disabled) {
background: rgba(118, 75, 162, 0.8);
}
button.outline {
background: transparent;
border: 1px solid var(--primary);
color: var(--primary);
}
button.outline:hover:not(:disabled) {
background: rgba(102, 126, 234, 0.2);
border-color: var(--accent);
color: var(--accent);
}
input, textarea, select {
background: rgba(255, 255, 255, 0.05);
border: 1px solid var(--glass-border);
color: var(--text-primary);
padding: 0.75em 1em;
border-radius: 8px;
font-family: inherit;
transition: all 0.3s ease;
}
input:focus, textarea:focus, select:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
background: rgba(255, 255, 255, 0.08);
}
#app {
min-height: 100vh;
}
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}