@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.
- package/lib/components/advanced_options.js +15 -3
- package/lib/components/attribute_input.js +15 -3
- package/lib/components/attribute_selector.js +14 -3
- package/lib/components/button.js +18 -6
- package/lib/components/button_control.js +15 -3
- package/lib/components/button_icon.js +142 -40
- package/lib/components/button_mode.js +18 -6
- package/lib/components/button_plain.js +16 -4
- package/lib/components/card.js +12 -2
- package/lib/components/checkbox_input.js +15 -3
- package/lib/components/collapsing_menu.js +15 -3
- package/lib/components/common_button.js +65 -5
- package/lib/components/common_input.js +15 -3
- package/lib/components/container.js +74 -14
- package/lib/components/container_header.js +2 -2
- package/lib/components/drag_and_drop.js +14 -3
- package/lib/components/dropdown_input_toggle.js +15 -4
- package/lib/components/editing_container.js +2 -3
- package/lib/components/email_input.js +15 -3
- package/lib/components/file_input.js +15 -3
- package/lib/components/link_text.js +283 -0
- package/lib/components/number_input.js +15 -3
- package/lib/components/password_input.js +15 -3
- package/lib/components/radio_input.js +15 -3
- package/lib/components/range_input.js +15 -3
- package/lib/components/search_input.js +15 -3
- package/lib/components/select_input.js +15 -3
- package/lib/components/tags_input.js +16 -3
- package/lib/components/text_input.js +15 -3
- package/lib/components/textarea.js +15 -3
- package/lib/components/togglable_fieldset.js +15 -3
- package/lib/components/toggle.js +15 -3
- package/lib/index.js +8 -16
- package/lib/stylesheets/particle.css +4495 -3192
- package/lib/stylesheets/particle.css.map +1 -0
- package/lib/stylesheets/particle.min.css +1 -1
- package/lib/stylesheets/particle.min.css.gz +0 -0
- package/lib/utils/data_attributes.js +18 -0
- package/lib/utils/markscout.js +2 -2
- package/package.json +29 -27
- package/styles/_base.scss +5 -8
- package/styles/_reset.scss +5 -0
- package/styles/components/_icons.scss +7 -14
- package/styles/components/attribute_selector/_base.scss +3 -3
- package/styles/components/button_icon/_base.scss +22 -0
- package/styles/components/button_icon/themes/_bandit.scss +5 -0
- package/styles/components/button_icon/themes/_researcher.scss +5 -0
- package/styles/components/button_icon/themes/_theme_builder.scss +12 -0
- package/styles/components/buttons/_base.scss +245 -382
- package/styles/components/buttons/themes/_bandit.scss +16 -16
- package/styles/components/buttons/themes/_theme_builder.scss +49 -73
- package/styles/components/card/_base.scss +0 -8
- package/styles/components/container/_base.scss +10 -20
- package/styles/components/container/themes/_theme_builder.scss +15 -14
- package/styles/components/footnote/_base.scss +1 -1
- package/styles/components/input_group/_base.scss +4 -4
- package/styles/components/link_text/_base.scss +52 -0
- package/styles/components/link_text/themes/_bandit.scss +5 -0
- package/styles/components/link_text/themes/_researcher.scss +5 -0
- package/styles/components/link_text/themes/_theme_builder.scss +11 -0
- package/styles/components/menu/_base.scss +2 -3
- package/styles/components/pill/_base.scss +13 -0
- package/styles/components/segmented_controls/_base.scss +1 -1
- package/styles/components/swappable/_base.scss +10 -2
- package/styles/particle.scss +2 -2
- package/styles/themes/_bandit.scss +40 -5
- package/styles/themes/_bandit_colors.scss +9 -0
- package/styles/themes/_researcher.scss +8 -5
- package/styles/themes/_researcher_colors.scss +91 -0
- package/styles/themes/_theme_builder.scss +215 -0
- package/styles/utilities/_alignment.scss +14 -137
- package/styles/utilities/_borders.scss +0 -44
- package/styles/utilities/_colors.scss +76 -605
- package/styles/utilities/_dimensions.scss +51 -265
- package/styles/utilities/_display.scss +1 -64
- package/styles/utilities/_overflow.scss +0 -55
- package/styles/utilities/_radii.scss +102 -30
- package/styles/utilities/_shadows.scss +0 -59
- package/styles/utilities/_spacing.scss +69 -534
- package/styles/utilities/_typography.scss +11 -333
- package/CHANGELOG.md +0 -1548
- package/lib/components/container_inner.js +0 -93
- package/lib/components/controls.js +0 -106
- package/styles/_mixins.scss +0 -134
- package/styles/_tables.scss +0 -138
- package/styles/_theme_builder.scss +0 -356
- package/styles/_variables.scss +0 -248
- package/styles/components/_links.scss +0 -141
- package/styles/css_variables/_bandit.scss +0 -45
- 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
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
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
|
-
|
|
11
|
+
"Button--outline____border-width": 2px,
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
"Button--small____font-size": 1em,
|
|
14
|
+
"Button--small____padding": .5em 1em,
|
|
15
|
+
"Button--small____radius": .375em,
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
"Button--big____font-size": var(--font-size--l),
|
|
18
|
+
"Button--big____radius": .5em,
|
|
19
|
+
"Button--big____padding": .75em 2em,
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
"Button--tight____padding": .75em,
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
);
|
|
23
|
+
"Button--wide____padding": .875em 4em
|
|
24
|
+
));
|
|
25
25
|
}
|
|
@@ -1,89 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
-
|
|
8
|
+
"Button--outline____border-width": 1px,
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
|
|
18
|
+
"Button--tight____padding": .75em,
|
|
19
19
|
|
|
20
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
28
|
+
"Button____color": var(--color--invert),
|
|
29
|
+
"Button--hover____color": var(--Button____color),
|
|
30
|
+
"Button--active____color": var(--Button____color),
|
|
39
31
|
|
|
40
|
-
|
|
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
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
63
|
-
$
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
54
|
+
@each $name, $value in $variables {
|
|
55
|
+
--#{$name}: #{$value};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
77
58
|
|
|
78
|
-
|
|
79
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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(--
|
|
6
|
-
border-radius: var(--
|
|
7
|
-
box-shadow: var(--
|
|
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
|
-
|
|
12
|
-
box-shadow: var(--
|
|
10
|
+
&--editing {
|
|
11
|
+
box-shadow: var(--Container--editing____shadow);
|
|
13
12
|
}
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
box-shadow: var(--
|
|
14
|
+
&--editable {
|
|
15
|
+
box-shadow: var(--Container--editable____shadow);
|
|
17
16
|
|
|
18
17
|
&:focus,
|
|
19
18
|
&:hover {
|
|
20
|
-
box-shadow: var(--
|
|
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
|
-
.
|
|
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
|
-
.
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
)
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
}
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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,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:
|
|
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
|
-
// .
|
|
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);
|
|
@@ -21,7 +21,11 @@
|
|
|
21
21
|
|
|
22
22
|
&--show-B {
|
|
23
23
|
.Swappable-Content__A {
|
|
24
|
-
|
|
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
|
-
|
|
42
|
+
opacity: 0;
|
|
43
|
+
position: absolute;
|
|
44
|
+
top: 0;
|
|
45
|
+
visibility: hidden;
|
|
46
|
+
width: 100%;
|
|
39
47
|
}
|
|
40
48
|
}
|
|
41
49
|
}
|
package/styles/particle.scss
CHANGED
|
@@ -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/
|
|
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
|
-
@
|
|
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(--
|
|
6
|
-
font-family: var(--
|
|
7
|
-
font-size: var(--
|
|
8
|
-
line-height: var(--
|
|
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
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
@import 'researcher_colors';
|
|
2
|
+
@import 'theme_builder';
|
|
3
|
+
|
|
1
4
|
.theme--researcher {
|
|
2
|
-
@
|
|
5
|
+
@include generate-theme-variables();
|
|
3
6
|
|
|
4
7
|
/* Default inherited properties */
|
|
5
|
-
color: var(--
|
|
6
|
-
font-family: var(--
|
|
7
|
-
font-size: var(--
|
|
8
|
-
line-height: var(--
|
|
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
|
}
|