Spaces:
Runtime error
Runtime error
Delete styles.py
Browse files
styles.py
DELETED
|
@@ -1,190 +0,0 @@
|
|
| 1 |
-
"""
|
| 2 |
-
core/styles.py
|
| 3 |
-
All CSS for the Second Brain Gradio app.
|
| 4 |
-
"""
|
| 5 |
-
|
| 6 |
-
CSS = """
|
| 7 |
-
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');
|
| 8 |
-
|
| 9 |
-
/* ── Reset & base ──────────────────────────────────────── */
|
| 10 |
-
*, *::before, *::after { box-sizing: border-box; }
|
| 11 |
-
|
| 12 |
-
body, .gradio-container {
|
| 13 |
-
font-family: 'Sora', system-ui, sans-serif !important;
|
| 14 |
-
background: #060a12 !important;
|
| 15 |
-
color: #cbd5e1 !important;
|
| 16 |
-
}
|
| 17 |
-
.gradio-container { max-width: 1200px !important; margin: 0 auto !important; }
|
| 18 |
-
.main { padding: 16px !important; }
|
| 19 |
-
|
| 20 |
-
/* ── Auth card ─────────────────────────────────────────── */
|
| 21 |
-
#auth-card {
|
| 22 |
-
max-width: 420px;
|
| 23 |
-
margin: 48px auto 0;
|
| 24 |
-
background: #0d1117;
|
| 25 |
-
border: 1px solid #1e293b;
|
| 26 |
-
border-radius: 20px;
|
| 27 |
-
padding: 40px 36px 32px;
|
| 28 |
-
box-shadow: 0 0 80px rgba(99,102,241,.1);
|
| 29 |
-
}
|
| 30 |
-
#brand-logo {
|
| 31 |
-
font-size: 28px; font-weight: 700; text-align: center;
|
| 32 |
-
background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 100%);
|
| 33 |
-
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
| 34 |
-
margin-bottom: 4px;
|
| 35 |
-
}
|
| 36 |
-
#brand-sub { text-align: center; color: #334155; font-size: 13px; margin-bottom: 28px; }
|
| 37 |
-
|
| 38 |
-
/* ── Top header ────────────────────────────────────────── */
|
| 39 |
-
#top-header {
|
| 40 |
-
background: #0d1117;
|
| 41 |
-
border: 1px solid #1e293b;
|
| 42 |
-
border-radius: 14px;
|
| 43 |
-
padding: 14px 22px;
|
| 44 |
-
display: flex;
|
| 45 |
-
align-items: center;
|
| 46 |
-
justify-content: space-between;
|
| 47 |
-
margin-bottom: 18px;
|
| 48 |
-
}
|
| 49 |
-
#top-header-brand {
|
| 50 |
-
font-size: 18px; font-weight: 700;
|
| 51 |
-
background: linear-gradient(135deg, #a78bfa, #60a5fa);
|
| 52 |
-
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
|
| 53 |
-
}
|
| 54 |
-
#top-header-user { font-size: 12px; color: #334155; }
|
| 55 |
-
|
| 56 |
-
/* ── Stat cards ────────────────────────────────────────── */
|
| 57 |
-
.stat-card {
|
| 58 |
-
background: #0d1117;
|
| 59 |
-
border: 1px solid #1e293b;
|
| 60 |
-
border-radius: 14px;
|
| 61 |
-
padding: 18px 12px;
|
| 62 |
-
text-align: center;
|
| 63 |
-
min-height: 90px;
|
| 64 |
-
}
|
| 65 |
-
.stat-num { font-size: 36px; font-weight: 700; line-height: 1; }
|
| 66 |
-
.stat-label { font-size: 10px; color: #334155; margin-top: 6px;
|
| 67 |
-
text-transform: uppercase; letter-spacing: .8px; }
|
| 68 |
-
|
| 69 |
-
/* ── Panels ────────────────────────────────────────────── */
|
| 70 |
-
.panel {
|
| 71 |
-
background: #0d1117;
|
| 72 |
-
border: 1px solid #1e293b;
|
| 73 |
-
border-radius: 14px;
|
| 74 |
-
padding: 22px 20px;
|
| 75 |
-
margin-top: 14px;
|
| 76 |
-
}
|
| 77 |
-
.sec-label {
|
| 78 |
-
font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px;
|
| 79 |
-
color: #334155; font-weight: 600; margin-bottom: 16px;
|
| 80 |
-
}
|
| 81 |
-
|
| 82 |
-
/* ── Buttons ───────────────────────────────────────────── */
|
| 83 |
-
.btn-primary button {
|
| 84 |
-
background: linear-gradient(135deg,#6366f1,#8b5cf6) !important;
|
| 85 |
-
color: #fff !important; font-weight: 600 !important;
|
| 86 |
-
border: none !important; border-radius: 10px !important;
|
| 87 |
-
font-family: 'Sora', sans-serif !important;
|
| 88 |
-
transition: opacity .15s !important;
|
| 89 |
-
}
|
| 90 |
-
.btn-primary button:hover { opacity: .85 !important; }
|
| 91 |
-
|
| 92 |
-
.btn-accent button {
|
| 93 |
-
background: linear-gradient(135deg,#0ea5e9,#6366f1) !important;
|
| 94 |
-
color: #fff !important; font-weight: 600 !important;
|
| 95 |
-
border: none !important; border-radius: 10px !important;
|
| 96 |
-
font-family: 'Sora', sans-serif !important;
|
| 97 |
-
}
|
| 98 |
-
.btn-secondary button {
|
| 99 |
-
background: #161b27 !important; color: #64748b !important;
|
| 100 |
-
border: 1px solid #1e293b !important; border-radius: 10px !important;
|
| 101 |
-
font-family: 'Sora', sans-serif !important;
|
| 102 |
-
}
|
| 103 |
-
.btn-success button {
|
| 104 |
-
background: #052e16 !important; color: #4ade80 !important;
|
| 105 |
-
border: 1px solid #14532d !important; border-radius: 10px !important;
|
| 106 |
-
font-family: 'Sora', sans-serif !important;
|
| 107 |
-
}
|
| 108 |
-
.btn-danger button {
|
| 109 |
-
background: #1c0606 !important; color: #f87171 !important;
|
| 110 |
-
border: 1px solid #450a0a !important; border-radius: 10px !important;
|
| 111 |
-
font-family: 'Sora', sans-serif !important;
|
| 112 |
-
}
|
| 113 |
-
|
| 114 |
-
/* ── Inputs ────────────────────────────────────────────── */
|
| 115 |
-
input, textarea, select {
|
| 116 |
-
background: #060a12 !important;
|
| 117 |
-
border: 1px solid #1e293b !important;
|
| 118 |
-
border-radius: 10px !important;
|
| 119 |
-
color: #e2e8f0 !important;
|
| 120 |
-
font-family: 'Sora', sans-serif !important;
|
| 121 |
-
}
|
| 122 |
-
input:focus, textarea:focus {
|
| 123 |
-
border-color: #6366f1 !important;
|
| 124 |
-
box-shadow: 0 0 0 2px rgba(99,102,241,.18) !important;
|
| 125 |
-
}
|
| 126 |
-
label { color: #475569 !important; font-size: 12px !important; font-weight: 500 !important; }
|
| 127 |
-
|
| 128 |
-
/* ── Tabs ──────────────────────────────────────────────── */
|
| 129 |
-
.tab-nav button {
|
| 130 |
-
color: #334155 !important; font-family: 'Sora', sans-serif !important;
|
| 131 |
-
font-weight: 500 !important; background: transparent !important;
|
| 132 |
-
border: none !important; border-bottom: 2px solid transparent !important;
|
| 133 |
-
padding: 10px 18px !important; font-size: 13px !important;
|
| 134 |
-
}
|
| 135 |
-
.tab-nav button.selected {
|
| 136 |
-
color: #a78bfa !important;
|
| 137 |
-
border-bottom: 2px solid #a78bfa !important;
|
| 138 |
-
}
|
| 139 |
-
|
| 140 |
-
/* ── Dataframe ─────────────────────────────────────────── */
|
| 141 |
-
.dataframe thead th {
|
| 142 |
-
background: #0d1117 !important; color: #334155 !important;
|
| 143 |
-
font-size: 10px !important; text-transform: uppercase !important;
|
| 144 |
-
letter-spacing: .6px !important; padding: 10px 12px !important;
|
| 145 |
-
font-family: 'Sora', sans-serif !important; border: none !important;
|
| 146 |
-
}
|
| 147 |
-
.dataframe tbody td {
|
| 148 |
-
background: #060a12 !important; color: #94a3b8 !important;
|
| 149 |
-
font-family: 'JetBrains Mono', monospace !important;
|
| 150 |
-
font-size: 12px !important; padding: 9px 12px !important;
|
| 151 |
-
border-bottom: 1px solid #0d1117 !important;
|
| 152 |
-
}
|
| 153 |
-
.dataframe tbody tr:hover td { background: #0d1117 !important; }
|
| 154 |
-
|
| 155 |
-
/* ── Chatbot ───────────────────────────────────────────── */
|
| 156 |
-
.chatbot {
|
| 157 |
-
background: #060a12 !important;
|
| 158 |
-
border: 1px solid #1e293b !important;
|
| 159 |
-
border-radius: 14px !important;
|
| 160 |
-
}
|
| 161 |
-
|
| 162 |
-
/* ── Schedule cards ────────────────────────────────────── */
|
| 163 |
-
.sched-card {
|
| 164 |
-
background: #0d1117;
|
| 165 |
-
border: 1px solid #1e293b;
|
| 166 |
-
border-left: 3px solid #6366f1;
|
| 167 |
-
border-radius: 10px;
|
| 168 |
-
padding: 12px 16px;
|
| 169 |
-
margin-bottom: 8px;
|
| 170 |
-
}
|
| 171 |
-
.sched-time { font-size: 11px; font-family: 'JetBrains Mono',monospace; color: #6366f1; font-weight: 600; }
|
| 172 |
-
.sched-title { font-size: 14px; font-weight: 600; color: #f1f5f9; margin: 2px 0 4px; }
|
| 173 |
-
.sched-meta { font-size: 11px; color: #334155; }
|
| 174 |
-
.sched-why { font-size: 11px; color: #475569; font-style: italic; margin-top: 3px; }
|
| 175 |
-
|
| 176 |
-
/* ── Life area chips ───────────────────────────────────── */
|
| 177 |
-
.chip {
|
| 178 |
-
display: inline-block; padding: 4px 12px; border-radius: 20px;
|
| 179 |
-
font-size: 12px; font-weight: 600; margin: 3px;
|
| 180 |
-
}
|
| 181 |
-
|
| 182 |
-
/* ── Status messages ───────────────────────────────────── */
|
| 183 |
-
.ok { color: #4ade80; font-size: 13px; }
|
| 184 |
-
.err { color: #f87171; font-size: 13px; }
|
| 185 |
-
.inf { color: #60a5fa; font-size: 13px; }
|
| 186 |
-
|
| 187 |
-
/* ── Misc ──────────────────────────────────────────────── */
|
| 188 |
-
hr { border-color: #1e293b !important; margin: 16px 0 !important; }
|
| 189 |
-
.hidden { display: none !important; }
|
| 190 |
-
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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