@stackoverflow/stacks 0.76.0 → 1.0.1

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 (77) hide show
  1. package/LICENSE.MD +9 -9
  2. package/README.md +0 -0
  3. package/dist/controllers/index.d.ts +7 -7
  4. package/dist/controllers/s-expandable-control.d.ts +17 -17
  5. package/dist/controllers/s-modal.d.ts +97 -97
  6. package/dist/controllers/s-navigation-tablist.d.ts +36 -36
  7. package/dist/controllers/s-popover.d.ts +155 -155
  8. package/dist/controllers/s-table.d.ts +8 -8
  9. package/dist/controllers/s-tooltip.d.ts +82 -82
  10. package/dist/controllers/s-uploader.d.ts +48 -48
  11. package/dist/css/stacks.css +4354 -2560
  12. package/dist/css/stacks.min.css +1 -1
  13. package/dist/index.d.ts +3 -3
  14. package/dist/js/stacks.js +1978 -1978
  15. package/dist/js/stacks.min.js +1 -1
  16. package/dist/stacks.d.ts +21 -21
  17. package/lib/css/atomic/{_stacks-borders.less → borders.less} +30 -30
  18. package/lib/css/atomic/{_stacks-colors.less → colors.less} +0 -0
  19. package/lib/css/atomic/{_stacks-flex.less → flex.less} +14 -13
  20. package/lib/css/atomic/{_stacks-grid.less → grid.less} +11 -11
  21. package/lib/css/atomic/{_stacks-misc.less → misc.less} +22 -22
  22. package/lib/css/atomic/spacing.less +332 -0
  23. package/lib/css/atomic/{_stacks-typography.less → typography.less} +29 -29
  24. package/lib/css/atomic/width-height.less +194 -0
  25. package/lib/css/base/{_stacks-body.less → body.less} +2 -2
  26. package/lib/css/base/{_stacks-configuration-static.less → configuration-static.less} +3 -1
  27. package/lib/css/base/{_stacks-icons.less → icons.less} +0 -0
  28. package/lib/css/base/{_stacks-internals.less → internals.less} +0 -0
  29. package/lib/css/base/{_stacks-reset-meyer.less → reset-meyer.less} +0 -0
  30. package/lib/css/base/{_stacks-reset-normalize.less → reset-normalize.less} +0 -0
  31. package/lib/css/base/{_stacks-reset.less → reset.less} +2 -2
  32. package/lib/css/components/{_stacks-activity-indicator.less → activity-indicator.less} +9 -9
  33. package/lib/css/components/{_stacks-avatars.less → avatars.less} +40 -40
  34. package/lib/css/components/{_stacks-badges.less → badges.less} +11 -11
  35. package/lib/css/components/{_stacks-banners.less → banners.less} +5 -5
  36. package/lib/css/components/{_stacks-blank-states.less → blank-states.less} +2 -2
  37. package/lib/css/components/{_stacks-breadcrumbs.less → breadcrumbs.less} +7 -7
  38. package/lib/css/components/{_stacks-button-groups.less → button-groups.less} +2 -2
  39. package/lib/css/components/{_stacks-buttons.less → buttons.less} +46 -39
  40. package/lib/css/components/{_stacks-cards.less → cards.less} +2 -2
  41. package/lib/css/components/{_stacks-code-blocks.less → code-blocks.less} +8 -8
  42. package/lib/css/components/{_stacks-collapsible.less → collapsible.less} +0 -0
  43. package/lib/css/components/{_stacks-inputs.less → inputs.less} +41 -41
  44. package/lib/css/components/{_stacks-link-previews.less → link-previews.less} +17 -17
  45. package/lib/css/components/{_stacks-links.less → links.less} +4 -4
  46. package/lib/css/components/{_stacks-menu.less → menu.less} +5 -5
  47. package/lib/css/components/{_stacks-modals.less → modals.less} +20 -20
  48. package/lib/css/components/{_stacks-navigation.less → navigation.less} +12 -12
  49. package/lib/css/components/{_stacks-notices.less → notices.less} +12 -12
  50. package/lib/css/components/{_stacks-page-titles.less → page-titles.less} +9 -9
  51. package/lib/css/components/{_stacks-pagination.less → pagination.less} +8 -8
  52. package/lib/css/components/{_stacks-popovers.less → popovers.less} +17 -17
  53. package/lib/css/components/{_stacks-post-summary.less → post-summary.less} +35 -35
  54. package/lib/css/components/{_stacks-progress-bars.less → progress-bars.less} +29 -30
  55. package/lib/css/components/{_stacks-prose.less → prose.less} +31 -31
  56. package/lib/css/components/{_stacks-spinner.less → spinner.less} +14 -14
  57. package/lib/css/components/{_stacks-tables.less → tables.less} +10 -10
  58. package/lib/css/components/{_stacks-tags.less → tags.less} +24 -24
  59. package/lib/css/components/{_stacks-toggle-switches.less → toggle-switches.less} +5 -5
  60. package/lib/css/components/{_stacks-topbar.less → topbar.less} +22 -20
  61. package/lib/css/components/{_stacks-uploader.less → uploader.less} +18 -18
  62. package/lib/css/components/{_stacks-user-cards.less → user-cards.less} +14 -14
  63. package/lib/css/components/{_stacks-widget-dynamic.less → widget-dynamic.less} +1 -1
  64. package/lib/css/components/{_stacks-widget-static.less → widget-static.less} +39 -38
  65. package/lib/css/exports/{_stacks-constants-colors.less → constants-colors.less} +9 -29
  66. package/lib/css/exports/constants-helpers.less +108 -0
  67. package/lib/css/exports/constants-type.less +153 -0
  68. package/lib/css/exports/{_stacks-exports.less → exports.less} +4 -4
  69. package/lib/css/exports/{_stacks-mixins.less → mixins.less} +18 -1
  70. package/lib/css/stacks-dynamic.less +12 -12
  71. package/lib/css/stacks-static.less +38 -38
  72. package/lib/css/stacks.less +13 -13
  73. package/package.json +9 -9
  74. package/lib/css/atomic/_stacks-spacing.less +0 -168
  75. package/lib/css/atomic/_stacks-width-height.less +0 -195
  76. package/lib/css/exports/_stacks-constants-helpers.less +0 -139
  77. package/lib/css/exports/_stacks-constants-type.less +0 -152
