@trilogy-ds/styles 0.0.4-beta-v4 → 0.0.4-calendar
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/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/_all.scss +2 -2
- package/framework/src/base/_all.scss +1 -1
- package/framework/src/base/_color.scss +0 -21
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +5 -0
- package/framework/src/base/_helpers.scss +21 -6
- package/framework/src/base/_loading.scss +2 -2
- package/framework/src/base/_reset.scss +6 -1
- package/framework/src/components/_accordion.scss +4 -3
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +139 -109
- package/framework/src/{elements → components}/_badge.scss +1 -1
- package/framework/src/{elements → components}/_box.scss +9 -11
- package/framework/src/components/_breadcrumb.scss +17 -31
- package/framework/src/{elements → components}/_button.scss +16 -3
- package/framework/src/components/_calendar.scss +128 -0
- package/framework/src/components/_card.scss +26 -9
- package/framework/src/{elements → components}/_checkbox.scss +30 -1
- package/framework/src/components/_countdown.scss +1 -1
- package/framework/src/components/_divider.scss +16 -0
- package/framework/src/components/_flex-box.scss +457 -0
- package/framework/src/components/_index.scss +48 -0
- package/framework/src/{elements → components}/_link.scss +9 -3
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_modal.scss +32 -11
- package/framework/src/components/_otp.scss +2 -2
- package/framework/src/components/_pagination.scss +5 -2
- package/framework/src/components/_price.scss +28 -2
- package/framework/src/{elements → components}/_radio.scss +4 -3
- package/framework/src/components/_segmented-control.scss +9 -5
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +1 -1
- package/framework/src/{elements → components}/_sticker.scss +13 -1
- package/framework/src/{elements → components}/_switch.scss +13 -8
- package/framework/src/{elements → components}/_table.scss +9 -10
- package/framework/src/components/_tabs.scss +66 -28
- package/framework/src/{elements → components}/_tag.scss +1 -17
- package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +1 -1
- package/framework/src/{elements → components}/_title.scss +10 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
- package/framework/src/{elements → components/input}/_entry.scss +48 -10
- package/framework/src/{elements → components/input}/_form.scss +18 -12
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
- package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
- package/framework/src/{elements → components/progress}/_progress.scss +3 -3
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -4
- package/framework/src/grid/_columns.scss +33 -11
- package/framework/src/layout/_hero.scss +4 -0
- package/framework/src/layout/_section.scss +5 -0
- package/framework/src/theming/buttons_partial.scss +1 -1
- package/framework/src/theming/common_partials.scss +1 -1
- package/framework/src/trilogy-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_background.scss +3 -1
- package/framework/src/utilities/_derived-variables.scss +0 -92
- package/framework/src/utilities/_initial-variables.scss +3 -111
- package/framework/src/utilities/_pre.scss +3 -1
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +293 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/{_colors.scss → variables/_color.scss} +45 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +1 -1
- package/framework/src/components/_all.scss +0 -24
- package/framework/src/elements/_all.scss +0 -32
- package/framework/src/elements/_autocomplete.scss +0 -32
- package/framework/src/elements/_list.scss +0 -62
- package/framework/src/elements/_select.scss +0 -96
- package/framework/src/elements/_textarea.scss +0 -133
- package/framework/src/utilities/_mixins.scss +0 -635
- /package/framework/src/{elements → components}/_chips.scss +0 -0
- /package/framework/src/{elements → components}/_container.scss +0 -0
- /package/framework/src/{elements → components}/_icon.scss +0 -0
- /package/framework/src/{elements → components}/_image.scss +0 -0
- /package/framework/src/{elements → components}/_loader.scss +0 -0
- /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
- /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@mixin block {
|
|
2
|
+
&:not(:last-child) {
|
|
3
|
+
margin-bottom: 15px;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@mixin overflow-touch {
|
|
8
|
+
-webkit-overflow-scrolling: touch;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin placeholder {
|
|
12
|
+
$placeholders: ':-moz' ':-webkit-input' '-moz' '-ms-input';
|
|
13
|
+
@each $placeholder in $placeholders {
|
|
14
|
+
&:#{$placeholder}-placeholder {
|
|
15
|
+
@content;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin ellipsis() {
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
overflow-x: hidden;
|
|
23
|
+
text-overflow: ellipsis;
|
|
24
|
+
}
|
|
@@ -11,10 +11,14 @@ $suffix: '';
|
|
|
11
11
|
*/
|
|
12
12
|
$colors: (
|
|
13
13
|
'background': [#fff, 'white', 'main'],
|
|
14
|
+
'stroke':[ #727272, 'stroke', 'white' ],
|
|
15
|
+
'transparent': ['transparent', 'transparent', 'transparent'],
|
|
14
16
|
'main':[ #3d5d7e, 'main', 'white'],
|
|
15
17
|
'main-fade':[ #eff2f8, 'main-fade', 'white'],
|
|
16
18
|
'accent':[ #da641b,'accent', 'white'],
|
|
19
|
+
'accent-fade':[ #faebe3,'accent-fade', 'white'],
|
|
17
20
|
'font':[ #3d5d7e, 'font', 'white'],
|
|
21
|
+
'font-placeholder':[ #687a87, 'font-placeholder', 'white'],
|
|
18
22
|
'success':[ #007B52, 'success', 'white'],
|
|
19
23
|
'success-fade':[ #cae8ca,'success-fade', 'white'],
|
|
20
24
|
'info':[ #1A688A, 'info', 'white'],
|
|
@@ -38,3 +42,44 @@ $fade-colors: (
|
|
|
38
42
|
'disabled': 'disabled-fade',
|
|
39
43
|
'neutral': 'neutral-fade',
|
|
40
44
|
) !default;
|
|
45
|
+
|
|
46
|
+
@function getColor( $name ) {
|
|
47
|
+
@if global-variable-exists(suffix-theme) {
|
|
48
|
+
@return var(--color-#{nth(map-get($colors, $name), 2)}-#{$suffix-theme});
|
|
49
|
+
} @else {
|
|
50
|
+
@return var(--color-#{nth(map-get($colors,$name),2)});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@function getColorValue( $name ) {
|
|
55
|
+
@return #{nth(map-get($colors,$name),1)}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@function getColorBrandName( $name ) {
|
|
59
|
+
@return #{nth(map-get($colors,$name),2)}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
@function invertColor ($colorName) {
|
|
65
|
+
@return var(--color-#{nth(map-get($colors,$colorName),3)})
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@function fadeColor ($colorName) {
|
|
69
|
+
$name: map-get($fade-colors,$colorName);
|
|
70
|
+
@return getColor($name);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Brand Color
|
|
74
|
+
$colors-brand: (
|
|
75
|
+
'background', 'main', 'accent'
|
|
76
|
+
);
|
|
77
|
+
|
|
78
|
+
// Brand Color Functionnal
|
|
79
|
+
$colors-brand-functionnal: (
|
|
80
|
+
'background', 'main', 'accent', 'info', 'success', 'error', 'warning', 'neutral'
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
$colors-feedback: (
|
|
84
|
+
'success', 'error', 'warning', 'info'
|
|
85
|
+
);
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
|
|
2
|
+
|
|
3
|
+
// Typography OS-regular
|
|
4
|
+
$family-primary: 'Poppins Read', BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif !default;
|
|
5
|
+
$family-secondary: 'Poppins Speak', 'Poppins', 'Arial Black', 'Arial Bold', serif !default;
|
|
6
|
+
$family-code: monospace !default;
|
|
7
|
+
$render-mode: optimizeLegibility !default;
|
|
8
|
+
|
|
9
|
+
$font-ratio: 1 !default;
|
|
10
|
+
$font-convert-to-px: false !default;
|
|
11
|
+
|
|
12
|
+
$weight-extrathin: 400 !default;
|
|
13
|
+
$weight-thin: 400 !default;
|
|
14
|
+
$weight-light: 400 !default;
|
|
15
|
+
$weight-normal: 400 !default;
|
|
16
|
+
$weight-medium: 500 !default;
|
|
17
|
+
$weight-semibold: 600 !default;
|
|
18
|
+
$weight-bold: 600 !default;
|
|
19
|
+
$weight-extrabold: 600 !default;
|
|
20
|
+
$weight-black: 600 !default;
|
|
21
|
+
|
|
22
|
+
$text-8: 8px !default;
|
|
23
|
+
$text-9: 9px !default;
|
|
24
|
+
$text-10: 10px !default;
|
|
25
|
+
$text-11: 11px !default;
|
|
26
|
+
$text-12: 12px !default;
|
|
27
|
+
$text-13: 13px !default;
|
|
28
|
+
$text-14: 14px !default;
|
|
29
|
+
$text-15: 15px !default;
|
|
30
|
+
$text-16: 16px !default;
|
|
31
|
+
$text-17: 17px !default;
|
|
32
|
+
$text-18: 18px !default;
|
|
33
|
+
$text-19: 19px !default;
|
|
34
|
+
$text-20: 20px !default;
|
|
35
|
+
$text-22: 22px !default;
|
|
36
|
+
$text-24: 24px !default;
|
|
37
|
+
$text-26: 26px !default;
|
|
38
|
+
$text-27: 27px !default;
|
|
39
|
+
$text-28: 28px !default;
|
|
40
|
+
$text-29: 29px !default;
|
|
41
|
+
$text-32: 32px !default;
|
|
42
|
+
$text-34: 34px !default;
|
|
43
|
+
$text-35: 35px !default;
|
|
44
|
+
$text-36: 36px !default;
|
|
45
|
+
$text-38: 38px !default;
|
|
46
|
+
$text-39: 39px !default;
|
|
47
|
+
$text-40: 40px !default;
|
|
48
|
+
$text-42: 42px !default;
|
|
49
|
+
$text-44: 44px !default;
|
|
50
|
+
$text-46: 46px !default;
|
|
51
|
+
$text-48: 48px !default;
|
|
52
|
+
$text-50: 50px !default;
|
|
53
|
+
$text-54: 54px !default;
|
|
54
|
+
$text-56: 56px !default;
|
|
55
|
+
$text-58: 58px !default;
|
|
56
|
+
$text-60: 60px !default;
|
|
57
|
+
$text-64: 64px !default;
|
|
58
|
+
$text-80: 80px !default;
|
|
59
|
+
|
|
60
|
+
$size-1: $text-32;
|
|
61
|
+
$size-2: $text-28;
|
|
62
|
+
$size-3: $text-24;
|
|
63
|
+
$size-4: $text-20;
|
|
64
|
+
$size-5: $text-18;
|
|
65
|
+
$size-6: $text-14;
|
|
66
|
+
$size-7: $text-12;
|
|
67
|
+
$size-8: $text-11;
|
|
68
|
+
$size-1-desktop: $text-48;
|
|
69
|
+
$size-2-desktop: $text-38;
|
|
70
|
+
$size-3-desktop: $text-28;
|
|
71
|
+
$size-4-desktop: $text-24;
|
|
72
|
+
$size-5-desktop: $text-18;
|
|
73
|
+
$size-6-desktop: $text-14;
|
|
74
|
+
$size-7-desktop: $text-12;
|
|
75
|
+
$size-8-desktop: $text-11;
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
$sizes: $size-1 $size-2 $size-3 $size-4 $size-5 $size-6 $size-7 $size-8;
|
|
79
|
+
|
|
80
|
+
$size-small: $text-13 !default;
|
|
81
|
+
$size-normal: $text-16 !default;
|
|
82
|
+
$size-medium: $text-16 !default;
|
|
83
|
+
$size-large: $text-24 !default;
|
|
84
|
+
|
|
85
|
+
/* Real Text level ! */
|
|
86
|
+
$text-levels: (
|
|
87
|
+
($text-16, $text-20, $text-16),
|
|
88
|
+
($text-14, $text-18, $text-16),
|
|
89
|
+
($text-12, $text-15, $text-16),
|
|
90
|
+
($text-10, $text-12, $text-16)
|
|
91
|
+
);
|
|
92
|
+
$text-levels-mobile: (
|
|
93
|
+
($text-16, $text-20, $text-8),
|
|
94
|
+
($text-14, $text-18, $text-8),
|
|
95
|
+
($text-12, $text-15, $text-8),
|
|
96
|
+
($text-10, $text-12, $text-8)
|
|
97
|
+
);
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@charset "utf-8";
|
|
2
|
-
@import '../utilities/spacing';
|
|
3
|
-
|
|
4
|
-
@import 'autolayout';
|
|
5
|
-
@import 'divider';
|
|
6
|
-
@import 'breadcrumb';
|
|
7
|
-
@import 'card';
|
|
8
|
-
@import 'modal';
|
|
9
|
-
@import 'pagination';
|
|
10
|
-
@import 'popover';
|
|
11
|
-
@import 'product-tour';
|
|
12
|
-
@import 'price';
|
|
13
|
-
@import 'tabs';
|
|
14
|
-
@import 'accordion';
|
|
15
|
-
@import 'countdown';
|
|
16
|
-
@import 'timeline';
|
|
17
|
-
@import 'stepper';
|
|
18
|
-
@import 'plus-symbol';
|
|
19
|
-
@import 'otp';
|
|
20
|
-
@import 'segmented-control';
|
|
21
|
-
@import 'progress-radial';
|
|
22
|
-
@import 'range';
|
|
23
|
-
@import 'scroll-view';
|
|
24
|
-
@import 'fab';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
@charset "utf-8";
|
|
2
|
-
@import '../utilities/spacing';
|
|
3
|
-
|
|
4
|
-
@import 'alert';
|
|
5
|
-
@import 'autocomplete';
|
|
6
|
-
@import 'badge';
|
|
7
|
-
@import 'box';
|
|
8
|
-
@import 'button';
|
|
9
|
-
@import 'chips';
|
|
10
|
-
@import 'checkbox';
|
|
11
|
-
@import 'container';
|
|
12
|
-
@import 'entry';
|
|
13
|
-
@import 'form';
|
|
14
|
-
@import 'icon';
|
|
15
|
-
@import 'image';
|
|
16
|
-
@import 'loader';
|
|
17
|
-
@import 'link';
|
|
18
|
-
@import 'list';
|
|
19
|
-
@import 'toaster';
|
|
20
|
-
@import 'progress';
|
|
21
|
-
@import 'paragraph';
|
|
22
|
-
@import 'radio';
|
|
23
|
-
@import 'switch';
|
|
24
|
-
@import 'table';
|
|
25
|
-
@import 'tag';
|
|
26
|
-
@import 'title';
|
|
27
|
-
@import 'other';
|
|
28
|
-
@import 'select';
|
|
29
|
-
@import 'sticker';
|
|
30
|
-
@import 'textarea';
|
|
31
|
-
@import 'input-gauge';
|
|
32
|
-
@import 'input-icons';
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.is-autocomplete {
|
|
2
|
-
.autocomplete-menu {
|
|
3
|
-
display: none;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
&.is-active {
|
|
7
|
-
.autocomplete-menu {
|
|
8
|
-
display: block;
|
|
9
|
-
border: 1px solid rgba(0,38,60,.4);
|
|
10
|
-
padding: calc($spacing-1 + 1px) calc($spacing-2 + 2px);
|
|
11
|
-
border-radius: 4px;
|
|
12
|
-
max-height: 220px;
|
|
13
|
-
overflow-y: auto;
|
|
14
|
-
background-color: getColor('background');
|
|
15
|
-
z-index: 10000;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.autocomplete-item {
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
padding: calc($spacing-1 - 0.25px) calc($spacing-1 + 1px);
|
|
21
|
-
|
|
22
|
-
&.is-active, &[data-autocomplete-item-hover] {
|
|
23
|
-
@include hoverRules();
|
|
24
|
-
margin-left: calc(2px - $spacing-3 );
|
|
25
|
-
margin-right: calc(2px - $spacing-3 );
|
|
26
|
-
border-top: 1px solid getColor('neutral-fade');
|
|
27
|
-
border-bottom: 1px solid getColor('neutral-fade');
|
|
28
|
-
padding: calc($spacing-1 - 1.25px) calc($spacing-4 - 1px);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
// Bullet list classiques
|
|
2
|
-
ul.list,
|
|
3
|
-
ol.list {
|
|
4
|
-
list-style: disc inside;
|
|
5
|
-
display: grid;
|
|
6
|
-
row-gap: $spacing-3;
|
|
7
|
-
|
|
8
|
-
li.list-item {
|
|
9
|
-
&:has(.icon) {
|
|
10
|
-
list-style: none;
|
|
11
|
-
display: flex;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.icon {
|
|
15
|
-
margin-right: $spacing-2;
|
|
16
|
-
justify-content: flex-start;
|
|
17
|
-
align-items: flex-start;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.list-item-content {
|
|
21
|
-
display: inline-grid;
|
|
22
|
-
|
|
23
|
-
&_puce {
|
|
24
|
-
margin-right: $spacing-4;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.has-action {
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: space-between;
|
|
31
|
-
align-items: center;
|
|
32
|
-
|
|
33
|
-
.list-item_action {
|
|
34
|
-
& > :first-child {
|
|
35
|
-
margin: 0 !important;
|
|
36
|
-
cursor: pointer;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.radio label.radio-label:empty,
|
|
40
|
-
.checkbox label.checkbox-label:empty {
|
|
41
|
-
padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
div b {
|
|
47
|
-
margin-bottom: $spacing-2;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.has-divider {
|
|
52
|
-
li {
|
|
53
|
-
border-bottom: var(--border);
|
|
54
|
-
padding-bottom: $spacing-3;
|
|
55
|
-
|
|
56
|
-
&:last-child {
|
|
57
|
-
border-bottom: none;
|
|
58
|
-
padding-bottom: 0;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.select {
|
|
3
|
-
position: relative;
|
|
4
|
-
input { cursor: pointer;}
|
|
5
|
-
|
|
6
|
-
select {
|
|
7
|
-
width: 100%;
|
|
8
|
-
@include input;
|
|
9
|
-
&:focus {
|
|
10
|
-
padding-left: 15px !important;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.has-icons-left {
|
|
15
|
-
select {
|
|
16
|
-
padding-left: 45px;
|
|
17
|
-
&:focus {
|
|
18
|
-
padding-left: 44px !important;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&-options {
|
|
24
|
-
box-shadow: 0 0 8px #0000001a;
|
|
25
|
-
border-radius: 4px;
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
position: absolute;
|
|
28
|
-
top: 64px;
|
|
29
|
-
z-index: 1001;
|
|
30
|
-
left: 0;
|
|
31
|
-
right: 0;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.field {
|
|
35
|
-
&.focus {
|
|
36
|
-
&:after{
|
|
37
|
-
@include arrow('up');
|
|
38
|
-
right: 12px;
|
|
39
|
-
top:50%;
|
|
40
|
-
transform: translate(-50%,-50%);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
&:not(.focus) {
|
|
44
|
-
&:after{
|
|
45
|
-
@include arrow();
|
|
46
|
-
right: 12px;
|
|
47
|
-
top:50%;
|
|
48
|
-
transform: translate(-50%,-50%);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
&-trilogy_modal_open {
|
|
55
|
-
position: fixed;
|
|
56
|
-
top:0;
|
|
57
|
-
left:0;
|
|
58
|
-
right:0;
|
|
59
|
-
bottom:0;
|
|
60
|
-
z-index: 1000;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.radio-tile {
|
|
64
|
-
input:checked {
|
|
65
|
-
&~label.radio-label {
|
|
66
|
-
font-weight: $weight-black ;
|
|
67
|
-
&:after {
|
|
68
|
-
content: "" !important;
|
|
69
|
-
mask-image: url('./assets/icons/all/check.svg') !important;
|
|
70
|
-
background-color: getColor('main') !important;
|
|
71
|
-
mask-size: 18px !important;
|
|
72
|
-
top: 25px !important;
|
|
73
|
-
right: 18px !important;
|
|
74
|
-
height:18px !important;
|
|
75
|
-
width: 18px !important
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
label.radio-label {
|
|
81
|
-
border:none !important;
|
|
82
|
-
border-radius: 0 !important;
|
|
83
|
-
height: 52px;
|
|
84
|
-
&:before { display: none; }
|
|
85
|
-
@include hover
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&.focus label.radio-label { @include hoverRules(); }
|
|
89
|
-
|
|
90
|
-
.icon.is-medium {
|
|
91
|
-
font-size: $text-20 !important;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
.textarea-wrapper {
|
|
2
|
-
position: relative;
|
|
3
|
-
margin: 16px 0;
|
|
4
|
-
|
|
5
|
-
.textarea-label {
|
|
6
|
-
display: inline-block;
|
|
7
|
-
margin-bottom: 6px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.textarea-sample {
|
|
11
|
-
margin-bottom: 10px !important;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
textarea.textarea {
|
|
15
|
-
padding: $spacing-4;
|
|
16
|
-
border-radius: var(--radius-small);
|
|
17
|
-
outline: none;
|
|
18
|
-
|
|
19
|
-
&:focus,
|
|
20
|
-
&:focus-visible {
|
|
21
|
-
padding: 15px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&::placeholder {
|
|
25
|
-
font-size: 16px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.has-dynamic-label {
|
|
29
|
-
&.has-icon ~ label {
|
|
30
|
-
left: $spacing-9;
|
|
31
|
-
margin-right: 2px;
|
|
32
|
-
width: calc(100% - 98px);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
~ label {
|
|
36
|
-
visibility: visible;
|
|
37
|
-
position: absolute;
|
|
38
|
-
top: 2px;
|
|
39
|
-
left: $spacing-4;
|
|
40
|
-
padding-top: $spacing-2;
|
|
41
|
-
width: calc(100% - 28px - 2px);
|
|
42
|
-
font-size: 12px;
|
|
43
|
-
color: getColor('font');
|
|
44
|
-
filter: grayscale(100%);
|
|
45
|
-
transition: top 0.2s ease-out;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
&:placeholder-shown {
|
|
49
|
-
~ label {
|
|
50
|
-
visibility: hidden;
|
|
51
|
-
top: $spacing-4;
|
|
52
|
-
background-color: getColor('background');
|
|
53
|
-
transition: none;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&:not(:placeholder-shown) {
|
|
58
|
-
padding-top: $spacing-5;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.has-icon {
|
|
63
|
-
padding-left: $spacing-9;
|
|
64
|
-
padding-right: $spacing-9;
|
|
65
|
-
|
|
66
|
-
&:focus,
|
|
67
|
-
&:focus-visible {
|
|
68
|
-
padding-left: 55px !important;
|
|
69
|
-
padding-right: 55px;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
label {
|
|
75
|
-
font-size: 16px;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.textarea-label + .textarea-sample ~ span.icon {
|
|
79
|
-
top: 72px !important;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.textarea-label ~ span.icon {
|
|
83
|
-
top: 45px !important;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
span.icon {
|
|
87
|
-
position: absolute;
|
|
88
|
-
top: $spacing-4;
|
|
89
|
-
|
|
90
|
-
&:first-of-type {
|
|
91
|
-
left: $spacing-4;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
&:nth-of-type(2) {
|
|
95
|
-
right: $spacing-4;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
// Colors
|
|
100
|
-
@each $name, $pair in $colors-brand-functionnal {
|
|
101
|
-
$color: getColor($name);
|
|
102
|
-
$color-invert: invertColor($name);
|
|
103
|
-
$brandName: getColorBrandName($name);
|
|
104
|
-
&.is-#{$brandName} {
|
|
105
|
-
textarea.textarea {
|
|
106
|
-
border-color: $color;
|
|
107
|
-
|
|
108
|
-
&:active,
|
|
109
|
-
&:focus,
|
|
110
|
-
&:focus-visible {
|
|
111
|
-
&:not(:placeholder-shown) {
|
|
112
|
-
padding-top: 29px;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
span.icon:nth-of-type(2) {
|
|
118
|
-
color: $color;
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.counter {
|
|
124
|
-
position: absolute;
|
|
125
|
-
bottom: $spacing-2;
|
|
126
|
-
right: $spacing-4;
|
|
127
|
-
font-size: 10px;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.help ~ .counter {
|
|
131
|
-
bottom: $spacing-6;
|
|
132
|
-
}
|
|
133
|
-
}
|