@dscout/particle 1.0.0-alpha.2 → 1.0.0-alpha.3

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 (90) hide show
  1. package/lib/components/advanced_options.js +15 -3
  2. package/lib/components/attribute_input.js +15 -3
  3. package/lib/components/attribute_selector.js +14 -3
  4. package/lib/components/button.js +18 -6
  5. package/lib/components/button_control.js +15 -3
  6. package/lib/components/button_icon.js +142 -40
  7. package/lib/components/button_mode.js +18 -6
  8. package/lib/components/button_plain.js +16 -4
  9. package/lib/components/card.js +12 -2
  10. package/lib/components/checkbox_input.js +15 -3
  11. package/lib/components/collapsing_menu.js +15 -3
  12. package/lib/components/common_button.js +65 -5
  13. package/lib/components/common_input.js +15 -3
  14. package/lib/components/container.js +74 -14
  15. package/lib/components/container_header.js +2 -2
  16. package/lib/components/drag_and_drop.js +14 -3
  17. package/lib/components/dropdown_input_toggle.js +15 -4
  18. package/lib/components/editing_container.js +2 -3
  19. package/lib/components/email_input.js +15 -3
  20. package/lib/components/file_input.js +15 -3
  21. package/lib/components/link_text.js +283 -0
  22. package/lib/components/number_input.js +15 -3
  23. package/lib/components/password_input.js +15 -3
  24. package/lib/components/radio_input.js +15 -3
  25. package/lib/components/range_input.js +15 -3
  26. package/lib/components/search_input.js +15 -3
  27. package/lib/components/select_input.js +15 -3
  28. package/lib/components/tags_input.js +16 -3
  29. package/lib/components/text_input.js +15 -3
  30. package/lib/components/textarea.js +15 -3
  31. package/lib/components/togglable_fieldset.js +15 -3
  32. package/lib/components/toggle.js +15 -3
  33. package/lib/index.js +8 -16
  34. package/lib/stylesheets/particle.css +4495 -3192
  35. package/lib/stylesheets/particle.css.map +1 -0
  36. package/lib/stylesheets/particle.min.css +1 -1
  37. package/lib/stylesheets/particle.min.css.gz +0 -0
  38. package/lib/utils/data_attributes.js +18 -0
  39. package/lib/utils/markscout.js +2 -2
  40. package/package.json +29 -27
  41. package/styles/_base.scss +5 -8
  42. package/styles/_reset.scss +5 -0
  43. package/styles/components/_icons.scss +7 -14
  44. package/styles/components/attribute_selector/_base.scss +3 -3
  45. package/styles/components/button_icon/_base.scss +22 -0
  46. package/styles/components/button_icon/themes/_bandit.scss +5 -0
  47. package/styles/components/button_icon/themes/_researcher.scss +5 -0
  48. package/styles/components/button_icon/themes/_theme_builder.scss +12 -0
  49. package/styles/components/buttons/_base.scss +245 -382
  50. package/styles/components/buttons/themes/_bandit.scss +16 -16
  51. package/styles/components/buttons/themes/_theme_builder.scss +49 -73
  52. package/styles/components/card/_base.scss +0 -8
  53. package/styles/components/container/_base.scss +10 -20
  54. package/styles/components/container/themes/_theme_builder.scss +15 -14
  55. package/styles/components/footnote/_base.scss +1 -1
  56. package/styles/components/input_group/_base.scss +4 -4
  57. package/styles/components/link_text/_base.scss +52 -0
  58. package/styles/components/link_text/themes/_bandit.scss +5 -0
  59. package/styles/components/link_text/themes/_researcher.scss +5 -0
  60. package/styles/components/link_text/themes/_theme_builder.scss +11 -0
  61. package/styles/components/menu/_base.scss +2 -3
  62. package/styles/components/pill/_base.scss +13 -0
  63. package/styles/components/segmented_controls/_base.scss +1 -1
  64. package/styles/components/swappable/_base.scss +10 -2
  65. package/styles/particle.scss +2 -2
  66. package/styles/themes/_bandit.scss +40 -5
  67. package/styles/themes/_bandit_colors.scss +9 -0
  68. package/styles/themes/_researcher.scss +8 -5
  69. package/styles/themes/_researcher_colors.scss +91 -0
  70. package/styles/themes/_theme_builder.scss +215 -0
  71. package/styles/utilities/_alignment.scss +14 -137
  72. package/styles/utilities/_borders.scss +0 -44
  73. package/styles/utilities/_colors.scss +76 -605
  74. package/styles/utilities/_dimensions.scss +51 -265
  75. package/styles/utilities/_display.scss +1 -64
  76. package/styles/utilities/_overflow.scss +0 -55
  77. package/styles/utilities/_radii.scss +102 -30
  78. package/styles/utilities/_shadows.scss +0 -59
  79. package/styles/utilities/_spacing.scss +69 -534
  80. package/styles/utilities/_typography.scss +11 -333
  81. package/CHANGELOG.md +0 -1548
  82. package/lib/components/container_inner.js +0 -93
  83. package/lib/components/controls.js +0 -106
  84. package/styles/_mixins.scss +0 -134
  85. package/styles/_tables.scss +0 -138
  86. package/styles/_theme_builder.scss +0 -356
  87. package/styles/_variables.scss +0 -248
  88. package/styles/components/_links.scss +0 -141
  89. package/styles/css_variables/_bandit.scss +0 -45
  90. package/styles/css_variables/_researcher.scss +0 -5
