@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-alpha-prompt
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/assets/icons/all/calendar.svg +1 -0
- package/dist/default/assets/icons/all/file-attached.svg +1 -0
- package/dist/default/assets/icons/all/micro.svg +1 -0
- package/dist/default/assets/icons/all/paperclip.svg +1 -0
- 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 +1 -52
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +9 -1
- package/framework/src/base/_helpers.scss +34 -44
- package/framework/src/base/_loading.scss +9 -2
- package/framework/src/base/_reset.scss +11 -1
- package/framework/src/components/_accordion.scss +55 -89
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +332 -0
- package/framework/src/components/_badge.scss +87 -0
- package/framework/src/components/_box.scss +168 -0
- package/framework/src/components/_breadcrumb.scss +29 -38
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +129 -0
- package/framework/src/components/_card.scss +33 -87
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/{elements → components}/_container.scss +7 -46
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_date-picker.scss +58 -0
- package/framework/src/components/_divider.scss +48 -14
- package/framework/src/components/_dropdown.scss +166 -99
- package/framework/src/components/_fab.scss +25 -38
- package/framework/src/components/_flex-box.scss +994 -0
- package/framework/src/{elements → components}/_icon.scss +4 -4
- package/framework/src/components/_image.scss +69 -0
- package/framework/src/components/_index.scss +51 -0
- package/framework/src/components/_link.scss +58 -0
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/{elements → components}/_loader.scss +2 -2
- package/framework/src/components/_modal.scss +182 -158
- package/framework/src/components/_otp.scss +11 -30
- package/framework/src/components/_pagination.scss +60 -159
- package/framework/src/components/_popover.scss +260 -260
- package/framework/src/components/_price.scss +140 -165
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_prompt.scss +125 -0
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +55 -53
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +42 -222
- package/framework/src/{elements → components}/_sticker.scss +25 -28
- package/framework/src/components/_switch.scss +97 -191
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +114 -98
- package/framework/src/components/_tag.scss +114 -0
- package/framework/src/components/_text.scss +55 -0
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +28 -113
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/{elements → components/alert}/_alert.scss +13 -10
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/{elements → components/input}/_form.scss +42 -33
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/components/input/_input-gauge.scss +44 -0
- package/framework/src/components/input/_input-icons.scss +55 -0
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/progress/_progress-radial.scss +28 -0
- package/framework/src/{elements → components/progress}/_progress.scss +34 -23
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -41
- package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
- package/framework/src/grid/_columns.scss +278 -763
- package/framework/src/grid/_rows.scss +45 -38
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +92 -214
- package/framework/src/layout/_section.scss +10 -29
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +32 -0
- package/framework/src/theming/common_partials.scss +10 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/trilogy-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +4 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +38 -49
- package/framework/src/utilities/_derived-variables.scss +0 -103
- package/framework/src/utilities/_initial-variables.scss +4 -144
- package/framework/src/utilities/_pre.scss +4 -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 +294 -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 +174 -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/variables/_color.scss +85 -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 +8 -3
- package/framework/src/components/_all.scss +0 -30
- package/framework/src/components/_autolayout2.scss +0 -38
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_level.scss +0 -120
- package/framework/src/components/_media.scss +0 -64
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_progress-radial.scss +0 -23
- package/framework/src/components/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_slider.scss +0 -92
- package/framework/src/elements/_all.scss +0 -35
- package/framework/src/elements/_badge.scss +0 -81
- package/framework/src/elements/_box.scss +0 -267
- package/framework/src/elements/_button.scss +0 -192
- package/framework/src/elements/_checkbox.scss +0 -39
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_chips.scss +0 -100
- package/framework/src/elements/_dot.scss +0 -6
- package/framework/src/elements/_entry.scss +0 -109
- package/framework/src/elements/_image.scss +0 -59
- package/framework/src/elements/_input-gauge.scss +0 -37
- package/framework/src/elements/_input-icons.scss +0 -41
- package/framework/src/elements/_link.scss +0 -79
- package/framework/src/elements/_list.scss +0 -61
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_paragraph.scss +0 -101
- package/framework/src/elements/_radio.scss +0 -67
- package/framework/src/elements/_select.scss +0 -315
- package/framework/src/elements/_switch.scss +0 -108
- package/framework/src/elements/_table.scss +0 -298
- package/framework/src/elements/_tag.scss +0 -131
- package/framework/src/elements/_textarea.scss +0 -125
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/elements/_title.scss +0 -139
- package/framework/src/layout/_toolbar.scss +0 -100
- package/framework/src/utilities/_mixins.scss +0 -744
|
@@ -1,85 +1,94 @@
|
|
|
1
|
-
|
|
1
|
+
$height-tab-default: 64px;
|
|
2
|
+
$height-arrow-default:48px;
|
|
3
|
+
$height-arrow-small:30px;
|
|
4
|
+
|
|
5
|
+
.tabs {
|
|
2
6
|
@include overflow-touch;
|
|
3
7
|
@include unselectable;
|
|
4
8
|
|
|
5
9
|
align-items: stretch;
|
|
6
10
|
justify-content: space-between;
|
|
7
11
|
font-weight: $weight-normal;
|
|
8
|
-
background: white;
|
|
9
12
|
width: 100%;
|
|
10
13
|
text-align: center;
|
|
11
|
-
overflow:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
14
|
+
overflow: hidden;
|
|
15
|
+
position: relative;
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
.arrow-prev, .arrow-next {
|
|
19
|
+
z-index: 1;
|
|
20
|
+
height: 44px;
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0px;
|
|
23
|
+
transition: opacity 0.3s ease;
|
|
24
|
+
opacity: 1;
|
|
25
|
+
background-color: getColor('background');
|
|
26
|
+
}
|
|
15
27
|
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
.arrow-prev {
|
|
29
|
+
left: 0px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.arrow-next {
|
|
33
|
+
right: 0px;
|
|
18
34
|
}
|
|
19
35
|
|
|
36
|
+
|
|
20
37
|
&::-webkit-scrollbar {
|
|
21
38
|
width: 0 !important;
|
|
22
39
|
height: 0 !important;
|
|
40
|
+
scrollbar-width: none !important;
|
|
23
41
|
}
|
|
24
42
|
|
|
25
43
|
&.is-inverted {
|
|
26
44
|
background-color: getColor('font');
|
|
27
|
-
|
|
45
|
+
|
|
46
|
+
.tab-list > .tab {
|
|
47
|
+
color: getColor('background') !important;
|
|
48
|
+
|
|
49
|
+
&.is-active {
|
|
50
|
+
border-bottom-color: currentColor;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
#{$hoverSelector} {
|
|
28
54
|
color: getColor('background') !important;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
}
|
|
29
57
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
width: calc(100% - 16px);
|
|
34
|
-
height: 2px;
|
|
35
|
-
border-radius: 2px;
|
|
36
|
-
font-size: 20px;
|
|
37
|
-
background-color: getColor('background');
|
|
38
|
-
bottom: -2px;
|
|
39
|
-
left: 8px;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
&:hover:not(.is-disabled) {
|
|
43
|
-
color: getColor('background') !important;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
58
|
+
&:focus-visible {
|
|
59
|
+
border-color: getColor('background');
|
|
60
|
+
}
|
|
46
61
|
|
|
47
|
-
|
|
48
|
-
border-color: getColor('background');
|
|
49
|
-
}
|
|
62
|
+
}
|
|
50
63
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
64
|
+
.arrow-prev, .arrow-next {
|
|
65
|
+
background-color: getColor('font');
|
|
54
66
|
}
|
|
67
|
+
|
|
55
68
|
}
|
|
56
69
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
margin-left: 24px;
|
|
60
|
-
}
|
|
70
|
+
&:has(.tab-list.is-aligned-start) {
|
|
71
|
+
text-align: left;
|
|
61
72
|
}
|
|
62
73
|
|
|
63
|
-
.
|
|
74
|
+
&:has(.tab-list.is-aligned-end) {
|
|
75
|
+
text-align: right;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.tab-list {
|
|
64
79
|
background-color: transparent;
|
|
65
80
|
height: 48px;
|
|
66
81
|
overflow-x: auto;
|
|
67
82
|
white-space: nowrap;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
&.is-centered {
|
|
71
|
-
justify-content: center;
|
|
72
|
-
}
|
|
83
|
+
overflow-y: hidden;
|
|
84
|
+
max-width: 100%;
|
|
73
85
|
|
|
74
|
-
|
|
75
|
-
|
|
86
|
+
&::-webkit-scrollbar {
|
|
87
|
+
width: 0 !important;
|
|
88
|
+
height: 0 !important;
|
|
89
|
+
scrollbar-width: none !important;
|
|
76
90
|
}
|
|
77
91
|
|
|
78
|
-
&.is-left {
|
|
79
|
-
justify-content: flex-start;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
|
|
83
92
|
&.is-fullwidth {
|
|
84
93
|
@include desktop {
|
|
85
94
|
> * {
|
|
@@ -93,71 +102,48 @@
|
|
|
93
102
|
box-shadow: none;
|
|
94
103
|
}
|
|
95
104
|
|
|
96
|
-
|
|
97
|
-
|
|
105
|
+
@include mobile {
|
|
106
|
+
justify-content: flex-start;
|
|
98
107
|
}
|
|
99
108
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
&:has(.tab .icon) {
|
|
110
|
+
height: 64px;
|
|
111
|
+
.arrow-prev, .arrow-next {
|
|
112
|
+
height: 60px;
|
|
104
113
|
}
|
|
105
114
|
}
|
|
106
115
|
|
|
107
116
|
> .tab {
|
|
117
|
+
display: inline-block;
|
|
118
|
+
line-height: normal;
|
|
119
|
+
font-family: $family-primary;
|
|
108
120
|
height: calc(100% - 4px);
|
|
109
121
|
background-color: transparent;
|
|
110
|
-
border: none;
|
|
111
122
|
color: getColor('font');
|
|
112
|
-
font-family: $body-family;
|
|
113
123
|
text-decoration: none;
|
|
114
124
|
outline: none;
|
|
115
|
-
padding:
|
|
116
|
-
font-size: $text-
|
|
117
|
-
border:
|
|
118
|
-
border-
|
|
119
|
-
|
|
120
|
-
&:not(:last-child) {
|
|
121
|
-
margin-right: 16px;
|
|
122
|
-
}
|
|
125
|
+
padding: 12px 24px;
|
|
126
|
+
font-size: $text-16;
|
|
127
|
+
border: 0px solid transparent;
|
|
128
|
+
border-bottom: 1px solid getColor('neutral');
|
|
123
129
|
|
|
124
130
|
.tab-icon {
|
|
125
131
|
margin-top: 2px;
|
|
126
132
|
}
|
|
127
133
|
|
|
128
|
-
&:not(button) {
|
|
129
|
-
.tab-icon {
|
|
130
|
-
margin-top: 4px;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
@include mobile {
|
|
135
|
-
font-size: $text-14;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
134
|
&.is-active {
|
|
141
|
-
color: getColor('
|
|
142
|
-
font-weight: $weight-semibold;
|
|
135
|
+
color: getColor('main');
|
|
143
136
|
position: relative;
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
width: calc(100% - 16px);
|
|
148
|
-
height: 2px;
|
|
149
|
-
border-radius: 2px;
|
|
150
|
-
font-size: 20px;
|
|
151
|
-
background-color: getColor('alternate');
|
|
152
|
-
position: absolute;
|
|
153
|
-
bottom: -2px;
|
|
154
|
-
left: 8px
|
|
155
|
-
}
|
|
137
|
+
border-bottom-color: getColor('main');
|
|
138
|
+
font-weight: $weight-bold;
|
|
139
|
+
border-bottom-width: 2px;
|
|
156
140
|
}
|
|
157
141
|
|
|
158
|
-
&:hover:not(
|
|
159
|
-
color: getColor('
|
|
142
|
+
&:hover:not([disabled]) {
|
|
143
|
+
color: getColor('main');
|
|
144
|
+
border-bottom-color: currentColor;
|
|
160
145
|
cursor: pointer;
|
|
146
|
+
border-bottom-width: 2px;
|
|
161
147
|
|
|
162
148
|
.icon.is-small [class^=tri-]::before, .icon.is-small [class*=" tri-"]::before {
|
|
163
149
|
font-size: 22px !important;
|
|
@@ -165,26 +151,47 @@
|
|
|
165
151
|
}
|
|
166
152
|
}
|
|
167
153
|
|
|
168
|
-
&:focus-visible{
|
|
154
|
+
&:focus-visible {
|
|
169
155
|
border-color: currentColor;
|
|
170
|
-
color: getColor('
|
|
156
|
+
color: getColor('main');
|
|
171
157
|
}
|
|
172
158
|
|
|
173
159
|
.icon {
|
|
174
160
|
height: 0;
|
|
175
161
|
}
|
|
176
162
|
|
|
177
|
-
.icon.is-small, .icon.is-small{
|
|
163
|
+
.icon.is-small, .icon.is-small {
|
|
178
164
|
font-size: 22px;
|
|
179
165
|
}
|
|
180
166
|
|
|
181
|
-
|
|
182
|
-
color:
|
|
183
|
-
|
|
167
|
+
&[disabled], &[aria-disabled=true] {
|
|
168
|
+
background-color: transparent !important;
|
|
169
|
+
border-bottom-color: getColor('neutral') !important;
|
|
170
|
+
&.is-active{
|
|
171
|
+
border-bottom-color: currentColor !important;
|
|
172
|
+
}
|
|
184
173
|
}
|
|
185
174
|
}
|
|
186
175
|
}
|
|
187
176
|
|
|
177
|
+
&.is-fullwidth .tab-list {
|
|
178
|
+
display: flex;
|
|
179
|
+
> .tab {
|
|
180
|
+
flex:1;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
&.is-small{
|
|
185
|
+
|
|
186
|
+
.tab-list {
|
|
187
|
+
& > .tab {
|
|
188
|
+
font-size: $text-14 ;
|
|
189
|
+
padding: 12px 16px;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
|
|
188
195
|
.tab-panels {
|
|
189
196
|
padding-top: $spacing-3;
|
|
190
197
|
padding-bottom: $spacing-3;
|
|
@@ -192,6 +199,14 @@
|
|
|
192
199
|
.tab-panel {
|
|
193
200
|
transition: opacity 2s ease-in-out;
|
|
194
201
|
transition-delay: 1s;
|
|
202
|
+
|
|
203
|
+
* {
|
|
204
|
+
-webkit-user-select: text;
|
|
205
|
+
-moz-user-select: text;
|
|
206
|
+
-ms-user-select: text;
|
|
207
|
+
user-select: text;
|
|
208
|
+
}
|
|
209
|
+
|
|
195
210
|
&:not(.is-active) {
|
|
196
211
|
display: none;
|
|
197
212
|
}
|
|
@@ -199,6 +214,7 @@
|
|
|
199
214
|
&.is-active {
|
|
200
215
|
animation: fade-in 250ms;
|
|
201
216
|
}
|
|
217
|
+
|
|
202
218
|
@keyframes fade-in {
|
|
203
219
|
from {
|
|
204
220
|
opacity: 0;
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
$tag-delete-margin: 1px !default;
|
|
2
|
+
|
|
3
|
+
// container pour multi-tags ou tags avec actions
|
|
4
|
+
.tags {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
align-items: center;
|
|
8
|
+
flex-wrap: wrap;
|
|
9
|
+
gap: $spacing-3;
|
|
10
|
+
// multi-tags : ajout d'une marge à droite de chaque tag
|
|
11
|
+
|
|
12
|
+
// centrage des tags
|
|
13
|
+
&.is-centered {
|
|
14
|
+
justify-content: center;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// tags avec actions
|
|
18
|
+
&.has-addons {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
|
|
21
|
+
.tag {
|
|
22
|
+
|
|
23
|
+
&:not(:first-child) {
|
|
24
|
+
border-bottom-left-radius: 0;
|
|
25
|
+
border-top-left-radius: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:not(:last-child) {
|
|
29
|
+
border-bottom-right-radius: 0;
|
|
30
|
+
border-top-right-radius: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:first-child {
|
|
34
|
+
padding-right: 5px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
+ .tag {
|
|
38
|
+
padding: 0;
|
|
39
|
+
position: relative;
|
|
40
|
+
width: 25px;
|
|
41
|
+
border-width: 0;
|
|
42
|
+
|
|
43
|
+
// fixme : cette règle ne devrait-elle pas s'appliquer à TOUS les buttons ?
|
|
44
|
+
cursor: inherit;
|
|
45
|
+
|
|
46
|
+
// affichage d'une fausse croix avec 2 traits penchés
|
|
47
|
+
&:empty {
|
|
48
|
+
&::before,
|
|
49
|
+
&::after {
|
|
50
|
+
position: absolute;
|
|
51
|
+
content: '';
|
|
52
|
+
height: 10px;
|
|
53
|
+
width: 2px;
|
|
54
|
+
background-color: currentColor;
|
|
55
|
+
top: 50%;
|
|
56
|
+
left: 30%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&::before {
|
|
60
|
+
transform: translate(50%, -50%) rotate(45deg);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::after {
|
|
64
|
+
transform: translate(50%, -50%) rotate(-45deg);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.is-inverted {
|
|
71
|
+
.tag {
|
|
72
|
+
background-color: getColor('background');
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.tag {
|
|
80
|
+
align-items: center;
|
|
81
|
+
background-color: getColor('neutral-fade');
|
|
82
|
+
border-radius: 9999px;
|
|
83
|
+
color: getColor('font');
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
font-size: $size-medium;
|
|
86
|
+
font-weight: $weight-medium;
|
|
87
|
+
height: 28px;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
line-height: 20px;
|
|
90
|
+
padding: $spacing-1 $spacing-2;
|
|
91
|
+
white-space: nowrap;
|
|
92
|
+
|
|
93
|
+
&.is-small {
|
|
94
|
+
font-size: $text-12;
|
|
95
|
+
line-height: 15px;
|
|
96
|
+
height: 23px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
@include mobile {
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
line-height: 15px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@each $name in $colors-feedback {
|
|
106
|
+
&.is-#{$name}:not(.is-inverted) {
|
|
107
|
+
background-color: fadeColor($name);
|
|
108
|
+
}
|
|
109
|
+
&.is-inverted.is-#{$name} {
|
|
110
|
+
color: getColor($name);
|
|
111
|
+
background-color: invertColor($name);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@import "../utilities/variables/_font.scss";
|
|
2
|
+
|
|
3
|
+
.text {
|
|
4
|
+
@each $text-level in $text-levels {
|
|
5
|
+
$i: index($text-levels, $text-level);
|
|
6
|
+
$font-size: nth($text-level, 1);
|
|
7
|
+
$line-height: nth($text-level, 2);
|
|
8
|
+
|
|
9
|
+
&.is-level-#{$i} {
|
|
10
|
+
font-size: $font-size;
|
|
11
|
+
line-height: $line-height;
|
|
12
|
+
font-family: $family-primary;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.is-inverted {
|
|
17
|
+
color: getColor('background');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@include mobile {
|
|
21
|
+
@each $text-level-mobile in $text-levels-mobile {
|
|
22
|
+
$i: index($text-levels-mobile, $text-level-mobile);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.is-wrapped {
|
|
27
|
+
word-break: break-word;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.bold {
|
|
31
|
+
font-weight: $weight-bold;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.span {
|
|
36
|
+
font-style: inherit;
|
|
37
|
+
font-weight: inherit;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.strong {
|
|
41
|
+
color: inherit;
|
|
42
|
+
font-weight: $weight-bold;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sup {
|
|
46
|
+
line-height: 0;
|
|
47
|
+
position: relative;
|
|
48
|
+
vertical-align: baseline;
|
|
49
|
+
top: -0.4em;
|
|
50
|
+
font-size: 0.7em;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.small {
|
|
54
|
+
font-size: 0.875em;
|
|
55
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.textarea-wrapper {
|
|
2
|
+
|
|
3
|
+
.textarea-label {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
margin-bottom: 6px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.textarea-sample {
|
|
9
|
+
margin-bottom: 10px !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
textarea.textarea {
|
|
13
|
+
&::placeholder, label {
|
|
14
|
+
font-size: 16px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.icon {
|
|
19
|
+
align-items: flex-start !important;
|
|
20
|
+
padding-top: 18px !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Colors
|
|
24
|
+
@each $name, $pair in $colors-brand-functionnal {
|
|
25
|
+
$color: getColor($name);
|
|
26
|
+
$color-invert: invertColor($name);
|
|
27
|
+
$brandName: getColorBrandName($name);
|
|
28
|
+
&.is-#{$brandName} {
|
|
29
|
+
textarea.textarea {
|
|
30
|
+
border-color: $color;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.counter {
|
|
37
|
+
position: absolute;
|
|
38
|
+
bottom: $spacing-2;
|
|
39
|
+
right: $spacing-4;
|
|
40
|
+
font-size: 10px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.help ~ .counter {
|
|
44
|
+
bottom: $spacing-6;
|
|
45
|
+
}
|
|
46
|
+
}
|