@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.es.js CHANGED
@@ -5359,13 +5359,11 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5359
5359
  width: 100%;
5360
5360
  margin: var(--space-md) 0;
5361
5361
  text-align: left;
5362
- border-collapse: collapse; // doubles internal borders, but needed to allow more customization
5363
- thead th {
5364
- background: rgba(0, 0, 0, 0.1);
5365
- }
5366
- th,
5367
- td {
5368
- padding: 0.5em;
5362
+ border-spacing: 0;
5363
+ border-collapse: separate; // doubles internal borders, but needed to allow more customization
5364
+ table-layout: fixed; // allows overflowing cells to have internal scroll bars
5365
+ > tbody > tr > td {
5366
+ padding: 0.25em 0.5em;
5369
5367
  border: 0.5px solid rgba(0, 0, 0, 0.12);
5370
5368
  &.fr-selected-cell {
5371
5369
  border: 0.5px solid var(--color-active-primary);
@@ -5388,27 +5386,22 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5388
5386
  text-decoration: line-through !important;
5389
5387
  }
5390
5388
  }
5391
- &.cell-disable-break-word {
5392
- // v2-widgets apply word-break: break-word, this allows users to override it
5393
- word-break: normal;
5394
- }
5395
5389
  }
5396
5390
  // to "cancel" the separate borders style, we halve all borders to 0.5px
5397
5391
  // but override with 1px for external borders
5398
- & {
5392
+ & > tbody > {
5399
5393
  tr:first-child > td { border-top-width: 1px; }
5400
5394
  tr:last-child > td { border-bottom-width: 1px; }
5401
5395
  tr > td:first-child { border-left-width: 1px; }
5402
5396
  tr > td:last-child { border-right-width: 1px; }
5403
5397
  }
5404
- &.invisible-borders {
5405
- th:not(.fr-selected-cell),
5398
+ &.invisible-borders > tbody > tr > {
5406
5399
  td:not(.fr-selected-cell) {
5407
5400
  // keeping a transparent border so that selection doesn't push things by 1 pixel
5408
5401
  border: 1px dashed transparent;
5409
5402
  }
5410
5403
  }
5411
- &.alternating-rows {
5404
+ &.alternating-rows > tbody > {
5412
5405
  tr:nth-child(odd) {
5413
5406
  background: rgba(255, 255, 255, 0.05);
5414
5407
  }
@@ -5416,7 +5409,7 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5416
5409
  background: rgba(0, 0, 0, 0.05);
5417
5410
  }
5418
5411
  }
5419
- &.round-corners {
5412
+ &.round-corners > tbody > {
5420
5413
  tr:first-child { border-radius: 6px 6px 0 0; }
5421
5414
  tr:first-child > td:first-child { border-top-left-radius: 6px; }
5422
5415
  tr:first-child > td:last-child { border-top-right-radius: 6px; }
@@ -5424,12 +5417,12 @@ const ni = ai(), ii = new RegExp(rt, "gi"), ui = new RegExp(
5424
5417
  tr:last-child > td:first-child { border-bottom-left-radius: 6px; }
5425
5418
  tr:last-child > td:last-child { border-bottom-right-radius: 6px; }
5426
5419
  }
5427
- &.highlight-first-row {
5420
+ &.highlight-first-row > tbody > {
5428
5421
  tr:first-child > td {
5429
5422
  font-weight: bold;
5430
5423
  }
5431
5424
  }
5432
- &.highlight-first-column {
5425
+ &.highlight-first-column > tbody > {
5433
5426
  tr > td:first-child {
5434
5427
  font-weight: bold;
5435
5428
  }