|
15 | 15 | */ |
16 | 16 |
|
17 | 17 | .bigframes-widget { |
18 | | - display: flex; |
19 | | - flex-direction: column; |
| 18 | + display: flex; |
| 19 | + flex-direction: column; |
20 | 20 | } |
21 | 21 |
|
22 | 22 | .bigframes-widget .table-container { |
23 | | - max-height: 620px; |
24 | | - overflow: auto; |
| 23 | + max-height: 620px; |
| 24 | + overflow: auto; |
25 | 25 | } |
26 | 26 |
|
27 | 27 | .bigframes-widget .footer { |
28 | | - align-items: center; |
29 | | - /* TODO(b/460861328): We will support dark mode in a media selector once we |
30 | | - * determine how to override the background colors as well. */ |
31 | | - color: black; |
32 | | - display: flex; |
33 | | - font-family: |
34 | | - "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", sans-serif; |
35 | | - font-size: 0.8rem; |
36 | | - justify-content: space-between; |
37 | | - padding: 8px; |
| 28 | + align-items: center; |
| 29 | + color: var(--colab-primary-text-color, var(--jp-ui-font-color0, black)); |
| 30 | + display: flex; |
| 31 | + font-family: |
| 32 | + "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", sans-serif; |
| 33 | + font-size: 0.8rem; |
| 34 | + justify-content: space-between; |
| 35 | + padding: 8px; |
38 | 36 | } |
39 | 37 |
|
40 | 38 | .bigframes-widget .footer > * { |
41 | | - flex: 1; |
| 39 | + flex: 1; |
42 | 40 | } |
43 | 41 |
|
44 | 42 | .bigframes-widget .pagination { |
45 | | - align-items: center; |
46 | | - display: flex; |
47 | | - flex-direction: row; |
48 | | - gap: 4px; |
49 | | - justify-content: center; |
50 | | - padding: 4px; |
| 43 | + align-items: center; |
| 44 | + display: flex; |
| 45 | + flex-direction: row; |
| 46 | + gap: 4px; |
| 47 | + justify-content: center; |
| 48 | + padding: 4px; |
51 | 49 | } |
52 | 50 |
|
53 | 51 | .bigframes-widget .page-indicator { |
54 | | - margin: 0 8px; |
| 52 | + margin: 0 8px; |
55 | 53 | } |
56 | 54 |
|
57 | 55 | .bigframes-widget .row-count { |
58 | | - margin: 0 8px; |
| 56 | + margin: 0 8px; |
59 | 57 | } |
60 | 58 |
|
61 | 59 | .bigframes-widget .page-size { |
62 | | - align-items: center; |
63 | | - display: flex; |
64 | | - flex-direction: row; |
65 | | - gap: 4px; |
66 | | - justify-content: end; |
| 60 | + align-items: center; |
| 61 | + display: flex; |
| 62 | + flex-direction: row; |
| 63 | + gap: 4px; |
| 64 | + justify-content: end; |
67 | 65 | } |
68 | 66 |
|
69 | 67 | .bigframes-widget .page-size label { |
70 | | - margin-right: 8px; |
| 68 | + margin-right: 8px; |
71 | 69 | } |
72 | 70 |
|
73 | 71 | .bigframes-widget table { |
74 | | - border-collapse: collapse; |
75 | | - /* TODO(b/460861328): We will support dark mode in a media selector once we |
76 | | - * determine how to override the background colors as well. */ |
77 | | - color: black; |
78 | | - text-align: left; |
| 72 | + border-collapse: collapse; |
| 73 | + color: var(--colab-primary-text-color, var(--jp-ui-font-color0, black)); |
| 74 | + text-align: left; |
79 | 75 | } |
80 | 76 |
|
81 | 77 | .bigframes-widget th { |
82 | | - background-color: var(--colab-primary-surface-color, var(--jp-layout-color0)); |
83 | | - padding: 0; |
84 | | - position: sticky; |
85 | | - text-align: left; |
86 | | - top: 0; |
87 | | - z-index: 1; |
| 78 | + background-color: var( |
| 79 | + --colab-primary-surface-color, |
| 80 | + var(--jp-layout-color0, white) |
| 81 | + ); |
| 82 | + padding: 0; |
| 83 | + position: sticky; |
| 84 | + text-align: left; |
| 85 | + top: 0; |
| 86 | + z-index: 1; |
88 | 87 | } |
89 | 88 |
|
90 | 89 | .bigframes-widget .bf-header-content { |
91 | | - box-sizing: border-box; |
92 | | - height: 100%; |
93 | | - overflow: auto; |
94 | | - padding: 0.5em; |
95 | | - resize: horizontal; |
96 | | - width: 100%; |
| 90 | + box-sizing: border-box; |
| 91 | + height: 100%; |
| 92 | + overflow: auto; |
| 93 | + padding: 0.5em; |
| 94 | + resize: horizontal; |
| 95 | + width: 100%; |
97 | 96 | } |
98 | 97 |
|
99 | 98 | .bigframes-widget th .sort-indicator { |
100 | | - padding-left: 4px; |
101 | | - visibility: hidden; |
| 99 | + padding-left: 4px; |
| 100 | + visibility: hidden; |
102 | 101 | } |
103 | 102 |
|
104 | 103 | .bigframes-widget th:hover .sort-indicator { |
105 | | - visibility: visible; |
| 104 | + visibility: visible; |
106 | 105 | } |
107 | 106 |
|
108 | 107 | .bigframes-widget button { |
109 | | - cursor: pointer; |
110 | | - display: inline-block; |
111 | | - text-align: center; |
112 | | - text-decoration: none; |
113 | | - user-select: none; |
114 | | - vertical-align: middle; |
| 108 | + cursor: pointer; |
| 109 | + display: inline-block; |
| 110 | + text-align: center; |
| 111 | + text-decoration: none; |
| 112 | + user-select: none; |
| 113 | + vertical-align: middle; |
115 | 114 | } |
116 | 115 |
|
117 | 116 | .bigframes-widget button:disabled { |
118 | | - opacity: 0.65; |
119 | | - pointer-events: none; |
| 117 | + opacity: 0.65; |
| 118 | + pointer-events: none; |
120 | 119 | } |
121 | 120 |
|
122 | 121 | .bigframes-widget .bigframes-error-message { |
123 | | - background-color: #fbe; |
124 | | - border: 1px solid red; |
125 | | - border-radius: 4px; |
126 | | - font-family: |
127 | | - "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", sans-serif; |
128 | | - font-size: 14px; |
129 | | - margin-bottom: 8px; |
130 | | - padding: 8px; |
| 122 | + background-color: #fbe; |
| 123 | + border: 1px solid red; |
| 124 | + border-radius: 4px; |
| 125 | + font-family: |
| 126 | + "-apple-system", "BlinkMacSystemFont", "Segoe UI", "Roboto", sans-serif; |
| 127 | + font-size: 14px; |
| 128 | + margin-bottom: 8px; |
| 129 | + padding: 8px; |
131 | 130 | } |
132 | 131 |
|
133 | 132 | .bigframes-widget .cell-align-right { |
134 | | - text-align: right; |
| 133 | + text-align: right; |
135 | 134 | } |
136 | 135 |
|
137 | 136 | .bigframes-widget .cell-align-left { |
138 | | - text-align: left; |
| 137 | + text-align: left; |
139 | 138 | } |
140 | 139 |
|
141 | 140 | .bigframes-widget .null-value { |
142 | | - color: gray; |
| 141 | + color: gray; |
143 | 142 | } |
144 | 143 |
|
145 | 144 | .bigframes-widget td { |
146 | | - padding: 0.5em; |
| 145 | + padding: 0.5em; |
147 | 146 | } |
148 | 147 |
|
149 | 148 | .bigframes-widget tr:hover td, |
150 | 149 | .bigframes-widget td.row-hover { |
151 | | - background-color: var(--colab-hover-surface-color, var(--jp-layout-color2)); |
| 150 | + background-color: var( |
| 151 | + --colab-hover-surface-color, |
| 152 | + var(--jp-layout-color2, #f5f5f5) |
| 153 | + ); |
| 154 | +} |
| 155 | + |
| 156 | +@media (prefers-color-scheme: dark) { |
| 157 | + .bigframes-widget .footer, |
| 158 | + .bigframes-widget table { |
| 159 | + color: var(--colab-primary-text-color, var(--jp-ui-font-color0, white)); |
| 160 | + } |
| 161 | + |
| 162 | + .bigframes-widget th { |
| 163 | + background-color: var( |
| 164 | + --colab-primary-surface-color, |
| 165 | + var(--jp-layout-color0, #383838) |
| 166 | + ); |
| 167 | + } |
| 168 | + |
| 169 | + .bigframes-widget .bigframes-error-message { |
| 170 | + background-color: #511; |
| 171 | + border: 1px solid #f88; |
| 172 | + color: #fcc; |
| 173 | + } |
| 174 | + |
| 175 | + .bigframes-widget .null-value { |
| 176 | + color: #aaa; |
| 177 | + } |
| 178 | + |
| 179 | + .bigframes-widget tr:hover td, |
| 180 | + .bigframes-widget td.row-hover { |
| 181 | + background-color: var( |
| 182 | + --colab-hover-surface-color, |
| 183 | + var(--jp-layout-color2, #444) |
| 184 | + ); |
| 185 | + } |
152 | 186 | } |
0 commit comments