@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-alpha-prompt

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 (149) hide show
  1. package/dist/default/assets/icons/all/calendar.svg +1 -0
  2. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  3. package/dist/default/assets/icons/all/micro.svg +1 -0
  4. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  5. package/dist/default/trilogy-mangled.css +1 -1
  6. package/dist/default/trilogy-partials.css +1 -1
  7. package/dist/default/trilogy.css +1 -1
  8. package/framework/src/_all.scss +2 -2
  9. package/framework/src/base/_all.scss +1 -1
  10. package/framework/src/base/_color.scss +1 -52
  11. package/framework/src/base/_elements.scss +1 -1
  12. package/framework/src/base/_generic.scss +9 -1
  13. package/framework/src/base/_helpers.scss +34 -44
  14. package/framework/src/base/_loading.scss +9 -2
  15. package/framework/src/base/_reset.scss +11 -1
  16. package/framework/src/components/_accordion.scss +55 -89
  17. package/framework/src/components/_autocomplete.scss +38 -0
  18. package/framework/src/components/_autolayout.scss +332 -0
  19. package/framework/src/components/_badge.scss +87 -0
  20. package/framework/src/components/_box.scss +168 -0
  21. package/framework/src/components/_breadcrumb.scss +29 -38
  22. package/framework/src/components/_button.scss +79 -0
  23. package/framework/src/components/_calendar.scss +129 -0
  24. package/framework/src/components/_card.scss +33 -87
  25. package/framework/src/components/_checkbox.scss +71 -0
  26. package/framework/src/components/_chips.scss +84 -0
  27. package/framework/src/{elements → components}/_container.scss +7 -46
  28. package/framework/src/components/_countdown.scss +49 -47
  29. package/framework/src/components/_date-picker.scss +58 -0
  30. package/framework/src/components/_divider.scss +48 -14
  31. package/framework/src/components/_dropdown.scss +166 -99
  32. package/framework/src/components/_fab.scss +25 -38
  33. package/framework/src/components/_flex-box.scss +994 -0
  34. package/framework/src/{elements → components}/_icon.scss +4 -4
  35. package/framework/src/components/_image.scss +69 -0
  36. package/framework/src/components/_index.scss +51 -0
  37. package/framework/src/components/_link.scss +58 -0
  38. package/framework/src/components/_list.scss +66 -0
  39. package/framework/src/{elements → components}/_loader.scss +2 -2
  40. package/framework/src/components/_modal.scss +182 -158
  41. package/framework/src/components/_otp.scss +11 -30
  42. package/framework/src/components/_pagination.scss +60 -159
  43. package/framework/src/components/_popover.scss +260 -260
  44. package/framework/src/components/_price.scss +140 -165
  45. package/framework/src/components/_product-tour.scss +2 -4
  46. package/framework/src/components/_prompt.scss +125 -0
  47. package/framework/src/components/_radio.scss +82 -0
  48. package/framework/src/components/_range.scss +73 -72
  49. package/framework/src/components/_segmented-control.scss +55 -53
  50. package/framework/src/components/_select.scss +131 -0
  51. package/framework/src/components/_stepper.scss +42 -222
  52. package/framework/src/{elements → components}/_sticker.scss +25 -28
  53. package/framework/src/components/_switch.scss +97 -191
  54. package/framework/src/components/_table.scss +244 -0
  55. package/framework/src/components/_tabs.scss +114 -98
  56. package/framework/src/components/_tag.scss +114 -0
  57. package/framework/src/components/_text.scss +55 -0
  58. package/framework/src/components/_textarea.scss +46 -0
  59. package/framework/src/components/_timeline.scss +28 -113
  60. package/framework/src/components/_title.scss +151 -0
  61. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  62. package/framework/src/components/alert/_index.scss +2 -0
  63. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  64. package/framework/src/components/input/_entry.scss +135 -0
  65. package/framework/src/{elements → components/input}/_form.scss +42 -33
  66. package/framework/src/components/input/_index.scss +4 -0
  67. package/framework/src/components/input/_input-gauge.scss +44 -0
  68. package/framework/src/components/input/_input-icons.scss +55 -0
  69. package/framework/src/components/progress/_index.scss +2 -0
  70. package/framework/src/components/progress/_progress-radial.scss +28 -0
  71. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  72. package/framework/src/elements/_index.scss +5 -0
  73. package/framework/src/elements/_other.scss +0 -41
  74. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  75. package/framework/src/grid/_columns.scss +278 -763
  76. package/framework/src/grid/_rows.scss +45 -38
  77. package/framework/src/layout/_all.scss +0 -1
  78. package/framework/src/layout/_hero.scss +92 -214
  79. package/framework/src/layout/_section.scss +10 -29
  80. package/framework/src/theming/_all.scss +3 -0
  81. package/framework/src/theming/buttons_partial.scss +32 -0
  82. package/framework/src/theming/common_partials.scss +10 -0
  83. package/framework/src/theming/links_partial.scss +20 -0
  84. package/framework/src/trilogy-mangled.scss +3 -3
  85. package/framework/src/trilogy.scss +2 -2
  86. package/framework/src/utilities/_a11y.scss +13 -0
  87. package/framework/src/utilities/_all.scss +4 -0
  88. package/framework/src/utilities/_background.scss +21 -0
  89. package/framework/src/utilities/_controls.scss +38 -49
  90. package/framework/src/utilities/_derived-variables.scss +0 -103
  91. package/framework/src/utilities/_initial-variables.scss +4 -144
  92. package/framework/src/utilities/_pre.scss +4 -1
  93. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  94. package/framework/src/utilities/mixins/_delete.scss +86 -0
  95. package/framework/src/utilities/mixins/_index.scss +11 -0
  96. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  97. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  98. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  99. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  100. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  101. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  102. package/framework/src/utilities/mixins/_state.scss +25 -0
  103. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  104. package/framework/src/utilities/mixins/_utils.scss +24 -0
  105. package/framework/src/utilities/variables/_animation.scss +2 -0
  106. package/framework/src/utilities/variables/_color.scss +85 -0
  107. package/framework/src/utilities/variables/_font.scss +97 -0
  108. package/framework/src/utilities/variables/_index.scss +6 -0
  109. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  110. package/framework/src/utilities/variables/_shadow.scss +3 -0
  111. package/framework/src/utilities/variables/_zindex.scss +14 -0
  112. package/package.json +8 -3
  113. package/framework/src/components/_all.scss +0 -30
  114. package/framework/src/components/_autolayout2.scss +0 -38
  115. package/framework/src/components/_disclaimer.scss +0 -84
  116. package/framework/src/components/_level.scss +0 -120
  117. package/framework/src/components/_media.scss +0 -64
  118. package/framework/src/components/_menu.scss +0 -213
  119. package/framework/src/components/_progress-radial.scss +0 -23
  120. package/framework/src/components/_search-modal.scss +0 -197
  121. package/framework/src/components/_slices.scss +0 -316
  122. package/framework/src/components/_slider.scss +0 -92
  123. package/framework/src/elements/_all.scss +0 -35
  124. package/framework/src/elements/_badge.scss +0 -81
  125. package/framework/src/elements/_box.scss +0 -267
  126. package/framework/src/elements/_button.scss +0 -192
  127. package/framework/src/elements/_checkbox.scss +0 -39
  128. package/framework/src/elements/_checkradio.scss +0 -173
  129. package/framework/src/elements/_chips.scss +0 -100
  130. package/framework/src/elements/_dot.scss +0 -6
  131. package/framework/src/elements/_entry.scss +0 -109
  132. package/framework/src/elements/_image.scss +0 -59
  133. package/framework/src/elements/_input-gauge.scss +0 -37
  134. package/framework/src/elements/_input-icons.scss +0 -41
  135. package/framework/src/elements/_link.scss +0 -79
  136. package/framework/src/elements/_list.scss +0 -61
  137. package/framework/src/elements/_notification.scss +0 -151
  138. package/framework/src/elements/_options.scss +0 -146
  139. package/framework/src/elements/_paragraph.scss +0 -101
  140. package/framework/src/elements/_radio.scss +0 -67
  141. package/framework/src/elements/_select.scss +0 -315
  142. package/framework/src/elements/_switch.scss +0 -108
  143. package/framework/src/elements/_table.scss +0 -298
  144. package/framework/src/elements/_tag.scss +0 -131
  145. package/framework/src/elements/_textarea.scss +0 -125
  146. package/framework/src/elements/_timeline.scss +0 -283
  147. package/framework/src/elements/_title.scss +0 -139
  148. package/framework/src/layout/_toolbar.scss +0 -100
  149. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,315 +0,0 @@
