techfreakworm commited on
Commit
5a26e1f
·
unverified ·
1 Parent(s): 3fab083

fix(ui): css cleanup — id selector, font stacks, drawer base display

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -119,9 +119,8 @@ _bootstrap()
119
 
120
 
121
  # ---------------------------------------------------------------------------
122
- # Styling: hide the default top tab strip (sidebar drives selection),
123
- # add status-card styling, plus responsive breakpoints (≤1024px tablet,
124
- # ≤700px mobile).
125
  # ---------------------------------------------------------------------------
126
 
127
  _CUSTOM_CSS = """
@@ -149,12 +148,13 @@ _CUSTOM_CSS = """
149
  }
150
  .aio-ham-toggle { display: none; } /* hidden checkbox drives drawer state */
151
  .aio-ham-label {
 
152
  width: 32px; height: 32px;
153
  border: 1px solid #262C35;
154
  border-radius: 5px;
155
  color: #7C8693;
156
  cursor: pointer;
157
- display: flex; align-items: center; justify-content: center;
158
  font-size: 18px; font-weight: 300;
159
  user-select: none;
160
  }
@@ -182,7 +182,7 @@ _CUSTOM_CSS = """
182
  background: #12161B;
183
  padding: 14px 10px !important;
184
  flex-shrink: 0;
185
- transition: transform 0.2s ease, width 0.2s ease;
186
  }
187
  .aio-drawer-heading {
188
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
@@ -220,10 +220,10 @@ _CUSTOM_CSS = """
220
  }
221
  .status-row { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
222
  .status-stage { font-weight: 600; color: #E0A458; }
223
- .status-meta { font-size: 12px; color: #7C8693; font-family: 'IBM Plex Mono', monospace; }
224
  .status-bar { height: 4px; background: #262C35; border-radius: 99px; overflow: hidden; }
225
  .status-fill { height: 100%; background: #E0A458; transition: width .3s; }
226
- .status-mem { font-size: 11px; color: #7C8693; margin-top: 6px; font-family: 'IBM Plex Mono', monospace; }
227
  .status-error {
228
  background: #3A1E20 !important;
229
  border-color: #F4A6A8 !important;
@@ -244,8 +244,8 @@ _CUSTOM_CSS = """
244
  }
245
  /* checkbox at #aio-ham-toggle is the only sibling pattern Gradio
246
  lets us reach without JS — when checked, slide drawer in. */
247
- body:has(.aio-ham-toggle:checked) .aio-drawer { transform: translateX(0); }
248
- body:has(.aio-ham-toggle:checked) .aio-shell::before {
249
  content: ""; position: absolute; inset: 0;
250
  background: rgba(0,0,0,0.55); z-index: 9;
251
  }
 
119
 
120
 
121
  # ---------------------------------------------------------------------------
122
+ # Styling: Topaz Cinema Slate palette + hamburger drawer mechanics.
123
+ # Drawer is fixed-position sidebar at ≥1024 px, slide-in overlay below.
 
124
  # ---------------------------------------------------------------------------
125
 
126
  _CUSTOM_CSS = """
 
148
  }
149
  .aio-ham-toggle { display: none; } /* hidden checkbox drives drawer state */
150
  .aio-ham-label {
151
+ display: none;
152
  width: 32px; height: 32px;
153
  border: 1px solid #262C35;
154
  border-radius: 5px;
155
  color: #7C8693;
156
  cursor: pointer;
157
+ align-items: center; justify-content: center;
158
  font-size: 18px; font-weight: 300;
159
  user-select: none;
160
  }
 
182
  background: #12161B;
183
  padding: 14px 10px !important;
184
  flex-shrink: 0;
185
+ transition: transform 0.2s ease;
186
  }
187
  .aio-drawer-heading {
188
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
 
220
  }
221
  .status-row { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
222
  .status-stage { font-weight: 600; color: #E0A458; }
223
+ .status-meta { font-size: 12px; color: #7C8693; font-family: 'IBM Plex Mono', ui-monospace, monospace; }
224
  .status-bar { height: 4px; background: #262C35; border-radius: 99px; overflow: hidden; }
225
  .status-fill { height: 100%; background: #E0A458; transition: width .3s; }
226
+ .status-mem { font-size: 11px; color: #7C8693; margin-top: 6px; font-family: 'IBM Plex Mono', ui-monospace, monospace; }
227
  .status-error {
228
  background: #3A1E20 !important;
229
  border-color: #F4A6A8 !important;
 
244
  }
245
  /* checkbox at #aio-ham-toggle is the only sibling pattern Gradio
246
  lets us reach without JS — when checked, slide drawer in. */
247
+ body:has(#aio-ham-toggle:checked) .aio-drawer { transform: translateX(0); }
248
+ body:has(#aio-ham-toggle:checked) .aio-shell::before {
249
  content: ""; position: absolute; inset: 0;
250
  background: rgba(0,0,0,0.55); z-index: 9;
251
  }