@omnigrid/style 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +100 -13
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -24,22 +24,41 @@
|
|
|
24
24
|
background: var(--omnigrid-cell-hover-background);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
.omnigrid-row:hover [role="cell"]
|
|
27
|
+
.omnigrid-row:hover [role="cell"],
|
|
28
|
+
.omnigrid-row-hover [role="cell"] {
|
|
28
29
|
background: var(--omnigrid-cell-hover-background) !important;
|
|
29
30
|
}
|
|
30
31
|
|
|
32
|
+
/* Selected rows: the SelectionPlugin only adds the class, the active theme
|
|
33
|
+
provides the concrete color via --omnigrid-cell-selected-background. */
|
|
34
|
+
.omnigrid-row-selected [role="cell"] {
|
|
35
|
+
background: var(--omnigrid-cell-selected-background);
|
|
36
|
+
}
|
|
37
|
+
|
|
31
38
|
.omnigrid-no-row-hover [role="cell"]:hover {
|
|
32
39
|
background: unset;
|
|
33
40
|
}
|
|
34
41
|
|
|
35
|
-
.omnigrid-no-row-hover .omnigrid-row:hover [role="cell"]
|
|
42
|
+
.omnigrid-no-row-hover .omnigrid-row:hover [role="cell"],
|
|
43
|
+
.omnigrid-no-row-hover .omnigrid-row-hover [role="cell"] {
|
|
36
44
|
background: unset !important;
|
|
37
45
|
}
|
|
38
46
|
|
|
47
|
+
.omnigrid-row-unselectable [role="cell"],
|
|
48
|
+
.omnigrid-row-unselectable:hover [role="cell"],
|
|
49
|
+
.omnigrid-row-unselectable.omnigrid-row-hover [role="cell"] {
|
|
50
|
+
background: var(--omnigrid-cell-unselectable-background) !important;
|
|
51
|
+
color: var(--omnigrid-cell-unselectable-color);
|
|
52
|
+
}
|
|
53
|
+
|
|
39
54
|
.omnigrid-row {
|
|
40
55
|
user-select: none;
|
|
41
56
|
}
|
|
42
57
|
|
|
58
|
+
.omnigrid-checkbox {
|
|
59
|
+
accent-color: var(--omnigrid-checkbox-accent);
|
|
60
|
+
}
|
|
61
|
+
|
|
43
62
|
/* Pinned panes are opaque so the scrollable columns underneath do not show through. */
|
|
44
63
|
.omnigrid-pinned-left,
|
|
45
64
|
.omnigrid-pinned-right {
|
|
@@ -117,25 +136,93 @@
|
|
|
117
136
|
align-items: center;
|
|
118
137
|
}
|
|
119
138
|
|
|
120
|
-
/*
|
|
121
|
-
.omnigrid-
|
|
139
|
+
/* Reusable controls for slot-based plugin widgets. */
|
|
140
|
+
.omnigrid-control-bar {
|
|
122
141
|
align-items: center;
|
|
123
142
|
display: flex;
|
|
124
|
-
gap:
|
|
143
|
+
gap: 24px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.omnigrid-control-group {
|
|
147
|
+
align-items: center;
|
|
148
|
+
display: inline-flex;
|
|
149
|
+
gap: 4px;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.omnigrid-popup-control {
|
|
153
|
+
position: relative;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.omnigrid-control-button,
|
|
157
|
+
.omnigrid-popup-option {
|
|
158
|
+
background: transparent;
|
|
159
|
+
border: 0;
|
|
160
|
+
color: inherit;
|
|
161
|
+
font: inherit;
|
|
162
|
+
cursor: pointer;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.omnigrid-control-button {
|
|
166
|
+
white-space: nowrap;
|
|
125
167
|
}
|
|
126
168
|
|
|
127
|
-
.omnigrid-
|
|
128
|
-
background: var(--omnigrid-
|
|
129
|
-
border: 1px solid var(--omnigrid-
|
|
169
|
+
.omnigrid-popup-menu {
|
|
170
|
+
background: var(--omnigrid-grid-background, #fff);
|
|
171
|
+
border: 1px solid var(--omnigrid-grid-border, #ccc);
|
|
130
172
|
border-radius: 4px;
|
|
131
|
-
|
|
173
|
+
bottom: calc(100% + 6px);
|
|
174
|
+
display: flex;
|
|
175
|
+
flex-direction: column;
|
|
176
|
+
left: 0;
|
|
177
|
+
min-width: 100%;
|
|
178
|
+
padding: 4px;
|
|
179
|
+
position: absolute;
|
|
180
|
+
z-index: 10;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.omnigrid-popup-option {
|
|
184
|
+
padding: 4px 8px;
|
|
185
|
+
text-align: left;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.omnigrid-popup-option:hover,
|
|
189
|
+
.omnigrid-popup-option[aria-selected="true"] {
|
|
190
|
+
background: var(--omnigrid-cell-hover-background, #eee);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.omnigrid-number-input {
|
|
194
|
+
background: var(--omnigrid-grid-background, #fff);
|
|
195
|
+
border: 1px solid var(--omnigrid-grid-border, #ccc);
|
|
196
|
+
border-radius: 3px;
|
|
197
|
+
color: var(--omnigrid-cell-color, currentColor);
|
|
198
|
+
font: inherit;
|
|
199
|
+
padding: 2px 4px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.omnigrid-icon {
|
|
203
|
+
display: block;
|
|
204
|
+
flex: 0 0 auto;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.omnigrid-icon-button {
|
|
208
|
+
align-items: center;
|
|
209
|
+
background: transparent;
|
|
210
|
+
border: 0;
|
|
211
|
+
border-radius: 3px;
|
|
212
|
+
color: inherit;
|
|
132
213
|
cursor: pointer;
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
214
|
+
display: inline-flex;
|
|
215
|
+
justify-content: center;
|
|
216
|
+
line-height: 1;
|
|
217
|
+
padding: 4px;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.omnigrid-icon-button:focus-visible {
|
|
221
|
+
outline: 2px solid currentColor;
|
|
222
|
+
outline-offset: 1px;
|
|
136
223
|
}
|
|
137
224
|
|
|
138
|
-
.omnigrid-
|
|
225
|
+
.omnigrid-icon-button:disabled {
|
|
139
226
|
cursor: default;
|
|
140
227
|
opacity: 0.5;
|
|
141
228
|
}
|