@trilogy-ds/styles 0.0.1-beta-1

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.
Files changed (104) hide show
  1. package/framework/src/_all.scss +8 -0
  2. package/framework/src/base/_all.scss +9 -0
  3. package/framework/src/base/_color.scss +58 -0
  4. package/framework/src/base/_elements.scss +34 -0
  5. package/framework/src/base/_fonts.scss +2 -0
  6. package/framework/src/base/_generic.scss +68 -0
  7. package/framework/src/base/_helpers.scss +880 -0
  8. package/framework/src/base/_loading.scss +102 -0
  9. package/framework/src/base/_reset.scss +138 -0
  10. package/framework/src/components/_accordion.scss +178 -0
  11. package/framework/src/components/_all.scss +30 -0
  12. package/framework/src/components/_autolayout2.scss +38 -0
  13. package/framework/src/components/_breadcrumb.scss +45 -0
  14. package/framework/src/components/_card.scss +298 -0
  15. package/framework/src/components/_countdown.scss +55 -0
  16. package/framework/src/components/_disclaimer.scss +84 -0
  17. package/framework/src/components/_divider.scss +18 -0
  18. package/framework/src/components/_dropdown.scss +128 -0
  19. package/framework/src/components/_fab.scss +60 -0
  20. package/framework/src/components/_level.scss +120 -0
  21. package/framework/src/components/_media.scss +64 -0
  22. package/framework/src/components/_menu.scss +213 -0
  23. package/framework/src/components/_modal.scss +201 -0
  24. package/framework/src/components/_otp.scss +92 -0
  25. package/framework/src/components/_pagination.scss +182 -0
  26. package/framework/src/components/_plus-symbol.scss +32 -0
  27. package/framework/src/components/_popover.scss +340 -0
  28. package/framework/src/components/_price.scss +209 -0
  29. package/framework/src/components/_product-tour.scss +131 -0
  30. package/framework/src/components/_progress-radial.scss +23 -0
  31. package/framework/src/components/_range.scss +84 -0
  32. package/framework/src/components/_scroll-view.scss +19 -0
  33. package/framework/src/components/_search-modal.scss +197 -0
  34. package/framework/src/components/_segmented-control.scss +60 -0
  35. package/framework/src/components/_slices.scss +316 -0
  36. package/framework/src/components/_slider.scss +92 -0
  37. package/framework/src/components/_stepper.scss +397 -0
  38. package/framework/src/components/_switch.scss +209 -0
  39. package/framework/src/components/_tabs.scss +212 -0
  40. package/framework/src/components/_timeline.scss +367 -0
  41. package/framework/src/elements/_alert.scss +91 -0
  42. package/framework/src/elements/_all.scss +35 -0
  43. package/framework/src/elements/_badge.scss +81 -0
  44. package/framework/src/elements/_box.scss +267 -0
  45. package/framework/src/elements/_button.scss +192 -0
  46. package/framework/src/elements/_checkbox.scss +39 -0
  47. package/framework/src/elements/_checkradio.scss +173 -0
  48. package/framework/src/elements/_chips.scss +100 -0
  49. package/framework/src/elements/_container.scss +108 -0
  50. package/framework/src/elements/_dot.scss +6 -0
  51. package/framework/src/elements/_entry.scss +109 -0
  52. package/framework/src/elements/_form.scss +593 -0
  53. package/framework/src/elements/_icon.scss +384 -0
  54. package/framework/src/elements/_image.scss +59 -0
  55. package/framework/src/elements/_input-gauge.scss +37 -0
  56. package/framework/src/elements/_input-icons.scss +41 -0
  57. package/framework/src/elements/_link.scss +79 -0
  58. package/framework/src/elements/_list.scss +61 -0
  59. package/framework/src/elements/_loader.scss +126 -0
  60. package/framework/src/elements/_notification.scss +151 -0
  61. package/framework/src/elements/_options.scss +146 -0
  62. package/framework/src/elements/_other.scss +44 -0
  63. package/framework/src/elements/_paragraph.scss +101 -0
  64. package/framework/src/elements/_progress.scss +212 -0
  65. package/framework/src/elements/_radio.scss +67 -0
  66. package/framework/src/elements/_select.scss +315 -0
  67. package/framework/src/elements/_sticker.scss +151 -0
  68. package/framework/src/elements/_switch.scss +108 -0
  69. package/framework/src/elements/_table.scss +298 -0
  70. package/framework/src/elements/_tag.scss +131 -0
  71. package/framework/src/elements/_textarea.scss +125 -0
  72. package/framework/src/elements/_timeline.scss +283 -0
  73. package/framework/src/elements/_title.scss +139 -0
  74. package/framework/src/elements/_toaster.scss +128 -0
  75. package/framework/src/grid/_all.scss +3 -0
  76. package/framework/src/grid/_columns.scss +952 -0
  77. package/framework/src/grid/_rows.scss +47 -0
  78. package/framework/src/grid/_tiles.scss +78 -0
  79. package/framework/src/layout/_all.scss +6 -0
  80. package/framework/src/layout/_hero.scss +268 -0
  81. package/framework/src/layout/_main.scss +36 -0
  82. package/framework/src/layout/_section.scss +65 -0
  83. package/framework/src/layout/_toolbar.scss +100 -0
  84. package/framework/src/trilogy-core.scss +16 -0
  85. package/framework/src/trilogy-mangled.scss +14 -0
  86. package/framework/src/trilogy-namespaced.scss +14 -0
  87. package/framework/src/trilogy.scss +8 -0
  88. package/framework/src/utilities/_all.scss +9 -0
  89. package/framework/src/utilities/_animations.scss +71 -0
  90. package/framework/src/utilities/_controls.scss +67 -0
  91. package/framework/src/utilities/_derived-variables.scss +104 -0
  92. package/framework/src/utilities/_functions.scss +94 -0
  93. package/framework/src/utilities/_initial-variables.scss +150 -0
  94. package/framework/src/utilities/_mixins.scss +745 -0
  95. package/framework/src/utilities/_post.scss +6 -0
  96. package/framework/src/utilities/_pre.scss +5 -0
  97. package/framework/src/utilities/_spacing.scss +10 -0
  98. package/framework/src/utilities/_tools.scss +3 -0
  99. package/package.json +22 -0
  100. package/themes/default/src/_all.scss +1 -0
  101. package/themes/default/src/assets.scss +11 -0
  102. package/themes/default/src/utilities/_all.scss +0 -0
  103. package/themes/default/src/utilities/_post.scss +0 -0
  104. package/themes/default/src/utilities/_pre.scss +3 -0