@@ -1,25 +1,25 @@
1
1
  @import 'theme_builder';
2
2
 
3
3
  .theme--bandit {
4
- @include generate-button-theme-variables(
5
- $Button__font-weight: var(--font-weight--semibold),
6
- $Button__line-height: 1,
7
- $Button__padding: .875em 1.5em,
8
- $Button__radius: var(--radius--med),
9
- $Button__transition-duration: var(--timing--hover),
4
+ @include generate-button-theme-variables((
5
+ "Button____font-weight": var(--font-weight--semibold),
6
+ "Button____line-height": 1,
7
+ "Button____padding": .875em 1.5em,
8
+ "Button____radius": var(--radius--med),
9
+ "Button____transition-duration": var(--timing--hover),
10
10
 
11
- $Button--outline__border-width: 2px,
11
+ "Button--outline____border-width": 2px,
12
12
 
13
- $Button--small__font-size: 1em,
14
- $Button--small__padding: .5em 1em,
15
- $Button--small__radius: .375em,
13
+ "Button--small____font-size": 1em,
14
+ "Button--small____padding": .5em 1em,
15
+ "Button--small____radius": .375em,
16
16
 
17
- $Button--big__font-size: var(--font-size--l),
18
- $Button--big__radius: .5em,
19
- $Button--big__padding: .75em 2em,
17
+ "Button--big____font-size": var(--font-size--l),
18
+ "Button--big____radius": .5em,
19
+ "Button--big____padding": .75em 2em,
20
20
 
21
- $Button--tight__padding: .75em,
21
+ "Button--tight____padding": .75em,
22
22
 
23
- $Button--wide__padding: .875em 4em
24
- );
23
+ "Button--wide____padding": .875em 4em
24
+ ));
25
25
  }
