YugJ commited on
Commit
97a0ef4
·
verified ·
1 Parent(s): e7e449f

Upload styles.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. styles.py +16 -1
styles.py CHANGED
@@ -140,8 +140,15 @@ gradio-app,
140
 
141
  /* ---------- glass panel base ---------- */
142
 
 
 
 
 
 
 
 
 
143
  .verdict,
144
- .picker > *,
145
  .gradio-container .accordion,
146
  .gradio-container details {
147
  background: var(--glass) !important;
@@ -153,6 +160,14 @@ gradio-app,
153
  0 24px 60px -34px rgba(0,0,0,.95);
154
  }
155
 
 
 
 
 
 
 
 
 
156
  /* ---------- verdict ---------- */
157
 
158
  .verdict {
 
140
 
141
  /* ---------- glass panel base ---------- */
142
 
143
+ /* NOTE: backdrop-filter must never be applied to an ancestor of a Gradio
144
+ dropdown. Gradio renders the option list as position:fixed, and
145
+ backdrop-filter (like filter and transform) makes the styled element the
146
+ containing block for fixed descendants - so the menu gets positioned
147
+ against the card instead of the viewport and lands off-screen
148
+ (measured at y = -123px). The picker row is therefore excluded and uses a
149
+ plain translucent fill instead. */
150
+
151
  .verdict,
 
152
  .gradio-container .accordion,
153
  .gradio-container details {
154
  background: var(--glass) !important;
 
160
  0 24px 60px -34px rgba(0,0,0,.95);
161
  }
162
 
163
+ .picker > * {
164
+ background: var(--glass-2) !important; /* no backdrop-filter here - see above */
165
+ border: 1px solid var(--edge) !important;
166
+ box-shadow:
167
+ 0 1px 0 rgba(255,255,255,.07) inset,
168
+ 0 24px 60px -34px rgba(0,0,0,.95);
169
+ }
170
+
171
  /* ---------- verdict ---------- */
172
 
173
  .verdict {