2 @extend .border-collapse;
7 --table-border-color: var(--border-norm);
10 --table-border-color: var(--border-weak);
19 padding: var(--space-2);
20 border-block-end: 1px solid var(--table-border-color);
23 // NEW RESPONSIVE TABLES
25 @include media('<=medium') {
43 &--responsive-stacked {
44 @include media('<=medium') {
46 margin-block-end: var(--space-2);
47 border-block-end: 1px solid var(--table-border-color);
51 padding-block-end: var(--space-2);
57 @include media('<=medium') {
59 padding: var(--space-3);
60 border: 1px solid var(--table-border-color);
61 border-radius: var(--border-radius-lg);
64 margin-block-end: var(--space-3);
70 padding-block-end: var(--space-2);
76 &--responsive &__th-small {
79 @include media('<=medium') {
81 align-content: center;
82 font-weight: var(--font-weight-medium);
83 color: var(--text-weak);
103 // no style for this case
105 font-weight: var(--font-weight-normal);
108 /* alternate bg for rows */
109 &--alternate-bg-row tbody tr:nth-child(odd) {
110 background-color: var(--background-weak);
113 &--is-hoverable tbody tr {
114 @media (hover: hover) {
117 background-color: var(--interaction-default-hover);
126 inset-block-start: 0;
127 background: var(--background-norm);
133 inset-block-start: 100%;
137 background: linear-gradient(to bottom, rgb(0 0 0 / var(--shadow-norm-opacity)) 0%, transparent 100%);
138 pointer-events: none;
139 transition: opacity 0.125s ease-out;
144 tr#{&}-sticky-row#{&}-sticky-row--is-on-top {
158 border: 1px solid var(--table-border-color);
174 // TODO: refactor this
175 @include media('<=medium') {
176 &--responsive#{&}--has-actions {
187 .alternate-table-bg-row-rounded {
188 @extend .border-none;
191 border-spacing: 0; // no border-collapse for radius ^^
195 padding: var(--space-2);
198 /* alternate bg for rows */
199 tbody tr:nth-child(odd) {
202 background-color: var(--background-weak);
207 border-start-start-radius: var(--border-radius-lg);
208 border-end-start-radius: var(--border-radius-lg);
212 border-start-end-radius: var(--border-radius-lg);
213 border-end-end-radius: var(--border-radius-lg);