|
84 | 84 | text-align: left; |
85 | 85 | } |
86 | 86 |
|
| 87 | +/* Light Mode Header: Light Gray */ |
87 | 88 | .bigframes-widget th { |
88 | 89 | background-color: var( |
89 | 90 | --colab-primary-surface-color, |
90 | | - var(--jp-layout-color0, var(--vscode-editor-background, white)) |
| 91 | + var(--jp-layout-color0, var(--vscode-editor-background, #f5f5f5)) |
91 | 92 | ); |
92 | 93 | padding: 0; |
93 | 94 | position: sticky; |
|
96 | 97 | z-index: 1; |
97 | 98 | } |
98 | 99 |
|
99 | | -/* Ensure rows have a background to override external striping if needed */ |
100 | | -.bigframes-widget table tbody tr { |
| 100 | +.bigframes-widget td { |
| 101 | + padding: 0.5em; |
| 102 | +} |
| 103 | + |
| 104 | +/* Light Mode Stripes: Odd = White, Even = Light Gray */ |
| 105 | +.bigframes-widget table tbody tr:nth-child(odd) td { |
101 | 106 | background-color: var( |
102 | 107 | --colab-primary-surface-color, |
103 | 108 | var(--jp-layout-color0, var(--vscode-editor-background, white)) |
104 | 109 | ); |
105 | 110 | } |
106 | 111 |
|
| 112 | +.bigframes-widget table tbody tr:nth-child(even) td { |
| 113 | + background-color: var( |
| 114 | + --colab-primary-surface-color, |
| 115 | + var(--jp-layout-color0, var(--vscode-editor-background, #f5f5f5)) |
| 116 | + ); |
| 117 | +} |
| 118 | + |
107 | 119 | .bigframes-widget .bf-header-content { |
108 | 120 | box-sizing: border-box; |
109 | 121 | height: 100%; |
|
159 | 171 | color: gray; |
160 | 172 | } |
161 | 173 |
|
162 | | -.bigframes-widget td { |
163 | | - padding: 0.5em; |
164 | | -} |
165 | | - |
166 | | -.bigframes-widget tr:hover td, |
167 | | -.bigframes-widget td.row-hover { |
168 | | - background-color: var( |
169 | | - --colab-hover-surface-color, |
170 | | - var(--jp-layout-color2, var(--vscode-list-hoverBackground, #f5f5f5)) |
171 | | - ); |
172 | | -} |
173 | | - |
174 | 174 | @media (prefers-color-scheme: dark) { |
175 | 175 | .bigframes-widget .footer, |
176 | 176 | .bigframes-widget table { |
|
184 | 184 | ); |
185 | 185 | } |
186 | 186 |
|
| 187 | + /* Dark Mode Header: Black or Theme Background */ |
187 | 188 | .bigframes-widget th { |
| 189 | + background-color: var( |
| 190 | + --colab-primary-surface-color, |
| 191 | + var(--jp-layout-color0, var(--vscode-editor-background, black)) |
| 192 | + ); |
| 193 | + } |
| 194 | + |
| 195 | + /* Dark Mode Stripes: Odd = Charcoal (#383838), Even = Dark Gray (#202124) */ |
| 196 | + .bigframes-widget table tbody tr:nth-child(odd) td { |
188 | 197 | background-color: var( |
189 | 198 | --colab-primary-surface-color, |
190 | 199 | var(--jp-layout-color0, var(--vscode-editor-background, #383838)) |
191 | 200 | ); |
192 | 201 | } |
193 | 202 |
|
194 | | - /* Force dark background on rows to override white stripes from external CSS */ |
195 | | - .bigframes-widget table tbody tr { |
| 203 | + .bigframes-widget table tbody tr:nth-child(even) td { |
196 | 204 | background-color: var( |
197 | 205 | --colab-primary-surface-color, |
198 | 206 | var(--jp-layout-color0, var(--vscode-editor-background, #202124)) |
|
208 | 216 | .bigframes-widget .null-value { |
209 | 217 | color: #aaa; |
210 | 218 | } |
211 | | - |
212 | | - .bigframes-widget tr:hover td, |
213 | | - .bigframes-widget td.row-hover { |
214 | | - background-color: var( |
215 | | - --colab-hover-surface-color, |
216 | | - var(--jp-layout-color2, var(--vscode-list-hoverBackground, #444)) |
217 | | - ); |
218 | | - } |
219 | 219 | } |
0 commit comments