@@ -11,7 +11,7 @@
11
11
  position: relative;
12
12
  display: flex;
13
13
  border-bottom: 1px solid var(--bc-light);
14
- padding: @su16;
14
+ padding: var(--su16);
15
15
 
16
16
  &:last-child {
17
17
  border-bottom-width: 0;
@@ -39,21 +39,21 @@
39
39
  padding-left: 0; // Since stats have padding, we don't need it on the parent
40
40
 
41
41
  #stacks-internals #screen-md({
42
- padding-left: @su16;
42
+ padding-left: var(--su16);
43
43
  });
44
44
 
45
45
  .s-post-summary--stats {
46
46
  width: auto;
47
47
  flex-direction: row;
48
48
  align-items: center;
49
- gap: @su2;
49
+ gap: var(--su2);
50
50
 
51
51
  .s-post-summary--stats-item {
52
- min-width: @su64;
53
- height: @su48;
52
+ min-width: var(--su64);
53
+ height: var(--su48);
54
54
  flex-direction: column;
55
55
  gap: 0;
56
- font-size: @fs-caption;
56
+ font-size: var(--fs-caption);
57
57
 
58
58
  &.s-post-summary--stats-item__emphasized {
59
59
  color: inherit;
@@ -65,7 +65,7 @@
65
65
 
66
66
  .s-post-summary--stats-item-number {
67
67
  font-weight: normal;
68
- font-size: @fs-body3;
68
+ font-size: var(--fs-body3);
69
69
  }
70
70
 
71
71
  &.is-deleted,
@@ -82,7 +82,7 @@
82
82
  #stacks-internals #screen-md({
83
83
  flex-direction: row;
84
84
  align-items: center;
85
- gap: @su8;
85
+ gap: var(--su8);
86
86
 
87
87
  .s-post-summary--stats-item {
88
88
  min-width: auto;
@@ -120,9 +120,9 @@
120
120
  // [1] To override .s-btn class attributes
121
121
  .s-post-summary--content-menu-button {
122
122
  position: absolute !important; // [1]
123
- top: @su8;
124
- right: @su8;
125
- padding: @su8 !important; // [1]
123
+ top: var(--su8);
124
+ right: var(--su8);
125
+ padding: var(--su8) !important; // [1]
126
126
 
127
127
  .svg-icon {
128
128
  margin: 0 !important;
@@ -130,16 +130,16 @@
130
130
  }
131
131
 
132
132
  .s-post-summary--stats {
133
- gap: @su6;
134
- margin-right: @su16;
135
- margin-bottom: @su4;
136
- width: @su96 + @su12;
133
+ gap: var(--su6);
134
+ margin-right: var(--su16);
135
+ margin-bottom: var(--su4);
136
+ width: calc(var(--su96) + var(--su12));
137
137
  display: flex;
138
138
  flex-direction: column;
139
139
  flex-shrink: 0;
140
140
  flex-wrap: wrap;
141
141
  align-items: flex-end;
142
- font-size: @fs-body1;
142
+ font-size: var(--fs-body1);
143
143
  color: var(--fc-light);
144
144
 
145
145
  .s-post-summary--stats-item {
@@ -167,8 +167,8 @@
167
167
  &.is-closed,
168
168
  &.is-archived,
169
169
  &.is-pinned {
170
- border-radius: @br-sm;
171
- padding: @su2 @su4;
170
+ border-radius: var(--br-sm);
171
+ padding: var(--su2) var(--su4);
172
172
  }
173
173
 
174
174
  &.has-answers {
@@ -251,11 +251,11 @@
251
251
 
252
252
  .s-post-summary--content-title {
253
253
  display: block;
254
- font-size: @fs-body3;
254
+ font-size: var(--fs-body3);
255
255
  margin-top: -0.15rem; // Optical alignment to compensate for title's containing block
256
256
  margin-bottom: 0.3846rem;
257
- padding-right: @su24;
258
- line-height: @lh-md;
257
+ padding-right: var(--su24);
258
+ line-height: var(--lh-md);
259
259
  font-weight: normal;
260
260
  .break-word;
261
261
 
@@ -288,17 +288,17 @@
288
288
 
289
289
  .s-post-summary--content-type {
290
290
  color: var(--fc-medium);
291
- margin-bottom: @su4;
291
+ margin-bottom: var(--su4);
292
292
 
293
293
  .svg-icon {
294
- margin-left: -@su2;
294
+ margin-left: calc(var(--su2) * -1);
295
295
  color: var(--fc-light);
296
296
  }
297
297
  }
298
298
 
299
299
  .s-post-summary--content-excerpt {
300
- margin-top: -@su2;
301
- margin-bottom: @su8;
300
+ margin-top: calc(var(--su2) * -1);
301
+ margin-bottom: var(--su8);
302
302
  font-family: var(--theme-post-body-font-family);
303
303
  color: var(--fc-medium);
304
304
  .v-truncate2;
@@ -323,13 +323,13 @@
323
323
  align-items: center;
324
324
  justify-content: space-between;
325
325
  flex-wrap: wrap;
326
- column-gap: @su6;
327
- row-gap: @su8;
326
+ column-gap: var(--su6);
327
+ row-gap: var(--su8);
328
328
 
329
329
  .s-post-summary--meta-tags {
330
330
  display: flex;
331
331
  flex-wrap: wrap;
332
- gap: @su4;
332
+ gap: var(--su4);
333
333
  }
334
334
 
335
335
  .s-user-card {
@@ -341,11 +341,11 @@
341
341
 
342
342
  .s-post-summary--answer {
343
343
  position: relative;
344
- margin: @su16 1em 0 1em;
345
- padding: 0.5em 0 0.5em calc(1em + @su4);
344
+ margin: var(--su16) 1em 0 1em;
345
+ padding: 0.5em 0 0.5em calc(1em + var(--su4));
346
346
 
347
347
  + .s-post-summary--answer {
348
- margin-top: @su16;
348
+ margin-top: var(--su16);
349
349
  }
350
350
 
351
351
  &:before {
@@ -355,8 +355,8 @@
355
355
  top: 0;
356
356
  bottom: 0;
357
357
  left: 0;
358
- width: @su4;
359
- border-radius: @su8;
358
+ width: var(--su4);
359
+ border-radius: var(--su8);
360
360
  background: var(--black-150);
361
361
 
362
362
  .highcontrast-mode({
@@ -368,12 +368,12 @@
368
368
  width: auto;
369
369
  flex-direction: row;
370
370
  align-items: center;
371
- margin-bottom: @su4;
371
+ margin-bottom: var(--su4);
372
372
  }
373
373
 
374
374
  .s-post-summary--answer-excerpt {
375
375
  color: var(--black-600);
376
- margin-bottom: @su8;
376
+ margin-bottom: var(--su8);
377
377
  .v-truncate4;
378
378
  }
379
379
  }
@@ -18,9 +18,9 @@
18
18
  .s-progress,
19
19
  .s-progress--bar {
20
20
  position: relative;
21
- min-height: @su4;
22
- min-width: @su6;
23
- border-radius: @br-sm;
21
+ min-height: var(--su-static4);
22
+ min-width: var(--su-static6);
23
+ border-radius: var(--br-sm);
24
24
  }
25
25
 
26
26
  // $$ PROGRESS WRAPPER
@@ -44,12 +44,12 @@
44
44
  position: absolute;
45
45
  width: 100%;
46
46
  height: 100%;
47
- border-radius: @br-md;
47
+ border-radius: var(--br-md);
48
48
  border: 1px solid transparent;
49
- font-size: @fs-caption;
50
- line-height: @lh-xs;
49
+ font-size: var(--fs-caption);
50
+ line-height: var(--lh-xs);
51
51
  color: var(--fc-dark);
52
- z-index: @zi-base + 2;
52
+ z-index: calc(var(--zi-base) + 2);
53
53
  }
54
54
 
55
55
  // ===========================================================================
@@ -74,7 +74,7 @@
74
74
  .s-progress--label {
75
75
  border-color: var(--green-400);
76
76
  display: flex;
77
- gap: @su4;
77
+ gap: var(--su4);
78
78
  align-items: center;
79
79
  justify-content: center;
80
80
  }
@@ -88,7 +88,7 @@
88
88
  .s-progress__badge,
89
89
  .s-progress__badge .s-progress--bar {
90
90
  min-height: 2em;
91
- border-radius: @br-md;
91
+ border-radius: var(--br-md);
92
92
  }
93
93
 
94
94
  .s-progress__privilege,
@@ -99,7 +99,7 @@
99
99
  .s-progress__badge {
100
100
  .s-progress--label {
101
101
  display: flex;
102
- gap: @su4;
102
+ gap: var(--su4);
103
103
  align-items: center;
104
104
  padding-left: 1em;
105
105
  padding-right: 1em;
@@ -204,13 +204,13 @@
204
204
  display: block;
205
205
  width: auto;
206
206
  height: auto;
207
- font-size: @fs-body1;
207
+ font-size: var(--fs-body1);
208
208
  border: 0;
209
209
  border-radius: 0;
210
- padding: @su12 @su6 0 @su6;
210
+ padding: var(--su12) var(--su6) 0 var(--su6);
211
211
  text-align: center;
212
212
  color: var(--black-300);
213
- z-index: @zi-base;
213
+ z-index: var(--zi-base);
214
214
  }
215
215
 
216
216
  .s-progress--stop {
@@ -220,9 +220,9 @@
220
220
  justify-content: center;
221
221
  background: var(--black-300);
222
222
  border-radius: 100%;
223
- width: @su24;
224
- height: @su24;
225
- z-index: @zi-selected;
223
+ width: var(--su-static24);
224
+ height: var(--su-static24);
225
+ z-index: var(--zi-selected);
226
226
  color: @white;
227
227
 
228
228
  .highcontrast-mode({
@@ -232,10 +232,10 @@
232
232
 
233
233
  .s-progress--bar {
234
234
  position: absolute;
235
- top: 9px;
236
- height: @su6;
235
+ top: calc(var(--su-static8) + var(--su-static1));
236
+ height: var(--su-static6);
237
237
  background: var(--black-300);
238
- z-index: @zi-base;
238
+ z-index: var(--zi-base);
239
239
  border-radius: 0;
240
240
 
241
241
  &.s-progress--bar__left {
@@ -256,7 +256,7 @@
256
256
 
257
257
  .s-progress--stop {
258
258
  background: var(--theme-secondary-400);
259
- box-shadow: 0 0 0 @su6 var(--focus-ring);
259
+ box-shadow: 0 0 0 var(--su-static6) var(--focus-ring);
260
260
  }
261
261
 
262
262
  .s-progress--label {
@@ -282,18 +282,17 @@
282
282
  .s-progress__circular {
283
283
  --s-progress-value: 0;
284
284
  @s-progress-circle-circumference: (2 * pi() * 14); // 2πr, r = 14.
285
- @s-progress-stroke-width: 4;
286
285
 
287
286
  background: none;
288
- width: @su32;
289
- height: @su32;
287
+ width: var(--su-static32);
288
+ height: var(--su-static32);
290
289
 
291
290
  .s-progress-bar {
292
291
  // Make everything originate from the top of the circle
293
292
  transform: rotate(270deg);
294
293
 
295
294
  circle {
296
- stroke-width: @s-progress-stroke-width;
295
+ stroke-width: var(--su-static4);
297
296
  fill: none;
298
297
  stroke-linecap: round;
299
298
  }
@@ -315,17 +314,17 @@
315
314
  }
316
315
 
317
316
  &.s-progress__sm {
318
- width: 24px;
319
- height: 24px;
317
+ width: var(--su-static24);
318
+ height: var(--su-static24);
320
319
  }
321
320
 
322
321
  &.s-progress__md {
323
- width: 48px;
324
- height: 48px;
322
+ width: var(--su-static48);
323
+ height: var(--su-static48);
325
324
  }
326
325
 
327
326
  &.s-progress__lg {
328
- width: 64px;
329
- height: 64px;
327
+ width: var(--su-static64);
328
+ height: var(--su-static64);
330
329
  }
331
330
  }
@@ -29,7 +29,7 @@
29
29
  }
30
30
 
31
31
  code {
32
- font-size: @fs-body1;
32
+ font-size: var(--fs-body1);
33
33
  font-family: var(--ff-mono);
34
34
  }
35
35
 
@@ -102,31 +102,31 @@
102
102
  }
103
103
 
104
104
  h1 {
105
- font-size: @fs-headline1;
105
+ font-size: var(--fs-headline1);
106
106
  margin-bottom: 0.6em;
107
107
  }
108
108
 
109
109
  h2 {
110
- font-size: @fs-title;
110
+ font-size: var(--fs-title);
111
111
  margin-bottom: 0.7em;
112
112
  }
113
113
 
114
114
  h3 {
115
- font-size: @fs-subheading;
115
+ font-size: var(--fs-subheading);
116
116
  margin-bottom: 0.74em;
117
117
  }
118
118
 
119
119
  h4 {
120
- font-size: @fs-body3;
120
+ font-size: var(--fs-body3);
121
121
  margin-bottom: 1em;
122
122
  }
123
123
 
124
124
  h5 {
125
- font-size: @fs-body2;
125
+ font-size: var(--fs-body2);
126
126
  }
127
127
 
128
128
  h6 {
129
- font-size: @fs-body1;
129
+ font-size: var(--fs-body1);
130
130
  }
131
131
 
132
132
  img,
@@ -322,8 +322,8 @@
322
322
  top: 0;
323
323
  bottom: 0;
324
324
  left: 0;
325
- width: @su4;
326
- border-radius: @su8;
325
+ width: var(--su4);
326
+ border-radius: var(--su-static8);
327
327
  background: var(--black-150);
328
328
 
329
329
  .highcontrast-mode({
@@ -352,10 +352,10 @@
352
352
  // ----------------------------------------------------------------------------
353
353
  .spoiler {
354
354
  background: var(--black-050);
355
- border-radius: @br-md;
355
+ border-radius: var(--br-md);
356
356
  color: var(--black-800);
357
357
  cursor: pointer;
358
- min-height: @su48; // TODO: Let's find a solution that doesn't have a magic number
358
+ min-height: var(--su-static48); // TODO: Let's find a solution that doesn't have a magic number
359
359
 
360
360
  > * {
361
361
  visibility: hidden; // hidden elements don't respond to mouse events, but still retain their space
@@ -381,7 +381,7 @@
381
381
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' fill='rgb(132, 141, 149)' width='18' height='18' viewBox='0 0 18 18'%3E%3Cpath d='M9 17A8 8 0 119 1a8 8 0 010 16zM8 4v6h2V4H8zm0 8v2h2v-2H8z'%3E%3C/path%3E%3C/svg%3E");
382
382
  background-repeat: no-repeat;
383
383
  background-position: center right;
384
- font-size: @fs-body1;
384
+ font-size: var(--fs-body1);
385
385
  color: var(--black-500);
386
386
  padding-right: 22px;
387
387
  position: absolute;
@@ -404,13 +404,13 @@
404
404
  margin: 0 0.1em;
405
405
  padding: 0.1em 0.6em;
406
406
  font-family: var(--ff-sans);
407
- font-size: @fs-fine;
407
+ font-size: var(--fs-fine);
408
408
  line-height: var(--s-prose-line-height);
409
409
  color: var(--black-800);
410
410
  text-shadow: 0 1px 0 var(--white);
411
411
  background-color: var(--black-075);
412
412
  border: 1px solid var(--black-300);
413
- border-radius: @br-sm;
413
+ border-radius: var(--br-sm);
414
414
  box-shadow: 0 1px 1px hsla(210, 8%, 5%, 0.15), inset 0 1px 0 0 @white;
415
415
  overflow-wrap: break-word;
416
416
 
@@ -425,10 +425,10 @@
425
425
  // $ CODE STYLES
426
426
  // ----------------------------------------------------------------------------
427
427
  *:not(.s-code-block) > code {
428
- padding: @su2 @su4;
428
+ padding: var(--su2) var(--su4);
429
429
  color: var(--black-800);
430
430
  background-color: var(--black-075);
431
- border-radius: @br-sm;
431
+ border-radius: var(--br-sm);
432
432
  }
433
433
 
434
434
  // When contained within a link, we want the code to be link-colored
@@ -442,15 +442,15 @@
442
442
  }
443
443
 
444
444
  pre:not(.s-code-block) {
445
- padding: @su12;
445
+ padding: var(--su12);
446
446
  color: var(--highlight-color);
447
447
  width: auto;
448
448
  max-height: 600px;
449
449
  overflow: auto;
450
- font-size: @fs-body1;
451
- line-height: @lh-md;
450
+ font-size: var(--fs-body1);
451
+ line-height: var(--lh-md);
452
452
  background-color: var(--highlight-bg);
453
- border-radius: @br-md;
453
+ border-radius: var(--br-md);
454
454
 
455
455
  // Reset the code element when contained within a <pre>
456
456
  code {
@@ -463,41 +463,41 @@
463
463
  }
464
464
 
465
465
  &.s-prose__xs {
466
- font-size: @fs-caption;
467
- line-height: @lh-sm;
466
+ font-size: var(--fs-caption);
467
+ line-height: var(--lh-sm);
468
468
  }
469
469
 
470
470
  &.s-prose__sm {
471
- font-size: @fs-body1;
472
- line-height: @lh-md;
471
+ font-size: var(--fs-body1);
472
+ line-height: var(--lh-md);
473
473
  }
474
474
 
475
475
  &.s-prose__md {
476
- font-size: @fs-body3;
477
- line-height: @lh-xl;
476
+ font-size: var(--fs-body3);
477
+ line-height: var(--lh-xl);
478
478
  }
479
479
 
480
480
  &.s-prose__xs,
481
481
  &.s-prose__sm,
482
482
  &.s-prose__md {
483
483
  h1 {
484
- font-size: @fs-headline1-relative;
484
+ font-size: var(--fs-headline1-relative);
485
485
  }
486
486
 
487
487
  h2 {
488
- font-size: @fs-title-relative;
488
+ font-size: var(--fs-title-relative);
489
489
  }
490
490
 
491
491
  h3 {
492
- font-size: @fs-subheading-relative;
492
+ font-size: var(--fs-subheading-relative);
493
493
  }
494
494
 
495
495
  h4 {
496
- font-size: @fs-body3-relative;
496
+ font-size: var(--fs-body3-relative);
497
497
  }
498
498
 
499
499
  h5 {
500
- font-size: @fs-body2-relative;
500
+ font-size: var(--fs-body2-relative);
501
501
  }
502
502
  }
503
503
  }
@@ -15,8 +15,8 @@
15
15
 
16
16
  .s-spinner {
17
17
  position: relative;
18
- width: @su24;
19
- height: @su24;
18
+ width: var(--su-static24);
19
+ height: var(--su-static24);
20
20
  text-align: left; // When within a parent that has text-align: center, the spinner's entire container spins, not just the spinner. Let's force text-align left so things spin internally.
21
21
 
22
22
  &:before,
@@ -26,7 +26,7 @@
26
26
  width: 100%;
27
27
  height: 100%;
28
28
  border: 3px solid currentColor;
29
- border-radius: @br-circle;
29
+ border-radius: var(--br-circle);
30
30
  }
31
31
  &:before {
32
32
  opacity: 0.25;
@@ -40,8 +40,8 @@
40
40
  }
41
41
 
42
42
  &.s-spinner__xs {
43
- width: @su12;
44
- height: @su12;
43
+ width: var(--su-static12);
44
+ height: var(--su-static12);
45
45
  &:before,
46
46
  &:after {
47
47
  border-width: 1px;
@@ -49,29 +49,29 @@
49
49
  }
50
50
 
51
51
  &.s-spinner__sm {
52
- width: @su16;
53
- height: @su16;
52
+ width: var(--su-static16);
53
+ height: var(--su-static16);
54
54
  &:before,
55
55
  &:after {
56
- border-width: @su2;
56
+ border-width: var(--su-static2);
57
57
  }
58
58
  }
59
59
 
60
60
  &.s-spinner__md {
61
- width: @su32;
62
- height: @su32;
61
+ width: var(--su-static32);
62
+ height: var(--su-static32);
63
63
  &:before,
64
64
  &:after {
65
- border-width: @su4;
65
+ border-width: var(--su-static4);
66
66
  }
67
67
  }
68
68
 
69
69
  &.s-spinner__lg {
70
- width: @su48;
71
- height: @su48;
70
+ width: var(--su-static48);
71
+ height: var(--su-static48);
72
72
  &:before,
73
73
  &:after {
74
- border-width: @su6;
74
+ border-width: var(--su-static6);
75
75
  }
76
76
  }
77
77
 
@@ -40,11 +40,11 @@
40
40
  max-width: 100%;
41
41
  border-collapse: collapse;
42
42
  border-spacing: 0;
43
- font-size: @fs-body1;
43
+ font-size: var(--fs-body1);
44
44
 
45
45
  th,
46
46
  td {
47
- padding: @su8;
47
+ padding: var(--su8);
48
48
  border-top: 1px solid var(--bc-medium);
49
49
  border-left: 1px solid var(--bc-medium);
50
50
  border-right: 1px solid var(--bc-medium);
@@ -53,7 +53,7 @@
53
53
  text-align: left;
54
54
 
55
55
  &.s-table--bulk {
56
- width: @su32 - @su2;
56
+ width: calc(var(--su32) - var(--su2));
57
57
  }
58
58
 
59
59
  .s-checkbox {
@@ -71,7 +71,7 @@
71
71
  vertical-align: bottom;
72
72
  white-space: nowrap;
73
73
  background-color: var(--black-025);
74
- line-height: @lh-sm;
74
+ line-height: var(--lh-sm);
75
75
  }
76
76
 
77
77
  // When in a table body, don't make it bold.
@@ -87,7 +87,7 @@
87
87
 
88
88
  // If two table bodies are next to each other, visually separate them
89
89
  tbody + tbody {
90
- border-top: @su2 solid var(--bc-medium);
90
+ border-top: var(--su-static2) solid var(--bc-medium);
91
91
  }
92
92
  }
93
93
 
@@ -181,14 +181,14 @@
181
181
  &.s-table__sm {
182
182
  th,
183
183
  td {
184
- padding: @su4;
184
+ padding: var(--su4);
185
185
  }
186
186
  }
187
187
  // -- LARGE
188
188
  &.s-table__lg {
189
189
  th,
190
190
  td {
191
- padding: @su12;
191
+ padding: var(--su12);
192
192
  }
193
193
  }
194
194
 
@@ -215,7 +215,7 @@
215
215
  // to achieve the same effect a 2px gray border achieves.
216
216
  tbody + tbody {
217
217
  border-color: transparent;
218
- border-width: @su12;
218
+ border-width: var(--su-static12);
219
219
  }
220
220
  }
221
221
 
@@ -268,8 +268,8 @@
268
268
  .s-table--totals {
269
269
  th,
270
270
  td {
271
- padding-top: @su12;
272
- font-size: @fs-subheading;
271
+ padding-top: var(--su12);
272
+ font-size: var(--fs-subheading);
273
273
  font-weight: bold;
274
274
  }
275
275
  }