Spaces:
Sleeping
Sleeping
File size: 3,650 Bytes
9e1e4ee |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 |
# frontend/css.py
CSS = """
.gradio-container {
max-width: 1200px !important;
margin: auto;
background-color: #1a1a1a !important;
color: #e5e5e5 !important;
}
.dark .gradio-container {
background-color: #1a1a1a !important;
}
.section-header {
background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
padding: 25px;
border-radius: 12px;
border-left: 6px solid #60a5fa;
margin: 25px 0;
color: #ffffff !important;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}
.section-header h2, .section-header h3 {
color: #ffffff !important;
margin-bottom: 10px;
}
.section-header p {
color: #e0e7ff !important;
opacity: 0.95;
}
.clip-container {
background: #2d2d2d !important;
padding: 20px;
border-radius: 12px;
border: 2px solid #3f3f46;
margin: 15px 0;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.clip-container:hover {
border-color: #60a5fa;
box-shadow: 0 6px 16px rgba(96, 165, 250, 0.2);
}
.comparison-container {
background: #2a2a2a !important;
padding: 25px;
border-radius: 12px;
border: 2px solid #4f46e5;
margin: 20px 0;
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}
.reference-container {
background: linear-gradient(135deg, #059669, #047857) !important;
padding: 20px;
border-radius: 12px;
border: 2px solid #10b981;
margin: 15px 0;
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.reference-container h4, .reference-container p {
color: #ffffff !important;
}
.audio-info {
background: #374151 !important;
padding: 15px;
border-radius: 8px;
border-left: 4px solid #60a5fa;
margin: 10px 0;
font-family: 'Courier New', monospace;
}
.audio-info .info-label {
color: #60a5fa !important;
font-weight: bold;
font-size: 0.9em;
}
.audio-info .info-value {
color: #e5e5e5 !important;
margin-left: 10px;
}
.transcript-box {
background: #1f2937 !important;
padding: 15px;
border-radius: 8px;
border: 1px solid #4b5563;
font-style: italic;
color: #d1d5db !important;
line-height: 1.6;
}
.progress-text {
background: linear-gradient(135deg, #1e40af, #1d4ed8) !important;
border-left: 4px solid #60a5fa !important;
padding: 12px 16px;
border-radius: 8px;
font-weight: 600;
color: #ffffff !important;
box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}
.gr-button {
background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
border: none !important;
color: #ffffff !important;
padding: 12px 24px !important;
border-radius: 8px !important;
font-weight: 600 !important;
transition: all 0.3s ease !important;
}
.gr-button:hover {
background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
}
.gr-button.secondary {
background: linear-gradient(135deg, #6b7280, #4b5563) !important;
color: #ffffff !important;
}
.gr-button.secondary:hover {
background: linear-gradient(135deg, #4b5563, #374151) !important;
box-shadow: 0 6px 16px rgba(107, 114, 128, 0.3) !important;
}
.gr-textbox, .gr-slider, .gr-radio, .gr-accordion {
background-color: #2d2d2d !important;
border-color: #4b5563 !important;
color: #e5e5e5 !important;
}
h1, h2, h3, h4, h5, h6, p, span, div {
color: #e5e5e5 !important;
}
a {
color: #60a5fa !important;
}
a:hover {
color: #93c5fd !important;
}
.gr-accordion .label-wrap {
background-color: #374151 !important;
color: #e5e5e5 !important;
border-color: #4b5563 !important;
}
"""
|