@@ -1,89 +1,65 @@
1
- @mixin generate-button-theme-variables(
2
- $Button__font-weight: var(--font-weight--normal),
3
- $Button__line-height: var(--line-height--copy),
4
- $Button__padding: .75em 2em,
5
- $Button__radius: var(--radius--small),
6
- $Button__transition-duration: var(--timing--hover),
1
+ $default-variables: (
2
+ "Button____font-weight": var(--font-weight--normal),
3
+ "Button____line-height": var(--line-height--copy),
4
+ "Button____padding": .75em 2em,
5
+ "Button____radius": var(--radius--small),
6
+ "Button____transition-duration": var(--timing--hover),
7
7
 
8
- $Button--outline__border-width: 1px,
8
+ "Button--outline____border-width": 1px,
9
9
 
10
- $Button--small__font-size: var(--font-size--s),
11
- $Button--small__padding: .25em 1em,
12
- $Button--small__radius: var(--radius--small),
10
+ "Button--small____font-size": var(--font-size--s),
11
+ "Button--small____padding": .25em 1em,
12
+ "Button--small____radius": var(--radius--small),
13
13
 
14
- $Button--big__font-size: var(--font-size--l),
15
- $Button--big__radius: var(--radius--small),
16
- $Button--big__padding: .75em 2em,
14
+ "Button--big____font-size": var(--font-size--l),
15
+ "Button--big____radius": var(--radius--small),
16
+ "Button--big____padding": .75em 2em,
17
17
 
18
- $Button--tight__padding: .75em,
18
+ "Button--tight____padding": .75em,
19
19
 
20
- $Button--wide__padding: .75em 4em
21
- ) {
22
- --Button__font-weight: #{$Button__font-weight};
23
- --Button__line-height: #{$Button__line-height};
24
- --Button__padding: #{$Button__padding};
25
- --Button__radius: #{$Button__radius};
26
- --Button__transition-duration: #{$Button__transition-duration};
27
-
28
- --Button--outline__border-width: #{$Button--outline__border-width};
29
-
30
- --Button--small__font-size: #{$Button--small__font-size};
31
- --Button--small__padding: #{$Button--small__padding};
32
- --Button--small__radius: #{$Button--small__radius};
20
+ "Button--wide____padding": .75em 4em
21
+ );
33
22
 
34
- --Button--big__font-size: #{$Button--big__font-size};
35
- --Button--big__radius: #{$Button--big__radius};
36
- --Button--big__padding: #{$Button--big__padding};
23
+ $default-color-variables: (
24
+ "Button____bg-color": var(--color--main),
25
+ "Button--hover____bg-color": rgba(var(--color--main-rgb), .9),
26
+ "Button--active____bg-color": rgba(var(--color--main-rgb), .85),
37
27
 
38
- --Button--tight__padding: #{$Button--tight__padding};
28
+ "Button____color": var(--color--invert),
29
+ "Button--hover____color": var(--Button____color),
30
+ "Button--active____color": var(--Button____color),
39
31
 
40
- --Button--wide__padding: #{$Button--wide__padding};
41
- }
32
+ "Button--shadow____shadow": 0 5px 8px 0px rgba(var(--color--main-rgb), .25),
33
+ "Button--shadow--hover____shadow": 0 15px 20px 0px rgba(var(--color--main-rgb), .3),
34
+ "Button--shadow--active____shadow": 0 2px 3px 0px rgba(var(--color--main-rgb), .25),
42
35
 
43
- @mixin generate-button-color-variables(
44
- $Button__bg-color: var(--color--main),
45
- $Button__bg-color--hover: rgba(var(--color--main-rgb), .9),
46
- $Button__bg-color--active: rgba(var(--color--main-rgb), .85),
47
- $Button__color: var(--color--invert),
48
- $Button__color--hover: $Button__color,
49
- $Button__color--active: $Button__color,
36
+ "Button--glass____bg-color": rgba(var(--color--main-rgb), .1),
37
+ "Button--glass--hover____bg-color": rgba(var(--color--main-rgb), .2),
38
+ "Button--glass--active____bg-color": rgba(var(--color--main-rgb), .25),
50
39
 
51
- $Button--shadow__shadow: 0 5px 8px 0px rgba(var(--color--main-rgb), .25),
52
- $Button--shadow__shadow-hover: 0 15px 20px 0px rgba(var(--color--main-rgb), .3),
53
- $Button--shadow__shadow-active: 0 2px 3px 0px rgba(var(--color--main-rgb), .25),
40
+ "Button--glass____color": var(--color--main),
41
+ "Button--glass--hover____color": var(--Button--glass____color),
42
+ "Button--glass--active____color": var(--Button--glass____color),
54
43
 
55
- $Button--glass__bg-color: rgba(var(--color--main-rgb), .1),
56
- $Button--glass__bg-color--hover: rgba(var(--color--main-rgb), .2),
57
- $Button--glass__bg-color--active: rgba(var(--color--main-rgb), .25),
58
- $Button--glass__color: var(--color--main),
59
- $Button--glass__color--hover: var(--Button--glass__color),
60
- $Button--glass__color--active: var(--Button--glass__color),
44
+ "Button--outline____b-color": rgba(var(--color--main-rgb), .2),
45
+ "Button--outline--hover____b-color": rgba(var(--color--main-rgb), .5),
46
+ "Button--outline--active____b-color": rgba(var(--color--main-rgb), .6275),
47
+
48
+ "Button--outline____color": var(--color--main)
49
+ );
61
50
 
62
- $Button--outline__b-color: rgba(var(--color--main-rgb), .2),
63
- $Button--outline__b-color--hover: rgba(var(--color--main-rgb), .5),
64
- $Button--outline__b-color--active: rgba(var(--color--main-rgb), .6275),
65
- $Button--outline__color: var(--color--main)
66
- ) {
67
- --Button__bg-color: #{$Button__bg-color};
68
- --Button__bg-color--hover: #{$Button__bg-color--hover};
69
- --Button__bg-color--active: #{$Button__bg-color--active};
70
- --Button__color: #{$Button__color};
71
- --Button__color--hover: #{$Button__color--hover};
72
- --Button__color--active: #{$Button__color--active};
51
+ @mixin generate-button-theme-variables($theme-variables: ()) {
52
+ $variables: map-merge($default-variables, $theme-variables);
73
53
 
74
- --Button--shadow__shadow: #{$Button--shadow__shadow};
75
- --Button--shadow__shadow-hover: #{$Button--shadow__shadow-hover};
76
- --Button--shadow__shadow-active: #{$Button--shadow__shadow-active};
54
+ @each $name, $value in $variables {
55
+ --#{$name}: #{$value};
56
+ }
57
+ }
77
58
 
78
- --Button--glass__bg-color: #{$Button--glass__bg-color};
79
- --Button--glass__bg-color--hover: #{$Button--glass__bg-color--hover};
80
- --Button--glass__bg-color--active: #{$Button--glass__bg-color--active};
81
- --Button--glass__color: #{$Button--glass__color};
82
- --Button--glass__color--hover: #{$Button--glass__color--hover};
83
- --Button--glass__color--active: #{$Button--glass__color--active};
59
+ @mixin generate-button-color-variables($color-variables: ()) {
60
+ $variables: map-merge($default-color-variables, $color-variables);
84
61
 
85
- --Button--outline__b-color: #{$Button--outline__b-color};
86
- --Button--outline__b-color--hover: #{$Button--outline__b-color--hover};
87
- --Button--outline__b-color--active: #{$Button--outline__b-color--active};
88
- --Button--outline__color: #{$Button--outline__color};
62
+ @each $name, $value in $variables {
63
+ --#{$name}: #{$value};
64
+ }
89
65
  }
@@ -24,14 +24,6 @@ a.Card {
24
24
  &:hover {
25
25
  box-shadow: var(--Card--hover____box-shadow);
26
26
  }
27
-
28
- &:not(.Card--bordered) {
29
- border-bottom: none; // overwrite default link styling
30
-
31
- &:hover {
32
- border-bottom: none; // overwrite default link styling
33
- }
34
- }
35
27
  }
36
28
 
37
29
  .Card.Card--bordered {
@@ -2,31 +2,26 @@
2
2
  @import 'themes/researcher';
3
3
 
4
4
  .Container {
5
- background-color: var(--Container__bg-color);
6
- border-radius: var(--Container__radius);
7
- box-shadow: var(--Container__shadow--uneditable);
8
- margin: 1em 0;
5
+ background-color: var(--Container____bg-color);
6
+ border-radius: var(--Container____radius);
7
+ box-shadow: var(--Container-undeditable____shadow);
9
8
  transition: box-shadow var(--timing--hover), margin var(--timing--fade), opacity var(--timing--fade);
10
9
 
11
- &__editing {
12
- box-shadow: var(--Container__shadow--editing);
10
+ &--editing {
11
+ box-shadow: var(--Container--editing____shadow);
13
12
  }
14
13
 
15
- &__editable {
16
- box-shadow: var(--Container__shadow--editable);
14
+ &--editable {
15
+ box-shadow: var(--Container--editable____shadow);
17
16
 
18
17
  &:focus,
19
18
  &:hover {
20
- box-shadow: var(--Container__shadow--editable-hover);
19
+ box-shadow: var(--Container--editable--hover____shadow);
21
20
  }
22
21
  }
23
-
24
- &:first-child {
25
- margin-top: 0;
26
- }
27
22
  }
28
23
 
29
- .Container--Header {
24
+ .Container__Header {
30
25
  border-bottom: solid 1px var(--color--none);
31
26
  margin-bottom: 0;
32
27
  opacity: 1;
@@ -36,14 +31,9 @@
36
31
  transition-property: border, opacity, padding;
37
32
  }
38
33
 
39
- .Container--Header__editing {
34
+ .Container__Header--editing {
40
35
  border-bottom: solid 1px var(--color--gray-4);
41
36
  padding-bottom: 2em;
42
37
  transition-delay: var(--timing--hover), 0s, 0s;
43
38
  transition-duration: var(--timing--hover);
44
39
  }
45
-
46
- .Container--Inner {
47
- margin: 0;
48
- padding: 2em;
49
- }
@@ -1,15 +1,16 @@
1
- @mixin generate-container-theme-variables(
2
- $Container__bg-color: var(--color--invert),
3
- $Container__shadow--uneditable: var(--shadow--s),
4
- $Container__shadow--editable: var(--shadow--m),
5
- $Container__shadow--editable-hover: var(--shadow--l),
6
- $Container__shadow--editing: var(--shadow--xl),
7
- $Container__radius: var(--radius--med),
8
- ) {
9
- --Container__bg-color: #{$Container__bg-color};
10
- --Container__shadow--uneditable: #{$Container__shadow--uneditable};
11
- --Container__shadow--editable: #{$Container__shadow--editable};
12
- --Container__shadow--editable-hover: #{$Container__shadow--editable-hover};
13
- --Container__shadow--editing: #{$Container__shadow--editing};
14
- --Container__radius: #{$Container__radius};
1
+ $default-variables: (
2
+ "Container____bg-color": var(--color--invert),
3
+ "Container--uneditable____shadow": var(--shadow--s),
4
+ "Container--editable____shadow": var(--shadow--m),
5
+ "Container--editable--hover____shadow": var(--shadow--l),
6
+ "Container--editing____shadow": var(--shadow--xl),
7
+ "Container____radius": var(--radius--med),
8
+ );
9
+
10
+ @mixin generate-container-theme-variables($theme-variables: ()) {
11
+ $variables: map-merge($default-variables, $theme-variables);
12
+
13
+ @each $name, $value in $variables {
14
+ --#{$name}: #{$value};
15
+ }
15
16
  }
@@ -2,7 +2,7 @@
2
2
  @import 'themes/researcher';
3
3
 
4
4
  .Footnote {
5
- @include border-l(2px, var(--color--note));
5
+ border-left: 2px solid var(--color--note);
6
6
  color: var(--color--gray-1);
7
7
  padding: 0.25em;
8
8
  padding-left: 0.75em;
@@ -1,5 +1,3 @@
1
- @import "../../mixins";
2
-
3
1
  @import 'themes/bandit';
4
2
  @import 'themes/researcher';
5
3
 
@@ -31,7 +29,8 @@
31
29
  .Input-Group__Addon,
32
30
  .Input,
33
31
  .btn {
34
- @include rounded-left(var(--Input____radius));
32
+ border-bottom-left-radius: var(--Input____radius);
33
+ border-top-left-radius: var(--Input____radius);
35
34
  }
36
35
  }
37
36
 
@@ -39,7 +38,8 @@
39
38
  .Input-Group__Addon,
40
39
  .Input,
41
40
  .btn {
42
- @include rounded-right(var(--Input____radius));
41
+ border-bottom-right-radius: var(--Input____radius);
42
+ border-top-right-radius: var(--Input____radius);
43
43
  }
44
44
  }
45
45
 
@@ -0,0 +1,52 @@
1
+ @import 'themes/bandit';
2
+ @import 'themes/researcher';
3
+
4
+ $colors: (
5
+ main,
6
+ gray-1,
7
+ gray-2,
8
+ gray-3,
9
+ gray-4,
10
+ gray-5,
11
+ gray-6,
12
+ invert,
13
+ dscout,
14
+ coachmark,
15
+ alert,
16
+ close,
17
+ success,
18
+ archive,
19
+ note,
20
+ marker,
21
+ test,
22
+ part-0,
23
+ part-1,
24
+ part-2,
25
+ part-3,
26
+ part-4,
27
+ part-5,
28
+ part-6,
29
+ part-7,
30
+ part-8,
31
+ part-9
32
+ );
33
+
34
+ .Link-Text {
35
+ color: inherit;
36
+ position: relative;
37
+ text-decoration: none;
38
+ border-bottom: solid var(--Link-Text____underline-width);
39
+ border-bottom-color: rgba(var(--Link-Text____underline-color-rgb), var(--Link-Text____underline-opacity));
40
+ transition: border-bottom var(--timing--hover);
41
+
42
+ &:hover {
43
+ border-bottom-color: rgba(var(--Link-Text____underline-color-rgb), var(--Link-Text--hover____underline-opacity));
44
+ }
45
+ }
46
+
47
+ @each $enum in $colors {
48
+ .color--#{$enum} .Link-Text,
49
+ .Link-Text.color--#{$enum} {
50
+ --Link-Text____underline-color-rgb: var(--color--#{$enum}-rgb);
51
+ }
52
+ }
@@ -0,0 +1,5 @@
1
+ @import 'theme_builder';
2
+
3
+ .theme--bandit {
4
+ @include generate-link-text-theme-variables();
5
+ }
@@ -0,0 +1,5 @@
1
+ @import 'theme_builder';
2
+
3
+ .theme--researcher {
4
+ @include generate-link-text-theme-variables();
5
+ }
@@ -0,0 +1,11 @@
1
+ @mixin generate-link-text-theme-variables(
2
+ $Link-Text____underline-color-rgb: var(--color--main-rgb),
3
+ $Link-Text____underline-width: 1px,
4
+ $Link-Text____underline-opacity: 0.3,
5
+ $Link-Text--hover____underline-opacity: 0.625,
6
+ ) {
7
+ --Link-Text____underline-color-rgb: #{$Link-Text____underline-color-rgb};
8
+ --Link-Text____underline-width: #{$Link-Text____underline-width};
9
+ --Link-Text____underline-opacity: #{$Link-Text____underline-opacity};
10
+ --Link-Text--hover____underline-opacity: #{$Link-Text--hover____underline-opacity};
11
+ }
@@ -40,7 +40,7 @@
40
40
  background-color: var(--color--gray-6);
41
41
  color: var(--color--gray-2);
42
42
  font-size: var(--font-size--s);
43
- font-weight: var(--font-weight--6);
43
+ font-weight: 600;
44
44
  letter-spacing: var(--tracked--looser);
45
45
  margin: 0.25em 0;
46
46
  padding: 1em;
@@ -87,7 +87,6 @@
87
87
 
88
88
  &:hover {
89
89
  background-color: var(--Menu__Item--hovered____bg-color);
90
- border-bottom: var(--Menu__Item____border-bottom);
91
90
  }
92
91
 
93
92
  &--selected {
@@ -106,7 +105,7 @@
106
105
  }
107
106
 
108
107
  // Menu components do not at this time directly apply the .Menu__Item__dragging and
109
- // .Menu__Item__ghost classes, as Particle does not provide sorting or drag-n-drop
108
+ // .Menu__Item--ghost classes, as Particle does not provide sorting or drag-n-drop
110
109
  // functionality. These classes exist for 3rd party sorting libraries to apply.
111
110
 
112
111
  &--dragging {
@@ -1,6 +1,19 @@
1
1
  @import 'themes/bandit';
2
2
  @import 'themes/researcher';
3
3
 
4
+ $part-colors: (
5
+ var(--color--part-0),
6
+ var(--color--part-1),
7
+ var(--color--part-2),
8
+ var(--color--part-3),
9
+ var(--color--part-4),
10
+ var(--color--part-5),
11
+ var(--color--part-6),
12
+ var(--color--part-7),
13
+ var(--color--part-8),
14
+ var(--color--part-9)
15
+ );
16
+
4
17
  .Pill {
5
18
  background-color: var(--Pill____background-color);
6
19
  border: 1px solid var(--Pill____border-color);
@@ -16,7 +16,7 @@
16
16
  border-right: 1px solid var(--color--gray-5);
17
17
  color: var(--color--gray-2);
18
18
  flex: 1 0 0;
19
- font-weight: var(--font-weight--7);
19
+ font-weight: var(--font-weight--bold);
20
20
  margin: 0;
21
21
  padding: .75em 0;
22
22
  text-align: center;
@@ -21,7 +21,11 @@
21
21
 
22
22
  &--show-B {
23
23
  .Swappable-Content__A {
24
- @include container-hidden;
24
+ opacity: 0;
25
+ position: absolute;
26
+ top: 0;
27
+ visibility: hidden;
28
+ width: 100%;
25
29
  }
26
30
 
27
31
  .Swappable-Content__B {
@@ -35,7 +39,11 @@
35
39
  }
36
40
 
37
41
  .Swappable-Content__B {
38
- @include container-hidden;
42
+ opacity: 0;
43
+ position: absolute;
44
+ top: 0;
45
+ visibility: hidden;
46
+ width: 100%;
39
47
  }
40
48
  }
41
49
  }
@@ -22,7 +22,6 @@ You can import it into your own scss file like so:
22
22
 
23
23
  @import 'reset';
24
24
  @import 'base';
25
- @import 'tables';
26
25
 
27
26
  /* Component classes */
28
27
  @import 'components/avatar/base';
@@ -30,6 +29,7 @@ You can import it into your own scss file like so:
30
29
  @import 'components/blitz/base';
31
30
  @import 'components/chip/base';
32
31
  @import 'components/buttons/base';
32
+ @import 'components/button_icon/base';
33
33
  @import 'components/card/base';
34
34
  @import 'components/collapsible/base';
35
35
  @import 'components/container/base';
@@ -41,7 +41,7 @@ You can import it into your own scss file like so:
41
41
  @import 'components/icons';
42
42
  @import 'components/inputs/base';
43
43
  @import 'components/input_group/base';
44
- @import 'components/links';
44
+ @import 'components/link_text/base';
45
45
  @import 'components/list/base';
46
46
  @import 'components/menu/base';
47
47
  @import 'components/modal/base';
@@ -1,9 +1,44 @@
1
+ @import 'bandit_colors';
2
+ @import 'theme_builder';
3
+
1
4
  .theme--bandit {
2
- @import '../css_variables/bandit';
5
+ @include generate-theme-variables((
6
+ /* Shadows */
7
+ "shadow--s": 0 .125em 1em rgba(var(--color--main-rgb), .08),
8
+ "shadow--m": 0 .25em 2em rgba(var(--color--main-rgb), .12),
9
+ "shadow--l": 0 .375em 3em rgba(var(--color--main-rgb), .16),
10
+ "shadow--xl": 0 .5em 4em rgba(var(--color--main-rgb), .24),
11
+
12
+ /* Radii */
13
+ "radius--tiny": .125em,
14
+ "radius--small": .25em,
15
+ "radius--med": .5em,
16
+ "radius--large": .75em,
17
+
18
+ /* Font sizes */
19
+ "font-size--xxs": .5em,
20
+ "font-size--xs": .75em,
21
+ "font-size--s": .875em,
22
+ "font-size--base": 1em,
23
+ "font-size--l": 1.125em,
24
+ "font-size--xl": 1.5em,
25
+ "font-size--xxl": 2em,
26
+ "font-size--xxxl": 3em,
27
+ "font-size--subheadline": 4em,
28
+ "font-size--headline": 5em,
29
+
30
+ /* Font weights */
31
+ "font-weight--normal": 400,
32
+ "font-weight--semibold": 600,
33
+ "font-weight--bold": 700,
34
+
35
+ /* Body variables */
36
+ "base____font-size": 1rem
37
+ ));
3
38
 
4
39
  /* Default inherited properties */
5
- color: var(--Body__color);
6
- font-family: var(--Body__font-family);
7
- font-size: var(--Body__font-size);
8
- line-height: var(--Body__line-height);
40
+ color: var(--base____color);
41
+ font-family: var(--base____font-family);
42
+ font-size: var(--base____font-size);
43
+ line-height: var(--base____line-height);
9
44
  }
@@ -0,0 +1,9 @@
1
+ // The Bandit theme extends the Researcher theme's color palette.
2
+ @import 'researcher_colors';
3
+
4
+ $color--gray-1: #323232;
5
+ $color--gray-2: #646464;
6
+ $color--gray-3: #aeaeae;
7
+ $color--gray-4: #dedede;
8
+ $color--gray-5: #f0f0f0;
9
+ $color--gray-6: #fafafa;
@@ -1,9 +1,12 @@
1
+ @import 'researcher_colors';
2
+ @import 'theme_builder';
3
+
1
4
  .theme--researcher {
2
- @import '../css_variables/researcher';
5
+ @include generate-theme-variables();
3
6
 
4
7
  /* Default inherited properties */
5
- color: var(--Body__color);
6
- font-family: var(--Body__font-family);
7
- font-size: var(--Body__font-size);
8
- line-height: var(--Body__line-height);
8
+ color: var(--base____color);
9
+ font-family: var(--base____font-family);
10
+ font-size: var(--base____font-size);
11
+ line-height: var(--base____line-height);
9
12
  }