dibk-design 0.4.45 → 0.4.48
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/LICENSE +674 -674
- package/README.md +3 -3
- package/dist/components/Accordion.md +15 -15
- package/dist/components/Accordion.module.scss +205 -205
- package/dist/components/Button.md +75 -75
- package/dist/components/Button.module.scss +232 -232
- package/dist/components/CheckBoxIcon.md +38 -38
- package/dist/components/CheckBoxIcon.module.scss +62 -62
- package/dist/components/CheckBoxInput.md +58 -58
- package/dist/components/CheckBoxInput.module.scss +24 -24
- package/dist/components/CheckBoxListItem.md +82 -82
- package/dist/components/CheckBoxListItem.module.scss +71 -71
- package/dist/components/Container.js +64 -0
- package/dist/components/Container.md +7 -0
- package/dist/components/Container.module.scss +10 -0
- package/dist/components/ContentBox.md +46 -46
- package/dist/components/ContentBox.module.scss +116 -116
- package/dist/components/Dialog.md +5 -5
- package/dist/components/Dialog.module.scss +78 -78
- package/dist/components/DragAndDropFileInput.js +8 -4
- package/dist/components/DragAndDropFileInput.md +13 -13
- package/dist/components/DragAndDropFileInput.module.scss +36 -45
- package/dist/components/ErrorMessage.js +80 -0
- package/dist/components/ErrorMessage.md +15 -0
- package/dist/components/ErrorMessage.module.scss +16 -0
- package/dist/components/Footer.js +3 -3
- package/dist/components/Footer.md +7 -7
- package/dist/components/Footer.module.scss +20 -11
- package/dist/components/Header.md +11 -11
- package/dist/components/Header.module.scss +64 -64
- package/dist/components/InputField.js +6 -11
- package/dist/components/InputField.md +41 -41
- package/dist/components/InputField.module.scss +81 -95
- package/dist/components/Label.md +9 -9
- package/dist/components/Label.module.scss +16 -16
- package/dist/components/List.md +10 -10
- package/dist/components/List.module.scss +18 -18
- package/dist/components/LoadingAnimation.md +5 -5
- package/dist/components/LoadingAnimation.module.scss +26 -26
- package/dist/components/NavigationBar.md +42 -42
- package/dist/components/NavigationBar.module.scss +176 -176
- package/dist/components/NavigationBarListItem.md +15 -15
- package/dist/components/Paper.md +9 -9
- package/dist/components/Paper.module.scss +18 -18
- package/dist/components/ProgressBar.js +31 -0
- package/dist/components/ProgressBar.md +13 -0
- package/dist/components/ProgressBar.module.scss +37 -0
- package/dist/components/RadioButtonIcon.js +101 -101
- package/dist/components/RadioButtonIcon.md +41 -41
- package/dist/components/RadioButtonIcon.module.scss +44 -44
- package/dist/components/RadioButtonInput.js +97 -97
- package/dist/components/RadioButtonInput.md +32 -32
- package/dist/components/RadioButtonInput.module.scss +26 -26
- package/dist/components/RadioButtonListItem.md +70 -70
- package/dist/components/RadioButtonListItem.module.scss +71 -71
- package/dist/components/Select.js +6 -11
- package/dist/components/Select.md +28 -28
- package/dist/components/Select.module.scss +86 -100
- package/dist/components/Textarea.js +6 -11
- package/dist/components/Textarea.md +27 -27
- package/dist/components/Textarea.module.scss +58 -72
- package/dist/components/Theme.md +12 -12
- package/dist/components/Theme.module.scss +76 -76
- package/dist/components/WizardNavigation/Step.module.scss +75 -75
- package/dist/components/WizardNavigation.md +84 -84
- package/dist/components/WizardNavigation.module.scss +3 -3
- package/dist/fonts/Altis-Light.svg +326 -326
- package/dist/fonts/open-sans-v27-latin-ext_latin-300.svg +346 -346
- package/dist/fonts/open-sans-v27-latin-ext_latin-300italic.svg +377 -377
- package/dist/fonts/open-sans-v27-latin-ext_latin-700.svg +349 -349
- package/dist/fonts/open-sans-v27-latin-ext_latin-700italic.svg +379 -379
- package/dist/fonts/open-sans-v27-latin-ext_latin-italic.svg +379 -379
- package/dist/fonts/open-sans-v27-latin-ext_latin-regular.svg +349 -349
- package/dist/images/dibk-logo-mobile.svg +91 -91
- package/dist/images/dibk-logo.svg +991 -991
- package/dist/images/spinner.svg +56 -56
- package/dist/index.js +24 -0
- package/dist/style/abstracts/_all.scss +1 -1
- package/dist/style/abstracts/mixins/_all.scss +12 -12
- package/dist/style/abstracts/mixins/_animation.scss +6 -6
- package/dist/style/abstracts/mixins/_appearance.scss +5 -5
- package/dist/style/abstracts/mixins/_border-radius.scss +31 -31
- package/dist/style/abstracts/mixins/_box-shadow.scss +5 -5
- package/dist/style/abstracts/mixins/_box-sizing.scss +5 -5
- package/dist/style/abstracts/mixins/_calc.scss +5 -5
- package/dist/style/abstracts/mixins/_keyframes.scss +14 -14
- package/dist/style/abstracts/mixins/_opacity.scss +5 -5
- package/dist/style/abstracts/mixins/_placeholder.scss +17 -17
- package/dist/style/abstracts/mixins/_scrollbar.scss +26 -26
- package/dist/style/abstracts/mixins/_transform.scss +6 -6
- package/dist/style/abstracts/mixins/_transition.scss +34 -34
- package/dist/style/abstracts/variables/_all.scss +2 -2
- package/dist/style/abstracts/variables/_colors.scss +28 -29
- package/dist/style/abstracts/variables/_typography.scss +1 -1
- package/dist/style/abstracts/variables/_viewports.scss +14 -14
- package/dist/style/base/_all.scss +1 -1
- package/dist/style/base/_reset.scss +15 -15
- package/dist/style/base/_typography.scss +6 -6
- package/dist/style/base/fonts.css +95 -95
- package/dist/style/global.scss +3 -3
- package/dist/style/layout/_containers.scss +9 -9
- package/package.json +43 -43
|
@@ -1,232 +1,232 @@
|
|
|
1
|
-
@import "../style/global.scss";
|
|
2
|
-
@include keyframes(pushnext) {
|
|
3
|
-
0% {
|
|
4
|
-
@include transform(rotate(45deg) translate3d(0, 0, 0));
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
50% {
|
|
8
|
-
@include transform(rotate(45deg) translate3d(2px, -2px, 0));
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
100% {
|
|
12
|
-
@include transform(rotate(45deg) translate3d(0, 0, 0));
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
@include keyframes(pushprev) {
|
|
16
|
-
0% {
|
|
17
|
-
@include transform(rotate(-135deg) translate3d(0, 0, 0));
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
50% {
|
|
21
|
-
@include transform(rotate(-135deg) translate3d(-2px, 2px, 0));
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
100% {
|
|
25
|
-
@include transform(rotate(-135deg) translate3d(0, 0, 0));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
:local(.button) {
|
|
30
|
-
@include appearance(none);
|
|
31
|
-
@include border-radius(0);
|
|
32
|
-
@include transition(
|
|
33
|
-
filter 300ms ease-out,
|
|
34
|
-
background-color 300ms ease-out,
|
|
35
|
-
color 300ms ease-out,
|
|
36
|
-
border-color 300ms ease-out
|
|
37
|
-
);
|
|
38
|
-
font-family: "Altis", sans-serif;
|
|
39
|
-
border-style: solid;
|
|
40
|
-
border-width: 1px;
|
|
41
|
-
$border-color: $color-primary;
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
line-height: 1;
|
|
44
|
-
position: relative;
|
|
45
|
-
text-align: center;
|
|
46
|
-
text-decoration: none;
|
|
47
|
-
display: inline-block;
|
|
48
|
-
margin-right: 5px;
|
|
49
|
-
margin-bottom: 5px;
|
|
50
|
-
font-size: 17px;
|
|
51
|
-
font-weight: 500;
|
|
52
|
-
@media only screen and (min-width: $screen-sm) {
|
|
53
|
-
font-size: 20px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&:local(.hasTheme) {
|
|
57
|
-
&:hover,
|
|
58
|
-
&:focus {
|
|
59
|
-
filter: brightness(90%);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&:active {
|
|
63
|
-
filter: brightness(85%);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:local(.regular) {
|
|
68
|
-
padding: 14px 24px;
|
|
69
|
-
@media only screen and (min-width: $screen-sm) {
|
|
70
|
-
padding: 17px 32px;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
&:local(.small) {
|
|
75
|
-
padding: 6px 24px;
|
|
76
|
-
min-width: 80px;
|
|
77
|
-
line-height: 18px;
|
|
78
|
-
@media only screen and (min-width: $screen-sm) {
|
|
79
|
-
line-height: 21px;
|
|
80
|
-
padding: 6px 32px;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:local(.default) {
|
|
85
|
-
background-color: #fff;
|
|
86
|
-
color: $color-primary;
|
|
87
|
-
&:not(:local(.hasTheme)) {
|
|
88
|
-
&:hover:not(:local(.noHover)),
|
|
89
|
-
&:active {
|
|
90
|
-
background-color: $color-primary;
|
|
91
|
-
color: #fff;
|
|
92
|
-
&:after,
|
|
93
|
-
&:before {
|
|
94
|
-
border-color: #fff;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&:local(.primary) {
|
|
101
|
-
background-color: $color-primary;
|
|
102
|
-
color: #fff;
|
|
103
|
-
&:not(:local(.hasTheme)) {
|
|
104
|
-
&:hover:not(:local(.noHover)),
|
|
105
|
-
&:active {
|
|
106
|
-
background-color: #fff;
|
|
107
|
-
color: $color-primary;
|
|
108
|
-
&:after,
|
|
109
|
-
&:before {
|
|
110
|
-
border-color: $color-primary;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
&:disabled {
|
|
117
|
-
&:local(.hasTheme),
|
|
118
|
-
&:not(:local(.hasTheme)) {
|
|
119
|
-
&:local(.default) {
|
|
120
|
-
background-color: #fff;
|
|
121
|
-
cursor: default;
|
|
122
|
-
opacity: 0.6;
|
|
123
|
-
color: #afaba8;
|
|
124
|
-
border: 1px solid #e5e3e1;
|
|
125
|
-
&:hover,
|
|
126
|
-
&:focus,
|
|
127
|
-
&:active {
|
|
128
|
-
background-color: #fff;
|
|
129
|
-
cursor: default;
|
|
130
|
-
opacity: 0.6;
|
|
131
|
-
color: #afaba8;
|
|
132
|
-
border: 1px solid #e5e3e1;
|
|
133
|
-
&:before,
|
|
134
|
-
&:after {
|
|
135
|
-
border-color: #afaba8;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
&:before,
|
|
139
|
-
&:after {
|
|
140
|
-
border-color: #afaba8;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
&:local(.primary) {
|
|
144
|
-
background-color: $color-primary;
|
|
145
|
-
cursor: default;
|
|
146
|
-
opacity: 0.6;
|
|
147
|
-
color: #fff;
|
|
148
|
-
border: 1px solid $color-primary;
|
|
149
|
-
&:hover,
|
|
150
|
-
&:focus,
|
|
151
|
-
&:active {
|
|
152
|
-
background-color: $color-primary;
|
|
153
|
-
cursor: default;
|
|
154
|
-
opacity: 0.6;
|
|
155
|
-
color: #fff;
|
|
156
|
-
border: 1px solid $color-primary;
|
|
157
|
-
&:before,
|
|
158
|
-
&:after {
|
|
159
|
-
border-color: $color-primary;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
&:before,
|
|
163
|
-
&:after {
|
|
164
|
-
border-color: $color-primary;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
&:local(.rounded) {
|
|
171
|
-
border-radius: 20px;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
&:local(.hasArrowLeft) {
|
|
175
|
-
&:before {
|
|
176
|
-
@include transform(rotate(-135deg));
|
|
177
|
-
@include calc("top", "50% - 0.4rem");
|
|
178
|
-
content: " ";
|
|
179
|
-
display: inline-block;
|
|
180
|
-
position: absolute;
|
|
181
|
-
right: auto;
|
|
182
|
-
left: 0.55em;
|
|
183
|
-
width: 0.5rem;
|
|
184
|
-
height: 0.5rem;
|
|
185
|
-
vertical-align: middle;
|
|
186
|
-
border: 2px solid white;
|
|
187
|
-
border-width: 2px 2px 0 0;
|
|
188
|
-
margin-right: 1em;
|
|
189
|
-
@media only screen and (min-width: $screen-sm) {
|
|
190
|
-
left: 1em;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
&:hover {
|
|
195
|
-
&:before {
|
|
196
|
-
@include animation(pushprev 0.8s linear infinite);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
&:local(.default) {
|
|
200
|
-
&:before {
|
|
201
|
-
border-color: $color-primary;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&:local(.hasArrowRight) {
|
|
207
|
-
&:after {
|
|
208
|
-
@include transform(rotate(45deg));
|
|
209
|
-
@include calc("top", "50% - 0.4rem");
|
|
210
|
-
content: " ";
|
|
211
|
-
display: inline-block;
|
|
212
|
-
position: absolute;
|
|
213
|
-
left: auto;
|
|
214
|
-
right: 0.55em;
|
|
215
|
-
width: 0.5rem;
|
|
216
|
-
height: 0.5rem;
|
|
217
|
-
vertical-align: middle;
|
|
218
|
-
border: 2px solid white;
|
|
219
|
-
border-width: 2px 2px 0 0;
|
|
220
|
-
margin-left: 1em;
|
|
221
|
-
@media only screen and (min-width: $screen-sm) {
|
|
222
|
-
right: 1em;
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
&:hover {
|
|
227
|
-
&:after {
|
|
228
|
-
@include animation(pushnext 0.8s linear infinite);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
1
|
+
@import "../style/global.scss";
|
|
2
|
+
@include keyframes(pushnext) {
|
|
3
|
+
0% {
|
|
4
|
+
@include transform(rotate(45deg) translate3d(0, 0, 0));
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
50% {
|
|
8
|
+
@include transform(rotate(45deg) translate3d(2px, -2px, 0));
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
100% {
|
|
12
|
+
@include transform(rotate(45deg) translate3d(0, 0, 0));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
@include keyframes(pushprev) {
|
|
16
|
+
0% {
|
|
17
|
+
@include transform(rotate(-135deg) translate3d(0, 0, 0));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
50% {
|
|
21
|
+
@include transform(rotate(-135deg) translate3d(-2px, 2px, 0));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
100% {
|
|
25
|
+
@include transform(rotate(-135deg) translate3d(0, 0, 0));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
:local(.button) {
|
|
30
|
+
@include appearance(none);
|
|
31
|
+
@include border-radius(0);
|
|
32
|
+
@include transition(
|
|
33
|
+
filter 300ms ease-out,
|
|
34
|
+
background-color 300ms ease-out,
|
|
35
|
+
color 300ms ease-out,
|
|
36
|
+
border-color 300ms ease-out
|
|
37
|
+
);
|
|
38
|
+
font-family: "Altis", sans-serif;
|
|
39
|
+
border-style: solid;
|
|
40
|
+
border-width: 1px;
|
|
41
|
+
$border-color: $color-primary;
|
|
42
|
+
cursor: pointer;
|
|
43
|
+
line-height: 1;
|
|
44
|
+
position: relative;
|
|
45
|
+
text-align: center;
|
|
46
|
+
text-decoration: none;
|
|
47
|
+
display: inline-block;
|
|
48
|
+
margin-right: 5px;
|
|
49
|
+
margin-bottom: 5px;
|
|
50
|
+
font-size: 17px;
|
|
51
|
+
font-weight: 500;
|
|
52
|
+
@media only screen and (min-width: $screen-sm) {
|
|
53
|
+
font-size: 20px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:local(.hasTheme) {
|
|
57
|
+
&:hover,
|
|
58
|
+
&:focus {
|
|
59
|
+
filter: brightness(90%);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:active {
|
|
63
|
+
filter: brightness(85%);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:local(.regular) {
|
|
68
|
+
padding: 14px 24px;
|
|
69
|
+
@media only screen and (min-width: $screen-sm) {
|
|
70
|
+
padding: 17px 32px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:local(.small) {
|
|
75
|
+
padding: 6px 24px;
|
|
76
|
+
min-width: 80px;
|
|
77
|
+
line-height: 18px;
|
|
78
|
+
@media only screen and (min-width: $screen-sm) {
|
|
79
|
+
line-height: 21px;
|
|
80
|
+
padding: 6px 32px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:local(.default) {
|
|
85
|
+
background-color: #fff;
|
|
86
|
+
color: $color-primary;
|
|
87
|
+
&:not(:local(.hasTheme)) {
|
|
88
|
+
&:hover:not(:local(.noHover)),
|
|
89
|
+
&:active {
|
|
90
|
+
background-color: $color-primary;
|
|
91
|
+
color: #fff;
|
|
92
|
+
&:after,
|
|
93
|
+
&:before {
|
|
94
|
+
border-color: #fff;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:local(.primary) {
|
|
101
|
+
background-color: $color-primary;
|
|
102
|
+
color: #fff;
|
|
103
|
+
&:not(:local(.hasTheme)) {
|
|
104
|
+
&:hover:not(:local(.noHover)),
|
|
105
|
+
&:active {
|
|
106
|
+
background-color: #fff;
|
|
107
|
+
color: $color-primary;
|
|
108
|
+
&:after,
|
|
109
|
+
&:before {
|
|
110
|
+
border-color: $color-primary;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:disabled {
|
|
117
|
+
&:local(.hasTheme),
|
|
118
|
+
&:not(:local(.hasTheme)) {
|
|
119
|
+
&:local(.default) {
|
|
120
|
+
background-color: #fff;
|
|
121
|
+
cursor: default;
|
|
122
|
+
opacity: 0.6;
|
|
123
|
+
color: #afaba8;
|
|
124
|
+
border: 1px solid #e5e3e1;
|
|
125
|
+
&:hover,
|
|
126
|
+
&:focus,
|
|
127
|
+
&:active {
|
|
128
|
+
background-color: #fff;
|
|
129
|
+
cursor: default;
|
|
130
|
+
opacity: 0.6;
|
|
131
|
+
color: #afaba8;
|
|
132
|
+
border: 1px solid #e5e3e1;
|
|
133
|
+
&:before,
|
|
134
|
+
&:after {
|
|
135
|
+
border-color: #afaba8;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
&:before,
|
|
139
|
+
&:after {
|
|
140
|
+
border-color: #afaba8;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
&:local(.primary) {
|
|
144
|
+
background-color: $color-primary;
|
|
145
|
+
cursor: default;
|
|
146
|
+
opacity: 0.6;
|
|
147
|
+
color: #fff;
|
|
148
|
+
border: 1px solid $color-primary;
|
|
149
|
+
&:hover,
|
|
150
|
+
&:focus,
|
|
151
|
+
&:active {
|
|
152
|
+
background-color: $color-primary;
|
|
153
|
+
cursor: default;
|
|
154
|
+
opacity: 0.6;
|
|
155
|
+
color: #fff;
|
|
156
|
+
border: 1px solid $color-primary;
|
|
157
|
+
&:before,
|
|
158
|
+
&:after {
|
|
159
|
+
border-color: $color-primary;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
&:before,
|
|
163
|
+
&:after {
|
|
164
|
+
border-color: $color-primary;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&:local(.rounded) {
|
|
171
|
+
border-radius: 20px;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&:local(.hasArrowLeft) {
|
|
175
|
+
&:before {
|
|
176
|
+
@include transform(rotate(-135deg));
|
|
177
|
+
@include calc("top", "50% - 0.4rem");
|
|
178
|
+
content: " ";
|
|
179
|
+
display: inline-block;
|
|
180
|
+
position: absolute;
|
|
181
|
+
right: auto;
|
|
182
|
+
left: 0.55em;
|
|
183
|
+
width: 0.5rem;
|
|
184
|
+
height: 0.5rem;
|
|
185
|
+
vertical-align: middle;
|
|
186
|
+
border: 2px solid white;
|
|
187
|
+
border-width: 2px 2px 0 0;
|
|
188
|
+
margin-right: 1em;
|
|
189
|
+
@media only screen and (min-width: $screen-sm) {
|
|
190
|
+
left: 1em;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&:hover {
|
|
195
|
+
&:before {
|
|
196
|
+
@include animation(pushprev 0.8s linear infinite);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
&:local(.default) {
|
|
200
|
+
&:before {
|
|
201
|
+
border-color: $color-primary;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&:local(.hasArrowRight) {
|
|
207
|
+
&:after {
|
|
208
|
+
@include transform(rotate(45deg));
|
|
209
|
+
@include calc("top", "50% - 0.4rem");
|
|
210
|
+
content: " ";
|
|
211
|
+
display: inline-block;
|
|
212
|
+
position: absolute;
|
|
213
|
+
left: auto;
|
|
214
|
+
right: 0.55em;
|
|
215
|
+
width: 0.5rem;
|
|
216
|
+
height: 0.5rem;
|
|
217
|
+
vertical-align: middle;
|
|
218
|
+
border: 2px solid white;
|
|
219
|
+
border-width: 2px 2px 0 0;
|
|
220
|
+
margin-left: 1em;
|
|
221
|
+
@media only screen and (min-width: $screen-sm) {
|
|
222
|
+
right: 1em;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&:hover {
|
|
227
|
+
&:after {
|
|
228
|
+
@include animation(pushnext 0.8s linear infinite);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
Regular check box icons example:
|
|
2
|
-
|
|
3
|
-
```js
|
|
4
|
-
<CheckBoxIcon />
|
|
5
|
-
<CheckBoxIcon checked={true} />
|
|
6
|
-
<CheckBoxIcon checked={true} checkmarkCharacter="✕" />
|
|
7
|
-
<CheckBoxIcon disabled={true} />
|
|
8
|
-
<CheckBoxIcon checked={true} disabled={true} />
|
|
9
|
-
<CheckBoxIcon checked={true} checkmarkCharacter="✕" disabled={true} />
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
Themed Regular check box icons example:
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
import customTheme from 'data/customTheme';
|
|
16
|
-
<React.Fragment>
|
|
17
|
-
<CheckBoxIcon size='43px' />
|
|
18
|
-
<CheckBoxIcon size='43px' checked={true} />
|
|
19
|
-
<CheckBoxIcon size='43px' checked={true} checkmarkCharacter="✕" />
|
|
20
|
-
<CheckBoxIcon size='43px' disabled={true} />
|
|
21
|
-
<CheckBoxIcon size='43px' checked={true} disabled={true} />
|
|
22
|
-
<CheckBoxIcon size='43px' checked={true} checkmarkCharacter="✕" disabled={true} />
|
|
23
|
-
</React.Fragment>
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Check box icons with custom size example:
|
|
27
|
-
|
|
28
|
-
```js
|
|
29
|
-
<CheckBoxIcon size='43px' />
|
|
30
|
-
<CheckBoxIcon size='43px' checked={true} />
|
|
31
|
-
<CheckBoxIcon size='43px' checked={true} checkmarkCharacter="✕" />
|
|
32
|
-
<CheckBoxIcon size='43px' disabled={true} />
|
|
33
|
-
<CheckBoxIcon size='43px' checked={true} disabled={true} />
|
|
34
|
-
<CheckBoxIcon size='43px' checked={true} checkmarkCharacter="✕" disabled={true} />
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
1
|
+
Regular check box icons example:
|
|
2
|
+
|
|
3
|
+
```js
|
|
4
|
+
<CheckBoxIcon />
|
|
5
|
+
<CheckBoxIcon checked={true} />
|
|
6
|
+
<CheckBoxIcon checked={true} checkmarkCharacter="✕" />
|
|
7
|
+
<CheckBoxIcon disabled={true} />
|
|
8
|
+
<CheckBoxIcon checked={true} disabled={true} />
|
|
9
|
+
<CheckBoxIcon checked={true} checkmarkCharacter="✕" disabled={true} />
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Themed Regular check box icons example:
|
|
13
|
+
|
|
14
|
+
```js
|
|
15
|
+
import customTheme from 'data/customTheme';
|
|
16
|
+
<React.Fragment>
|
|
17
|
+
<CheckBoxIcon size='43px' />
|
|
18
|
+
<CheckBoxIcon size='43px' checked={true} />
|
|
19
|
+
<CheckBoxIcon size='43px' checked={true} checkmarkCharacter="✕" />
|
|
20
|
+
<CheckBoxIcon size='43px' disabled={true} />
|
|
21
|
+
<CheckBoxIcon size='43px' checked={true} disabled={true} />
|
|
22
|
+
<CheckBoxIcon size='43px' checked={true} checkmarkCharacter="✕" disabled={true} />
|
|
23
|
+
</React.Fragment>
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Check box icons with custom size example:
|
|
27
|
+
|
|
28
|
+
```js
|
|
29
|
+
<CheckBoxIcon size='43px' />
|
|
30
|
+
<CheckBoxIcon size='43px' checked={true} />
|
|
31
|
+
<CheckBoxIcon size='43px' checked={true} checkmarkCharacter="✕" />
|
|
32
|
+
<CheckBoxIcon size='43px' disabled={true} />
|
|
33
|
+
<CheckBoxIcon size='43px' checked={true} disabled={true} />
|
|
34
|
+
<CheckBoxIcon size='43px' checked={true} checkmarkCharacter="✕" disabled={true} />
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
@import "../style/global.scss";
|
|
2
|
-
|
|
3
|
-
:local(.checkBoxIcon) {
|
|
4
|
-
@include border-radius(0);
|
|
5
|
-
@include transition(all 0.1s ease-in-out);
|
|
6
|
-
@include box-sizing(content-box);
|
|
7
|
-
display: inline-block;
|
|
8
|
-
vertical-align: middle;
|
|
9
|
-
min-width: 10px;
|
|
10
|
-
width: 10px;
|
|
11
|
-
height: 10px;
|
|
12
|
-
min-width: 20px;
|
|
13
|
-
margin-right: 0.2em;
|
|
14
|
-
line-height: 1;
|
|
15
|
-
text-align: center;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
|
|
18
|
-
&:local(.showBox) {
|
|
19
|
-
margin-right: 0.4em;
|
|
20
|
-
margin-top: 2px;
|
|
21
|
-
background: white;
|
|
22
|
-
&:not(:local(.hasErrors)) {
|
|
23
|
-
@include box-shadow(0 0 0 1px #afaba8);
|
|
24
|
-
}
|
|
25
|
-
&:local(.hasErrors) {
|
|
26
|
-
@include box-shadow(0 0 2px 1px #9d2024);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:local(.checked) {
|
|
31
|
-
color: $color-primary;
|
|
32
|
-
&:local(.hasErrors) {
|
|
33
|
-
span {
|
|
34
|
-
color: #9d2024;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
&:local(.showBox) {
|
|
38
|
-
&:not(:local(.hasErrors)) {
|
|
39
|
-
@include box-shadow(0 0 0 1px #afaba8);
|
|
40
|
-
}
|
|
41
|
-
&:local(.hasErrors) {
|
|
42
|
-
@include box-shadow(0 0 2px 1px #9d2024);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
&:local(.disabled) {
|
|
48
|
-
opacity: 0.5;
|
|
49
|
-
background: rgba(0, 0, 0, 0.25);
|
|
50
|
-
cursor: default;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
:local(.checkmark) {
|
|
54
|
-
font-size: 1em;
|
|
55
|
-
line-height: 0.75em;
|
|
56
|
-
}
|
|
57
|
-
:not(:local(.showBox)) {
|
|
58
|
-
&:local(.checkmark) {
|
|
59
|
-
line-height: 1.05em;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
@import "../style/global.scss";
|
|
2
|
+
|
|
3
|
+
:local(.checkBoxIcon) {
|
|
4
|
+
@include border-radius(0);
|
|
5
|
+
@include transition(all 0.1s ease-in-out);
|
|
6
|
+
@include box-sizing(content-box);
|
|
7
|
+
display: inline-block;
|
|
8
|
+
vertical-align: middle;
|
|
9
|
+
min-width: 10px;
|
|
10
|
+
width: 10px;
|
|
11
|
+
height: 10px;
|
|
12
|
+
min-width: 20px;
|
|
13
|
+
margin-right: 0.2em;
|
|
14
|
+
line-height: 1;
|
|
15
|
+
text-align: center;
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
|
|
18
|
+
&:local(.showBox) {
|
|
19
|
+
margin-right: 0.4em;
|
|
20
|
+
margin-top: 2px;
|
|
21
|
+
background: white;
|
|
22
|
+
&:not(:local(.hasErrors)) {
|
|
23
|
+
@include box-shadow(0 0 0 1px #afaba8);
|
|
24
|
+
}
|
|
25
|
+
&:local(.hasErrors) {
|
|
26
|
+
@include box-shadow(0 0 2px 1px #9d2024);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:local(.checked) {
|
|
31
|
+
color: $color-primary;
|
|
32
|
+
&:local(.hasErrors) {
|
|
33
|
+
span {
|
|
34
|
+
color: #9d2024;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&:local(.showBox) {
|
|
38
|
+
&:not(:local(.hasErrors)) {
|
|
39
|
+
@include box-shadow(0 0 0 1px #afaba8);
|
|
40
|
+
}
|
|
41
|
+
&:local(.hasErrors) {
|
|
42
|
+
@include box-shadow(0 0 2px 1px #9d2024);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:local(.disabled) {
|
|
48
|
+
opacity: 0.5;
|
|
49
|
+
background: rgba(0, 0, 0, 0.25);
|
|
50
|
+
cursor: default;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
:local(.checkmark) {
|
|
54
|
+
font-size: 1em;
|
|
55
|
+
line-height: 0.75em;
|
|
56
|
+
}
|
|
57
|
+
:not(:local(.showBox)) {
|
|
58
|
+
&:local(.checkmark) {
|
|
59
|
+
line-height: 1.05em;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|