|
17 | 17 | .bigframes-widget { |
18 | 18 | /* Default Light Mode Variables */ |
19 | 19 | --bf-bg: white; |
20 | | - --bf-fg: black; |
21 | | - --bf-header-bg: #f5f5f5; |
22 | | - --bf-row-odd-bg: white; |
23 | | - --bf-row-even-bg: #f5f5f5; |
24 | 20 | --bf-border-color: #ccc; |
25 | | - --bf-null-fg: gray; |
26 | 21 | --bf-error-bg: #fbe; |
27 | 22 | --bf-error-border: red; |
28 | 23 | --bf-error-fg: black; |
| 24 | + --bf-fg: black; |
| 25 | + --bf-header-bg: #f5f5f5; |
| 26 | + --bf-null-fg: gray; |
| 27 | + --bf-row-even-bg: #f5f5f5; |
| 28 | + --bf-row-odd-bg: white; |
29 | 29 |
|
30 | | - display: flex; |
31 | | - flex-direction: column; |
32 | | - /* Double class to increase specificity + !important to override framework styles */ |
33 | 30 | background-color: var(--bf-bg) !important; |
| 31 | + box-sizing: border-box; |
34 | 32 | color: var(--bf-fg) !important; |
| 33 | + display: flex; |
| 34 | + flex-direction: column; |
35 | 35 | font-family: |
36 | 36 | "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", sans-serif; |
37 | | - padding: 0 !important; |
38 | 37 | margin: 0 !important; |
39 | | - box-sizing: border-box; |
| 38 | + padding: 0 !important; |
40 | 39 | } |
41 | 40 |
|
42 | 41 | .bigframes-widget * { |
|
47 | 46 | @media (prefers-color-scheme: dark) { |
48 | 47 | .bigframes-widget { |
49 | 48 | --bf-bg: var(--vscode-editor-background, #202124); |
50 | | - --bf-fg: white; |
51 | | - --bf-header-bg: var(--vscode-editor-background, black); |
52 | | - --bf-row-odd-bg: #383838; |
53 | | - --bf-row-even-bg: #202124; |
54 | 49 | --bf-border-color: #444; |
55 | | - --bf-null-fg: #aaa; |
56 | 50 | --bf-error-bg: #511; |
57 | 51 | --bf-error-border: #f88; |
58 | 52 | --bf-error-fg: #fcc; |
| 53 | + --bf-fg: white; |
| 54 | + --bf-header-bg: var(--vscode-editor-background, black); |
| 55 | + --bf-null-fg: #aaa; |
| 56 | + --bf-row-even-bg: #202124; |
| 57 | + --bf-row-odd-bg: #383838; |
59 | 58 | } |
60 | 59 | } |
61 | 60 |
|
62 | 61 | /* Dark Mode Overrides via Explicit Class */ |
63 | 62 | .bigframes-widget.bigframes-dark-mode.bigframes-dark-mode { |
64 | 63 | --bf-bg: var(--vscode-editor-background, #202124); |
65 | | - --bf-fg: white; |
66 | | - --bf-header-bg: var(--vscode-editor-background, black); |
67 | | - --bf-row-odd-bg: #383838; |
68 | | - --bf-row-even-bg: #202124; |
69 | 64 | --bf-border-color: #444; |
70 | | - --bf-null-fg: #aaa; |
71 | 65 | --bf-error-bg: #511; |
72 | 66 | --bf-error-border: #f88; |
73 | 67 | --bf-error-fg: #fcc; |
| 68 | + --bf-fg: white; |
| 69 | + --bf-header-bg: var(--vscode-editor-background, black); |
| 70 | + --bf-null-fg: #aaa; |
| 71 | + --bf-row-even-bg: #202124; |
| 72 | + --bf-row-odd-bg: #383838; |
74 | 73 | } |
75 | 74 |
|
76 | 75 | .bigframes-widget .table-container { |
| 76 | + background-color: var(--bf-bg); |
| 77 | + margin: 0; |
77 | 78 | max-height: 620px; |
78 | 79 | overflow: auto; |
79 | | - background-color: var(--bf-bg); |
80 | 80 | padding: 0; |
81 | | - margin: 0; |
82 | 81 | } |
83 | 82 |
|
84 | 83 | .bigframes-widget .footer { |
85 | 84 | align-items: center; |
| 85 | + background-color: var(--bf-bg); |
| 86 | + color: var(--bf-fg); |
86 | 87 | display: flex; |
87 | 88 | font-size: 0.8rem; |
88 | 89 | justify-content: space-between; |
89 | 90 | padding: 8px; |
90 | | - background-color: var(--bf-bg); |
91 | | - color: var(--bf-fg); |
92 | 91 | } |
93 | 92 |
|
94 | 93 | .bigframes-widget .footer > * { |
|
126 | 125 |
|
127 | 126 | .bigframes-widget table, |
128 | 127 | .bigframes-widget table.dataframe { |
129 | | - border-collapse: collapse !important; |
130 | | - border-spacing: 0 !important; |
131 | | - text-align: left; |
132 | | - width: auto !important; /* Fix stretching */ |
133 | 128 | background-color: var(--bf-bg) !important; |
134 | | - color: var(--bf-fg) !important; |
135 | 129 | /* Explicitly override border="1" defaults */ |
136 | 130 | border: 1px solid var(--bf-border-color) !important; |
| 131 | + border-collapse: collapse !important; |
| 132 | + border-spacing: 0 !important; |
137 | 133 | box-shadow: none !important; |
138 | | - outline: none !important; |
| 134 | + color: var(--bf-fg) !important; |
139 | 135 | margin: 0 !important; |
| 136 | + outline: none !important; |
| 137 | + text-align: left; |
| 138 | + width: auto !important; /* Fix stretching */ |
140 | 139 | } |
141 | 140 |
|
142 | 141 | .bigframes-widget tr { |
|
145 | 144 |
|
146 | 145 | .bigframes-widget th { |
147 | 146 | background-color: var(--bf-header-bg) !important; |
| 147 | + border: 1px solid var(--bf-border-color) !important; |
148 | 148 | color: var(--bf-fg) !important; |
149 | 149 | padding: 0; |
150 | 150 | position: sticky; |
151 | 151 | text-align: left; |
152 | 152 | top: 0; |
153 | 153 | z-index: 1; |
154 | | - border: 1px solid var(--bf-border-color) !important; |
155 | 154 | } |
156 | 155 |
|
157 | 156 | .bigframes-widget td { |
158 | | - padding: 0.5em; |
159 | 157 | border: 1px solid var(--bf-border-color) !important; |
160 | 158 | color: var(--bf-fg) !important; |
| 159 | + padding: 0.5em; |
161 | 160 | } |
162 | 161 |
|
163 | 162 | .bigframes-widget table tbody tr:nth-child(odd), |
|
189 | 188 | } |
190 | 189 |
|
191 | 190 | .bigframes-widget button { |
| 191 | + background-color: transparent; |
| 192 | + border: 1px solid currentColor; |
| 193 | + border-radius: 4px; |
| 194 | + color: inherit; |
192 | 195 | cursor: pointer; |
193 | 196 | display: inline-block; |
| 197 | + padding: 2px 8px; |
194 | 198 | text-align: center; |
195 | 199 | text-decoration: none; |
196 | 200 | user-select: none; |
197 | 201 | vertical-align: middle; |
198 | | - color: inherit; |
199 | | - background-color: transparent; |
200 | | - border: 1px solid currentColor; |
201 | | - border-radius: 4px; |
202 | | - padding: 2px 8px; |
203 | 202 | } |
204 | 203 |
|
205 | 204 | .bigframes-widget button:disabled { |
|
210 | 209 | .bigframes-widget .bigframes-error-message { |
211 | 210 | background-color: var(--bf-error-bg); |
212 | 211 | border: 1px solid var(--bf-error-border); |
213 | | - color: var(--bf-error-fg); |
214 | 212 | border-radius: 4px; |
| 213 | + color: var(--bf-error-fg); |
215 | 214 | font-size: 14px; |
216 | 215 | margin-bottom: 8px; |
217 | 216 | padding: 8px; |
|
0 commit comments