@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
@@ -4,295 +4,242 @@
4
4
  * @deprecated "Use box.is-paddingless instead"
5
5
  */
6
6
  .table-container.box {
7
- padding: 0;
7
+ padding: 0;
8
8
  }
9
9
 
10
10
  .table {
11
- @include block;
12
-
13
- background-color: transparent;
14
- color: getColor('grey-dark');
15
-
16
- &:not(:last-child) {
17
- margin-bottom: 30px;
11
+ @include block;
12
+
13
+ background-color: transparent;
14
+ color: getColor('neutral-dark');
15
+
16
+ &:not(:last-child) {
17
+ margin-bottom: 30px;
18
+ }
19
+
20
+ /**
21
+ * @deprecated "Use multiples <tr><th> instead"
22
+ */
23
+ tbody .is-body-header {
24
+ background-color: getBGColor('neutral-dark');
25
+ }
26
+
27
+ td,
28
+ th {
29
+ border: 1px solid getBGColor('neutral-dark');
30
+ border-width: 0;
31
+ padding: 20px;
32
+ vertical-align: top;
33
+ text-align: left;
34
+
35
+ // Modifiers
36
+ &.is-narrow {
37
+ white-space: nowrap;
38
+ width: 1%;
18
39
  }
19
40
 
20
- /**
21
- * @deprecated "Use multiples <tr><th> instead"
22
- */
23
- tbody .is-body-header {
24
- background-color: getColor('grey-light');
41
+ &.is-selected {
42
+ background-color: getColor('main');
43
+ color: getColor('background');
44
+
45
+ a,
46
+ strong {
47
+ color: currentColor;
48
+ }
25
49
  }
50
+ }
26
51
 
27
- td,
28
- th {
29
- border: 1px solid getColor('grey-light');
30
- border-width: 0;
31
- padding: 20px;
32
- vertical-align: top;
33
- text-align: left;
34
-
35
- // Modifiers
36
- &.is-narrow {
37
- white-space: nowrap;
38
- width: 1%;
39
- }
52
+ th {
53
+ color: getColor('font');
54
+ }
40
55
 
41
- &.is-selected {
42
- background-color: getColor('main');
43
- color: getColor('background');
44
- a,
45
- strong {
46
- color: currentColor;
47
- }
48
- }
56
+ tr {
57
+ @each $name in $colors-feedback {
58
+ &.is-#{$name} {
59
+ background-color: getBGColor($name);
60
+ }
49
61
  }
50
62
 
51
63
  th {
52
- color: getColor('font');
64
+ background-color: getColor('background');
53
65
  }
54
66
 
55
- tr {
56
- @each $name, $pair in $colors-feedback {
57
- $bg-color: nth($pair, 1);
58
- &.is-#{$name} {
59
- background-color:getColor($bg-color);
60
- }
61
- }
67
+ th,
68
+ td {
69
+ color: getColor('font');
70
+ vertical-align: middle;
71
+ }
62
72
 
63
- th {
64
- background-color: getColor('background');
65
- }
73
+ td {
74
+ border-bottom: 1px solid getBGColor('neutral-dark');
66
75
 
67
- th,
68
- td {
69
- color: getColor('font');
70
- vertical-align: middle;
71
- }
72
-
73
- td {
74
- border-bottom: 1px solid getColor('grey-light');
76
+ > p {
77
+ margin: 0;
78
+ }
79
+ }
75
80
 
76
- > p {
77
- margin: 0;
78
- }
79
- }
81
+ &.is-selected {
82
+ background-color: getColor('main');
83
+ color: getColor('background');
80
84
 
81
- &.is-selected {
82
- background-color: getColor('main');
83
- color: getColor('background');
85
+ a,
86
+ strong {
87
+ color: currentColor;
88
+ }
84
89
 
85
- a,
86
- strong {
87
- color: currentColor;
88
- }
90
+ td,
91
+ th {
92
+ border-color: currentColor;
93
+ color: currentColor;
94
+ }
95
+ }
89
96
 
90
- td,
91
- th {
92
- border-color: currentColor;
93
- color: currentColor;
94
- }
95
- }
97
+ &.is-expanded,
98
+ &.is-expandable:hover {
99
+ td {
100
+ color: getColor('alternate');
101
+ cursor: pointer;
102
+ }
103
+ }
96
104
 
97
- &.is-expanded,
98
- &.is-expandable:hover {
99
- td {
100
- color: getColor('alternate');
101
- cursor: pointer;
102
- }
103
- }
105
+ &.is-expandable + .is-expansion {
106
+ display: none;
107
+ }
104
108
 
105
- &.is-expandable + .is-expansion {
106
- display: none;
107
- }
109
+ &.is-expanded + .is-expansion {
110
+ display: table-row;
111
+ }
108
112
 
109
- &.is-expanded + .is-expansion {
110
- display: table-row;
111
- }
113
+ &.is-expanded {
114
+ > td {
115
+ border-bottom: 0;
116
+ }
112
117
 
113
- &.is-expanded {
114
- > td {
115
- border-bottom: 0;
116
- }
118
+ .toggle {
119
+ transform: rotate(180deg);
120
+ color: inherit;
121
+ }
117
122
 
118
- .toggle {
119
- transform: rotate(180deg);
120
- color: inherit;
121
- }
123
+ + tr > td {
124
+ border-top: 0;
125
+ }
126
+ }
127
+ }
122
128
 
123
- + tr > td {
124
- border-top: 0;
125
- }
126
- }
129
+ thead {
130
+ td,
131
+ th {
132
+ border-width: 0 0 1px;
133
+ color: getColor('font');
127
134
  }
135
+ }
128
136
 
129
- thead {
130
- td,
131
- th {
132
- border-width: 0 0 1px;
133
- color: getColor('font');
134
- }
137
+ tfoot {
138
+ td,
139
+ th {
140
+ border-width: 2px 0 0;
141
+ color: getColor('font');
135
142
  }
143
+ }
136
144
 
137
- tfoot {
145
+ tbody {
146
+ tr {
147
+ &:last-child {
138
148
  td,
139
149
  th {
140
- border-width: 2px 0 0;
141
- color: getColor('font');
150
+ border-bottom-width: 0;
142
151
  }
152
+ }
143
153
  }
154
+ }
144
155
 
145
- tbody {
146
- tr {
147
- &:last-child {
148
- td,
149
- th {
150
- border-bottom-width: 0;
151
- }
152
- }
153
- }
156
+ &:not(.is-bordered).is-comparative {
157
+ th {
158
+ border-right: 1px solid getBGColor('neutral');
154
159
  }
155
160
 
156
- &:not(.is-bordered).is-comparative {
157
- th {
158
- border-right: 1px solid getColor('grey-lighter');
159
- }
160
-
161
- td {
162
- &:not(:last-child) {
163
- border-right: 1px solid getColor('grey-light');
164
- }
165
- }
161
+ td {
162
+ &:not(:last-child) {
163
+ border-right: 1px solid getBGColor('neutral-dark');
164
+ }
166
165
  }
166
+ }
167
167
 
168
- &.is-compact {
169
- td,
170
- th {
171
- padding: math.div(20px, 3) math.div(20px, 3);
172
- }
168
+ &.is-compact {
169
+ td,
170
+ th {
171
+ padding: math.div(20px, 3) math.div(20px, 3);
173
172
  }
173
+ }
174
174
 
175
- &.is-large {
176
- thead {
177
- height: 50px;
178
-
179
- th {
180
- color: getVariantColor('alternate',2);
181
- font-weight: 600;
182
- text-transform: uppercase;
183
- }
184
- }
185
-
186
- tbody {
187
- border-top: 1px solid #d8d8d8;
188
-
189
- tr {
190
- td {
191
- height: 40px;
192
- }
193
-
194
- &:not(.is-body-header) td {
195
- height: 96px;
196
- }
197
- }
198
- }
175
+ &.is-bordered {
176
+ td,
177
+ th {
178
+ border-width: 1px;
199
179
  }
200
180
 
201
- &.is-bordered {
181
+ tr {
182
+ &:last-child {
202
183
  td,
203
184
  th {
204
- border-width: 1px;
205
- }
206
-
207
- tr {
208
- &:last-child {
209
- td,
210
- th {
211
- border-bottom-width: 1px;
212
- }
213
- }
185
+ border-bottom-width: 1px;
214
186
  }
187
+ }
215
188
  }
189
+ }
216
190
 
217
- &.is-fullwidth {
218
- width: 100%;
219
- }
191
+ &.is-fullwidth {
192
+ width: 100%;
193
+ }
220
194
 
221
- &.is-hoverable {
222
- tbody {
223
- tr:not(.is-selected) {
224
- &:hover {
225
- background-color: getColor('grey-lighter');
226
- }
227
- }
228
- }
229
-
230
- &.is-striped {
231
- tbody {
232
- tr:not(.is-selected) {
233
- &:hover {
234
- background-color: getColor('grey-light');
235
- }
236
- }
237
- }
195
+ &.is-striped {
196
+ tbody {
197
+ tr:not(.is-selected) {
198
+ &:nth-child(even) {
199
+ background-color: getBGColor('neutral');
238
200
  }
201
+ }
239
202
  }
203
+ }
240
204
 
241
- &.is-narrow {
242
- td,
243
- th {
244
- padding: 0.25em 0.5em;
245
- }
246
- }
205
+ .subtable {
206
+ background-color: getBGColor('neutral');
207
+ border-radius: var(--radius);
208
+ padding: $box-padding * 2;
247
209
 
248
- &.is-striped {
249
- tbody {
250
- tr:not(.is-selected) {
251
- &:nth-child(even) {
252
- background-color: getColor('grey-lighter');
253
- }
254
- }
255
- }
210
+ @include mobile() {
211
+ padding: 15px;
256
212
  }
257
213
 
258
- .subtable {
259
- background-color: getColor('grey-lighter');
260
- border-radius: $radius;
261
- padding: $box-padding * 2;
214
+ .table {
215
+ background: transparent;
262
216
 
263
- @include mobile() {
264
- padding: 15px;
217
+ tr:not(:first-child) {
218
+ td {
219
+ border-top: 1px solid getColor('neutral-dark');
265
220
  }
221
+ }
266
222
 
267
- .table {
268
- background: transparent;
269
-
270
- tr:not(:first-child) {
271
- td {
272
- border-top: 1px solid getColor('grey-dark');
273
- }
274
- }
223
+ td {
224
+ border: 0;
275
225
 
276
- td {
277
- border: 0;
278
-
279
- &:first-child {
280
- padding-left: 0;
281
- }
226
+ &:first-child {
227
+ padding-left: 0;
228
+ }
282
229
 
283
- &:last-child {
284
- padding-right: 0;
285
- }
286
- }
230
+ &:last-child {
231
+ padding-right: 0;
287
232
  }
233
+ }
288
234
  }
235
+ }
289
236
  }
290
237
 
291
238
  .table-container {
292
- @include block;
293
- @include overflow-touch;
239
+ @include block;
240
+ @include overflow-touch;
294
241
 
295
- overflow: auto;
296
- overflow-y: hidden;
297
- max-width: 100%;
242
+ overflow: auto;
243
+ overflow-y: hidden;
244
+ max-width: 100%;
298
245
  }
@@ -1,131 +1,130 @@
1
- $tag-radius: $radius-rounded !default;
2
1
  $tag-delete-margin: 1px !default;
3
2
 
4
3
  // container pour multi-tags ou tags avec actions
5
4
  .tags {
6
- align-items: center;
7
- display: inline-flex;
8
- flex-wrap: wrap;
9
- justify-content: flex-start;
10
- margin-bottom: 16px;
11
-
12
- // multi-tags : ajout d'une marge bottom, supprimable par facette
13
- &:not(.is-gapless) {
14
- &:not(:last-child) {
15
- margin-right: 8px;
16
- }
17
-
18
- .tag {
19
- margin-bottom: 10px;
20
- }
5
+ align-items: center;
6
+ display: inline-flex;
7
+ flex-wrap: wrap;
8
+ justify-content: flex-start;
9
+ margin-bottom: 16px;
10
+
11
+ // multi-tags : ajout d'une marge bottom, supprimable par facette
12
+ &:not(.is-gapless) {
13
+ &:not(:last-child) {
14
+ margin-right: 8px;
21
15
  }
22
16
 
23
- // multi-tags : ajout d'une marge à droite de chaque tag
24
- .tag:not(:last-child) {
25
- margin-right: 8px;
17
+ .tag {
18
+ margin-bottom: 10px;
26
19
  }
20
+ }
27
21
 
28
- // centrage des tags
29
- &.is-centered {
30
- justify-content: center;
31
- }
22
+ // multi-tags : ajout d'une marge à droite de chaque tag
23
+ .tag:not(:last-child) {
24
+ margin-right: 8px;
25
+ }
32
26
 
33
- // tags avec actions
34
- &.has-addons {
35
- cursor: pointer;
36
-
37
- .tag {
38
- margin-right: 0;
39
-
40
- &:not(:first-child) {
41
- border-bottom-left-radius: 0;
42
- border-top-left-radius: 0;
43
- }
44
-
45
- &:not(:last-child) {
46
- border-bottom-right-radius: 0;
47
- border-top-right-radius: 0;
48
- }
49
-
50
- &:first-child {
51
- padding-right: 5px;
52
- }
53
-
54
- + .tag {
55
- padding: 0;
56
- position: relative;
57
- width: 25px;
58
- border-width: 0;
59
-
60
- // fixme : cette règle ne devrait-elle pas s'appliquer à TOUS les buttons ?
61
- cursor: inherit;
62
-
63
- // affichage d'une fausse croix avec 2 traits penchés
64
- &:empty {
65
- &::before,
66
- &::after {
67
- position: absolute;
68
- content: '';
69
- height: 10px;
70
- width: 2px;
71
- background-color: currentColor;
72
- top: 50%;
73
- left: 30%;
74
- }
75
-
76
- &::before {
77
- transform: translate(50%, -50%) rotate(45deg);
78
- }
79
-
80
- &::after {
81
- transform: translate(50%, -50%) rotate(-45deg);
82
- }
83
- }
84
- }
85
- }
27
+ // centrage des tags
28
+ &.is-centered {
29
+ justify-content: center;
30
+ }
86
31
 
87
- &.is-inverted {
88
- .tag {
89
- background-color: getColor(getColor('background'));
90
- }
32
+ // tags avec actions
33
+ &.has-addons {
34
+ cursor: pointer;
35
+
36
+ .tag {
37
+ margin-right: 0;
38
+
39
+ &:not(:first-child) {
40
+ border-bottom-left-radius: 0;
41
+ border-top-left-radius: 0;
42
+ }
43
+
44
+ &:not(:last-child) {
45
+ border-bottom-right-radius: 0;
46
+ border-top-right-radius: 0;
47
+ }
48
+
49
+ &:first-child {
50
+ padding-right: 5px;
51
+ }
52
+
53
+ + .tag {
54
+ padding: 0;
55
+ position: relative;
56
+ width: 25px;
57
+ border-width: 0;
58
+
59
+ // fixme : cette règle ne devrait-elle pas s'appliquer à TOUS les buttons ?
60
+ cursor: inherit;
61
+
62
+ // affichage d'une fausse croix avec 2 traits penchés
63
+ &:empty {
64
+ &::before,
65
+ &::after {
66
+ position: absolute;
67
+ content: '';
68
+ height: 10px;
69
+ width: 2px;
70
+ background-color: currentColor;
71
+ top: 50%;
72
+ left: 30%;
73
+ }
74
+
75
+ &::before {
76
+ transform: translate(50%, -50%) rotate(45deg);
77
+ }
78
+
79
+ &::after {
80
+ transform: translate(50%, -50%) rotate(-45deg);
81
+ }
91
82
  }
83
+ }
84
+ }
92
85
 
86
+ &.is-inverted {
87
+ .tag {
88
+ background-color: getColor(getColor('background'));
89
+ }
93
90
  }
91
+
92
+ }
94
93
  }
95
94
 
96
95
  .tag {
97
- align-items: center;
98
- background-color: getColor('background');
99
- border-radius: $tag-radius;
100
- color: getColor('font');
101
- display: inline-flex;
102
- font-size: $size-medium;
103
- font-weight: $weight-medium;
104
- height: 28px;
105
- justify-content: center;
106
- line-height: 20px;
107
- padding: $spacing-1 $spacing-2;
108
- white-space: nowrap;
109
-
110
- &.is-small {
111
- font-size: $text-12;
112
- line-height: 15px;
113
- height: 23px;
114
- }
96
+ align-items: center;
97
+ background-color: getBGColor('neutral-dark');
98
+ border-radius: 9999px;
99
+ color: getColor('font');
100
+ display: inline-flex;
101
+ font-size: $size-medium;
102
+ font-weight: $weight-medium;
103
+ height: 28px;
104
+ justify-content: center;
105
+ line-height: 20px;
106
+ padding: $spacing-1 $spacing-2;
107
+ white-space: nowrap;
108
+
109
+ &.is-small {
110
+ font-size: $text-12;
111
+ line-height: 15px;
112
+ height: 23px;
113
+ }
115
114
 
116
115
 
117
- @include mobile {
118
- font-size: 12px;
119
- line-height: 15px;
120
- }
116
+ @include mobile {
117
+ font-size: 12px;
118
+ line-height: 15px;
119
+ }
121
120
 
122
- @each $name, $pair in $colors-feedback {
123
- $bg-color: nth($pair, 1);
121
+ @each $name in $colors-feedback {
124
122
  &.is-#{$name}:not(.is-inverted) {
125
- background-color: getColor($bg-color);
123
+ background-color: getBGColor($name);
126
124
  }
127
125
  &.is-inverted.is-#{$name} {
128
126
  color: getColor($name);
127
+ background-color: invertColor($name);
129
128
  }
130
129
  }
131
130
  }