Spaces:
Sleeping
Sleeping
Update theme.py
Browse files
theme.py
CHANGED
|
@@ -5,6 +5,7 @@ custom_css = """
|
|
| 5 |
body {
|
| 6 |
background: linear-gradient(135deg, #020617 0%, #1e0b45 50%, #020617 100%);
|
| 7 |
}
|
|
|
|
| 8 |
.gradio-container {
|
| 9 |
font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
|
| 10 |
"Segoe UI", sans-serif;
|
|
@@ -13,17 +14,24 @@ body {
|
|
| 13 |
padding: 32px 32px 40px 32px !important;
|
| 14 |
color: #f9fafb;
|
| 15 |
}
|
|
|
|
| 16 |
.gradio-container .block {
|
| 17 |
background: transparent !important;
|
| 18 |
border: none !important;
|
| 19 |
box-shadow: none !important;
|
| 20 |
}
|
|
|
|
| 21 |
.glass-card {
|
| 22 |
background: rgba(15, 23, 42, 0.96);
|
| 23 |
border-radius: 24px;
|
| 24 |
border: 1px solid rgba(148, 163, 184, 0.30);
|
| 25 |
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
|
| 26 |
-
padding:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
| 28 |
|
| 29 |
.hero-title {
|
|
@@ -34,12 +42,14 @@ body {
|
|
| 34 |
color: #e5e7eb;
|
| 35 |
margin-bottom: 8px;
|
| 36 |
}
|
|
|
|
| 37 |
.hero-subtitle {
|
| 38 |
font-size: 14px;
|
| 39 |
max-width: 640px;
|
| 40 |
opacity: 0.9;
|
| 41 |
color: #cbd5f5;
|
| 42 |
}
|
|
|
|
| 43 |
.conf-bar-bg {
|
| 44 |
margin-top: 14px;
|
| 45 |
width: 100%;
|
|
@@ -47,11 +57,13 @@ body {
|
|
| 47 |
border-radius: 999px;
|
| 48 |
background: rgba(148, 163, 184, 0.35);
|
| 49 |
}
|
|
|
|
| 50 |
.conf-bar-fill {
|
| 51 |
height: 100%;
|
| 52 |
border-radius: inherit;
|
| 53 |
background: linear-gradient(90deg, #f97316, #fb923c);
|
| 54 |
}
|
|
|
|
| 55 |
.badge-pill {
|
| 56 |
display: inline-flex;
|
| 57 |
align-items: center;
|
|
@@ -60,31 +72,37 @@ body {
|
|
| 60 |
font-size: 11px;
|
| 61 |
font-weight: 600;
|
| 62 |
}
|
|
|
|
| 63 |
.badge-fake {
|
| 64 |
background: #f97316;
|
| 65 |
color: #111827;
|
| 66 |
}
|
|
|
|
| 67 |
.badge-real {
|
| 68 |
background: #22c55e;
|
| 69 |
color: #022c22;
|
| 70 |
}
|
|
|
|
| 71 |
.gradio-container textarea {
|
| 72 |
background: #020617 !important;
|
| 73 |
border-radius: 18px !important;
|
| 74 |
border: 1px solid rgba(148, 163, 184, 0.35) !important;
|
| 75 |
color: #f9fafb !important;
|
| 76 |
font-size: 13px !important;
|
| 77 |
-
padding:
|
| 78 |
line-height: 1.5 !important;
|
| 79 |
box-sizing: border-box !important;
|
| 80 |
}
|
|
|
|
| 81 |
.gradio-container textarea::placeholder {
|
| 82 |
color: #94a3b8 !important;
|
| 83 |
opacity: 1 !important;
|
| 84 |
}
|
|
|
|
| 85 |
.gradio-container label {
|
| 86 |
margin-bottom: 6px !important;
|
| 87 |
}
|
|
|
|
| 88 |
@media (max-width: 900px) {
|
| 89 |
.two-col {
|
| 90 |
flex-direction: column !important;
|
|
@@ -125,8 +143,6 @@ def header():
|
|
| 125 |
)
|
| 126 |
|
| 127 |
def card_start():
|
| 128 |
-
return gr.HTML("
|
| 129 |
-
|
| 130 |
def card_end():
|
| 131 |
-
return gr.HTML("
|
| 132 |
-
|
|
|
|
| 5 |
body {
|
| 6 |
background: linear-gradient(135deg, #020617 0%, #1e0b45 50%, #020617 100%);
|
| 7 |
}
|
| 8 |
+
|
| 9 |
.gradio-container {
|
| 10 |
font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
|
| 11 |
"Segoe UI", sans-serif;
|
|
|
|
| 14 |
padding: 32px 32px 40px 32px !important;
|
| 15 |
color: #f9fafb;
|
| 16 |
}
|
| 17 |
+
|
| 18 |
.gradio-container .block {
|
| 19 |
background: transparent !important;
|
| 20 |
border: none !important;
|
| 21 |
box-shadow: none !important;
|
| 22 |
}
|
| 23 |
+
|
| 24 |
.glass-card {
|
| 25 |
background: rgba(15, 23, 42, 0.96);
|
| 26 |
border-radius: 24px;
|
| 27 |
border: 1px solid rgba(148, 163, 184, 0.30);
|
| 28 |
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
|
| 29 |
+
padding: 20px 22px !important;
|
| 30 |
+
overflow: hidden;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
.glass-card > * + * {
|
| 34 |
+
margin-top: 12px;
|
| 35 |
}
|
| 36 |
|
| 37 |
.hero-title {
|
|
|
|
| 42 |
color: #e5e7eb;
|
| 43 |
margin-bottom: 8px;
|
| 44 |
}
|
| 45 |
+
|
| 46 |
.hero-subtitle {
|
| 47 |
font-size: 14px;
|
| 48 |
max-width: 640px;
|
| 49 |
opacity: 0.9;
|
| 50 |
color: #cbd5f5;
|
| 51 |
}
|
| 52 |
+
|
| 53 |
.conf-bar-bg {
|
| 54 |
margin-top: 14px;
|
| 55 |
width: 100%;
|
|
|
|
| 57 |
border-radius: 999px;
|
| 58 |
background: rgba(148, 163, 184, 0.35);
|
| 59 |
}
|
| 60 |
+
|
| 61 |
.conf-bar-fill {
|
| 62 |
height: 100%;
|
| 63 |
border-radius: inherit;
|
| 64 |
background: linear-gradient(90deg, #f97316, #fb923c);
|
| 65 |
}
|
| 66 |
+
|
| 67 |
.badge-pill {
|
| 68 |
display: inline-flex;
|
| 69 |
align-items: center;
|
|
|
|
| 72 |
font-size: 11px;
|
| 73 |
font-weight: 600;
|
| 74 |
}
|
| 75 |
+
|
| 76 |
.badge-fake {
|
| 77 |
background: #f97316;
|
| 78 |
color: #111827;
|
| 79 |
}
|
| 80 |
+
|
| 81 |
.badge-real {
|
| 82 |
background: #22c55e;
|
| 83 |
color: #022c22;
|
| 84 |
}
|
| 85 |
+
|
| 86 |
.gradio-container textarea {
|
| 87 |
background: #020617 !important;
|
| 88 |
border-radius: 18px !important;
|
| 89 |
border: 1px solid rgba(148, 163, 184, 0.35) !important;
|
| 90 |
color: #f9fafb !important;
|
| 91 |
font-size: 13px !important;
|
| 92 |
+
padding: 16px 18px !important;
|
| 93 |
line-height: 1.5 !important;
|
| 94 |
box-sizing: border-box !important;
|
| 95 |
}
|
| 96 |
+
|
| 97 |
.gradio-container textarea::placeholder {
|
| 98 |
color: #94a3b8 !important;
|
| 99 |
opacity: 1 !important;
|
| 100 |
}
|
| 101 |
+
|
| 102 |
.gradio-container label {
|
| 103 |
margin-bottom: 6px !important;
|
| 104 |
}
|
| 105 |
+
|
| 106 |
@media (max-width: 900px) {
|
| 107 |
.two-col {
|
| 108 |
flex-direction: column !important;
|
|
|
|
| 143 |
)
|
| 144 |
|
| 145 |
def card_start():
|
| 146 |
+
return gr.HTML("")
|
|
|
|
| 147 |
def card_end():
|
| 148 |
+
return gr.HTML("")
|
|
|