@fs-design/pantry 6.567.7
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.
Potentially problematic release.
This version of @fs-design/pantry might be problematic. Click here for more details.
- package/build.js +91 -0
- package/package.json +21 -0
- package/src/base/_box-model.scss +9 -0
- package/src/base/_reset.scss +53 -0
- package/src/base/typography/base/_font-face-gilroy.scss +35 -0
- package/src/base/typography/base/_font-face-inter.scss +35 -0
- package/src/base/typography/base/_font-face-thai.scss +71 -0
- package/src/base/typography/base/_links.scss +13 -0
- package/src/base/typography/base/_lists.scss +5 -0
- package/src/base/typography/base/_typography.scss +137 -0
- package/src/components/accordion/_index.scss +50 -0
- package/src/components/button/base/_button.scss +174 -0
- package/src/components/button/base/_mixins.scss +40 -0
- package/src/components/card/_index.scss +97 -0
- package/src/components/choice/base/_index.scss +72 -0
- package/src/components/choice/checkbox/_index.scss +43 -0
- package/src/components/choice/radio-button/_index.scss +52 -0
- package/src/components/file-selector/_index.scss +118 -0
- package/src/components/form-control/_index.scss +57 -0
- package/src/components/icon/_index.scss +27 -0
- package/src/components/input/_form-input.scss +35 -0
- package/src/components/input-group/_index.scss +62 -0
- package/src/components/layout/_grid.scss +364 -0
- package/src/components/logo/_index.scss +16 -0
- package/src/components/modal/_index.scss +84 -0
- package/src/components/navigation-bar/_index.scss +36 -0
- package/src/components/navigation-bar/_nav-menu-item.scss +49 -0
- package/src/components/navigation-bar/_nav-menu.scss +53 -0
- package/src/components/navigation-bar/_nav-submenu.scss +148 -0
- package/src/components/navigation-bar/_nav.scss +90 -0
- package/src/components/navigation-bar/_navbar.scss +114 -0
- package/src/components/progress-indicator/_index.scss +140 -0
- package/src/components/radial-progress/_index.scss +23 -0
- package/src/components/select/_index.scss +49 -0
- package/src/components/step-progress/_index.scss +137 -0
- package/src/components/table/_index.scss +41 -0
- package/src/components/textarea/_index.scss +36 -0
- package/src/shared/variables/border-radius/border-radius.scss +4 -0
- package/src/shared/variables/breakpoints/breakpoints.common.js +7 -0
- package/src/shared/variables/colors/colors.common.js +83 -0
- package/src/shared/variables/colors/colors.scss +82 -0
- package/src/shared/variables/shadows/shadows.common.js +5 -0
- package/src/shared/variables/shadows/shadows.scss +4 -0
- package/src/shared/variables/spacing/spacing.scss +11 -0
- package/src/shared/variables/type/type.scss +33 -0
- package/src/utilities/background/_index.scss +11 -0
- package/src/utilities/display/_mixins.scss +17 -0
- package/src/utilities/images/_index.scss +4 -0
- package/src/utilities/spacing/_mixins.scss +26 -0
- package/src/utilities/text-alignment/_index.scss +107 -0
- package/src/utilities/text-color/_index.scss +3 -0
- package/src/utilities/text-weight/_index.scss +7 -0
@@ -0,0 +1,148 @@
|
|
1
|
+
.nav-submenu,
|
2
|
+
.nav-submenu__item {
|
3
|
+
list-style: none;
|
4
|
+
}
|
5
|
+
|
6
|
+
.nav-submenu {
|
7
|
+
z-index: 2;
|
8
|
+
|
9
|
+
@media (min-width: $hamburger-breakpoint) {
|
10
|
+
position: relative;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
.nav-submenu.is-open {
|
15
|
+
.nav-submenu__container {
|
16
|
+
display: flex;
|
17
|
+
}
|
18
|
+
|
19
|
+
.nav-submenu__title {
|
20
|
+
background-color: $l-primary-lightest;
|
21
|
+
color: $l-primary;
|
22
|
+
|
23
|
+
&::after {
|
24
|
+
border-color: $l-base-gray-darker;
|
25
|
+
|
26
|
+
@media (min-width: $hamburger-breakpoint) {
|
27
|
+
margin-top: 0.28571em;
|
28
|
+
transform: rotate(-45deg);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.nav-submenu__container {
|
35
|
+
display: none;
|
36
|
+
position: absolute;
|
37
|
+
top: 0;
|
38
|
+
right: -100%;
|
39
|
+
width: 100%;
|
40
|
+
height: auto;
|
41
|
+
min-height: 100%;
|
42
|
+
background-color: $color-white;
|
43
|
+
flex-direction: column;
|
44
|
+
|
45
|
+
@media (min-width: $hamburger-breakpoint) {
|
46
|
+
flex-direction: row;
|
47
|
+
top: auto;
|
48
|
+
right: auto;
|
49
|
+
left: 50%;
|
50
|
+
width: auto;
|
51
|
+
min-height: auto;
|
52
|
+
margin-top: $spacing-5;
|
53
|
+
border: 1px solid $l-base-gray-lightest;
|
54
|
+
border-radius: $border-radius-default;
|
55
|
+
box-shadow: $box-shadow-default;
|
56
|
+
transform: translateX(-50%);
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
.nav-submenu__title {
|
61
|
+
@extend %clickable-menu-item;
|
62
|
+
position: relative;
|
63
|
+
display: flex;
|
64
|
+
align-items: center;
|
65
|
+
cursor: pointer;
|
66
|
+
|
67
|
+
&::after {
|
68
|
+
content: ' ';
|
69
|
+
display: inline-block;
|
70
|
+
height: 0.57143em;
|
71
|
+
width: 0.57143em;
|
72
|
+
margin-left: auto;
|
73
|
+
border-style: solid;
|
74
|
+
border-width: 2px 2px 0 0;
|
75
|
+
border-color: $l-base-gray;
|
76
|
+
transform: rotate(45deg);
|
77
|
+
|
78
|
+
@media (min-width: $hamburger-breakpoint) {
|
79
|
+
margin-left: 8px;
|
80
|
+
margin-top: -0.28571em;
|
81
|
+
transform: rotate(135deg);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.nav-submenu__items {
|
87
|
+
list-style: none;
|
88
|
+
padding: $spacing-5;
|
89
|
+
width: 100%;
|
90
|
+
|
91
|
+
@media (min-width: $hamburger-breakpoint) {
|
92
|
+
width: $menu-submenu-width;
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
.nav-submenu__item {
|
97
|
+
a:not(.btn) {
|
98
|
+
@extend %clickable-menu-item;
|
99
|
+
}
|
100
|
+
|
101
|
+
.btn--link {
|
102
|
+
font-family: $font-family-body;
|
103
|
+
color: $l-base-gray;
|
104
|
+
font-weight: $font-weight-medium;
|
105
|
+
|
106
|
+
&:hover {
|
107
|
+
text-decoration: underline;
|
108
|
+
background: none;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
.nav_submenu__item-icon {
|
114
|
+
margin-top: $spacing-1;
|
115
|
+
margin-right: $spacing-3;
|
116
|
+
}
|
117
|
+
|
118
|
+
.nav-submenu__item-subtitle {
|
119
|
+
margin-bottom: 0;
|
120
|
+
margin-top: $spacing-2;
|
121
|
+
color: $l-base-gray;
|
122
|
+
font-size: $font-size-caption;
|
123
|
+
}
|
124
|
+
|
125
|
+
.nav-submenu__aside {
|
126
|
+
padding: $spacing-6;
|
127
|
+
border-top: 1px solid $l-base-gray-lightest;
|
128
|
+
|
129
|
+
@media (min-width: $hamburger-breakpoint) {
|
130
|
+
width: $menu-submenu-width;
|
131
|
+
border-top: 0;
|
132
|
+
border-left: 1px solid $l-base-gray-lightest;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
.nav-submenu__item + .nav-submenu__item {
|
137
|
+
margin-top: $menu-margin-between;
|
138
|
+
}
|
139
|
+
|
140
|
+
.nav-submenu + .nav-submenu,
|
141
|
+
.nav-submenu + .nav-menu__item {
|
142
|
+
margin-top: $menu-margin-between;
|
143
|
+
|
144
|
+
@media (min-width: $hamburger-breakpoint) {
|
145
|
+
margin-top: 0;
|
146
|
+
margin-left: $menu-margin-between;
|
147
|
+
}
|
148
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
.nav {
|
2
|
+
position: sticky;
|
3
|
+
top: 0;
|
4
|
+
z-index: 5;
|
5
|
+
width: 100%;
|
6
|
+
|
7
|
+
@media (min-width: $hamburger-breakpoint) {
|
8
|
+
height: auto;
|
9
|
+
}
|
10
|
+
|
11
|
+
&.is-open {
|
12
|
+
height: 100vh;
|
13
|
+
|
14
|
+
@media (min-width: $hamburger-breakpoint) {
|
15
|
+
height: auto;
|
16
|
+
}
|
17
|
+
|
18
|
+
.nav-menu--hamburger {
|
19
|
+
transform: translateY(0);
|
20
|
+
}
|
21
|
+
|
22
|
+
.navbar {
|
23
|
+
box-shadow: none;
|
24
|
+
border-bottom: 1px solid $l-base-gray-lightest;
|
25
|
+
|
26
|
+
@media (min-width: $breakpoint-small) {
|
27
|
+
border-bottom: 0;
|
28
|
+
box-shadow: $box-shadow-default;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.navbar__brand {
|
33
|
+
opacity: 0;
|
34
|
+
width: 0;
|
35
|
+
|
36
|
+
@media (min-width: $hamburger-breakpoint) {
|
37
|
+
opacity: 1;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
.navbar__hamburger {
|
42
|
+
color: $l-base-gray;
|
43
|
+
}
|
44
|
+
|
45
|
+
.navbar__hamburger-indicator {
|
46
|
+
transition-delay: 0.12s;
|
47
|
+
transition-timing-function: $menu-hamburger-transition-fn;
|
48
|
+
transform: rotate(45deg);
|
49
|
+
|
50
|
+
&::before {
|
51
|
+
top: 0;
|
52
|
+
opacity: 0;
|
53
|
+
transition: top $menu-hamburger-transition-duration ease,
|
54
|
+
opacity $menu-hamburger-transition-duration ease 0.12s;
|
55
|
+
}
|
56
|
+
|
57
|
+
&::after {
|
58
|
+
bottom: 0;
|
59
|
+
transition: bottom $menu-hamburger-transition-duration ease,
|
60
|
+
transform $menu-hamburger-transition-duration
|
61
|
+
$menu-hamburger-transition-fn 0.12s;
|
62
|
+
transform: rotate(-90deg);
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
.navbar__hamburger-return {
|
67
|
+
width: auto;
|
68
|
+
margin-right: auto;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
|
72
|
+
&.is-open.is-submenu-open {
|
73
|
+
.navbar__hamburger-return {
|
74
|
+
display: flex;
|
75
|
+
opacity: 1;
|
76
|
+
|
77
|
+
@media (min-width: $hamburger-breakpoint) {
|
78
|
+
display: none;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
.nav-menu__items {
|
83
|
+
transform: translateX(-100%);
|
84
|
+
|
85
|
+
@media (min-width: $hamburger-breakpoint) {
|
86
|
+
transform: none;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
.navbar {
|
2
|
+
display: flex;
|
3
|
+
align-items: center;
|
4
|
+
padding: $navbar-padding;
|
5
|
+
line-height: 1;
|
6
|
+
box-shadow: $box-shadow-default;
|
7
|
+
min-height: $navbar-min-height;
|
8
|
+
position: relative;
|
9
|
+
z-index: 3;
|
10
|
+
background-color: $color-white;
|
11
|
+
|
12
|
+
@media (min-width: $hamburger-breakpoint) {
|
13
|
+
padding-left: $spacing-7;
|
14
|
+
padding-right: $spacing-7;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.navbar__brand {
|
19
|
+
display: inline-block;
|
20
|
+
transition: opacity 200ms linear;
|
21
|
+
}
|
22
|
+
|
23
|
+
.navbar__hamburger-return {
|
24
|
+
opacity: 0;
|
25
|
+
width: 0;
|
26
|
+
border: 0;
|
27
|
+
padding: 0;
|
28
|
+
box-shadow: none;
|
29
|
+
display: flex;
|
30
|
+
align-items: center;
|
31
|
+
font-family: $font-family-body;
|
32
|
+
font-size: $font-size-small;
|
33
|
+
font-weight: $font-weight-medium;
|
34
|
+
transition: opacity 200ms linear;
|
35
|
+
|
36
|
+
&::before {
|
37
|
+
content: ' ';
|
38
|
+
display: inline-block;
|
39
|
+
margin-right: 8px;
|
40
|
+
height: 0.57143em;
|
41
|
+
width: 0.57143em;
|
42
|
+
border-style: solid;
|
43
|
+
border-width: 2px 0 0 2px;
|
44
|
+
border-color: $l-base-gray-darker;
|
45
|
+
transform: rotate(-45deg);
|
46
|
+
}
|
47
|
+
|
48
|
+
&:hover {
|
49
|
+
transform: none;
|
50
|
+
box-shadow: none;
|
51
|
+
color: $l-primary;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.navbar__hamburger {
|
56
|
+
font-size: 2rem;
|
57
|
+
width: 1em;
|
58
|
+
height: 1em;
|
59
|
+
color: $l-base-gray-darker;
|
60
|
+
margin-left: auto;
|
61
|
+
border: 0;
|
62
|
+
padding: 0;
|
63
|
+
background: none;
|
64
|
+
box-shadow: none;
|
65
|
+
|
66
|
+
&:hover {
|
67
|
+
color: $l-primary;
|
68
|
+
transform: none;
|
69
|
+
box-shadow: none;
|
70
|
+
}
|
71
|
+
|
72
|
+
@media (min-width: $hamburger-breakpoint) {
|
73
|
+
display: none;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.navbar__hamburger-indicator {
|
78
|
+
position: absolute;
|
79
|
+
width: 100%;
|
80
|
+
height: 2px;
|
81
|
+
left: 0;
|
82
|
+
background-color: currentColor;
|
83
|
+
transition-property: transform;
|
84
|
+
transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
|
85
|
+
transition-duration: $menu-hamburger-transition-duration;
|
86
|
+
|
87
|
+
&::before,
|
88
|
+
&::after {
|
89
|
+
content: ' ';
|
90
|
+
left: 0;
|
91
|
+
position: absolute;
|
92
|
+
width: 100%;
|
93
|
+
height: 2px;
|
94
|
+
transition-timing-function: ease;
|
95
|
+
transition-duration: 0.15s;
|
96
|
+
transition-property: transform;
|
97
|
+
background-color: currentColor;
|
98
|
+
}
|
99
|
+
|
100
|
+
&::before {
|
101
|
+
top: -0.3em;
|
102
|
+
will-change: top;
|
103
|
+
transition: top $menu-hamburger-transition-duration ease 0.12s,
|
104
|
+
opacity $menu-hamburger-transition-duration ease;
|
105
|
+
}
|
106
|
+
|
107
|
+
&::after {
|
108
|
+
bottom: -0.3em;
|
109
|
+
will-change: bottom;
|
110
|
+
transition: bottom $menu-hamburger-transition-duration ease 0.12s,
|
111
|
+
transform $menu-hamburger-transition-duration
|
112
|
+
cubic-bezier(0.55, 0.055, 0.675, 0.19);
|
113
|
+
}
|
114
|
+
}
|
@@ -0,0 +1,140 @@
|
|
1
|
+
$pi-marker-size: 2em;
|
2
|
+
$pi-active-border-thickness: 0.125em;
|
3
|
+
$pi-tick-thickness: 0.125em;
|
4
|
+
$pi-tick-width: $pi-marker-size * 0.6;
|
5
|
+
$pi-tick-height: $pi-marker-size * 0.3;
|
6
|
+
$pi-space-between-steps: 2em;
|
7
|
+
$pi-separator-thickness: 0.125em;
|
8
|
+
$pi-separator-gap-from-marker: 0.25em;
|
9
|
+
$pi-center-of-marker: ($pi-marker-size / 2) - ($pi-separator-thickness / 2);
|
10
|
+
|
11
|
+
.progress-indicator {
|
12
|
+
display: flex;
|
13
|
+
justify-content: space-around;
|
14
|
+
padding: 0;
|
15
|
+
|
16
|
+
@media (min-width: $breakpoint-small) {
|
17
|
+
display: initial;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.progress-indicator__step {
|
22
|
+
position: relative;
|
23
|
+
list-style: none;
|
24
|
+
padding: 0;
|
25
|
+
margin: 0;
|
26
|
+
flex: 1 1 0;
|
27
|
+
text-align: center;
|
28
|
+
color: $color-gray-300;
|
29
|
+
|
30
|
+
@media (min-width: $breakpoint-small) {
|
31
|
+
text-align: initial;
|
32
|
+
display: flex;
|
33
|
+
align-items: center;
|
34
|
+
}
|
35
|
+
|
36
|
+
&::before {
|
37
|
+
position: absolute;
|
38
|
+
background: $color-gray-100;
|
39
|
+
height: $pi-separator-thickness;
|
40
|
+
width: 100%;
|
41
|
+
left: -50%;
|
42
|
+
bottom: $pi-center-of-marker;
|
43
|
+
|
44
|
+
@media (min-width: $breakpoint-small) {
|
45
|
+
height: $pi-space-between-steps;
|
46
|
+
width: $pi-separator-thickness;
|
47
|
+
left: $pi-center-of-marker;
|
48
|
+
bottom: $pi-marker-size;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.progress-indicator__step + .progress-indicator__step {
|
54
|
+
@media (min-width: $breakpoint-small) {
|
55
|
+
margin-top: $pi-space-between-steps;
|
56
|
+
}
|
57
|
+
|
58
|
+
&::before {
|
59
|
+
content: ' ';
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.progress-indicator__step.is-active,
|
64
|
+
.progress-indicator__step.is-complete {
|
65
|
+
color: #000;
|
66
|
+
|
67
|
+
&::before {
|
68
|
+
background: currentColor;
|
69
|
+
}
|
70
|
+
|
71
|
+
.progress-indicator__step-marker {
|
72
|
+
color: currentColor;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.progress-indicator__step.is-active {
|
77
|
+
.progress-indicator__step-marker {
|
78
|
+
background: $color-white;
|
79
|
+
box-shadow: inset 0 0 0 $pi-active-border-thickness currentColor;
|
80
|
+
}
|
81
|
+
|
82
|
+
.progress-indicator__step-label {
|
83
|
+
font-weight: $font-weight-semibold;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
.progress-indicator__step.is-complete {
|
88
|
+
.progress-indicator__step-marker {
|
89
|
+
background: currentColor;
|
90
|
+
|
91
|
+
&::after {
|
92
|
+
content: ' ';
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.progress-indicator__step-marker {
|
98
|
+
position: relative;
|
99
|
+
width: $pi-marker-size;
|
100
|
+
height: $pi-marker-size;
|
101
|
+
line-height: 2;
|
102
|
+
display: inline-block;
|
103
|
+
border-radius: 50%;
|
104
|
+
background: $color-gray-100;
|
105
|
+
text-align: center;
|
106
|
+
z-index: 1;
|
107
|
+
|
108
|
+
&::before,
|
109
|
+
&::after {
|
110
|
+
position: absolute;
|
111
|
+
}
|
112
|
+
|
113
|
+
&::before {
|
114
|
+
content: ' ';
|
115
|
+
box-shadow: 0 0 0 $pi-separator-gap-from-marker $color-white;
|
116
|
+
width: 100%;
|
117
|
+
height: 100%;
|
118
|
+
left: 0;
|
119
|
+
top: 0;
|
120
|
+
}
|
121
|
+
|
122
|
+
&::after {
|
123
|
+
border-bottom: $pi-tick-thickness solid $color-white;
|
124
|
+
border-left: $pi-tick-thickness solid $color-white;
|
125
|
+
top: $pi-tick-height;
|
126
|
+
left: $pi-tick-width / 3;
|
127
|
+
height: $pi-tick-height;
|
128
|
+
width: $pi-tick-width;
|
129
|
+
transform: rotate(-45deg);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
.progress-indicator__step-label {
|
134
|
+
display: none;
|
135
|
+
|
136
|
+
@media (min-width: $breakpoint-small) {
|
137
|
+
margin-left: 1em;
|
138
|
+
display: inline;
|
139
|
+
}
|
140
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
.radial-progress {
|
2
|
+
position: relative;
|
3
|
+
flex-shrink: 0;
|
4
|
+
top: 0.125em;
|
5
|
+
width: 1em;
|
6
|
+
height: 1em;
|
7
|
+
}
|
8
|
+
|
9
|
+
.radial-progress__base,
|
10
|
+
.radial-progress__progress {
|
11
|
+
fill: none;
|
12
|
+
stroke-linecap: round;
|
13
|
+
stroke-width: 5.5;
|
14
|
+
}
|
15
|
+
|
16
|
+
.radial-progress__base {
|
17
|
+
stroke: $l-base-gray-lighter;
|
18
|
+
}
|
19
|
+
|
20
|
+
.radial-progress__progress {
|
21
|
+
stroke: $l-success;
|
22
|
+
transition: 250ms stroke-dasharray cubic-bezier(0, 0, 0.2, 1);
|
23
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
$select-transition-fn: cubic-bezier(0, 0, 0.2, 1);
|
2
|
+
$select-arrow-width: 5px;
|
3
|
+
$select-arrow-space: ($spacing-5 * 2) + ($select-arrow-width * 2);
|
4
|
+
|
5
|
+
.form-select {
|
6
|
+
position: relative;
|
7
|
+
|
8
|
+
&::after {
|
9
|
+
content: ' ';
|
10
|
+
position: absolute;
|
11
|
+
right: $spacing-5;
|
12
|
+
top: 50%;
|
13
|
+
display: block;
|
14
|
+
border-top: $select-arrow-width solid $color-gray-900;
|
15
|
+
border-left: $select-arrow-width solid transparent;
|
16
|
+
border-right: $select-arrow-width solid transparent;
|
17
|
+
transform: translateY(-50%);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
select {
|
22
|
+
appearance: none;
|
23
|
+
display: block;
|
24
|
+
width: 100%;
|
25
|
+
background: $color-white;
|
26
|
+
border: 1px solid $color-gray-300;
|
27
|
+
border-radius: $border-radius-small;
|
28
|
+
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.12);
|
29
|
+
padding: $spacing-3 $select-arrow-space $spacing-3 $spacing-5;
|
30
|
+
color: $color-gray-900;
|
31
|
+
font-size: $font-size-default;
|
32
|
+
line-height: $line-height-default;
|
33
|
+
will-change: border-color, box-shadow;
|
34
|
+
transition: border-color 150ms $select-transition-fn,
|
35
|
+
box-shadow 150ms $select-transition-fn;
|
36
|
+
|
37
|
+
&:disabled {
|
38
|
+
background: $color-gray-100;
|
39
|
+
color: $color-gray-700;
|
40
|
+
box-shadow: none;
|
41
|
+
cursor: not-allowed;
|
42
|
+
}
|
43
|
+
|
44
|
+
&:focus {
|
45
|
+
outline: 0;
|
46
|
+
border-color: $color-blue-300;
|
47
|
+
box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px $color-blue-300;
|
48
|
+
}
|
49
|
+
}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
$sp-marker-size: 20px;
|
2
|
+
$sp-active-border-thickness: 1.75px;
|
3
|
+
$sp-tick-thickness: 2.625px;
|
4
|
+
$sp-tick-width: $sp-marker-size * 0.6;
|
5
|
+
$sp-tick-height: $sp-marker-size * 0.3;
|
6
|
+
$sp-space-between-steps: 28px;
|
7
|
+
$sp-separator-thickness: 4px;
|
8
|
+
$sp-separator-gap-from-marker: $sp-separator-thickness;
|
9
|
+
$sp-center-of-marker: ($sp-marker-size / 2) - ($sp-separator-thickness / 2);
|
10
|
+
|
11
|
+
@mixin horizontal-and-non-mobile {
|
12
|
+
@at-root {
|
13
|
+
.step-progress--horizontal & {
|
14
|
+
@media (min-width: $breakpoint-small) {
|
15
|
+
@content;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.step-progress {
|
22
|
+
display: initial;
|
23
|
+
justify-content: space-around;
|
24
|
+
padding: 0;
|
25
|
+
font-size: $font-size-small;
|
26
|
+
|
27
|
+
&--horizontal {
|
28
|
+
@media (min-width: $breakpoint-small) {
|
29
|
+
display: flex;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.step-progress__step {
|
35
|
+
display: flex;
|
36
|
+
align-items: center;
|
37
|
+
position: relative;
|
38
|
+
list-style: none;
|
39
|
+
padding: 0;
|
40
|
+
margin: 0;
|
41
|
+
flex: 1 1 0;
|
42
|
+
color: $l-primary;
|
43
|
+
|
44
|
+
&:not(.is-active):not(.is-complete):not(.is-errored) {
|
45
|
+
opacity: 0.25;
|
46
|
+
}
|
47
|
+
|
48
|
+
@include horizontal-and-non-mobile {
|
49
|
+
flex-direction: column;
|
50
|
+
align-items: initial;
|
51
|
+
}
|
52
|
+
|
53
|
+
&::before {
|
54
|
+
position: absolute;
|
55
|
+
background: $l-primary;
|
56
|
+
height: $sp-space-between-steps - $sp-separator-gap-from-marker;
|
57
|
+
width: $sp-separator-thickness;
|
58
|
+
left: $sp-center-of-marker;
|
59
|
+
bottom: $sp-marker-size + $sp-separator-gap-from-marker - 1px; // why 1?
|
60
|
+
border-radius: $sp-separator-thickness;
|
61
|
+
|
62
|
+
@include horizontal-and-non-mobile {
|
63
|
+
height: $sp-separator-thickness;
|
64
|
+
width: calc(
|
65
|
+
100% - (#{$sp-marker-size + ($sp-separator-gap-from-marker * 2)})
|
66
|
+
);
|
67
|
+
left: calc(-100% + (#{$sp-marker-size + $sp-separator-gap-from-marker}));
|
68
|
+
top: $sp-center-of-marker;
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
.step-progress__step + .step-progress__step {
|
74
|
+
margin-top: $sp-space-between-steps;
|
75
|
+
|
76
|
+
@include horizontal-and-non-mobile {
|
77
|
+
margin-top: initial;
|
78
|
+
}
|
79
|
+
|
80
|
+
&::before {
|
81
|
+
content: ' ';
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
.step-progress__step.is-errored {
|
86
|
+
color: $l-error;
|
87
|
+
|
88
|
+
.step-progress__step-marker {
|
89
|
+
&::after {
|
90
|
+
content: '!';
|
91
|
+
display: flex;
|
92
|
+
width: 100%;
|
93
|
+
height: 100%;
|
94
|
+
justify-content: center;
|
95
|
+
align-items: center;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
.step-progress__step.is-complete {
|
101
|
+
.step-progress__step-marker {
|
102
|
+
&::after {
|
103
|
+
content: ' ';
|
104
|
+
position: absolute;
|
105
|
+
border-bottom: $sp-tick-thickness solid currentColor;
|
106
|
+
border-left: $sp-tick-thickness solid currentColor;
|
107
|
+
top: $sp-tick-height;
|
108
|
+
left: $sp-tick-width / 3;
|
109
|
+
height: $sp-tick-height;
|
110
|
+
width: $sp-tick-width;
|
111
|
+
transform: rotate(-45deg);
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.step-progress__step-marker {
|
117
|
+
position: relative;
|
118
|
+
width: $sp-marker-size;
|
119
|
+
height: $sp-marker-size;
|
120
|
+
line-height: 2;
|
121
|
+
display: inline-block;
|
122
|
+
border-radius: 50%;
|
123
|
+
background: $color-white;
|
124
|
+
box-shadow: inset 0 0 0 $sp-active-border-thickness currentColor;
|
125
|
+
text-align: center;
|
126
|
+
z-index: 1;
|
127
|
+
}
|
128
|
+
|
129
|
+
.step-progress__step-label {
|
130
|
+
color: $l-base-gray-darker;
|
131
|
+
margin-left: 14px;
|
132
|
+
|
133
|
+
@include horizontal-and-non-mobile {
|
134
|
+
margin-left: initial;
|
135
|
+
margin-top: 5.25px;
|
136
|
+
}
|
137
|
+
}
|