|
14 | 14 | }
|
15 | 15 | }
|
16 | 16 | }
|
| 17 | +// remove all outward facing borders from header |
| 18 | +.header-borderless > thead, |
| 19 | +.header-borderless > thead > tr, |
| 20 | +.header-borderless > thead > tr > th, |
| 21 | +.header-borderless > .pb_table_thead, |
| 22 | +.header-borderless > .pb_table_thead > .pb_table_tr, |
| 23 | +.header-borderless > .pb_table_thead .pb_table_th { |
| 24 | + border-top: none !important; |
| 25 | + border-left: none !important; |
| 26 | + border-right: none !important; |
| 27 | +} |
| 28 | + |
| 29 | +// remove bottom border (internal to table) on header cells - only light mode needs this redundancy handled likely due to a difference in the base scss and table-dark.scss |
| 30 | +.header-borderless:not(.table-dark) > thead > tr:last-child > th, |
| 31 | +.header-borderless:not(.table-dark) > .pb_table_thead > .pb_table_tr:last-child > .pb_table_th { |
| 32 | + border-bottom: none !important; |
| 33 | +} |
| 34 | + |
| 35 | +// preserves top rounded corners to header at top of table-card for unnested card |
| 36 | +.header-borderless > thead > tr:first-child > th:first-child, |
| 37 | +.header-borderless > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:first-child { |
| 38 | + border-top-left-radius: $border_radius_md !important; |
| 39 | +} |
| 40 | + |
| 41 | +.header-borderless > thead > tr:first-child > th:last-child, |
| 42 | +.header-borderless > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:last-child { |
| 43 | + border-top-right-radius: $border_radius_md !important; |
| 44 | +} |
| 45 | + |
| 46 | +// ensures top border is from first row of body to prevent double borders |
| 47 | +.header-borderless > tbody > tr:first-child > td, |
| 48 | +.header-borderless > .pb_table_tbody > .pb_table_tr:first-child > .pb_table_td { |
| 49 | + border-top: 1px solid $border_light !important; |
| 50 | +} |
| 51 | + |
| 52 | +// floating code - this carries over everything for header-borderless |
| 53 | +.header-floating > thead, |
| 54 | +.header-floating > thead > tr, |
| 55 | +.header-floating > thead > tr > th, |
| 56 | +.header-floating > .pb_table_thead, |
| 57 | +.header-floating > .pb_table_thead > .pb_table_tr, |
| 58 | +.header-floating > .pb_table_thead .pb_table_th { |
| 59 | + border-top: none !important; |
| 60 | + border-left: none !important; |
| 61 | + border-right: none !important; |
| 62 | +} |
| 63 | + |
| 64 | +.header-floating:not(.table-dark) > thead > tr:last-child > th, |
| 65 | +.header-floating:not(.table-dark) > .pb_table_thead > .pb_table_tr:last-child > .pb_table_th { |
| 66 | + border-bottom: none !important; |
| 67 | +} |
| 68 | + |
| 69 | +.header-floating > thead > tr:first-child > th:first-child, |
| 70 | +.header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:first-child { |
| 71 | + border-top-left-radius: $border_radius_md !important; |
| 72 | +} |
| 73 | + |
| 74 | +.header-floating > thead > tr:first-child > th:last-child, |
| 75 | +.header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:last-child { |
| 76 | + border-top-right-radius: $border_radius_md !important; |
| 77 | +} |
| 78 | + |
| 79 | +.header-floating > tbody > tr:first-child > td, |
| 80 | +.header-floating > .pb_table_tbody > .pb_table_tr:first-child > .pb_table_td { |
| 81 | + border-top: 1px solid $border_light !important; |
| 82 | +} |
| 83 | + |
| 84 | +// flatten out corners for floating headerstyle variant to avoid small triangle of white/empty space |
| 85 | +.header-floating > thead > tr:first-child > th:first-child, |
| 86 | +.header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:first-child { |
| 87 | + border-top-left-radius: 0 !important; |
| 88 | +} |
| 89 | +.header-floating > thead > tr:first-child > th:last-child, |
| 90 | +.header-floating > .pb_table_thead > .pb_table_tr:first-child > .pb_table_th:last-child { |
| 91 | + border-top-right-radius: 0 !important; |
| 92 | +} |
0 commit comments