@1024pix/pix-ui 27.0.0 → 27.0.2
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/.stylelintrc.json +0 -8
- package/CHANGELOG.md +13 -0
- package/addon/components/pix-checkbox.hbs +9 -13
- package/addon/components/pix-multi-select.hbs +1 -0
- package/addon/components/pix-stars.hbs +2 -2
- package/addon/styles/_pix-banner.scss +9 -0
- package/addon/styles/_pix-button.scss +3 -0
- package/addon/styles/_pix-checkbox.scss +12 -9
- package/addon/styles/_pix-dropdown.scss +1 -0
- package/addon/styles/_pix-filterable-and-searchable-select.scss +2 -0
- package/addon/styles/_pix-indicator-card.scss +2 -1
- package/addon/styles/_pix-input-password.scss +1 -0
- package/addon/styles/_pix-input.scss +0 -1
- package/addon/styles/_pix-message.scss +4 -0
- package/addon/styles/_pix-modal.scss +1 -1
- package/addon/styles/_pix-multi-select.scss +8 -1
- package/addon/styles/_pix-pagination.scss +1 -0
- package/addon/styles/_pix-return-to.scss +2 -0
- package/addon/styles/_pix-select.scss +9 -0
- package/addon/styles/_pix-selectable-tag.scss +4 -0
- package/addon/styles/_pix-sidebar.scss +1 -1
- package/addon/styles/_pix-stars.scss +1 -0
- package/addon/styles/_pix-tag.scss +0 -3
- package/addon/styles/normalize-reset/_reset.scss +64 -11
- package/addon/styles/pix-design-tokens/_breakpoints.scss +1 -2
- package/addon/styles/pix-design-tokens/_colors.scss +5 -4
- package/addon/styles/pix-design-tokens/_fonts.scss +0 -1
- package/addon/styles/pix-design-tokens/_form.scss +1 -0
- package/addon/styles/pix-design-tokens/_typography.scss +8 -0
- package/app/stories/pix-checkbox.stories.js +5 -0
- package/package.json +1 -1
package/.stylelintrc.json
CHANGED
|
@@ -2,25 +2,17 @@
|
|
|
2
2
|
"extends": ["@1024pix/stylelint-config"],
|
|
3
3
|
"rules": {
|
|
4
4
|
"alpha-value-notation": null,
|
|
5
|
-
"block-opening-brace-space-before": null,
|
|
6
5
|
"color-function-notation": null,
|
|
7
|
-
"comment-empty-line-before": null,
|
|
8
6
|
"declaration-block-no-redundant-longhand-properties": null,
|
|
9
|
-
"declaration-block-single-line-max-declarations": null,
|
|
10
|
-
"declaration-empty-line-before": null,
|
|
11
7
|
"font-family-name-quotes": null,
|
|
12
8
|
"font-family-no-duplicate-names": null,
|
|
13
9
|
"function-url-quotes": null,
|
|
14
10
|
"no-descending-specificity": null,
|
|
15
11
|
"no-empty-source": null,
|
|
16
12
|
"property-no-vendor-prefix": null,
|
|
17
|
-
"rule-empty-line-before": null,
|
|
18
13
|
"scss/at-mixin-argumentless-call-parentheses": null,
|
|
19
14
|
"scss/at-mixin-pattern": null,
|
|
20
|
-
"scss/dollar-variable-empty-line-before": null,
|
|
21
|
-
"scss/double-slash-comment-empty-line-before": null,
|
|
22
15
|
"scss/no-global-function-names": null,
|
|
23
|
-
"scss/operator-no-newline-before": null,
|
|
24
16
|
"selector-id-pattern": null,
|
|
25
17
|
"selector-pseudo-element-colon-notation": null
|
|
26
18
|
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Pix-UI Changelog
|
|
2
2
|
|
|
3
|
+
## v27.0.2 (06/03/2023)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### :bug: Correction
|
|
7
|
+
- [#353](https://github.com/1024pix/pix-ui/pull/353) [BUGFIX] Améliorer l'accessibilité de PixStar (PIX-7349)
|
|
8
|
+
- [#348](https://github.com/1024pix/pix-ui/pull/348) [BUGFIX] Rendre la ligne entière d'une option du multiselect cliquable (PIX-6957)
|
|
9
|
+
|
|
10
|
+
## v27.0.1 (22/02/2023)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### :building_construction: Tech
|
|
14
|
+
- [#347](https://github.com/1024pix/pix-ui/pull/347) [TECH] Active des règles de lint SCSS d'espacement
|
|
15
|
+
|
|
3
16
|
## v27.0.0 (22/02/2023)
|
|
4
17
|
|
|
5
18
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
1
|
+
<label class="pix-checkbox {{if @screenReaderOnly 'sr-only'}} {{@class}}" for={{@id}}>
|
|
2
2
|
<input
|
|
3
3
|
id={{@id}}
|
|
4
4
|
type="checkbox"
|
|
@@ -6,15 +6,11 @@
|
|
|
6
6
|
checked={{@checked}}
|
|
7
7
|
...attributes
|
|
8
8
|
/>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{{@id}}.
|
|
18
|
-
{{/if}}
|
|
19
|
-
</label>
|
|
20
|
-
</div>
|
|
9
|
+
|
|
10
|
+
{{#if (has-block)}}
|
|
11
|
+
<span class="pix-checkbox__label {{this.labelSizeClass}}">{{yield}}</span>
|
|
12
|
+
{{else}}
|
|
13
|
+
yield required to give a label for PixCheckBox
|
|
14
|
+
{{@id}}.
|
|
15
|
+
{{/if}}
|
|
16
|
+
</label>
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
@id={{concat this.multiSelectId "-" option.value}}
|
|
67
67
|
@checked={{option.checked}}
|
|
68
68
|
@labelSize="small"
|
|
69
|
+
@class="pix-multi-select-list__item-label"
|
|
69
70
|
value={{option.value}}
|
|
70
71
|
{{on "change" this.onSelect}}
|
|
71
72
|
{{on-enter-action this.hideDropDown this.multiSelectId}}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<div class={{this.pixStarsClass}} ...attributes
|
|
1
|
+
<div class={{this.pixStarsClass}} ...attributes>
|
|
2
|
+
<span class="screen-reader-only">{{@alt}}</span>
|
|
2
3
|
{{#each this.stars as |star|}}
|
|
3
4
|
<svg
|
|
4
5
|
class="pix-stars__{{star}}"
|
|
5
6
|
data-test-status={{star}}
|
|
6
7
|
viewBox="0 0 36 36"
|
|
7
|
-
role="img"
|
|
8
8
|
aria-hidden="true"
|
|
9
9
|
>
|
|
10
10
|
<defs>
|
|
@@ -10,16 +10,19 @@
|
|
|
10
10
|
&__action {
|
|
11
11
|
text-decoration: underline;
|
|
12
12
|
color: inherit;
|
|
13
|
+
|
|
13
14
|
.external-link {
|
|
14
15
|
margin-left: 4px;
|
|
15
16
|
font-size: 0.875rem;
|
|
16
17
|
}
|
|
17
18
|
}
|
|
19
|
+
|
|
18
20
|
&__close {
|
|
19
21
|
display: flex;
|
|
20
22
|
margin-left: auto;
|
|
21
23
|
padding-left: 8px;
|
|
22
24
|
}
|
|
25
|
+
|
|
23
26
|
&__icon {
|
|
24
27
|
font-size: 1.125rem;
|
|
25
28
|
margin-right: $spacing-xs;
|
|
@@ -28,9 +31,11 @@
|
|
|
28
31
|
&--information {
|
|
29
32
|
background-color: $pix-primary-5;
|
|
30
33
|
color: $pix-primary-70;
|
|
34
|
+
|
|
31
35
|
.pix-icon-button {
|
|
32
36
|
background-color: $pix-primary-5;
|
|
33
37
|
color: $pix-primary-70;
|
|
38
|
+
|
|
34
39
|
&:hover:enabled,
|
|
35
40
|
&:focus:enabled,
|
|
36
41
|
&:active:enabled {
|
|
@@ -47,9 +52,11 @@
|
|
|
47
52
|
&--warning {
|
|
48
53
|
background-color: $pix-warning-5;
|
|
49
54
|
color: $pix-warning-70;
|
|
55
|
+
|
|
50
56
|
.pix-icon-button {
|
|
51
57
|
background-color: $pix-warning-5;
|
|
52
58
|
color: $pix-warning-70;
|
|
59
|
+
|
|
53
60
|
&:hover:enabled,
|
|
54
61
|
&:focus:enabled,
|
|
55
62
|
&:active:enabled {
|
|
@@ -66,9 +73,11 @@
|
|
|
66
73
|
&--error {
|
|
67
74
|
background-color: $pix-error-5;
|
|
68
75
|
color: $pix-error-70;
|
|
76
|
+
|
|
69
77
|
.pix-icon-button {
|
|
70
78
|
background-color: $pix-error-5;
|
|
71
79
|
color: $pix-error-70;
|
|
80
|
+
|
|
72
81
|
&:hover:enabled,
|
|
73
82
|
&:focus:enabled,
|
|
74
83
|
&:active:enabled {
|
|
@@ -30,9 +30,11 @@
|
|
|
30
30
|
.loader--white > div {
|
|
31
31
|
background-color: $pix-neutral-0;
|
|
32
32
|
}
|
|
33
|
+
|
|
33
34
|
.loader--grey > div {
|
|
34
35
|
background-color: $pix-neutral-80;
|
|
35
36
|
}
|
|
37
|
+
|
|
36
38
|
.loader .bounce1 {
|
|
37
39
|
animation-delay: -0.32s;
|
|
38
40
|
}
|
|
@@ -47,6 +49,7 @@
|
|
|
47
49
|
100% {
|
|
48
50
|
transform: scale(0);
|
|
49
51
|
}
|
|
52
|
+
|
|
50
53
|
40% {
|
|
51
54
|
transform: scale(1);
|
|
52
55
|
}
|
|
@@ -1,26 +1,29 @@
|
|
|
1
1
|
.pix-checkbox {
|
|
2
2
|
align-items: center;
|
|
3
3
|
display: flex;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
}
|
|
4
|
+
color: $pix-neutral-70;
|
|
5
|
+
cursor: pointer;
|
|
8
6
|
|
|
9
7
|
&__label {
|
|
10
|
-
color: $pix-neutral-70;
|
|
11
8
|
@include text;
|
|
12
9
|
|
|
13
10
|
&--small {
|
|
14
11
|
@include text-small;
|
|
15
12
|
}
|
|
13
|
+
|
|
16
14
|
&--default {
|
|
17
15
|
@include text;
|
|
18
16
|
}
|
|
17
|
+
|
|
19
18
|
&--large {
|
|
20
19
|
@include text-large;
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
|
|
23
|
+
input {
|
|
24
|
+
cursor: pointer;
|
|
25
|
+
}
|
|
26
|
+
|
|
24
27
|
&__input {
|
|
25
28
|
appearance: none;
|
|
26
29
|
margin: 0 10px;
|
|
@@ -30,12 +33,13 @@
|
|
|
30
33
|
border-radius: 2px;
|
|
31
34
|
position: relative;
|
|
32
35
|
|
|
33
|
-
&:hover,
|
|
34
|
-
|
|
36
|
+
&:hover,
|
|
37
|
+
&:focus {
|
|
38
|
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 6px $pix-neutral-15;
|
|
35
39
|
}
|
|
36
40
|
|
|
37
41
|
&:active {
|
|
38
|
-
box-shadow: inset 0 1px 3px rgba(0,0,0, .1), 0 0 0 6px $pix-neutral-22;
|
|
42
|
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 6px $pix-neutral-22;
|
|
39
43
|
}
|
|
40
44
|
|
|
41
45
|
&:checked {
|
|
@@ -52,7 +56,6 @@
|
|
|
52
56
|
position: absolute;
|
|
53
57
|
top: 0;
|
|
54
58
|
left: 0;
|
|
55
|
-
|
|
56
59
|
}
|
|
57
60
|
}
|
|
58
61
|
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
background-color: $pix-neutral-0;
|
|
5
5
|
border-radius: 8px;
|
|
6
6
|
min-height: 112px;
|
|
7
|
-
|
|
8
7
|
box-shadow: 0 4px 8px rgba($pix-neutral-110, 0.05);
|
|
9
8
|
padding: 0;
|
|
10
9
|
|
|
@@ -29,6 +28,7 @@
|
|
|
29
28
|
|
|
30
29
|
&__title {
|
|
31
30
|
@include text-large();
|
|
31
|
+
|
|
32
32
|
display: flex;
|
|
33
33
|
align-items: center;
|
|
34
34
|
font-weight: $font-medium;
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
|
|
49
49
|
&__sub {
|
|
50
50
|
@include text-small();
|
|
51
|
+
|
|
51
52
|
font-weight: $font-normal;
|
|
52
53
|
display: flex;
|
|
53
54
|
gap: 10px;
|
|
@@ -10,18 +10,22 @@
|
|
|
10
10
|
color: $pix-primary-70;
|
|
11
11
|
background-color: $pix-primary-5;
|
|
12
12
|
}
|
|
13
|
+
|
|
13
14
|
&.pix-message--alert {
|
|
14
15
|
color: $pix-error-70;
|
|
15
16
|
background-color: $pix-error-5;
|
|
16
17
|
}
|
|
18
|
+
|
|
17
19
|
&.pix-message--error {
|
|
18
20
|
color: $pix-error-70;
|
|
19
21
|
background-color: $pix-error-5;
|
|
20
22
|
}
|
|
23
|
+
|
|
21
24
|
&.pix-message--success {
|
|
22
25
|
color: $pix-success-70;
|
|
23
26
|
background-color: $pix-success-5;
|
|
24
27
|
}
|
|
28
|
+
|
|
25
29
|
&.pix-message--warning {
|
|
26
30
|
color: $pix-warning-70;
|
|
27
31
|
background-color: $pix-warning-5;
|
|
@@ -35,13 +35,13 @@ $space-between-title-and-close-button: 8px;
|
|
|
35
35
|
$button-margin: 16px;
|
|
36
36
|
|
|
37
37
|
.pix-modal {
|
|
38
|
-
|
|
39
38
|
display: inline-block;
|
|
40
39
|
vertical-align: middle; // Centered vertically with the .pix-modal__overlay::after which is 100% height
|
|
41
40
|
width: 512px;
|
|
42
41
|
max-width: calc(
|
|
43
42
|
100% - #{2 * $spacing-xs}
|
|
44
43
|
); // Horizontal margin sets here to have extra space for the .pix-modal__overlay::after on mobile
|
|
44
|
+
|
|
45
45
|
text-align: initial;
|
|
46
46
|
background-color: $pix-neutral-10;
|
|
47
47
|
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
|
|
58
58
|
&__dropdown-icon {
|
|
59
59
|
@include text-small();
|
|
60
|
+
|
|
60
61
|
color: $pix-neutral-60;
|
|
61
62
|
font-weight: $font-heavy;
|
|
62
63
|
right: 10px;
|
|
@@ -82,6 +83,10 @@
|
|
|
82
83
|
transition: all 0.1s ease-in-out;
|
|
83
84
|
margin-top: $spacing-xxs;
|
|
84
85
|
|
|
86
|
+
&__item-label {
|
|
87
|
+
padding: $spacing-xs $spacing-m;
|
|
88
|
+
}
|
|
89
|
+
|
|
85
90
|
&--hidden {
|
|
86
91
|
visibility: hidden;
|
|
87
92
|
opacity: 0;
|
|
@@ -90,15 +95,18 @@
|
|
|
90
95
|
&::-webkit-scrollbar {
|
|
91
96
|
width: 11px;
|
|
92
97
|
}
|
|
98
|
+
|
|
93
99
|
&::-webkit-scrollbar-track {
|
|
94
100
|
border-radius: 4px;
|
|
95
101
|
border: 1px solid $pix-neutral-20;
|
|
96
102
|
background: $pix-neutral-0;
|
|
97
103
|
}
|
|
104
|
+
|
|
98
105
|
&::-webkit-scrollbar-thumb {
|
|
99
106
|
border-radius: 4px;
|
|
100
107
|
background: $pix-neutral-30;
|
|
101
108
|
}
|
|
109
|
+
|
|
102
110
|
&::-webkit-scrollbar-thumb:hover {
|
|
103
111
|
background: $pix-neutral-35;
|
|
104
112
|
}
|
|
@@ -106,7 +114,6 @@
|
|
|
106
114
|
li.pix-multi-select-list__item {
|
|
107
115
|
position: relative;
|
|
108
116
|
list-style: none;
|
|
109
|
-
padding: $spacing-xs $spacing-m;
|
|
110
117
|
|
|
111
118
|
|
|
112
119
|
&:hover,
|
|
@@ -71,9 +71,11 @@
|
|
|
71
71
|
&--white {
|
|
72
72
|
@include coloriseLink($pix-neutral-10, $pix-neutral-0, $pix-neutral-0);
|
|
73
73
|
}
|
|
74
|
+
|
|
74
75
|
&--black {
|
|
75
76
|
@include coloriseLink($pix-neutral-80, $pix-neutral-110, $pix-neutral-60);
|
|
76
77
|
}
|
|
78
|
+
|
|
77
79
|
&--blue {
|
|
78
80
|
@include coloriseLink($pix-communication-dark, $pix-primary-60, $pix-communication-dark);
|
|
79
81
|
}
|
|
@@ -28,16 +28,19 @@
|
|
|
28
28
|
&::-webkit-scrollbar {
|
|
29
29
|
width: 0.5rem;
|
|
30
30
|
}
|
|
31
|
+
|
|
31
32
|
&::-webkit-scrollbar-track {
|
|
32
33
|
border-radius: 4px;
|
|
33
34
|
border: 1px solid $pix-neutral-20;
|
|
34
35
|
background: $pix-neutral-20;
|
|
35
36
|
}
|
|
37
|
+
|
|
36
38
|
&::-webkit-scrollbar-thumb {
|
|
37
39
|
border-radius: 4px;
|
|
38
40
|
width: 0.375rem;
|
|
39
41
|
background: $pix-neutral-30;
|
|
40
42
|
}
|
|
43
|
+
|
|
41
44
|
&::-webkit-scrollbar-thumb:hover {
|
|
42
45
|
background: $pix-neutral-35;
|
|
43
46
|
}
|
|
@@ -50,6 +53,7 @@
|
|
|
50
53
|
|
|
51
54
|
&__empty-search-message {
|
|
52
55
|
@include text-small();
|
|
56
|
+
|
|
53
57
|
color: $pix-neutral-70;
|
|
54
58
|
text-align: center;
|
|
55
59
|
}
|
|
@@ -117,6 +121,7 @@
|
|
|
117
121
|
|
|
118
122
|
&__dropdown-icon {
|
|
119
123
|
@include text-small();
|
|
124
|
+
|
|
120
125
|
margin-left: $spacing-xs;
|
|
121
126
|
color: $pix-neutral-60;
|
|
122
127
|
font-weight: $font-heavy;
|
|
@@ -133,6 +138,7 @@
|
|
|
133
138
|
.pix-select-options-category {
|
|
134
139
|
&__name {
|
|
135
140
|
@include text-small();
|
|
141
|
+
|
|
136
142
|
padding: $spacing-s $spacing-m $spacing-xs $spacing-m;
|
|
137
143
|
text-transform: uppercase;
|
|
138
144
|
font-family: $font-roboto;
|
|
@@ -141,6 +147,7 @@
|
|
|
141
147
|
|
|
142
148
|
&__option {
|
|
143
149
|
@include text-small();
|
|
150
|
+
|
|
144
151
|
display: flex;
|
|
145
152
|
justify-content: space-between;
|
|
146
153
|
padding: $spacing-xs $spacing-m;
|
|
@@ -181,10 +188,12 @@
|
|
|
181
188
|
.pix-select-search {
|
|
182
189
|
&__input {
|
|
183
190
|
@include text-small();
|
|
191
|
+
|
|
184
192
|
width: 100%;
|
|
185
193
|
border: none;
|
|
186
194
|
padding-left: $spacing-xs;
|
|
187
195
|
margin: $spacing-xxs;
|
|
196
|
+
|
|
188
197
|
&:focus {
|
|
189
198
|
outline: none;
|
|
190
199
|
background: $pix-neutral-10;
|
|
@@ -53,6 +53,7 @@ $checkmark-width-with-space: $checkmark-width + 0.438rem;
|
|
|
53
53
|
|
|
54
54
|
&--checked {
|
|
55
55
|
@include checkmarkColor($pix-neutral-70);
|
|
56
|
+
|
|
56
57
|
border: $pix-neutral-22 solid 1px;
|
|
57
58
|
background-color: $pix-neutral-20;
|
|
58
59
|
color: $pix-neutral-70;
|
|
@@ -60,6 +61,7 @@ $checkmark-width-with-space: $checkmark-width + 0.438rem;
|
|
|
60
61
|
|
|
61
62
|
&:hover {
|
|
62
63
|
@include checkmarkColor($pix-neutral-70);
|
|
64
|
+
|
|
63
65
|
background-color: $pix-neutral-22;
|
|
64
66
|
border: $pix-neutral-25 solid 1px;
|
|
65
67
|
color: $pix-neutral-70;
|
|
@@ -72,6 +74,7 @@ $checkmark-width-with-space: $checkmark-width + 0.438rem;
|
|
|
72
74
|
|
|
73
75
|
&:focus-within {
|
|
74
76
|
@include checkmarkColor($pix-neutral-0);
|
|
77
|
+
|
|
75
78
|
background-color: $pix-neutral-60;
|
|
76
79
|
color: $pix-neutral-0;
|
|
77
80
|
box-shadow: 0 0 0 1px $pix-neutral-60;
|
|
@@ -80,6 +83,7 @@ $checkmark-width-with-space: $checkmark-width + 0.438rem;
|
|
|
80
83
|
|
|
81
84
|
&:hover {
|
|
82
85
|
@include checkmarkColor($pix-neutral-70);
|
|
86
|
+
|
|
83
87
|
color: $pix-neutral-70;
|
|
84
88
|
background-color: $pix-neutral-22;
|
|
85
89
|
border: $pix-neutral-25 solid 1px;
|
|
@@ -22,7 +22,6 @@ $space-between-title-and-close-button: 8px;
|
|
|
22
22
|
$button-margin: 16px;
|
|
23
23
|
|
|
24
24
|
.pix-sidebar {
|
|
25
|
-
|
|
26
25
|
display: flex;
|
|
27
26
|
flex-direction: column;
|
|
28
27
|
height: 100%;
|
|
@@ -60,6 +59,7 @@ $button-margin: 16px;
|
|
|
60
59
|
|
|
61
60
|
&__title {
|
|
62
61
|
@include h4;
|
|
62
|
+
|
|
63
63
|
margin-bottom: 0;
|
|
64
64
|
color: $pix-neutral-90;
|
|
65
65
|
padding-right: $mobile-close-button-size + $space-between-title-and-close-button;
|
|
@@ -4,14 +4,11 @@
|
|
|
4
4
|
vertical-align: baseline;
|
|
5
5
|
white-space: nowrap;
|
|
6
6
|
padding: 4px 16px;
|
|
7
|
-
|
|
8
7
|
font-family: $font-roboto;
|
|
9
8
|
font-size: 0.8125rem;
|
|
10
9
|
font-weight: $font-normal;
|
|
11
|
-
|
|
12
10
|
border: 1px solid transparent;
|
|
13
11
|
border-radius: 0.75rem;
|
|
14
|
-
|
|
15
12
|
color: $pix-neutral-0;
|
|
16
13
|
background-color: $pix-primary;
|
|
17
14
|
|
|
@@ -1,20 +1,73 @@
|
|
|
1
1
|
/****** Elad Shechter's RESET *******/
|
|
2
|
+
|
|
2
3
|
/*** box sizing border-box for all elements ***/
|
|
3
4
|
html {
|
|
4
5
|
font-size: 16px;
|
|
5
|
-
}
|
|
6
|
+
}
|
|
7
|
+
|
|
6
8
|
body {
|
|
7
9
|
font-family: $font-roboto;
|
|
8
10
|
}
|
|
11
|
+
|
|
9
12
|
*,
|
|
10
13
|
*::before,
|
|
11
|
-
*::after{
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
*::after {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
a {
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
color: inherit;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
button {
|
|
25
|
+
background-color: transparent;
|
|
26
|
+
color: inherit;
|
|
27
|
+
border-width: 0;
|
|
28
|
+
padding: 0;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
figure {
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
input::-moz-focus-inner {
|
|
37
|
+
border: 0;
|
|
38
|
+
padding: 0;
|
|
39
|
+
margin: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
ul,
|
|
43
|
+
ol,
|
|
44
|
+
dd {
|
|
45
|
+
margin: 0;
|
|
46
|
+
padding: 0;
|
|
47
|
+
list-style: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
h1,
|
|
51
|
+
h2,
|
|
52
|
+
h3,
|
|
53
|
+
h4,
|
|
54
|
+
h5,
|
|
55
|
+
h6 {
|
|
56
|
+
margin: 0;
|
|
57
|
+
font-size: inherit;
|
|
58
|
+
font-weight: inherit;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
p {
|
|
62
|
+
margin: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
cite {
|
|
66
|
+
font-style: normal;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
fieldset {
|
|
70
|
+
border-width: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
margin: 0;
|
|
73
|
+
}
|
|
@@ -11,7 +11,6 @@ $breakpoints: (
|
|
|
11
11
|
@content;
|
|
12
12
|
}
|
|
13
13
|
} @else {
|
|
14
|
-
@warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. "
|
|
15
|
-
+ "Available breakpoints are: #{map-keys($breakpoints)}.";
|
|
14
|
+
@warn "Unfortunately, no value could be retrieved from `#{$breakpoint}`. Available breakpoints are: #{map-keys($breakpoints)}.";
|
|
16
15
|
}
|
|
17
16
|
}
|
|
@@ -116,16 +116,12 @@ $pix-shades-100: #000000;
|
|
|
116
116
|
// Domain
|
|
117
117
|
$pix-information-dark: #F24645;
|
|
118
118
|
$pix-information-light: #F1A141;
|
|
119
|
-
|
|
120
119
|
$pix-content-dark: #1A8C89;
|
|
121
120
|
$pix-content-light: #52D987;
|
|
122
|
-
|
|
123
121
|
$pix-communication-dark: #3D68FF;
|
|
124
122
|
$pix-communication-light: #12A3FF;
|
|
125
|
-
|
|
126
123
|
$pix-security-dark: #AC008D;
|
|
127
124
|
$pix-security-light: #FF3F94;
|
|
128
|
-
|
|
129
125
|
$pix-environment-dark: #5E2563;
|
|
130
126
|
$pix-environment-light: #564DA6;
|
|
131
127
|
|
|
@@ -145,6 +141,7 @@ $pix-environment-gradient: linear-gradient(180deg, #5E2563 0%, #564DA6 100%);
|
|
|
145
141
|
|
|
146
142
|
//// DEPRECATED
|
|
147
143
|
// primary
|
|
144
|
+
|
|
148
145
|
/**
|
|
149
146
|
* @deprecated Please use '$pix-primary' instead!
|
|
150
147
|
*/
|
|
@@ -223,6 +220,7 @@ $purple: #8845FF;
|
|
|
223
220
|
}
|
|
224
221
|
|
|
225
222
|
// gradients
|
|
223
|
+
|
|
226
224
|
/**
|
|
227
225
|
* @deprecated Please use '$pix-primary-app-gradient' instead!
|
|
228
226
|
*/
|
|
@@ -304,6 +302,7 @@ $grey-22: #C1C7D0;
|
|
|
304
302
|
* @deprecated Please use '$pix-neutral-25' instead!
|
|
305
303
|
*/
|
|
306
304
|
$grey-25: #A5ADBA;
|
|
305
|
+
|
|
307
306
|
// medium
|
|
308
307
|
|
|
309
308
|
/**
|
|
@@ -337,6 +336,7 @@ $grey-50: #5E6C84;
|
|
|
337
336
|
$grey-60: #505F79;
|
|
338
337
|
|
|
339
338
|
// dark
|
|
339
|
+
|
|
340
340
|
/**
|
|
341
341
|
* @deprecated Please use '$pix-neutral-70' instead!
|
|
342
342
|
*/
|
|
@@ -368,6 +368,7 @@ $grey-150: #0C163A;
|
|
|
368
368
|
$grey-200: #07142E;
|
|
369
369
|
|
|
370
370
|
// gradients domain
|
|
371
|
+
|
|
371
372
|
/**
|
|
372
373
|
* @deprecated Please use '$pix-information-gradient' instead!
|
|
373
374
|
*/
|
|
@@ -110,23 +110,27 @@
|
|
|
110
110
|
|
|
111
111
|
@mixin text-bold() {
|
|
112
112
|
@include text;
|
|
113
|
+
|
|
113
114
|
font-weight: $font-medium;
|
|
114
115
|
}
|
|
115
116
|
|
|
116
117
|
@mixin text-link() {
|
|
117
118
|
@include text;
|
|
119
|
+
|
|
118
120
|
font-weight: $font-medium;
|
|
119
121
|
color: $pix-primary;
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
@mixin text-small() {
|
|
123
125
|
@include text;
|
|
126
|
+
|
|
124
127
|
font-size: 0.875rem;
|
|
125
128
|
line-height: 1.25rem;
|
|
126
129
|
}
|
|
127
130
|
|
|
128
131
|
@mixin text-large() {
|
|
129
132
|
@include text;
|
|
133
|
+
|
|
130
134
|
font-size: 1.125rem;
|
|
131
135
|
line-height: 1.625rem;
|
|
132
136
|
}
|
|
@@ -145,11 +149,13 @@
|
|
|
145
149
|
|
|
146
150
|
@mixin caption-bold() {
|
|
147
151
|
@include caption;
|
|
152
|
+
|
|
148
153
|
font-weight: $font-bold;
|
|
149
154
|
}
|
|
150
155
|
|
|
151
156
|
@mixin caption-uppercase() {
|
|
152
157
|
@include caption;
|
|
158
|
+
|
|
153
159
|
text-transform: uppercase;
|
|
154
160
|
}
|
|
155
161
|
|
|
@@ -168,11 +174,13 @@
|
|
|
168
174
|
|
|
169
175
|
@mixin footer-bold() {
|
|
170
176
|
@include footer;
|
|
177
|
+
|
|
171
178
|
font-weight: $font-bold;
|
|
172
179
|
}
|
|
173
180
|
|
|
174
181
|
@mixin footer-uppercase() {
|
|
175
182
|
@include footer;
|
|
183
|
+
|
|
176
184
|
font-weight: $font-bold;
|
|
177
185
|
letter-spacing: 0.08em;
|
|
178
186
|
text-transform: uppercase;
|
|
@@ -52,6 +52,11 @@ export const argTypes = {
|
|
|
52
52
|
name: 'label',
|
|
53
53
|
description: "Le label de l'input",
|
|
54
54
|
},
|
|
55
|
+
class: {
|
|
56
|
+
name: 'class',
|
|
57
|
+
description: "Permet d'ajouter une classe css à la checkbox.",
|
|
58
|
+
type: { name: 'string' },
|
|
59
|
+
},
|
|
55
60
|
screenReaderOnly: {
|
|
56
61
|
name: 'screenReaderOnly',
|
|
57
62
|
description:
|