mirror of
https://github.com/github/awesome-copilot.git
synced 2026-02-20 02:15:12 +00:00
1347 lines
27 KiB
CSS
1347 lines
27 KiB
CSS
/* CSS Variables and Base Styles */
|
|
:root {
|
|
/* Dark theme (default) */
|
|
--color-bg: #0a0a0f;
|
|
--color-bg-secondary: #12121a;
|
|
--color-bg-tertiary: #1a1a24;
|
|
--color-border: #2a2a3a;
|
|
--color-text: #e0e0e8;
|
|
--color-text-muted: #8888a0;
|
|
--color-text-emphasis: #ffffff;
|
|
--color-link: #6c9fff;
|
|
--color-link-hover: #9cc0ff;
|
|
--color-accent: #6366f1;
|
|
--color-accent-hover: #818cf8;
|
|
--color-accent-secondary: #ec4899;
|
|
--color-danger: #f43f5e;
|
|
--color-warning: #f59e0b;
|
|
--color-success: #10b981;
|
|
--color-card-bg: rgba(18, 18, 26, 0.8);
|
|
--color-card-hover: rgba(26, 26, 36, 0.9);
|
|
--color-glass: rgba(255, 255, 255, 0.05);
|
|
--color-glass-border: rgba(255, 255, 255, 0.1);
|
|
--gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
|
|
--gradient-accent: linear-gradient(135deg, #06b6d4 0%, #6366f1 100%);
|
|
--gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.3), transparent),
|
|
radial-gradient(ellipse 60% 40% at 80% 50%, rgba(236, 72, 153, 0.15), transparent),
|
|
radial-gradient(ellipse 60% 40% at 20% 50%, rgba(6, 182, 212, 0.15), transparent);
|
|
--border-radius: 8px;
|
|
--border-radius-lg: 16px;
|
|
--border-radius-xl: 24px;
|
|
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
|
|
--shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
|
|
--shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.5);
|
|
--transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
--container-width: 1200px;
|
|
--header-height: 72px;
|
|
}
|
|
|
|
/* Light theme */
|
|
[data-theme="light"] {
|
|
--color-bg: #fafafa;
|
|
--color-bg-secondary: #ffffff;
|
|
--color-bg-tertiary: #f4f4f5;
|
|
--color-border: #e4e4e7;
|
|
--color-text: #3f3f46;
|
|
--color-text-muted: #71717a;
|
|
--color-text-emphasis: #18181b;
|
|
--color-link: #6366f1;
|
|
--color-link-hover: #4f46e5;
|
|
--color-card-bg: rgba(255, 255, 255, 0.9);
|
|
--color-card-hover: rgba(255, 255, 255, 1);
|
|
--color-glass: rgba(255, 255, 255, 0.7);
|
|
--color-glass-border: rgba(0, 0, 0, 0.08);
|
|
--gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
|
|
radial-gradient(ellipse 60% 40% at 80% 50%, rgba(236, 72, 153, 0.08), transparent),
|
|
radial-gradient(ellipse 60% 40% at 20% 50%, rgba(6, 182, 212, 0.08), transparent);
|
|
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
|
|
--shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
|
|
--shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
/* Auto theme based on system preference */
|
|
@media (prefers-color-scheme: light) {
|
|
:root:not([data-theme="dark"]) {
|
|
--color-bg: #fafafa;
|
|
--color-bg-secondary: #ffffff;
|
|
--color-bg-tertiary: #f4f4f5;
|
|
--color-border: #e4e4e7;
|
|
--color-text: #3f3f46;
|
|
--color-text-muted: #71717a;
|
|
--color-text-emphasis: #18181b;
|
|
--color-link: #6366f1;
|
|
--color-link-hover: #4f46e5;
|
|
--color-card-bg: rgba(255, 255, 255, 0.9);
|
|
--color-card-hover: rgba(255, 255, 255, 1);
|
|
--color-glass: rgba(255, 255, 255, 0.7);
|
|
--color-glass-border: rgba(0, 0, 0, 0.08);
|
|
--gradient-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
|
|
radial-gradient(ellipse 60% 40% at 80% 50%, rgba(236, 72, 153, 0.08), transparent),
|
|
radial-gradient(ellipse 60% 40% at 20% 50%, rgba(6, 182, 212, 0.08), transparent);
|
|
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
|
|
--shadow-lg: 0 20px 40px -12px rgba(0, 0, 0, 0.15);
|
|
--shadow-glow: 0 0 40px -10px rgba(99, 102, 241, 0.3);
|
|
}
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
html {
|
|
scroll-behavior: smooth;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
|
|
background-color: var(--color-bg);
|
|
color: var(--color-text);
|
|
line-height: 1.6;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.container {
|
|
max-width: var(--container-width);
|
|
margin: 0 auto;
|
|
padding: 0 24px;
|
|
}
|
|
|
|
a {
|
|
color: var(--color-link);
|
|
text-decoration: none;
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--color-link-hover);
|
|
}
|
|
|
|
/* Header */
|
|
.site-header {
|
|
background: var(--color-glass);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border-bottom: 1px solid var(--color-glass-border);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
height: var(--header-height);
|
|
}
|
|
|
|
.header-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
height: var(--header-height);
|
|
}
|
|
|
|
.logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 700;
|
|
font-size: 20px;
|
|
color: var(--color-text-emphasis);
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.logo:hover {
|
|
color: var(--color-text-emphasis);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.logo-icon {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.main-nav {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.main-nav a {
|
|
color: var(--color-text-muted);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
padding: 8px 14px;
|
|
border-radius: var(--border-radius);
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.main-nav a:hover,
|
|
.main-nav a.active {
|
|
color: var(--color-text-emphasis);
|
|
background: var(--color-bg-tertiary);
|
|
}
|
|
|
|
.github-link {
|
|
color: var(--color-text);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.github-link:hover {
|
|
color: var(--color-text-emphasis);
|
|
}
|
|
|
|
/* Theme Toggle */
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.theme-toggle {
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 8px;
|
|
border-radius: var(--border-radius);
|
|
color: var(--color-text);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
background-color: var(--color-bg-tertiary);
|
|
color: var(--color-text-emphasis);
|
|
}
|
|
|
|
.theme-toggle svg {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.theme-toggle .icon-sun,
|
|
.theme-toggle .icon-moon {
|
|
display: none;
|
|
}
|
|
|
|
/* Show sun icon in dark mode (click to switch to light) */
|
|
:root:not([data-theme="light"]) .theme-toggle .icon-sun {
|
|
display: block;
|
|
}
|
|
|
|
:root:not([data-theme="light"]) .theme-toggle .icon-moon {
|
|
display: none;
|
|
}
|
|
|
|
/* Show moon icon in light mode (click to switch to dark) */
|
|
[data-theme="light"] .theme-toggle .icon-sun {
|
|
display: none;
|
|
}
|
|
|
|
[data-theme="light"] .theme-toggle .icon-moon {
|
|
display: block;
|
|
}
|
|
|
|
/* Handle auto mode with prefers-color-scheme */
|
|
@media (prefers-color-scheme: light) {
|
|
:root:not([data-theme="dark"]):not([data-theme="light"]) .theme-toggle .icon-sun {
|
|
display: none;
|
|
}
|
|
:root:not([data-theme="dark"]):not([data-theme="light"]) .theme-toggle .icon-moon {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
/* Hero Section */
|
|
.hero {
|
|
background: var(--gradient-hero), var(--color-bg);
|
|
padding: 100px 0 80px;
|
|
text-align: center;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
|
|
pointer-events: none;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 56px;
|
|
font-weight: 800;
|
|
letter-spacing: -0.02em;
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
margin-bottom: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 20px;
|
|
color: var(--color-text-muted);
|
|
max-width: 650px;
|
|
margin: 0 auto 40px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.hero-search {
|
|
max-width: 560px;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
}
|
|
|
|
.hero-search input {
|
|
width: 100%;
|
|
padding: 18px 24px;
|
|
font-size: 16px;
|
|
background: var(--color-glass);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border: 1px solid var(--color-glass-border);
|
|
border-radius: var(--border-radius-xl);
|
|
color: var(--color-text);
|
|
transition: all var(--transition);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.hero-search input:focus {
|
|
outline: none;
|
|
border-color: var(--color-accent);
|
|
box-shadow: var(--shadow-glow);
|
|
}
|
|
|
|
.hero-search input::placeholder {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.hero-stats {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 48px;
|
|
margin-top: 56px;
|
|
}
|
|
|
|
.stat {
|
|
text-align: center;
|
|
}
|
|
|
|
.stat-value {
|
|
font-size: 40px;
|
|
font-weight: 800;
|
|
background: var(--gradient-primary);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
.stat-label {
|
|
font-size: 14px;
|
|
color: var(--color-text-muted);
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
/* Search Results Dropdown */
|
|
.search-results {
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--color-bg-secondary);
|
|
border: 1px solid var(--color-glass-border);
|
|
border-radius: var(--border-radius-lg);
|
|
margin-top: 12px;
|
|
max-height: 450px;
|
|
overflow-y: auto;
|
|
box-shadow: var(--shadow-lg);
|
|
z-index: 1000;
|
|
}
|
|
|
|
.search-results.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.search-result,
|
|
.search-result-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 14px;
|
|
padding: 14px 18px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid var(--color-glass-border);
|
|
transition: all var(--transition);
|
|
text-align: left;
|
|
}
|
|
|
|
.search-result:last-child,
|
|
.search-result-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.search-result:hover,
|
|
.search-result-item:hover {
|
|
background: var(--color-bg-tertiary);
|
|
}
|
|
|
|
.search-result-type {
|
|
font-size: 20px;
|
|
flex-shrink: 0;
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--color-bg-tertiary);
|
|
border-radius: var(--border-radius);
|
|
}
|
|
|
|
.search-result-title {
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
color: var(--color-text-emphasis);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.search-result-title mark {
|
|
background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
|
|
color: inherit;
|
|
padding: 0 2px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.search-result-description {
|
|
font-size: 13px;
|
|
color: var(--color-text-muted);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.search-result-empty {
|
|
padding: 20px;
|
|
text-align: center;
|
|
color: var(--color-text-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
/* Cards Grid */
|
|
.cards-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
gap: 24px;
|
|
}
|
|
|
|
.card {
|
|
background: var(--color-card-bg);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
border: 1px solid var(--color-glass-border);
|
|
border-radius: var(--border-radius-lg);
|
|
padding: 28px;
|
|
transition: all var(--transition);
|
|
display: block;
|
|
color: inherit;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
background: var(--gradient-primary);
|
|
opacity: 0;
|
|
transition: opacity var(--transition);
|
|
}
|
|
|
|
.card:hover {
|
|
background: var(--color-card-hover);
|
|
border-color: transparent;
|
|
transform: translateY(-4px);
|
|
box-shadow: var(--shadow-lg), var(--shadow-glow);
|
|
}
|
|
|
|
.card:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.card-icon {
|
|
font-size: 40px;
|
|
margin-bottom: 16px;
|
|
display: inline-block;
|
|
transition: transform var(--transition);
|
|
}
|
|
|
|
.card:hover .card-icon {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.card h3 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--color-text-emphasis);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.card p {
|
|
font-size: 15px;
|
|
color: var(--color-text-muted);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Quick Links Section */
|
|
.quick-links {
|
|
padding: 80px 0;
|
|
}
|
|
|
|
/* Featured Section */
|
|
.featured {
|
|
padding: 80px 0;
|
|
background: var(--color-bg-secondary);
|
|
position: relative;
|
|
}
|
|
|
|
.featured h2 {
|
|
font-size: 32px;
|
|
font-weight: 800;
|
|
color: var(--color-text-emphasis);
|
|
margin-bottom: 40px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Getting Started */
|
|
.getting-started {
|
|
padding: 100px 0;
|
|
background: var(--gradient-hero), var(--color-bg);
|
|
}
|
|
|
|
.getting-started h2 {
|
|
font-size: 32px;
|
|
font-weight: 800;
|
|
color: var(--color-text-emphasis);
|
|
margin-bottom: 48px;
|
|
text-align: center;
|
|
}
|
|
|
|
.steps {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 48px;
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.step {
|
|
text-align: center;
|
|
position: relative;
|
|
}
|
|
|
|
.step-number {
|
|
width: 64px;
|
|
height: 64px;
|
|
background: var(--gradient-primary);
|
|
color: white;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 24px;
|
|
font-weight: 800;
|
|
margin: 0 auto 20px;
|
|
box-shadow: var(--shadow-glow);
|
|
}
|
|
|
|
.step h3 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
color: var(--color-text-emphasis);
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.step p {
|
|
font-size: 15px;
|
|
color: var(--color-text-muted);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
/* Footer */
|
|
.site-footer {
|
|
background: var(--color-bg-secondary);
|
|
border-top: 1px solid var(--color-glass-border);
|
|
padding: 32px 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.site-footer p {
|
|
font-size: 14px;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.site-footer a {
|
|
color: var(--color-text-muted);
|
|
transition: color var(--transition);
|
|
}
|
|
|
|
.site-footer a:hover {
|
|
color: var(--color-accent);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 18px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
border-radius: var(--border-radius);
|
|
border: 1px solid transparent;
|
|
cursor: pointer;
|
|
transition: all var(--transition);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--gradient-primary);
|
|
color: white;
|
|
border-color: transparent;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background: var(--gradient-primary);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-glow);
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--color-glass);
|
|
backdrop-filter: blur(10px);
|
|
color: var(--color-text);
|
|
border-color: var(--color-glass-border);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--color-bg-tertiary);
|
|
border-color: var(--color-border);
|
|
}
|
|
|
|
.btn-icon {
|
|
padding: 8px;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
color: var(--color-text);
|
|
}
|
|
|
|
/* Split Button Dropdown */
|
|
.install-dropdown {
|
|
position: relative;
|
|
display: inline-flex;
|
|
}
|
|
|
|
.install-dropdown .install-btn-main {
|
|
border-top-right-radius: 0;
|
|
border-bottom-right-radius: 0;
|
|
border-right: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.install-dropdown .install-btn-toggle {
|
|
border-top-left-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
padding: 10px 10px;
|
|
min-width: auto;
|
|
}
|
|
|
|
.install-dropdown .install-btn-toggle svg {
|
|
transition: transform var(--transition);
|
|
}
|
|
|
|
.install-dropdown.open .install-btn-toggle svg {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.install-dropdown-menu {
|
|
position: absolute;
|
|
top: 100%;
|
|
right: 0;
|
|
margin-top: 4px;
|
|
min-width: 160px;
|
|
background: var(--color-bg-secondary);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--shadow-md);
|
|
z-index: 1000;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-8px);
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.install-dropdown.open .install-dropdown-menu {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.install-dropdown-menu a {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
padding: 10px 14px;
|
|
color: var(--color-text);
|
|
text-decoration: none;
|
|
font-size: 14px;
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.install-dropdown-menu a:first-child {
|
|
border-radius: var(--border-radius) var(--border-radius) 0 0;
|
|
}
|
|
|
|
.install-dropdown-menu a:last-child {
|
|
border-radius: 0 0 var(--border-radius) var(--border-radius);
|
|
}
|
|
|
|
.install-dropdown-menu a:hover {
|
|
background: var(--color-bg-tertiary);
|
|
}
|
|
|
|
.install-dropdown-menu svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Small variant for list items */
|
|
.install-dropdown.install-dropdown-small .install-btn-main {
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.install-dropdown.install-dropdown-small .install-btn-toggle {
|
|
padding: 8px 8px;
|
|
}
|
|
|
|
.install-dropdown-menu .dropdown-divider {
|
|
height: 1px;
|
|
background: var(--color-border);
|
|
margin: 4px 0;
|
|
}
|
|
|
|
/* Spinner animation */
|
|
@keyframes spin {
|
|
from {
|
|
transform: rotate(0deg);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
}
|
|
|
|
.spinner {
|
|
animation: spin 1s linear infinite;
|
|
}
|
|
|
|
/* Button states */
|
|
.btn:disabled {
|
|
opacity: 0.7;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.8);
|
|
backdrop-filter: blur(8px);
|
|
-webkit-backdrop-filter: blur(8px);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 1000;
|
|
padding: 24px;
|
|
}
|
|
|
|
.modal.hidden {
|
|
display: none;
|
|
}
|
|
|
|
.modal-content {
|
|
background: var(--color-bg-secondary);
|
|
border: 1px solid var(--color-glass-border);
|
|
border-radius: var(--border-radius-xl);
|
|
width: 100%;
|
|
max-width: 900px;
|
|
max-height: 90vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
box-shadow: var(--shadow-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--color-glass-border);
|
|
background: var(--color-glass);
|
|
}
|
|
|
|
.modal-header h3 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--color-text-emphasis);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.modal-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.modal-body {
|
|
flex: 1;
|
|
overflow: auto;
|
|
padding: 0;
|
|
}
|
|
|
|
.modal-body pre {
|
|
margin: 0;
|
|
padding: 24px;
|
|
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
background: var(--color-bg);
|
|
color: var(--color-text);
|
|
min-height: 200px;
|
|
}
|
|
|
|
/* Page Layouts */
|
|
.page-header {
|
|
padding: 56px 0 40px;
|
|
background: var(--gradient-hero), var(--color-bg);
|
|
border-bottom: 1px solid var(--color-glass-border);
|
|
}
|
|
|
|
.page-header h1 {
|
|
font-size: 36px;
|
|
font-weight: 800;
|
|
color: var(--color-text);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.page-header p {
|
|
font-size: 17px;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.page-content {
|
|
padding: 40px 0 80px;
|
|
}
|
|
|
|
/* Search and Filter Bar */
|
|
.search-bar {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.search-bar input {
|
|
flex: 1;
|
|
min-width: 250px;
|
|
padding: 14px 18px;
|
|
font-size: 15px;
|
|
background: var(--color-glass);
|
|
border: 1px solid var(--color-glass-border);
|
|
border-radius: var(--border-radius-lg);
|
|
color: var(--color-text);
|
|
transition: all var(--transition);
|
|
}
|
|
|
|
.search-bar input:focus {
|
|
outline: none;
|
|
border-color: var(--color-accent);
|
|
box-shadow: var(--shadow-glow);
|
|
}
|
|
|
|
/* Filters Bar */
|
|
.filters-bar {
|
|
display: flex;
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
padding: 18px 20px;
|
|
background: var(--color-glass);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid var(--color-glass-border);
|
|
border-radius: var(--border-radius-lg);
|
|
}
|
|
|
|
.filter-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.filter-group label {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--color-text-muted);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.filter-group select {
|
|
padding: 8px 14px;
|
|
font-size: 13px;
|
|
background: var(--color-bg);
|
|
border: 1px solid var(--color-glass-border);
|
|
border-radius: var(--border-radius);
|
|
color: var(--color-text);
|
|
min-width: 150px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.filter-group select:focus {
|
|
outline: none;
|
|
border-color: var(--color-accent);
|
|
}
|
|
|
|
.checkbox-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.checkbox-label input[type="checkbox"] {
|
|
width: 18px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
accent-color: var(--color-accent);
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 8px 14px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Choices.js Theme Overrides */
|
|
.filter-group .choices {
|
|
min-width: 200px;
|
|
}
|
|
|
|
.choices {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.choices__inner {
|
|
background-color: var(--color-bg);
|
|
border-color: var(--color-border);
|
|
border-radius: var(--border-radius);
|
|
min-height: 42px;
|
|
padding: 6px 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.choices__input {
|
|
background-color: transparent;
|
|
color: var(--color-text);
|
|
font-size: 14px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.choices__input::placeholder {
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.choices__list--dropdown {
|
|
background-color: var(--color-bg-secondary);
|
|
border-color: var(--color-border);
|
|
border-radius: 0 0 var(--border-radius) var(--border-radius);
|
|
z-index: 100;
|
|
max-height: 300px;
|
|
}
|
|
|
|
.choices__list--dropdown .choices__item {
|
|
color: var(--color-text);
|
|
font-size: 14px;
|
|
padding: 10px 14px;
|
|
}
|
|
|
|
.choices__list--dropdown .choices__item--selectable.is-highlighted {
|
|
background-color: var(--color-bg-tertiary);
|
|
}
|
|
|
|
.choices__list--multiple .choices__item {
|
|
background-color: var(--color-link);
|
|
border-color: var(--color-link);
|
|
border-radius: 4px;
|
|
color: white;
|
|
font-size: 13px;
|
|
padding: 4px 10px;
|
|
margin: 2px;
|
|
}
|
|
|
|
.choices__list--multiple .choices__item .choices__button {
|
|
border-left-color: rgba(255,255,255,0.3);
|
|
padding-left: 8px;
|
|
margin-left: 6px;
|
|
}
|
|
|
|
.choices__placeholder {
|
|
color: var(--color-text-muted);
|
|
opacity: 1;
|
|
}
|
|
|
|
.choices[data-type*="select-multiple"] .choices__inner,
|
|
.choices[data-type*="text"] .choices__inner {
|
|
cursor: text;
|
|
}
|
|
|
|
.is-open .choices__inner {
|
|
border-color: var(--color-link);
|
|
border-radius: var(--border-radius) var(--border-radius) 0 0;
|
|
}
|
|
|
|
.is-open .choices__list--dropdown {
|
|
border-color: var(--color-link);
|
|
}
|
|
|
|
.choices__list--dropdown .choices__item--selectable::after {
|
|
display: none;
|
|
}
|
|
|
|
/* Tag variants */
|
|
.tag-model {
|
|
background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
|
|
color: #a5b4fc;
|
|
}
|
|
|
|
.tag-none {
|
|
background-color: var(--color-bg-tertiary);
|
|
color: var(--color-text-muted);
|
|
font-style: italic;
|
|
}
|
|
|
|
.tag-handoffs {
|
|
background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
|
|
color: #fcd34d;
|
|
}
|
|
|
|
.tag-extension {
|
|
background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.2));
|
|
color: #6ee7b7;
|
|
}
|
|
|
|
.tag-category {
|
|
background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(244, 114, 182, 0.2));
|
|
color: #f9a8d4;
|
|
}
|
|
|
|
.tag-assets {
|
|
background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(34, 211, 238, 0.2));
|
|
color: #67e8f9;
|
|
}
|
|
|
|
.tag-collection {
|
|
background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
|
|
color: #fcd34d;
|
|
}
|
|
|
|
.tag-featured {
|
|
background: var(--gradient-primary);
|
|
color: white;
|
|
padding: 3px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.results-count {
|
|
font-size: 14px;
|
|
color: var(--color-text-muted);
|
|
margin-bottom: 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Resource List */
|
|
.resource-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.resource-item {
|
|
background: var(--color-card-bg);
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid var(--color-glass-border);
|
|
border-radius: var(--border-radius-lg);
|
|
padding: 20px 24px;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
gap: 20px;
|
|
transition: all var(--transition);
|
|
cursor: pointer;
|
|
position: relative;
|
|
}
|
|
|
|
.resource-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 4px;
|
|
height: 100%;
|
|
background: var(--gradient-primary);
|
|
border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
|
|
opacity: 0;
|
|
transition: opacity var(--transition);
|
|
}
|
|
|
|
.resource-item:hover {
|
|
background: var(--color-card-hover);
|
|
transform: translateX(4px);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
.resource-item:hover::before {
|
|
opacity: 1;
|
|
}
|
|
|
|
.resource-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.resource-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--color-text-emphasis);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.resource-description {
|
|
font-size: 14px;
|
|
color: var(--color-text-muted);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
}
|
|
|
|
.resource-meta {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.resource-tag {
|
|
font-size: 12px;
|
|
padding: 2px 8px;
|
|
background-color: var(--color-bg-tertiary);
|
|
border-radius: 12px;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.resource-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
/* Collection Items */
|
|
.collection-items {
|
|
margin-top: 12px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
.collection-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 0;
|
|
font-size: 13px;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.collection-item-kind {
|
|
font-size: 11px;
|
|
padding: 2px 6px;
|
|
background-color: var(--color-bg-tertiary);
|
|
border-radius: 4px;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
/* Empty State */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
.empty-state h3 {
|
|
font-size: 18px;
|
|
color: var(--color-text);
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
/* Loading State */
|
|
.loading {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 60px 20px;
|
|
color: var(--color-text-muted);
|
|
}
|
|
|
|
/* Toast Notifications */
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 24px;
|
|
right: 24px;
|
|
padding: 12px 20px;
|
|
background-color: var(--color-success);
|
|
color: white;
|
|
border-radius: var(--border-radius);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
z-index: 1100;
|
|
animation: slideIn 0.3s ease;
|
|
}
|
|
|
|
.toast.error {
|
|
background-color: var(--color-danger);
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
transform: translateY(100%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.main-nav {
|
|
display: none;
|
|
}
|
|
|
|
.hero h1 {
|
|
font-size: 32px;
|
|
}
|
|
|
|
.hero-subtitle {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.hero-stats {
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
}
|
|
|
|
.steps {
|
|
grid-template-columns: 1fr;
|
|
gap: 32px;
|
|
}
|
|
|
|
.cards-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.resource-item {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.resource-actions {
|
|
justify-content: flex-end;
|
|
}
|
|
}
|
|
|
|
/* Placeholder sections */
|
|
.placeholder-section {
|
|
text-align: center;
|
|
padding: 80px 20px;
|
|
background-color: var(--color-bg-secondary);
|
|
border: 2px dashed var(--color-border);
|
|
border-radius: var(--border-radius-lg);
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.placeholder-section h3 {
|
|
font-size: 24px;
|
|
color: var(--color-text-emphasis);
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.placeholder-section p {
|
|
color: var(--color-text-muted);
|
|
max-width: 500px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Tools page specific */
|
|
.tool-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.tool-card h3 {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.tool-status {
|
|
font-size: 12px;
|
|
padding: 4px 8px;
|
|
border-radius: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.tool-status.available {
|
|
background-color: rgba(35, 134, 54, 0.2);
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.tool-status.coming-soon {
|
|
background-color: rgba(210, 153, 34, 0.2);
|
|
color: var(--color-warning);
|
|
}
|