@trilogy-ds/styles 0.0.1-beta.9 → 0.0.1-calendar

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.
Files changed (143) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/_all.scss +2 -2
  5. package/framework/src/base/_all.scss +1 -1
  6. package/framework/src/base/_color.scss +1 -52
  7. package/framework/src/base/_elements.scss +1 -1
  8. package/framework/src/base/_generic.scss +9 -1
  9. package/framework/src/base/_helpers.scss +34 -44
  10. package/framework/src/base/_loading.scss +9 -2
  11. package/framework/src/base/_reset.scss +11 -1
  12. package/framework/src/components/_accordion.scss +55 -89
  13. package/framework/src/components/_autocomplete.scss +38 -0
  14. package/framework/src/components/_autolayout.scss +332 -0
  15. package/framework/src/components/_badge.scss +87 -0
  16. package/framework/src/components/_box.scss +168 -0
  17. package/framework/src/components/_breadcrumb.scss +29 -38
  18. package/framework/src/components/_button.scss +79 -0
  19. package/framework/src/components/_calendar.scss +125 -0
  20. package/framework/src/components/_card.scss +33 -87
  21. package/framework/src/components/_checkbox.scss +71 -0
  22. package/framework/src/components/_chips.scss +84 -0
  23. package/framework/src/{elements → components}/_container.scss +7 -39
  24. package/framework/src/components/_countdown.scss +49 -47
  25. package/framework/src/components/_divider.scss +25 -14
  26. package/framework/src/components/_fab.scss +25 -38
  27. package/framework/src/components/_flex-box.scss +457 -0
  28. package/framework/src/{elements → components}/_icon.scss +4 -4
  29. package/framework/src/components/_image.scss +69 -0
  30. package/framework/src/components/_index.scss +48 -0
  31. package/framework/src/components/_link.scss +58 -0
  32. package/framework/src/components/_list.scss +66 -0
  33. package/framework/src/{elements → components}/_loader.scss +2 -2
  34. package/framework/src/components/_modal.scss +182 -158
  35. package/framework/src/components/_otp.scss +11 -30
  36. package/framework/src/components/_pagination.scss +60 -159
  37. package/framework/src/components/_popover.scss +260 -260
  38. package/framework/src/components/_price.scss +140 -165
  39. package/framework/src/components/_product-tour.scss +2 -4
  40. package/framework/src/components/_radio.scss +82 -0
  41. package/framework/src/components/_range.scss +73 -72
  42. package/framework/src/components/_segmented-control.scss +55 -53
  43. package/framework/src/components/_select.scss +131 -0
  44. package/framework/src/components/_stepper.scss +42 -222
  45. package/framework/src/{elements → components}/_sticker.scss +25 -28
  46. package/framework/src/components/_switch.scss +97 -191
  47. package/framework/src/components/_table.scss +244 -0
  48. package/framework/src/components/_tabs.scss +101 -98
  49. package/framework/src/components/_tag.scss +114 -0
  50. package/framework/src/components/_text.scss +55 -0
  51. package/framework/src/components/_textarea.scss +46 -0
  52. package/framework/src/components/_timeline.scss +28 -113
  53. package/framework/src/components/_title.scss +151 -0
  54. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  55. package/framework/src/components/alert/_index.scss +2 -0
  56. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  57. package/framework/src/components/input/_entry.scss +135 -0
  58. package/framework/src/{elements → components/input}/_form.scss +42 -33
  59. package/framework/src/components/input/_index.scss +4 -0
  60. package/framework/src/components/input/_input-gauge.scss +44 -0
  61. package/framework/src/components/input/_input-icons.scss +55 -0
  62. package/framework/src/components/progress/_index.scss +2 -0
  63. package/framework/src/components/progress/_progress-radial.scss +28 -0
  64. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  65. package/framework/src/elements/_index.scss +5 -0
  66. package/framework/src/elements/_other.scss +0 -41
  67. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  68. package/framework/src/grid/_columns.scss +278 -763
  69. package/framework/src/grid/_rows.scss +45 -38
  70. package/framework/src/layout/_all.scss +0 -1
  71. package/framework/src/layout/_hero.scss +92 -214
  72. package/framework/src/layout/_section.scss +10 -29
  73. package/framework/src/theming/_all.scss +3 -0
  74. package/framework/src/theming/buttons_partial.scss +32 -0
  75. package/framework/src/theming/common_partials.scss +10 -0
  76. package/framework/src/theming/links_partial.scss +20 -0
  77. package/framework/src/trilogy-mangled.scss +3 -3
  78. package/framework/src/trilogy.scss +2 -2
  79. package/framework/src/utilities/_a11y.scss +13 -0
  80. package/framework/src/utilities/_all.scss +4 -0
  81. package/framework/src/utilities/_background.scss +21 -0
  82. package/framework/src/utilities/_controls.scss +38 -49
  83. package/framework/src/utilities/_derived-variables.scss +0 -103
  84. package/framework/src/utilities/_initial-variables.scss +4 -144
  85. package/framework/src/utilities/_pre.scss +4 -1
  86. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  87. package/framework/src/utilities/mixins/_delete.scss +86 -0
  88. package/framework/src/utilities/mixins/_index.scss +11 -0
  89. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  90. package/framework/src/utilities/mixins/_mixins.scss +293 -0
  91. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  92. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  93. package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
  94. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  95. package/framework/src/utilities/mixins/_state.scss +25 -0
  96. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  97. package/framework/src/utilities/mixins/_utils.scss +24 -0
  98. package/framework/src/utilities/variables/_animation.scss +2 -0
  99. package/framework/src/utilities/variables/_color.scss +85 -0
  100. package/framework/src/utilities/variables/_font.scss +97 -0
  101. package/framework/src/utilities/variables/_index.scss +6 -0
  102. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  103. package/framework/src/utilities/variables/_shadow.scss +3 -0
  104. package/framework/src/utilities/variables/_zindex.scss +14 -0
  105. package/package.json +3 -3
  106. package/framework/src/components/_all.scss +0 -30
  107. package/framework/src/components/_autolayout2.scss +0 -38
  108. package/framework/src/components/_disclaimer.scss +0 -84
  109. package/framework/src/components/_dropdown.scss +0 -128
  110. package/framework/src/components/_level.scss +0 -120
  111. package/framework/src/components/_media.scss +0 -64
  112. package/framework/src/components/_menu.scss +0 -213
  113. package/framework/src/components/_progress-radial.scss +0 -23
  114. package/framework/src/components/_search-modal.scss +0 -197
  115. package/framework/src/components/_slices.scss +0 -316
  116. package/framework/src/components/_slider.scss +0 -92
  117. package/framework/src/elements/_all.scss +0 -35
  118. package/framework/src/elements/_badge.scss +0 -81
  119. package/framework/src/elements/_box.scss +0 -267
  120. package/framework/src/elements/_button.scss +0 -192
  121. package/framework/src/elements/_checkbox.scss +0 -39
  122. package/framework/src/elements/_checkradio.scss +0 -173
  123. package/framework/src/elements/_chips.scss +0 -100
  124. package/framework/src/elements/_dot.scss +0 -6
  125. package/framework/src/elements/_entry.scss +0 -109
  126. package/framework/src/elements/_image.scss +0 -59
  127. package/framework/src/elements/_input-gauge.scss +0 -37
  128. package/framework/src/elements/_input-icons.scss +0 -41
  129. package/framework/src/elements/_link.scss +0 -79
  130. package/framework/src/elements/_list.scss +0 -61
  131. package/framework/src/elements/_notification.scss +0 -151
  132. package/framework/src/elements/_options.scss +0 -146
  133. package/framework/src/elements/_paragraph.scss +0 -101
  134. package/framework/src/elements/_radio.scss +0 -67
  135. package/framework/src/elements/_select.scss +0 -315
  136. package/framework/src/elements/_switch.scss +0 -108
  137. package/framework/src/elements/_table.scss +0 -298
  138. package/framework/src/elements/_tag.scss +0 -131
  139. package/framework/src/elements/_textarea.scss +0 -125
  140. package/framework/src/elements/_timeline.scss +0 -283
  141. package/framework/src/elements/_title.scss +0 -139
  142. package/framework/src/layout/_toolbar.scss +0 -100
  143. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,8 +1,7 @@
