@happeouikit/content-renderer 3.2.12 → 3.2.13

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.cjs.js CHANGED
@@ -251,13 +251,11 @@
251
251
  width: 100%;
252
252
  margin: var(--space-md) 0;
253
253
  text-align: left;
254
- border-collapse: collapse; // doubles internal borders, but needed to allow more customization
255
- thead th {
256
- background: rgba(0, 0, 0, 0.1);
257
- }
258
- th,
259
- td {
260
- padding: 0.5em;
254
+ border-spacing: 0;
255
+ border-collapse: separate; // doubles internal borders, but needed to allow more customization
256
+ table-layout: fixed; // allows overflowing cells to have internal scroll bars
257
+ > tbody > tr > td {
258
+ padding: 0.25em 0.5em;
261
259
  border: 0.5px solid rgba(0, 0, 0, 0.12);
262
260
  &.fr-selected-cell {
263
261
  border: 0.5px solid var(--color-active-primary);
@@ -280,27 +278,22 @@
280
278
  text-decoration: line-through !important;
281
279
  }
282
280
  }
283
- &.cell-disable-break-word {
284
- // v2-widgets apply word-break: break-word, this allows users to override it
285
- word-break: normal;
286
- }
287
281
  }
288
282
  // to "cancel" the separate borders style, we halve all borders to 0.5px
289
283
  // but override with 1px for external borders
290
- & {
284
+ & > tbody > {
291
285
  tr:first-child > td { border-top-width: 1px; }
292
286
  tr:last-child > td { border-bottom-width: 1px; }
293
287
  tr > td:first-child { border-left-width: 1px; }
294
288
  tr > td:last-child { border-right-width: 1px; }
295
289
  }
296
- &.invisible-borders {
297
- th:not(.fr-selected-cell),
290
+ &.invisible-borders > tbody > tr > {
298
291
  td:not(.fr-selected-cell) {
299
292
  // keeping a transparent border so that selection doesn't push things by 1 pixel
300
293
  border: 1px dashed transparent;
301
294
  }
302
295
  }
303
- &.alternating-rows {
296
+ &.alternating-rows > tbody > {
304
297
  tr:nth-child(odd) {
305
298
  background: rgba(255, 255, 255, 0.05);
306
299
  }
@@ -308,7 +301,7 @@
308
301
  background: rgba(0, 0, 0, 0.05);
309
302
  }
310
303
  }
311
- &.round-corners {
304
+ &.round-corners > tbody > {
312
305
  tr:first-child { border-radius: 6px 6px 0 0; }
313
306
  tr:first-child > td:first-child { border-top-left-radius: 6px; }
314
307
  tr:first-child > td:last-child { border-top-right-radius: 6px; }
@@ -316,12 +309,12 @@
316
309
  tr:last-child > td:first-child { border-bottom-left-radius: 6px; }
317
310
  tr:last-child > td:last-child { border-bottom-right-radius: 6px; }
318
311
  }
319
- &.highlight-first-row {
312
+ &.highlight-first-row > tbody > {
320
313
  tr:first-child > td {
321
314
  font-weight: bold;
322
315
  }
323
316
  }
324
- &.highlight-first-column {
317
+ &.highlight-first-column > tbody > {
325
318
  tr > td:first-child {
326
319
  font-weight: bold;
327
320
  }