1
- [data-blur-select] {
2
- position: absolute;
3
- z-index: zindex('large');
4
- min-width: 100%;
5
- min-height: 100%;
6
- left:0;
7
- top: 0;
8
- }
9
-
10
-
11
- @mixin arrow-style($isDisabled:false, $direction:"up") {
12
- $color: getColor('font');
13
- @if($isDisabled) { $color: getColor('grey') }
14
-
15
- @include arrow($color,$direction);
16
- right: 16px;
17
- margin-left: 16px;
18
- top: calc(50% - 7px);
19
- }
20
-
21
- .select {
22
- border: 1px solid getColor('grey');
23
- display: inline-block;
24
- max-width: 100%;
25
- position: relative;
26
- font-family: $body-family;
27
- border-radius: 4px;
28
- background-color: getColor('background');
29
- display: block;
30
- font-size: 1em;
31
- max-width: 100%;
32
- outline: none;
33
- cursor: pointer;
34
- height: 56px;
35
-
36
- select {
37
- height: 100%;
38
- border: 1px solid transparent;
39
- border-radius: 3px;
40
- max-width: 100%;
41
- width: 100%;
42
- font-size: 1em;
43
- font-family: $body-family;
44
- color: getColor('font');
45
- cursor: pointer;
46
- -webkit-appearance: none;
47
- -moz-appearance: none;
48
- appearance: none;
49
- z-index: 10;
50
- background-color: transparent;
51
- opacity: 100;
52
- outline: none;
53
- padding-left: $spacing-4;
54
- &::-ms-expand {
55
- display: none !important;
56
- }
57
- &:focus, &:hover {
58
- outline: 1px auto getColor('alternate');
59
- }
60
-
61
- }
62
-
63
- label {
64
- position: absolute;
65
- top: 50%;
66
- transform: translate(0, -50%);
67
- left: 16px !important;
68
- color: getColor('grey') !important
69
- }
70
-
71
- &.select-native {
72
- .icon {
73
- position: absolute;
74
- }
75
-
76
- &.has-icon {
77
- select {
78
- padding-left: 50px;
79
- &:not(.no-label) {
80
- padding-bottom: 5px;
81
- }
82
- }
83
- }
84
- }
85
-
86
- .has-dynamic-placeholder {
87
- label {
88
- top: 18px;
89
- color: getColor('grey') !important
90
- }
91
- }
92
-
93
-
94
- &-value {
95
- position: absolute ;
96
- left: 16px;
97
- top: 50%;
98
- transform: translateY(-20%);
99
-
100
- &.no-label {
101
- transform: translateY(-50%);
102
-
103
- }
104
- }
105
-
106
-
107
-
108
- &-disabled {
109
- background-color: getColor('grey-disabled');
110
- border: 1px solid getColor('grey-disabled');
111
- cursor:default ;
112
- label {
113
- color: #565656 !important;
114
- }
115
- .icon {
116
- color: #565656;
117
- }
118
- }
119
-
120
-
121
-
122
- .icon {
123
- height: 100%;
124
- width: 50px;
125
- }
126
-
127
- &.has-icon {
128
- label {
129
- left: 50px !important;
130
- }
131
- .select-value {
132
- left: 50px !important;
133
- }
134
- }
135
-
136
-
137
- &:not(.is-loading) {
138
- &:not(.select-disabled) {
139
- &::after {
140
- @include arrow-style(false,"down")
141
- }
142
- &:not(.select-native):hover, &:not(.select-native):focus {
143
- outline: 1px auto getColor('alternate');
144
- }
145
- }
146
- &.select-disabled {
147
- &::after {
148
- @include arrow-style(true,"down")
149
- }
150
- }
151
-
152
- }
153
-
154
- &.select-show-options:not(.is-loading) {
155
- outline: 1px auto getColor('alternate');
156
- &::after {
157
- @include arrow-style()
158
- }
159
- &:hover {
160
- &::after {
161
- border-color: getColor('font');
162
- }
163
- }
164
- }
165
-
166
- // Colors
167
- @each $name in $colors-brand {
168
- $brandName: getColorBrandName($name);
169
- $color: getColor($name);
170
-
171
- &.is-#{$brandName} {
172
- &:not(:hover) {
173
- outline: 1px auto $color;
174
- }
175
- &:hover,
176
- &.is-hovered {
177
- outline: 1px auto getVariantColor($name, 1);
178
- }
179
- }
180
- }
181
-
182
- // Sizes
183
- &.is-small {
184
- @include control-small;
185
- }
186
-
187
- &.is-large {
188
- @include control-large;
189
- }
190
-
191
-
192
- &.is-loading {
193
- &::after {
194
- @include spinner;
195
- margin-top: 0;
196
- position: absolute;
197
- right: 0.625em;
198
- top: 0.625em;
199
- transform: none;
200
- }
201
- &.is-small::after {
202
- font-size: $size-small;
203
- }
204
- &.is-large::after {
205
- font-size: $size-large;
206
- }
207
- }
208
- }
209
-
210
- .select-options {
211
- position: absolute;
212
- margin-top: 8px;
213
- display: flex;
214
- flex-direction: column;
215
- align-items: flex-start;
216
- background: getColor('background');
217
- box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
218
- border-radius: 4px;
219
- overflow: auto;
220
- width: 100%;
221
- max-height: 260px;
222
- z-index: zindex('large') ;
223
-
224
-
225
- &-option {
226
- display: flex;
227
- flex-direction: row;
228
- align-items: center;
229
- justify-content: space-between;
230
- padding: 14px $spacing-4;
231
- width: 100%;
232
- .has-icon {
233
- display: flex;
234
- align-items: center;
235
- .icon {
236
- margin-right: 16px;
237
- width: 20px;
238
- height: 20px;
239
- }
240
- }
241
- &-activated {
242
- color: getColor('alternate');
243
- font-weight: $weight-bold;
244
- &::after {
245
- content: "";
246
- mask-image: url('./assets/icons/all/check.svg');
247
- background-color: getColor('alternate');
248
- min-width: 15px;
249
- min-height: 15px;
250
- display:inline-block;
251
- margin-left: 16px;
252
- mask-size: 20px;
253
- }
254
- }
255
- &-disabled {
256
- background-color: getColor('grey-disabled');
257
- color: #565656
258
- }
259
- }
260
-
261
- .option-container, &-option {
262
- outline:none;
263
- &:focus {
264
- background-color: #E4EAED;
265
- }
266
-
267
- &:not([data-is-disabled='true']){
268
- cursor: pointer;
269
- }
270
- }
271
- }
272
-
273
- [data-is-open-options="false"] {
274
- display: none;
275
- }
276
-
277
- [data-is-open-options="true"] {
278
- display:block
279
- }
280
-
281
- //AutoComplete
282
- .is-autocomplete {
283
- .autocomplete-menu {
284
- display: none;
285
- }
286
-
287
- &.is-active {
288
- .autocomplete-menu {
289
- display: block;
290
- border: 1px solid rgba(0,38,60,.4);
291
- padding: 5px 10px;
292
- border-radius: 4px;
293
- max-height: 220px;
294
- overflow-y: auto;
295
- background-color: getColor('background');
296
- z-index: 10000;
297
- }
298
-
299
- .autocomplete-item {
300
- cursor: pointer;
301
- padding: 3.75px calc(15px - 10px);
302
-
303
- &.is-active, &[data-autocomplete-item-hover] {
304
- background-color: rgba(16,157,185,.08);
305
- border-top: 1px solid getColor('alternate');
306
- border-bottom: 1px solid getColor('alternate');
307
- margin-left: -10px;
308
- margin-right: -10px;
309
- padding: 2.75px 15px;
310
- }
311
- }
312
- }
313
- }
314
-
315
-
@@ -1,108 +0,0 @@
1
- .switch {
2
- position: relative;
3
- margin: 8px;
4
-
5
- input {
6
- display: none;
7
-
8
- &:disabled ~ label,
9
- &:disabled:checked ~ label {
10
- &:hover {
11
- cursor: no-drop;
12
- }
13
-
14
- &:before {
15
- background-color: getColor('grey-disabled');
16
- }
17
- }
18
-
19
- &:disabled ~ label {
20
- &:after {
21
- $colorSvg: encodecolor(getColorValue('grey-dark'));
22
- 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>');
23
- }
24
- }
25
-
26
- &:disabled:checked ~ label {
27
- &:after {
28
- $colorSvg: encodecolor(getColorValue('grey-dark'));
29
- 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>');
30
- }
31
- }
32
- }
33
-
34
- label {
35
- width: 100%;
36
- display: flex;
37
- align-items: center;
38
- cursor: pointer;
39
- padding: $spacing-1;
40
- padding-right: 60px;
41
-
42
- &:before {
43
- content: '';
44
- position: absolute;
45
- top: 50%;
46
- transform: translateY(-50%);
47
- right: 0;
48
- border-radius: 24px;
49
- width: 44px;
50
- height: 22px;
51
- background-color: getColorValue('grey');
52
- margin-left: 16px;
53
- }
54
-
55
- &:after {
56
- $colorSvg: encodecolor(getColorValue('grey'));
57
- 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>');
58
- position: absolute;
59
- top: 50%;
60
- transform: translateY(-50%);
61
- right: calc(44px - 18px - 2px);
62
- border-radius: 50%;
63
- width: 18px;
64
- height: 18px;
65
- background-color: getColorValue('background');
66
- transition: 0.3s;
67
- }
68
- }
69
-
70
- input:checked {
71
- & ~ label {
72
- font-weight: bold;
73
-
74
- &:before {
75
- background-color: getColorValue('alternate');
76
- }
77
-
78
- &:after {
79
- right: 2px;
80
- $colorSvg: encodecolor(getColorValue('alternate'));
81
- 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>');
82
- background-color: getColorValue('background');
83
- }
84
- }
85
- }
86
-
87
- &.is-reversed {
88
- label {
89
- flex-direction: row-reverse;
90
- padding-right: 0;
91
- padding-left: 60px;
92
-
93
- &:before {
94
- left: 0;
95
- margin-left: 0;
96
- margin-right: 16px;
97
- }
98
-
99
- &:after {
100
- left: 2px;
101
- }
102
- }
103
-
104
- input:checked ~ label:after {
105
- left: calc(44px - 18px - 2px);
106
- }
107
- }
108
- }
@@ -1,298 +0,0 @@
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('grey-dark');
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('grey-light');
25
- }
26
-
27
- td,
28
- th {
29
- border: 1px solid getColor('grey-light');
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
- a,
45
- strong {
46
- color: currentColor;
47
- }
48
- }
49
- }
50
-
51
- th {
52
- color: getColor('font');
53
- }
54
-
55
- tr {
56
- @each $name, $pair in $colors-feedback {
57
- $bg-color: nth($pair, 1);
58
- &.is-#{$name} {
59
- background-color:getColor($bg-color);
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: 1px solid getColor('grey-light');
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
- border-color: currentColor;
93
- color: currentColor;
94
- }
95
- }
96
-
97
- &.is-expanded,
98
- &.is-expandable:hover {
99
- td {
100
- color: getColor('alternate');
101
- cursor: pointer;
102
- }
103
- }
104
-
105
- &.is-expandable + .is-expansion {
106
- display: none;
107
- }
108
-
109
- &.is-expanded + .is-expansion {
110
- display: table-row;
111
- }
112
-
113
- &.is-expanded {
114
- > td {
115
- border-bottom: 0;
116
- }
117
-
118
- .toggle {
119
- transform: rotate(180deg);
120
- color: inherit;
121
- }
122
-
123
- + tr > td {
124
- border-top: 0;
125
- }
126
- }
127
- }
128
-
129
- thead {
130
- td,
131
- th {
132
- border-width: 0 0 1px;
133
- color: getColor('font');
134
- }
135
- }
136
-
137
- tfoot {
138
- td,
139
- th {
140
- border-width: 2px 0 0;
141
- color: getColor('font');
142
- }
143
- }
144
-
145
- tbody {
146
- tr {
147
- &:last-child {
148
- td,
149
- th {
150
- border-bottom-width: 0;
151
- }
152
- }
153
- }
154
- }
155
-
156
- &:not(.is-bordered).is-comparative {
157
- th {
158
- border-right: 1px solid getColor('grey-lighter');
159
- }
160
-
161
- td {
162
- &:not(:last-child) {
163
- border-right: 1px solid getColor('grey-light');
164
- }
165
- }
166
- }
167
-
168
- &.is-compact {
169
- td,
170
- th {
171
- padding: math.div(20px, 3) math.div(20px, 3);
172
- }
173
- }
174
-
175
- &.is-large {
176
- thead {
177
- height: 50px;
178
-
179
- th {
180
- color: getVariantColor('alternate',2);
181
- font-weight: 600;
182
- text-transform: uppercase;
183
- }
184
- }
185
-
186
- tbody {
187
- border-top: 1px solid #d8d8d8;
188
-
189
- tr {
190
- td {
191
- height: 40px;
192
- }
193
-
194
- &:not(.is-body-header) td {
195
- height: 96px;
196
- }
197
- }
198
- }
199
- }
200
-
201
- &.is-bordered {
202
- td,
203
- th {
204
- border-width: 1px;
205
- }
206
-
207
- tr {
208
- &:last-child {
209
- td,
210
- th {
211
- border-bottom-width: 1px;
212
- }
213
- }
214
- }
215
- }
216
-
217
- &.is-fullwidth {
218
- width: 100%;
219
- }
220
-
221
- &.is-hoverable {
222
- tbody {
223
- tr:not(.is-selected) {
224
- &:hover {
225
- background-color: getColor('grey-lighter');
226
- }
227
- }
228
- }
229
-
230
- &.is-striped {
231
- tbody {
232
- tr:not(.is-selected) {
233
- &:hover {
234
- background-color: getColor('grey-light');
235
- }
236
- }
237
- }
238
- }
239
- }
240
-
241
- &.is-narrow {
242
- td,
243
- th {
244
- padding: 0.25em 0.5em;
245
- }
246
- }
247
-
248
- &.is-striped {
249
- tbody {
250
- tr:not(.is-selected) {
251
- &:nth-child(even) {
252
- background-color: getColor('grey-lighter');
253
- }
254
- }
255
- }
256
- }
257
-
258
- .subtable {
259
- background-color: getColor('grey-lighter');
260
- border-radius: $radius;
261
- padding: $box-padding * 2;
262
-
263
- @include mobile() {
264
- padding: 15px;
265
- }
266
-
267
- .table {
268
- background: transparent;
269
-
270
- tr:not(:first-child) {
271
- td {
272
- border-top: 1px solid getColor('grey-dark');
273
- }
274
- }
275
-
276
- td {
277
- border: 0;
278
-
279
- &:first-child {
280
- padding-left: 0;
281
- }
282
-
283
- &:last-child {
284
- padding-right: 0;
285
- }
286
- }
287
- }
288
- }
289
- }
290
-
291
- .table-container {
292
- @include block;
293
- @include overflow-touch;
294
-
295
- overflow: auto;
296
- overflow-y: hidden;
297
- max-width: 100%;
298
- }