1
1
  $sticker-height: 35px;
2
- $sticker-radius: $radius-large;
3
2
 
4
3
  .sticker {
5
- border-radius: 24px;
4
+ border-radius: 9999px;
6
5
  font-size: 16px;
7
6
  flex-grow: 0;
8
7
  display: inline-flex;
@@ -10,64 +9,62 @@ $sticker-radius: $radius-large;
10
9
  color: getColor('background') !important;
11
10
  line-height: 20px;
12
11
  flex-shrink: 0;
13
- background-color: getColor('font');
12
+ background-color: getColor('main');
14
13
  font-weight: 600;
14
+ max-height: 36px;
15
+
16
+ .icon {
17
+ width: 1em;
18
+ margin-right: 5px;
19
+ }
20
+
21
+ &.is-small {
22
+ .icon {
23
+ margin-right: 3px;
24
+ }
25
+ }
15
26
 
16
27
  &:not(.is-hat) {
17
28
  width: fit-content;
18
29
 
19
- @include mobile{
20
- border-radius: 16px;
30
+ @include mobile {
21
31
  font-size: 12px;
22
32
  padding: $spacing-1 $spacing-2;
23
33
  height: auto;
24
34
  line-height: 15px;
25
35
 
26
- &.is-flag {
27
- border-radius: 0 $sticker-radius 0 0;
28
- }
29
-
30
36
  }
31
37
  }
32
38
 
33
-
34
- &.is-primary {
35
- background-color: getColor('main');
39
+ &.is-accent {
40
+ background-color: getColor('accent');
36
41
  color: getColor('background') !important;
37
42
  }
38
43
 
39
- &.is-flag {
40
- border-radius: 0 16px 0 0;
44
+ &.is-info {
45
+ background-color: getColor('info');
46
+ color: getColor('background') !important;
41
47
  }
42
48
 
43
- &.is-outlined,
44
49
  &.is-inverted {
45
50
  background-color: white !important;
46
51
  border-style: solid;
47
52
  border-width: 2px;
48
53
  border-color: currentColor;
49
- color: getColor('font') !important;
50
-
51
- &.is-primary {
52
- color: getColor('main') !important;
53
- }
54
+ color: currentColor;
54
55
  }
55
56
 
56
57
  &.is-small {
57
- border-radius: 16px;
58
58
  font-size: 12px;
59
59
  padding: $spacing-1 $spacing-2;
60
60
  height: auto;
61
61
  line-height: 15px;
62
62
 
63
- &.is-flag {
64
- border-radius: 0 $sticker-radius 0 0;
65
- }
66
63
  }
67
64
 
68
65
  // deprecated
69
66
  &.is-stretched {
70
- border-radius: $radius 0;
67
+ border-radius: var(--radius) 0;
71
68
  padding: 0 10px;
72
69
  position: relative;
73
70
  margin-right: 10px;
@@ -87,12 +84,12 @@ $sticker-radius: $radius-large;
87
84
  }
88
85
 
89
86
  &::before {
90
- border-radius: $radius 0 0 $radius;
87
+ border-radius: var(--radius) 0 0 var(--radius);
91
88
  left: -6px;
92
89
  }
93
90
 
94
91
  &::after {
95
- border-radius: 0 $radius $radius 0;
92
+ border-radius: 0 var(--radius) var(--radius) 0;
96
93
  right: -7px;
97
94
  }
98
95
  }
@@ -111,7 +108,7 @@ $sticker-radius: $radius-large;
111
108
  .has-hat-mobile {
112
109
  .is-hat {
113
110
  display: inline-block;
114
- border-radius: $radius $radius 0 0;
111
+ border-radius: var(--radius) var(--radius) 0 0;
115
112
  position: absolute;
116
113
  top: -$sticker-height;
117
114
  left: 0;
@@ -1,209 +1,115 @@
1
- $switch-margin: 10px !default;
2
- $switch-paddle-offset: 2px !default;
3
- $switch-height: 22px;
4
- $switch-width: $switch-height * 2;
5
- $paddle-height: $switch-height - $switch-paddle-offset * 2;
6
- $paddle-width: $paddle-height;
7
-
8
- .switch[type='checkbox'] {
9
- outline: 0;
10
- user-select: none;
11
- display: inline-block;
12
- position: absolute;
13
- opacity: 0;
1
+ .switch {
2
+ position: relative;
3
+ margin: 8px;
4
+ width: fit-content;
14
5
 
15
- &[disabled] {
16
- cursor: not-allowed;
6
+ &.is-fullwidth {
7
+ width: 100%;
8
+ }
17
9
 
18
- + label {
19
- opacity: 0.5;
20
-
21
- &::before,
22
- &::after {
23
- opacity: 0.5;
24
- }
10
+ input {
11
+ opacity: 0;
12
+ position: absolute;
13
+ outline: none;
25
14
 
26
- &:hover {
27
- cursor: not-allowed;
28
- }
29
- }
15
+ &:focus-visible ~ label:before{
16
+ outline: 2px solid;
30
17
  }
18
+ &:disabled ~ label,
19
+ &:disabled:checked ~ label {
20
+ cursor: not-allowed;
31
21
 
32
- + label {
33
- flex-direction: row-reverse;
34
- justify-content: space-between;
35
-
36
- &::before,
37
- &::after {
38
- content: '';
39
- border: none;
40
- }
41
-
42
- &::before {
43
- min-width: $switch-width;
44
- flex-basis: $switch-width;
45
- height: $switch-height;
46
- background: getColor('grey-disabled');
47
- border-radius: $radius * 4;
48
- margin-right: 0;
49
- margin-left: $switch-margin;
50
- }
51
-
52
- &::after {
53
- content: '\f103';
54
- margin-left: 0;
55
- margin-right: 0;
56
- display: inline-flex;
57
- align-items: center;
58
- justify-content: center;
59
- width: $paddle-width;
60
- height: $paddle-height;
61
- color: getColor('grey-disabled');
62
- left: auto;
63
- right: $switch-width - $paddle-width - $switch-paddle-offset;
64
- top: 50%;
65
- transform: translateY(-50%);
66
- background: getColor('background');
67
- transition: all 0.25s ease-out;
68
- border-radius: 100%;
69
- }
22
+ &:before {
23
+ background-color: getColor('disabled');
24
+ }
70
25
  }
71
26
 
72
- &:checked {
73
- + label {
74
- &::before {
75
- background: getColor('alternate');
76
- }
77
-
78
- &::after {
79
- right: $switch-paddle-offset;
80
- content: '\f102';
81
- color: getColor('alternate');
82
- }
83
- }
27
+ &:disabled ~ label {
28
+ &:after {
29
+ $colorSvg: encodecolor(getColor('disabled'));
30
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
31
+ }
84
32
  }
85
33
 
86
- &.is-success {
87
- &:checked {
88
- + label {
89
- &::before {
90
- background: getColor('success');
91
- }
92
-
93
- &::after {
94
- color: getColor('success');
95
- }
96
- }
97
- }
34
+ &:disabled:checked ~ label {
35
+ &:after {
36
+ $colorSvg: encodecolor(getColor('disabled'));
37
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
38
+ }
98
39
  }
99
-
100
- &.is-info {
101
- &:checked {
102
- + label {
103
- &::before {
104
- background: getColor('info');
105
- }
106
-
107
- &::after {
108
- color: getColor('info');
109
- }
110
- }
111
- }
40
+ }
41
+
42
+ label {
43
+ width: 100%;
44
+ display: flex;
45
+ align-items: center;
46
+ cursor: pointer;
47
+ padding: $spacing-1;
48
+ padding-right: 60px;
49
+
50
+ &:before {
51
+ content: '';
52
+ position: absolute;
53
+ top: 50%;
54
+ transform: translateY(-50%);
55
+ right: 0;
56
+ border-radius: 9999px;
57
+ width: 44px;
58
+ height: 22px;
59
+ background-color: getColor('neutral');
112
60
  }
113
61
 
114
- &.is-warning {
115
- &:checked {
116
- + label {
117
- &::before {
118
- background: getColor('warning');
119
- }
120
-
121
- &::after {
122
- color: getColor('warning');
123
- }
124
- }
125
- }
62
+ &:after {
63
+ $colorSvg: encodecolor(getColor('neutral'));
64
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
65
+ position: absolute;
66
+ top: 50%;
67
+ transform: translateY(-50%);
68
+ right: calc(44px - 18px - 2px);
69
+ border-radius: 9999px;
70
+ width: 18px;
71
+ height: 18px;
72
+ background-color: getColor('background');
73
+ transition: 0.3s;
126
74
  }
127
-
128
- &.is-error {
129
- &:checked {
130
- + label {
131
- &::before {
132
- background: getColor('error');
133
- }
134
-
135
- &::after {
136
- color: getColor('error');
137
- }
138
- }
139
- }
75
+ }
76
+
77
+ input:checked {
78
+ & ~ label {
79
+ font-weight: bold;
80
+
81
+ &:before {
82
+ background-color: getColor('main');
83
+ }
84
+
85
+ &:after {
86
+ right: 2px;
87
+ $colorSvg: encodecolor(getColor('main'));
88
+ content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
89
+ background-color: getColor('background');
90
+ }
140
91
  }
141
-
142
- &.has-slice {
143
- + label {
144
- justify-content: center;
145
- flex-direction: column;
146
- align-items: flex-start;
147
- padding-right: $switch-width + $switch-margin;
148
-
149
- &::before {
150
- position: absolute;
151
- right: 0;
152
- top: 50%;
153
- transform: translateY(-50%);
154
- margin-left: 0;
155
- }
156
-
157
- &::after {
158
- position: absolute;
159
- }
160
- }
92
+ }
93
+
94
+ &.is-reversed {
95
+ label {
96
+ flex-direction: row-reverse;
97
+ padding-right: 0;
98
+ padding-left: 60px;
99
+
100
+ &:before {
101
+ left: 0;
102
+ margin-left: 0;
103
+ margin-right: 16px;
104
+ }
105
+
106
+ &:after {
107
+ left: 2px;
108
+ }
161
109
  }
162
110
 
163
- &.is-inverted {
164
- + label::before {
165
- background: getColor('background');
166
- }
167
-
168
- + label::after {
169
- background: getColor('grey-disabled');
170
- }
171
-
172
- &:checked {
173
- + label {
174
- &::before {
175
- background: getColor('background');
176
- }
177
-
178
- &::after {
179
- background: getColor('alternate');
180
- color: getColor('background');
181
- }
182
- }
183
- }
184
-
185
- &.is-success {
186
- &:checked + label::after {
187
- background: getColor('success');
188
- }
189
- }
190
-
191
- &.is-info {
192
- &:checked + label::after {
193
- background: getColor('info');
194
- }
195
- }
196
-
197
- &.is-warning {
198
- &:checked + label::after {
199
- background: getColor('warning');
200
- }
201
- }
202
-
203
- &.is-error {
204
- &:checked + label::after {
205
- background: getColor('error');
206
- }
207
- }
111
+ input:checked ~ label:after {
112
+ left: calc(44px - 18px - 2px);
208
113
  }
114
+ }
209
115
  }
@@ -0,0 +1,244 @@
1
+ @use "sass:math";
2
+
3
+ /**
4
+ * @deprecated "Use box.is-paddingless instead"
5
+ */
6
+ .table-container.box {
7
+ padding: 0;
8
+ }
9
+
10
+ .table {
11
+ @include block;
12
+
13
+ background-color: transparent;
14
+ color: getColor('neutral');
15
+
16
+ &:not(:last-child) {
17
+ margin-bottom: 30px;
18
+ }
19
+
20
+ /**
21
+ * @deprecated "Use multiples <tr><th> instead"
22
+ */
23
+ tbody .is-body-header {
24
+ background-color: getColor('neutral-fade');
25
+ }
26
+
27
+ td,
28
+ th {
29
+ border: var(--border);
30
+ border-width: 0;
31
+ padding: 20px;
32
+ vertical-align: top;
33
+ text-align: left;
34
+
35
+ // Modifiers
36
+ &.is-narrow {
37
+ white-space: nowrap;
38
+ width: 1%;
39
+ }
40
+
41
+ &.is-selected {
42
+ background-color: getColor('main');
43
+ color: getColor('background');
44
+
45
+ a,
46
+ strong {
47
+ color: currentColor;
48
+ }
49
+ }
50
+ }
51
+
52
+ th {
53
+ color: getColor('font');
54
+ }
55
+
56
+ tr {
57
+ @each $name in $colors-feedback {
58
+ &.is-#{$name} {
59
+ background-color: fadeColor($name);
60
+ }
61
+ }
62
+
63
+ th {
64
+ background-color: getColor('background');
65
+ }
66
+
67
+ th,
68
+ td {
69
+ color: getColor('font');
70
+ vertical-align: middle;
71
+ }
72
+
73
+ td {
74
+ border-bottom: var(--border);
75
+
76
+ > p {
77
+ margin: 0;
78
+ }
79
+ }
80
+
81
+ &.is-selected {
82
+ background-color: getColor('main');
83
+ color: getColor('background');
84
+
85
+ a,
86
+ strong {
87
+ color: currentColor;
88
+ }
89
+
90
+ td,
91
+ th {
92
+ color: currentColor;
93
+ }
94
+ }
95
+
96
+ &.is-expanded,
97
+ &.is-expandable:hover {
98
+ td {
99
+ color: getColor('accent');
100
+ cursor: pointer;
101
+ }
102
+ }
103
+
104
+ &.is-expandable + .is-expansion {
105
+ display: none;
106
+ }
107
+
108
+ &.is-expanded + .is-expansion {
109
+ display: table-row;
110
+ }
111
+
112
+ &.is-expanded {
113
+ > td {
114
+ border-bottom: 0;
115
+ }
116
+
117
+ .toggle {
118
+ transform: rotate(180deg);
119
+ color: inherit;
120
+ }
121
+
122
+ + tr > td {
123
+ border-top: 0;
124
+ }
125
+ }
126
+ }
127
+
128
+ thead {
129
+ td,
130
+ th {
131
+ border-width: 0 0 1px;
132
+ color: getColor('font');
133
+ }
134
+ }
135
+
136
+ tfoot {
137
+ td,
138
+ th {
139
+ border-width: 2px 0 0;
140
+ color: getColor('font');
141
+ }
142
+ }
143
+
144
+ tbody {
145
+ tr {
146
+ &:last-child {
147
+ td,
148
+ th {
149
+ border-bottom-width: 0;
150
+ }
151
+ }
152
+ }
153
+ }
154
+
155
+ &.has-border-all {
156
+ border: var(--border);
157
+
158
+ th {
159
+ border-right: var(--border);
160
+ }
161
+
162
+ td {
163
+ &:not(:last-child) {
164
+ border-right: var(--border);
165
+ }
166
+ }
167
+ }
168
+
169
+ &.has-border-inner {
170
+ th {
171
+ &:not(:last-child) {
172
+ border-right: var(--border);
173
+ }
174
+ }
175
+
176
+ td {
177
+ &:not(:last-child) {
178
+ border-right: var(--border);
179
+ }
180
+ }
181
+ }
182
+
183
+ &.is-compact {
184
+ td,
185
+ th {
186
+ padding: math.div(20px, 3) math.div(20px, 3);
187
+ }
188
+ }
189
+
190
+ &.is-fullwidth {
191
+ width: 100%;
192
+ }
193
+
194
+ &.is-striped {
195
+ tbody {
196
+ tr:not(.is-selected) {
197
+ &:nth-child(even) {
198
+ background-color: getColor('neutral-fade');
199
+ }
200
+ }
201
+ }
202
+ }
203
+
204
+ .subtable {
205
+ background-color: getColor('neutral-fade');
206
+ border-radius: var(--radius);
207
+ padding: 25px;
208
+
209
+ @include mobile() {
210
+ padding: 15px;
211
+ }
212
+
213
+ .table {
214
+ background: transparent;
215
+
216
+ tr:not(:first-child) {
217
+ td {
218
+ border-top: var(--border);
219
+ }
220
+ }
221
+
222
+ td {
223
+ border: 0;
224
+
225
+ &:first-child {
226
+ padding-left: 0;
227
+ }
228
+
229
+ &:last-child {
230
+ padding-right: 0;
231
+ }
232
+ }
233
+ }
234
+ }
235
+ }
236
+
237
+ .table-container {
238
+ @include block;
239
+ @include overflow-touch;
240
+
241
+ overflow: auto;
242
+ overflow-y: hidden;
243
+ max-width: 100%;
244
+ }