@@ -0,0 +1,384 @@
1
+ @use "sass:map";
2
+
3
+ $icon-stretching-level: 16deg !default;
4
+
5
+ $icon-container-default: 20px;
6
+ $icon-padding-default: 8px;
7
+ $icon-dimensions-default: 15px;
8
+
9
+ $size: (
10
+ 'default': (
11
+ container: 20px, icon:15px
12
+ ),
13
+ 'small': (
14
+ container: 32px, icon: 20px
15
+ ),
16
+ 'medium': (
17
+ container: 48px, icon: 32px
18
+ ),
19
+ 'large': (
20
+ container: 66px, icon: 44px
21
+ ),
22
+ 'huge': (
23
+ container: 99px, icon: 66px
24
+ )
25
+ );
26
+
27
+ .icon {
28
+ align-items: center;
29
+ display: inline-flex;
30
+ justify-content: center;
31
+ font-size: inherit;
32
+ width: 1.5em;
33
+ height: 1.5em;
34
+
35
+ [class^="tri-"],
36
+ [class*=" tri-"] {
37
+ &::before {
38
+ width: 1em;
39
+ height: 1em;
40
+ content: "\00a0";
41
+ margin: 0;
42
+ }
43
+ display: flex;
44
+ -webkit-mask-repeat: no-repeat;
45
+ mask-repeat: no-repeat;
46
+ -webkit-mask-position: center;
47
+ mask-position: center;
48
+ -webkit-mask-size: cover;
49
+ mask-size: cover;
50
+ background-color: currentColor;
51
+ }
52
+
53
+ @each $name, $sizeConfig in $size {
54
+ &.is-#{$name} {
55
+ font-size: map.get($sizeConfig, 'icon');
56
+ [class^="tri-picto-"],
57
+ [class*=" tri-picto-"] {
58
+ min-height: 1.5em !important;
59
+ min-width: 1.5em !important;
60
+ }
61
+ &.is-stretched {
62
+ height: map.get($sizeConfig,'icon');
63
+ }
64
+ }
65
+ }
66
+
67
+ svg {
68
+ min-height: 20px;
69
+ min-width: 20px;
70
+ max-height: 100%;
71
+ max-width: 100%;
72
+ }
73
+
74
+ @each $name, $pair in $colors-brand-funcionnal {
75
+ $color: getColor($name);
76
+ $brandName: getColorBrandName($name);
77
+
78
+ &.is-circled-#{$brandName} {
79
+ background-color: $color;
80
+ }
81
+
82
+ &.is-#{$brandName} {
83
+ color: $color;
84
+ }
85
+ }
86
+
87
+ &.is-circled {
88
+ border-radius: 100%;
89
+ text-align: center;
90
+ }
91
+
92
+ &.is-stretched {
93
+ transform: skewX(-#{$icon-stretching-level});
94
+ border-top-right-radius: $radius-large;
95
+ background-color: getColor('font');
96
+
97
+ [class^="tri-"],
98
+ [class*=" tri-"] {
99
+ transform: skewX($icon-stretching-level);
100
+ background-color: getColor('background');
101
+ }
102
+ }
103
+
104
+ &.is-stacked {
105
+ flex-direction: column;
106
+ line-height: 5px !important;
107
+ position: relative;
108
+
109
+ .tri-notification_top {
110
+ font-size: 85%;
111
+ }
112
+
113
+ .tri-notification_bottom {
114
+ font-size: 0.125em;
115
+ width: 100%;
116
+ margin-top: 1px;
117
+
118
+ & {
119
+ width: auto;
120
+ }
121
+ }
122
+ }
123
+
124
+ &.is-animated {
125
+ .tri-notification_top {
126
+ @keyframes bellring {
127
+ 0% {
128
+ transform: rotate(-5deg);
129
+ }
130
+
131
+ 10% {
132
+ transform: rotate(-5deg);
133
+ }
134
+
135
+ 25% {
136
+ transform: rotate(10deg);
137
+ }
138
+
139
+ 35% {
140
+ transform: rotate(-25deg);
141
+ }
142
+
143
+ 45% {
144
+ transform: rotate(20deg);
145
+ }
146
+
147
+ 55% {
148
+ transform: rotate(-15deg);
149
+ }
150
+
151
+ 60% {
152
+ transform: rotate(10deg);
153
+ }
154
+
155
+ 70% {
156
+ transform: rotate(-5deg);
157
+ }
158
+
159
+ 100% {
160
+ transform: rotate(-5deg);
161
+ }
162
+ }
163
+
164
+ animation-name: bellring;
165
+ animation-duration: 6s;
166
+ animation-iteration-count: infinite;
167
+ animation-timing-function: ease-in-out;
168
+ animation-delay: -2s;
169
+ animation-direction: initial;
170
+ transform-origin: center top;
171
+ -moz-animation: none;
172
+ -moz-transform-origin: center top;
173
+ }
174
+
175
+ .tri-notification_bottom {
176
+ @keyframes bellbounce {
177
+ 0% {
178
+ transform: translateX(-1px) rotate(-5deg);
179
+ }
180
+
181
+ 10% {
182
+ transform: translateX(-1px) rotate(-5deg);
183
+ }
184
+
185
+ 17% {
186
+ transform: translateX(1px) rotate(8deg);
187
+ }
188
+
189
+ 25% {
190
+ transform: translateX(2px) rotate(10deg);
191
+ }
192
+
193
+ 36% {
194
+ transform: translateX(6px) rotate(-25deg);
195
+ }
196
+
197
+ 47% {
198
+ transform: translateX(-5px) rotate(15deg);
199
+ }
200
+
201
+ 58% {
202
+ transform: translateX(6px) rotate(-10deg);
203
+ }
204
+
205
+ 62% {
206
+ transform: translateX(-6px) rotate(5deg);
207
+ }
208
+
209
+ 71% {
210
+ transform: translateX(6px) rotate(-10deg);
211
+ }
212
+
213
+ 76% {
214
+ transform: translateX(-1px) rotate(-5deg);
215
+ }
216
+
217
+ 100% {
218
+ transform: translateX(-1px) rotate(-5deg);
219
+ }
220
+ }
221
+
222
+ animation-name: bellbounce !important;
223
+ animation-duration: 6s;
224
+ animation-iteration-count: infinite;
225
+ animation-timing-function: initial;
226
+ animation-delay: -2s;
227
+ animation-direction: normal;
228
+ transform-origin: center top;
229
+ -moz-animation: none;
230
+ }
231
+ }
232
+
233
+ &.has-status {
234
+ position: relative;
235
+
236
+ &::after {
237
+ content: '';
238
+ position: absolute;
239
+ top: 0;
240
+ right: 0;
241
+ width: $icon-dimensions-default;
242
+ height: $icon-dimensions-default;
243
+ border-radius: 100%;
244
+ background-color: getColor('main');
245
+ }
246
+
247
+ &.is-bordered {
248
+ border-radius: 50%;
249
+ border-color: currentColor;
250
+
251
+ &::after {
252
+ top: -2px;
253
+ right: -2px;
254
+ }
255
+ }
256
+
257
+ &.has-status {
258
+ .icon.is-descendant {
259
+ position: absolute;
260
+ top: 0;
261
+ right: 0;
262
+ width: $icon-dimensions-default;
263
+ height: $icon-dimensions-default;
264
+ background: #fff;
265
+
266
+ > [class^="tri-"],
267
+ > [class*=" tri-"] {
268
+ min-width: $icon-dimensions-default;
269
+ height: $icon-dimensions-default;
270
+ }
271
+
272
+ &.is-bottom,
273
+ &.is-bottom-right {
274
+ top: auto;
275
+ bottom: 0;
276
+ right: 0;
277
+ }
278
+ }
279
+
280
+ &::after {
281
+ content: none;
282
+ }
283
+ }
284
+ }
285
+ }
286
+
287
+ .icon-and-text {
288
+ display: inline-flex;
289
+ align-items: center;
290
+
291
+ > .icon {
292
+ line-height: 0;
293
+ margin-right: 0.5em;
294
+ }
295
+
296
+ > span + .icon {
297
+ margin: 0 0 0 0.5em;
298
+ }
299
+
300
+ &.is-alternate {
301
+ align-items: flex-start;
302
+
303
+ > .icon {
304
+ flex: none;
305
+
306
+ > i {
307
+ margin-bottom: 7px;
308
+ }
309
+ }
310
+ }
311
+
312
+ &.is-stacked {
313
+ flex-direction: column;
314
+ padding: 5px;
315
+
316
+ > .icon {
317
+ margin: 0 0 0.5em 0;
318
+ }
319
+
320
+ > span + .icon {
321
+ margin: 0.5em 0 0 0;
322
+ }
323
+ }
324
+
325
+ @include mobile {
326
+ &.is-stacked-mobile {
327
+ flex-direction: column;
328
+ padding: 5px;
329
+
330
+ > .icon {
331
+ margin: 0 0 0.5em 0;
332
+ }
333
+
334
+ > span + .icon {
335
+ margin: 0.5em 0 0 0;
336
+ }
337
+ }
338
+ }
339
+
340
+ @include tablet {
341
+ &.is-stacked-tablet {
342
+ flex-direction: column;
343
+ padding: 5px;
344
+
345
+ > .icon {
346
+ margin: 0 0 0.5em 0;
347
+ }
348
+
349
+ > span + .icon {
350
+ margin: 0.5em 0 0 0;
351
+ }
352
+ }
353
+ }
354
+
355
+ @include desktop {
356
+ &.is-stacked-desktop {
357
+ flex-direction: column;
358
+ padding: 5px;
359
+
360
+ > .icon {
361
+ margin: 0 0 0.5em 0;
362
+ }
363
+
364
+ > span + .icon {
365
+ margin: 0.5em 0 0 0;
366
+ }
367
+ }
368
+ }
369
+
370
+ @include widescreen {
371
+ &.is-stacked-widescreen {
372
+ flex-direction: column;
373
+ padding: 5px;
374
+
375
+ > .icon {
376
+ margin: 0 0 0.5em 0;
377
+ }
378
+
379
+ > span + .icon {
380
+ margin: 0.5em 0 0 0;
381
+ }
382
+ }
383
+ }
384
+ }
@@ -0,0 +1,59 @@
1
+ .image {
2
+ display: block;
3
+ position: relative;
4
+
5
+ img {
6
+ display: block;
7
+ max-width: 100%;
8
+
9
+ &.b-loaded {
10
+ height: auto;
11
+ }
12
+ }
13
+ }
14
+
15
+ .b-lazy {
16
+ transition: opacity 250ms ease-in-out;
17
+ opacity: 0;
18
+
19
+ &.b-loaded {
20
+ opacity: 1;
21
+
22
+ &.has-bg-image {
23
+ &.has-bg-gradient {
24
+ &::before {
25
+ opacity: 0;
26
+ }
27
+ }
28
+ }
29
+ }
30
+
31
+ &.has-bg-image {
32
+ background-repeat: no-repeat;
33
+ background-position: center center;
34
+ background-size: cover;
35
+ position: absolute;
36
+ top: 0;
37
+ bottom: 0;
38
+ left: 0;
39
+ right: 0;
40
+ height: 100%;
41
+
42
+ &.has-bg-gradient {
43
+ z-index: zindex('void');
44
+ opacity: 1;
45
+
46
+ &::before {
47
+ content: '';
48
+ opacity: 1;
49
+ position: absolute;
50
+ top: 0;
51
+ left: 0;
52
+ right: 0;
53
+ bottom: 0;
54
+ z-index: zindex('tiny');
55
+ transition: opacity 750ms ease-in-out;
56
+ }
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,37 @@
1
+
2
+ .field .security-gauge-container {
3
+ width: 100%;
4
+ .security-gauge {
5
+ height: 4px;
6
+ background: getColor('grey-disabled');
7
+ border-radius: 4px;
8
+ margin: 8px 0;
9
+ .gauge {
10
+ height: 100%;
11
+ border-radius: 4px;
12
+ }
13
+ }
14
+
15
+ .security-gauge-verifies {
16
+ display: flex;
17
+ justify-content: space-between;
18
+ align-items: center;
19
+ .security {
20
+ display: flex;
21
+ align-items: center;
22
+ margin-bottom: 4px;
23
+ .icon {
24
+ position: relative;
25
+ color: getColor('grey');
26
+ width: 16px;
27
+ margin-right: 8px;
28
+ font-size: 16px;
29
+ margin-bottom: -1px;
30
+
31
+ .is-success {
32
+ background-color: getColor('success')
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,41 @@
1
+ .field {
2
+
3
+ .has-icons-left {
4
+ input {
5
+ padding-left: 45px;
6
+ }
7
+ label {
8
+ left: 45px;
9
+ }
10
+ .icon-left
11
+ {
12
+ position: absolute;
13
+ height: 100%;
14
+ width: 45px;
15
+ left: 0;
16
+
17
+ i {
18
+ font-size: 20px;
19
+ }
20
+ }
21
+
22
+
23
+ }
24
+
25
+ .has-icons-right {
26
+ .icon-right
27
+ {
28
+ position: absolute;
29
+ height: 100%;
30
+ width: 45px;
31
+ z-index: 10;
32
+ right: 0;
33
+ left: auto;
34
+ i {
35
+ font-size: 20px;
36
+ }
37
+ }
38
+ }
39
+
40
+
41
+ }
@@ -0,0 +1,79 @@
1
+ .link:not([disabled]) {
2
+ position: relative;
3
+ font-size: 14px;
4
+ font-weight: $weight-medium;
5
+ color: getColor('alternate');
6
+ box-decoration-break: clone;
7
+ padding: $spacing-2;
8
+ margin: -8px;
9
+ text-decoration: underline;
10
+ cursor: pointer;
11
+
12
+ &:not(p .link) {
13
+ text-decoration-line: underline;
14
+ text-decoration-style: solid;
15
+ text-decoration-thickness: 2px;
16
+ text-underline-offset: 4px;
17
+ }
18
+
19
+ &:hover {
20
+ filter: brightness(70%);
21
+ }
22
+
23
+ &:focus,
24
+ &:focus-visible,
25
+ &.is-focused,
26
+ &:active,
27
+ &.is-active {
28
+ filter: brightness(50%);
29
+ }
30
+
31
+ @include desktop {
32
+ &:not(.is-static) {
33
+ display: inline-flex;
34
+ border-bottom-width: 0;
35
+ }
36
+ }
37
+
38
+ &.has-icon {
39
+ display: inline-flex;
40
+ align-items: center;
41
+
42
+ &::after {
43
+ width: calc(100% - 48px);
44
+ bottom: 5.5px;
45
+ }
46
+ }
47
+
48
+ &.is-static::after {
49
+ margin-bottom: 4px;
50
+ }
51
+
52
+ &.is-inverted {
53
+ color: getColor('background');
54
+
55
+ &.has-icon {
56
+ > .icon {
57
+ color: getColor('background');
58
+ }
59
+ }
60
+ }
61
+
62
+ @include touch {
63
+ white-space: normal !important;
64
+ box-decoration-break: clone;
65
+ display: inline;
66
+ }
67
+ }
68
+
69
+ @keyframes sliding-link {
70
+ 50% {
71
+ left: 100%;
72
+ right: 0;
73
+ }
74
+
75
+ 50.01% {
76
+ left: 0;
77
+ right: 100%;
78
+ }
79
+ }
@@ -0,0 +1,61 @@
1
+ // Bullet list classiques
2
+ ul.list , ol.list{
3
+ margin-left: 30px;
4
+ li {
5
+ margin-bottom: 5px;
6
+ }
7
+ }
8
+
9
+ ul.list {
10
+ list-style: disc;
11
+
12
+ ul.list {
13
+ list-style: circle;
14
+ }
15
+ }
16
+
17
+ // Listes avec icônes
18
+ ul.icon-list > li {
19
+ display: flex;
20
+ align-items: center;
21
+
22
+ span[disabled] {
23
+ opacity: 0.5;
24
+ }
25
+
26
+ .icon {
27
+ flex: none;
28
+ }
29
+ }
30
+
31
+ dl.dl {
32
+ dt {
33
+ font-weight: $weight-semibold;
34
+ margin-bottom: 5px;
35
+
36
+ &:not(:first-child) {
37
+ margin-top: 20px;
38
+ }
39
+ }
40
+
41
+ dd {
42
+ color: getColor('font');
43
+ font-size: $size-7;
44
+ }
45
+
46
+ &:not(:first-child) {
47
+ margin-top: 20px;
48
+ }
49
+
50
+ &.is-alternate {
51
+ dt {
52
+ color: getColor('font');
53
+ font-size: $size-7;
54
+ }
55
+
56
+ dd {
57
+ color: getColor('font');
58
+ font-size: $size-6;
59
+ }
60
+ }
61
+ }