@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50

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 (87) hide show
  1. package/README.md +47 -0
  2. package/dist/default/trilogy-mangled.css +1 -1
  3. package/dist/default/trilogy-partials.css +1 -1
  4. package/dist/default/trilogy.css +1 -1
  5. package/framework/src/base/_color.scss +14 -36
  6. package/framework/src/base/_generic.scss +4 -1
  7. package/framework/src/base/_helpers.scss +20 -37
  8. package/framework/src/base/_loading.scss +8 -1
  9. package/framework/src/base/_reset.scss +8 -3
  10. package/framework/src/components/_accordion.scss +40 -86
  11. package/framework/src/components/_all.scss +0 -6
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +7 -78
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_fab.scss +12 -26
  17. package/framework/src/components/_level.scss +1 -1
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +167 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +104 -133
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +255 -255
  24. package/framework/src/components/_price.scss +196 -166
  25. package/framework/src/components/_product-tour.scss +2 -4
  26. package/framework/src/components/_range.scss +73 -72
  27. package/framework/src/components/_segmented-control.scss +37 -51
  28. package/framework/src/components/_stepper.scss +18 -142
  29. package/framework/src/components/_tabs.scss +32 -59
  30. package/framework/src/components/_timeline.scss +52 -45
  31. package/framework/src/elements/_alert.scss +5 -8
  32. package/framework/src/elements/_all.scss +1 -3
  33. package/framework/src/elements/_autocomplete.scss +32 -0
  34. package/framework/src/elements/_badge.scss +54 -59
  35. package/framework/src/elements/_box.scss +8 -115
  36. package/framework/src/elements/_button.scss +15 -133
  37. package/framework/src/elements/_checkbox.scss +21 -27
  38. package/framework/src/elements/_chips.scss +74 -83
  39. package/framework/src/elements/_dot.scss +1 -1
  40. package/framework/src/elements/_entry.scss +76 -88
  41. package/framework/src/elements/_form.scss +17 -15
  42. package/framework/src/elements/_icon.scss +3 -3
  43. package/framework/src/elements/_input-gauge.scss +32 -33
  44. package/framework/src/elements/_input-icons.scss +33 -31
  45. package/framework/src/elements/_link.scss +38 -65
  46. package/framework/src/elements/_list.scss +38 -46
  47. package/framework/src/elements/_loader.scss +1 -1
  48. package/framework/src/elements/_other.scss +2 -2
  49. package/framework/src/elements/_paragraph.scss +4 -26
  50. package/framework/src/elements/_progress.scss +12 -21
  51. package/framework/src/elements/_radio.scss +2 -2
  52. package/framework/src/elements/_select.scss +84 -301
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +85 -88
  55. package/framework/src/elements/_table.scss +173 -226
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +95 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +3 -4
  60. package/framework/src/grid/_columns.scss +5 -5
  61. package/framework/src/layout/_all.scss +0 -1
  62. package/framework/src/layout/_hero.scss +109 -207
  63. package/framework/src/layout/_section.scss +7 -14
  64. package/framework/src/theming/_all.scss +3 -0
  65. package/framework/src/theming/buttons_partial.scss +30 -0
  66. package/framework/src/theming/common_partials.scss +9 -0
  67. package/framework/src/theming/links_partial.scss +20 -0
  68. package/framework/src/utilities/_all.scss +3 -0
  69. package/framework/src/utilities/_background.scss +15 -0
  70. package/framework/src/utilities/_controls.scss +37 -48
  71. package/framework/src/utilities/_derived-variables.scss +3 -14
  72. package/framework/src/utilities/_initial-variables.scss +22 -26
  73. package/framework/src/utilities/_mixins.scss +481 -593
  74. package/framework/src/utilities/_pre.scss +1 -0
  75. package/package.json +3 -2
  76. package/framework/src/components/_disclaimer.scss +0 -84
  77. package/framework/src/components/_dropdown.scss +0 -128
  78. package/framework/src/components/_menu.scss +0 -213
  79. package/framework/src/components/_search-modal.scss +0 -197
  80. package/framework/src/components/_slices.scss +0 -316
  81. package/framework/src/components/_slider.scss +0 -92
  82. package/framework/src/components/_switch.scss +0 -209
  83. package/framework/src/elements/_checkradio.scss +0 -173
  84. package/framework/src/elements/_notification.scss +0 -151
  85. package/framework/src/elements/_options.scss +0 -146
  86. package/framework/src/elements/_timeline.scss +0 -283
  87. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,316 +0,0 @@
