168 lines
4.2 KiB
CSS
168 lines
4.2 KiB
CSS
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
|
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&display=swap');
|
|
|
|
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-secondary-200;
|
|
}
|
|
|
|
body {
|
|
@apply bg-white text-secondary-900 font-sans;
|
|
font-feature-settings: "rlig" 1, "calt" 1;
|
|
}
|
|
}
|
|
|
|
@layer components {
|
|
.btn {
|
|
@apply inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none;
|
|
}
|
|
|
|
.btn-primary {
|
|
@apply btn bg-primary-600 text-white hover:bg-primary-700 active:bg-primary-800;
|
|
}
|
|
|
|
.btn-secondary {
|
|
@apply btn bg-secondary-200 text-secondary-900 hover:bg-secondary-300 active:bg-secondary-400;
|
|
}
|
|
|
|
.btn-ghost {
|
|
@apply btn hover:bg-secondary-100 hover:text-secondary-900;
|
|
}
|
|
|
|
.input {
|
|
@apply flex h-10 w-full rounded-md border border-secondary-300 bg-white px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-secondary-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50;
|
|
}
|
|
|
|
.card {
|
|
@apply rounded-lg border border-secondary-200 bg-white shadow-sm;
|
|
}
|
|
|
|
.timeline {
|
|
@apply relative bg-secondary-100 rounded-lg overflow-hidden;
|
|
}
|
|
|
|
.timeline-track {
|
|
@apply relative h-16 bg-secondary-200 border-b border-secondary-300;
|
|
}
|
|
|
|
/* 登录页面特殊样式 */
|
|
.login-bg-pattern {
|
|
background-image:
|
|
radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
|
|
radial-gradient(circle at 75% 75%, rgba(147, 51, 234, 0.1) 0%, transparent 50%);
|
|
}
|
|
|
|
.login-glass {
|
|
backdrop-filter: blur(20px);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
.login-input {
|
|
backdrop-filter: blur(10px);
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.login-input:focus {
|
|
background: rgba(255, 255, 255, 0.15);
|
|
border-color: rgba(59, 130, 246, 0.5);
|
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
.login-button {
|
|
background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #1d4ed8 100%);
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.login-button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.login-button:before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: -100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
|
|
transition: left 0.5s;
|
|
}
|
|
|
|
.login-button:hover:before {
|
|
left: 100%;
|
|
}
|
|
|
|
.timeline-clip {
|
|
@apply absolute top-0 h-full bg-primary-500 rounded border border-primary-600 cursor-pointer hover:bg-primary-600 transition-colors;
|
|
}
|
|
}
|
|
|
|
/* Custom scrollbar */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
@apply bg-secondary-100;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
@apply bg-secondary-400 rounded-full;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
@apply bg-secondary-500;
|
|
}
|
|
|
|
/* Video player styles */
|
|
.video-player {
|
|
@apply relative bg-black rounded-lg overflow-hidden;
|
|
}
|
|
|
|
.video-controls {
|
|
@apply absolute bottom-0 left-0 right-0 bg-gradient-to-t from-black/80 to-transparent p-4;
|
|
}
|
|
|
|
/* Loading animations */
|
|
.loading-spinner {
|
|
@apply animate-spin rounded-full border-2 border-secondary-300 border-t-primary-600;
|
|
}
|
|
|
|
/* Drag and drop styles */
|
|
.drop-zone {
|
|
@apply border-2 border-dashed border-secondary-300 rounded-lg p-8 text-center transition-colors;
|
|
}
|
|
|
|
.drop-zone.drag-over {
|
|
@apply border-primary-500 bg-primary-50;
|
|
}
|
|
|
|
|
|
.slider::-webkit-slider-thumb {
|
|
appearance: none;
|
|
height: 16px;
|
|
width: 16px;
|
|
border-radius: 50%;
|
|
background: #3b82f6;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.slider::-moz-range-thumb {
|
|
height: 16px;
|
|
width: 16px;
|
|
border-radius: 50%;
|
|
background: #3b82f6;
|
|
cursor: pointer;
|
|
border: none;
|
|
} |