1
- .slices {
2
- display: flex;
3
- background-color: getColor('background');
4
- flex-direction: column;
5
-
6
- > .slice:not(:last-child),
7
- > .slice-group:not(:last-child) {
8
- border-bottom: 1px solid getColor('grey-light');
9
- }
10
-
11
- &.is-transparent {
12
- background-color: transparent;
13
-
14
- .slice {
15
- background-color: transparent;
16
- }
17
- }
18
- }
19
-
20
- .slice {
21
- padding: 20px 0;
22
- display: flex;
23
- background-color: getColor('background');
24
-
25
- &:not(.is-disabled):hover {
26
- cursor: pointer;
27
-
28
- .title {
29
- color: getColor('alternate');
30
- }
31
-
32
- .slice-icon,
33
- .slice-image {
34
- @include tablet {
35
- padding-left: 5px;
36
- transition: padding-left 150ms ease-in-out;
37
- }
38
- }
39
-
40
- .slice-call-to-action,
41
- .slice-cta {
42
- color: getColor('alternate');
43
-
44
- @include tablet {
45
- padding-right: 5px;
46
- transition: padding-right 150ms ease-in-out;
47
- }
48
- }
49
- }
50
-
51
- > * {
52
- align-self: center;
53
- }
54
-
55
- .slice-icon,
56
- .slice-image {
57
- flex-grow: 0;
58
- margin-right: 30px;
59
- }
60
-
61
- .slice-image {
62
- .image {
63
- align-items: center;
64
- display: flex;
65
- justify-content: center;
66
- height: 100px;
67
- width: 100px;
68
-
69
- img {
70
- max-height: 100%;
71
- max-width: 100%;
72
- }
73
-
74
- .is-rounded {
75
- max-height: 65%;
76
- max-width: 65%;
77
- }
78
- }
79
- }
80
-
81
- &:not(.is-illustrated-mobile) {
82
- .slice-icon,
83
- .slice-image {
84
- @include mobile {
85
- display: none;
86
- }
87
- }
88
- }
89
-
90
- &.has-long-cta {
91
- @include mobile {
92
- flex-wrap: wrap;
93
-
94
- > * {
95
- align-self: flex-start;
96
- }
97
- }
98
-
99
- .slice-call-to-action,
100
- .slice-cta {
101
- @include mobile {
102
- flex: 0 1 100%;
103
- margin-top: 20px;
104
- }
105
- }
106
-
107
- .slice-icon ~ .slice-call-to-action,
108
- .slice-image ~ .slice-call-to-action,
109
- .slice-icon ~ .slice-cta,
110
- .slice-image ~ .slice-cta {
111
- text-align: center;
112
- }
113
- }
114
-
115
- .slice-content {
116
- flex: 1;
117
- padding: 1px; /* Fix flex behavior on safari mobile */
118
- margin-right: 20px;
119
- text-align: left;
120
-
121
- p {
122
- margin: 0;
123
- }
124
-
125
- p:not(.title) {
126
- font-size: 13px;
127
- color: getColor('font');
128
- }
129
- }
130
-
131
- .slice-call-to-action,
132
- .slice-cta {
133
- flex-grow: 0;
134
- white-space: nowrap;
135
-
136
- @include mobile {
137
- .button.is-text {
138
- display: inline;
139
- white-space: pre-wrap;
140
- }
141
- }
142
-
143
- .tri-ui-arrow-right-r {
144
- font-size: 20px;
145
- }
146
- }
147
-
148
- > .field {
149
- width: 100%;
150
-
151
- > .control {
152
- position: relative;
153
- display: flex;
154
- align-items: center;
155
- min-height: 45px;
156
-
157
- .is-checkradio[type="checkbox"] {
158
- &:checked {
159
- + label {
160
- &::after {
161
- top: inherit;
162
- }
163
- }
164
- }
165
- }
166
-
167
- .is-checkradio[type="radio"] {
168
- + label {
169
- &::before,
170
- &::after {
171
- width: 22px;
172
- height: 22px;
173
- }
174
-
175
- &::before {
176
- transform: translateY(0) translateY(0);
177
- }
178
-
179
- &::after {
180
- transform: scale(0.5) translateY(0) translateY(0);
181
- display: none;
182
- }
183
- }
184
-
185
- &:checked {
186
- + label {
187
- &::after {
188
- content: '';
189
- display: inline-block;
190
- top: 50%;
191
- margin-top: -11px;
192
- margin-left: 4px;
193
- }
194
- }
195
- }
196
- }
197
- }
198
- }
199
- }
200
-
201
- .slice-select {
202
- .slice {
203
- .slice-body {
204
- align-items: center;
205
- display: flex;
206
- width: 100%;
207
-
208
- @include mobile {
209
- flex-wrap: wrap;
210
- }
211
-
212
- .slice-call-to-action,
213
- .slice-cta {
214
- display: none;
215
-
216
- @include mobile {
217
- width: 100%;
218
- }
219
- }
220
- }
221
-
222
- & > .field > .control > {
223
- .is-checkradio[type="checkbox"],
224
- .is-checkradio[type="radio"] {
225
- &:checked {
226
- ~ .slice-body {
227
- .slice-icon,
228
- .slice-image {
229
- @include tablet {
230
- padding-left: 5px;
231
- }
232
- }
233
-
234
- .title {
235
- color: getColor('alternate');
236
- }
237
-
238
- .slice-call-to-action,
239
- .slice-cta {
240
- display: block;
241
- margin-top: 15px;
242
-
243
- @include tablet {
244
- padding-right: 5px;
245
- margin-top: 0;
246
- }
247
- }
248
- }
249
- }
250
- }
251
- }
252
- }
253
- }
254
-
255
- /* TODO: code obsolète, à effacer quand select-line (sélecteur de ligne) ne sera plus */
256
- .is-select-line.slices {
257
- .slice {
258
- padding: 0;
259
-
260
- > .field > .control {
261
- flex-direction: row;
262
-
263
- @include mobile {
264
- flex-wrap: wrap;
265
- }
266
-
267
- .slice-call-to-action,
268
- .slice-cta {
269
- display: none;
270
- padding-right: 15px;
271
-
272
- @include mobile {
273
- justify-content: center;
274
- padding-right: 0;
275
- width: 100%;
276
- margin-bottom: 20px;
277
- }
278
- }
279
-
280
- .is-checkradio[type="checkbox"],
281
- .is-checkradio[type="radio"] {
282
- + label {
283
- padding: 20px 12.5px 20px 50px;
284
- margin: 0;
285
- flex-direction: row;
286
-
287
- &::before {
288
- left: -36px;
289
- }
290
- }
291
- }
292
-
293
- .is-checkradio[type="checkbox"]:checked + label::after {
294
- margin-left: 13px;
295
- }
296
-
297
- .is-checkradio[type="radio"]:checked + label::after {
298
- margin-left: 14px;
299
- }
300
- }
301
- }
302
-
303
- &.is-mutually-exclusive {
304
- .slice > .field > .control {
305
- .is-checkradio[type="checkbox"],
306
- .is-checkradio[type="radio"] {
307
- &:checked {
308
- ~ .slice-call-to-action,
309
- ~ .slice-cta {
310
- display: block;
311
- }
312
- }
313
- }
314
- }
315
- }
316
- }
@@ -1,92 +0,0 @@
1
- [data-slider] {
2
- position: relative;
3
-
4
- [data-slider-pages] {
5
- overflow: hidden;
6
- }
7
-
8
- [data-slider-page] {
9
- &.column:not(.is-12-mobile) {
10
- min-width: 0;
11
- }
12
- }
13
-
14
- [data-slides-container] {
15
- display: flex;
16
- }
17
-
18
- [data-slide] {
19
- flex: 0 0 100%;
20
- }
21
-
22
- [data-slider-dots] {
23
- position: absolute;
24
- left: 50%;
25
- bottom: -20px;
26
- transform: translateX(-50%);
27
-
28
- &:not(.is-inverted) {
29
- .slider-dot {
30
- background-color: getColor('background');
31
- }
32
- }
33
-
34
- .slider-dot {
35
- width: 7px;
36
- height: 7px;
37
- background-color: getColor('grey');
38
- border-radius: 100%;
39
- margin: 4px;
40
- padding: 0;
41
- opacity: 1;
42
-
43
- &.is-active {
44
- background-color: getColor('alternate');
45
- }
46
- }
47
- }
48
-
49
- [data-slider-prev],
50
- [data-slider-next] {
51
- display: none;
52
-
53
- @include desktop {
54
- box-shadow: 0 2px 4px 0 rgba(#000, 0.1);
55
- display: flex;
56
- position: absolute;
57
- z-index: zindex("tiny");
58
- top: 50%;
59
- left: 30px;
60
- transform: translateY(-50%);
61
- cursor: pointer;
62
- }
63
- }
64
-
65
- [data-slider-next] {
66
- left: auto;
67
- right: 30px;
68
- }
69
-
70
- &.is-motionless-desktop {
71
- @include desktop {
72
- pointer-events: none;
73
-
74
- a,
75
- .link,
76
- .button {
77
- pointer-events: auto;
78
- }
79
-
80
- [data-slider-page] {
81
- min-width: auto;
82
- }
83
- }
84
- }
85
-
86
- > .pricing-table {
87
- @include mobile {
88
- flex-direction: row;
89
- flex-wrap: nowrap;
90
- }
91
- }
92
- }
@@ -1,209 +0,0 @@
1
- $switch-margin: 10px !default;
2
- $switch-paddle-offset: 2px !default;
3
- $switch-height: 22px;
4
- $switch-width: $switch-height * 2;
5
- $paddle-height: $switch-height - $switch-paddle-offset * 2;
6
- $paddle-width: $paddle-height;
7
-
8
- .switch[type='checkbox'] {
9
- outline: 0;
10
- user-select: none;
11
- display: inline-block;
12
- position: absolute;
13
- opacity: 0;
14
-
15
- &[disabled] {
16
- cursor: not-allowed;
17
-
18
- + label {
19
- opacity: 0.5;
20
-
21
- &::before,
22
- &::after {
23
- opacity: 0.5;
24
- }
25
-
26
- &:hover {
27
- cursor: not-allowed;
28
- }
29
- }
30
- }
31
-
32
- + label {
33
- flex-direction: row-reverse;
34
- justify-content: space-between;
35
-
36
- &::before,
37
- &::after {
38
- content: '';
39
- border: none;
40
- }
41
-
42
- &::before {
43
- min-width: $switch-width;
44
- flex-basis: $switch-width;
45
- height: $switch-height;
46
- background: getColor('grey-disabled');
47
- border-radius: $radius * 4;
48
- margin-right: 0;
49
- margin-left: $switch-margin;
50
- }
51
-
52
- &::after {
53
- content: '\f103';
54
- margin-left: 0;
55
- margin-right: 0;
56
- display: inline-flex;
57
- align-items: center;
58
- justify-content: center;
59
- width: $paddle-width;
60
- height: $paddle-height;
61
- color: getColor('grey-disabled');
62
- left: auto;
63
- right: $switch-width - $paddle-width - $switch-paddle-offset;
64
- top: 50%;
65
- transform: translateY(-50%);
66
- background: getColor('background');
67
- transition: all 0.25s ease-out;
68
- border-radius: 100%;
69
- }
70
- }
71
-
72
- &:checked {
73
- + label {
74
- &::before {
75
- background: getColor('alternate');
76
- }
77
-
78
- &::after {
79
- right: $switch-paddle-offset;
80
- content: '\f102';
81
- color: getColor('alternate');
82
- }
83
- }
84
- }
85
-
86
- &.is-success {
87
- &:checked {
88
- + label {
89
- &::before {
90
- background: getColor('success');
91
- }
92
-
93
- &::after {
94
- color: getColor('success');
95
- }
96
- }
97
- }
98
- }
99
-
100
- &.is-info {
101
- &:checked {
102
- + label {
103
- &::before {
104
- background: getColor('info');
105
- }
106
-
107
- &::after {
108
- color: getColor('info');
109
- }
110
- }
111
- }
112
- }
113
-
114
- &.is-warning {
115
- &:checked {
116
- + label {
117
- &::before {
118
- background: getColor('warning');
119
- }
120
-
121
- &::after {
122
- color: getColor('warning');
123
- }
124
- }
125
- }
126
- }
127
-
128
- &.is-error {
129
- &:checked {
130
- + label {
131
- &::before {
132
- background: getColor('error');
133
- }
134
-
135
- &::after {
136
- color: getColor('error');
137
- }
138
- }
139
- }
140
- }
141
-
142
- &.has-slice {
143
- + label {
144
- justify-content: center;
145
- flex-direction: column;
146
- align-items: flex-start;
147
- padding-right: $switch-width + $switch-margin;
148
-
149
- &::before {
150
- position: absolute;
151
- right: 0;
152
- top: 50%;
153
- transform: translateY(-50%);
154
- margin-left: 0;
155
- }
156
-
157
- &::after {
158
- position: absolute;
159
- }
160
- }
161
- }
162
-
163
- &.is-inverted {
164
- + label::before {
165
- background: getColor('background');
166
- }
167
-
168
- + label::after {
169
- background: getColor('grey-disabled');
170
- }
171
-
172
- &:checked {
173
- + label {
174
- &::before {
175
- background: getColor('background');
176
- }
177
-
178
- &::after {
179
- background: getColor('alternate');
180
- color: getColor('background');
181
- }
182
- }
183
- }
184
-
185
- &.is-success {
186
- &:checked + label::after {
187
- background: getColor('success');
188
- }
189
- }
190
-
191
- &.is-info {
192
- &:checked + label::after {
193
- background: getColor('info');
194
- }
195
- }
196
-
197
- &.is-warning {
198
- &:checked + label::after {
199
- background: getColor('warning');
200
- }
201
- }
202
-
203
- &.is-error {
204
- &:checked + label::after {
205
- background: getColor('error');
206
- }
207
- }
208
- }
209
- }