@trilogy-ds/styles 0.0.1-beta-130 → 0.0.1-beta-131

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.
@@ -14,66 +14,54 @@ $text-levels-mobile: (
14
14
 
15
15
  .text {
16
16
  @each $text-level in $text-levels {
17
- $i: index($text-levels, $text-level);
18
- $font-size: nth($text-level, 1);
19
- $line-height: nth($text-level, 2);
20
- $margin-bottom: nth($text-level, 3);
17
+ $i: index($text-levels, $text-level);
18
+ $font-size: nth($text-level, 1);
19
+ $line-height: nth($text-level, 2);
21
20
 
22
- &.is-level-#{$i} {
23
- font-size: $font-size;
24
- line-height: $line-height;
25
- font-family: $family-primary;
26
- margin-bottom: $margin-bottom;
27
- }
28
- }
29
-
30
- &.is-inverted {
31
- color: getColor('background');
32
- }
33
-
34
- @include mobile {
35
- @each $text-level-mobile in $text-levels-mobile {
36
- $i: index($text-levels-mobile, $text-level-mobile);
37
- $margin-bottom: nth($text-level-mobile, 3);
38
-
39
- &.is-level-#{$i} {
40
- margin-bottom: $margin-bottom;
41
- }
42
- }
43
- }
21
+ &.is-level-#{$i} {
22
+ font-size: $font-size;
23
+ line-height: $line-height;
24
+ font-family: $family-primary;
25
+ }
26
+ }
44
27
 
45
- &.is-wrapped {
46
- word-break: break-word;
47
- }
28
+ &.is-inverted {
29
+ color: getColor('background');
30
+ }
48
31
 
49
- &.bold {
50
- font-weight: $weight-bold;
51
- }
32
+ @include mobile {
33
+ @each $text-level-mobile in $text-levels-mobile {
34
+ $i: index($text-levels-mobile, $text-level-mobile);
52
35
  }
36
+ }
53
37
 
38
+ &.is-wrapped {
39
+ word-break: break-word;
40
+ }
54
41
 
55
- .paragraph:not(:last-child) {
56
- margin-bottom: 10px;
42
+ &.bold {
43
+ font-weight: $weight-bold;
44
+ }
57
45
  }
58
46
 
59
47
  .span {
60
- font-style: inherit;
61
- font-weight: inherit;
48
+ font-style: inherit;
49
+ font-weight: inherit;
62
50
  }
63
51
 
64
52
  .strong {
65
- color: inherit;
66
- font-weight: $weight-bold;
53
+ color: inherit;
54
+ font-weight: $weight-bold;
67
55
  }
68
56
 
69
57
  .sup {
70
- line-height: 0;
71
- position: relative;
72
- vertical-align: baseline;
73
- top: -0.4em;
74
- font-size: 0.7em;
58
+ line-height: 0;
59
+ position: relative;
60
+ vertical-align: baseline;
61
+ top: -0.4em;
62
+ font-size: 0.7em;
75
63
  }
76
64
 
77
65
  .small {
78
- font-size: 0.875em;
66
+ font-size: 0.875em;
79
67
  }
@@ -201,3 +201,23 @@ $slides-concat: '';
201
201
  $slides-concat: $slides-concat + ' + ' + var(--#{$name});
202
202
  }
203
203
  }
204
+
205
+ .progress-legends {
206
+ display: grid;
207
+ grid-template-columns: repeat(3, 1fr);
208
+
209
+ .progress-legend-start {
210
+ grid-column: 1;
211
+ text-align: left;
212
+ }
213
+
214
+ .progress-legend-center {
215
+ grid-column: 2;
216
+ text-align: center;
217
+ }
218
+
219
+ .progress-legend-end {
220
+ grid-column: 3;
221
+ text-align: right;
222
+ }
223
+ }
@@ -1,6 +1,11 @@
1
1
  .switch {
2
2
  position: relative;
3
3
  margin: 8px;
4
+ width: fit-content;
5
+
6
+ &.is-fullwidth {
7
+ width: 100%;
8
+ }
4
9
 
5
10
  input {
6
11
  display: none;
@@ -8,6 +13,7 @@
8
13
  &:disabled ~ label,
9
14
  &:disabled:checked ~ label {
10
15
  cursor: not-allowed;
16
+
11
17
  &:before {
12
18
  background-color: getColor('disabled');
13
19
  }
@@ -153,7 +153,9 @@
153
153
  }
154
154
  }
155
155
 
156
- &:not(.is-bordered).is-comparative {
156
+ &.has-border-all {
157
+ border: 1px solid getColor('neutral-fade');
158
+
157
159
  th {
158
160
  border-right: 1px solid getColor('neutral-fade');
159
161
  }
@@ -165,26 +167,24 @@
165
167
  }
166
168
  }
167
169
 
168
- &.is-compact {
169
- td,
170
+ &.has-border-inner {
170
171
  th {
171
- padding: math.div(20px, 3) math.div(20px, 3);
172
+ &:not(:last-child) {
173
+ border-right: 1px solid getColor('neutral-fade');
174
+ }
175
+ }
176
+
177
+ td {
178
+ &:not(:last-child) {
179
+ border-right: 1px solid getColor('neutral-fade');
180
+ }
172
181
  }
173
182
  }
174
183
 
175
- &.is-bordered {
184
+ &.is-compact {
176
185
  td,
177
186
  th {
178
- border-width: 1px;
179
- }
180
-
181
- tr {
182
- &:last-child {
183
- td,
184
- th {
185
- border-bottom-width: 1px;
186
- }
187
- }
187
+ padding: math.div(20px, 3) math.div(20px, 3);
188
188
  }
189
189
  }
190
190
 
@@ -3,40 +3,39 @@
3
3
  $columnWidth: calc((100% / (var(--ColumnFraction))) - ((((var(--ColumnFraction)) - 1) / (var(--ColumnFraction))) * var(--ColumnGap)));
4
4
  $offsetWidth: calc((100% / (var(--offset))) - ((((var(--offset)) - 1) / (var(--offset))) * var(--ColumnGap)) + var(--ColumnGap));
5
5
 
6
- $columnSize : (
7
- "1" : math.div(12, 1),
8
- "2" : math.div(12, 2),
9
- "3" : math.div(12, 3),
10
- "4" : math.div(12, 4),
11
- "5" : math.div(12, 5),
12
- "6" : math.div(12, 6),
13
- "7" : math.div(12, 7),
14
- "8" : math.div(12, 8),
15
- "9" : math.div(12, 9),
16
- "10" : math.div(12, 10),
17
- "11" : math.div(12, 11),
18
- "12" : math.div(12, 12),
19
- "full" : math.div(12, 12),
20
- "half" : math.div(12, 6)
6
+ $columnSize: (
7
+ "1" : math.div(12, 1),
8
+ "2" : math.div(12, 2),
9
+ "3" : math.div(12, 3),
10
+ "4" : math.div(12, 4),
11
+ "5" : math.div(12, 5),
12
+ "6" : math.div(12, 6),
13
+ "7" : math.div(12, 7),
14
+ "8" : math.div(12, 8),
15
+ "9" : math.div(12, 9),
16
+ "10" : math.div(12, 10),
17
+ "11" : math.div(12, 11),
18
+ "12" : math.div(12, 12),
19
+ "full" : math.div(12, 12),
20
+ "half" : math.div(12, 6)
21
21
  );
22
22
 
23
+ $columnNumber: 12;
23
24
  %flex-none {
24
25
  flex: none;
25
26
  }
26
27
 
27
28
 
28
- $gap :
29
- 4px,
30
- 8px,
31
- 12px,
32
- 16px,
33
- 24px,
34
- 32px,
35
- 40px,
36
- 48px,
37
- 54px,
38
- 62px
39
- ;
29
+ $gap: 4px,
30
+ 8px,
31
+ 12px,
32
+ 16px,
33
+ 24px,
34
+ 32px,
35
+ 40px,
36
+ 48px,
37
+ 54px,
38
+ 62px;
40
39
 
41
40
  .columns {
42
41
  display: flex;
@@ -46,11 +45,11 @@ $gap :
46
45
  flex: none;
47
46
  }
48
47
 
49
- .column[class*="is-"]:not(.is-narrow){
50
- width: #{$columnWidth};
48
+ .column[class*="is-"]:not(.is-narrow) {
49
+ width: #{$columnWidth};
51
50
  }
52
51
 
53
- @each $key, $value in $columnSize{
52
+ @each $key, $value in $columnSize {
54
53
  > .column.is-#{$key} {
55
54
  flex: none;
56
55
  --ColumnFraction: #{$value};
@@ -66,42 +65,47 @@ $gap :
66
65
  $item: nth($gap, $i);
67
66
  &.is-mobile.has-gap-#{$i} {
68
67
  gap: $item;
68
+
69
69
  .column {
70
70
  --ColumnGap: #{$item};
71
71
  }
72
72
  }
73
73
 
74
- @include tablet{
74
+ @include tablet {
75
75
  &.has-gap-#{$i}:not(.is-desktop) {
76
76
  gap: $item;
77
+
77
78
  .column {
78
79
  --ColumnGap: #{$item};
79
80
  }
80
81
  }
81
82
  }
82
83
 
83
- @include desktop{
84
+ @include desktop {
84
85
  &.has-gap-#{$i},
85
86
  &.has-gap-#{$i}-desktop {
86
87
  gap: $item;
88
+
87
89
  .column {
88
90
  --ColumnGap: #{$item};
89
91
  }
90
92
  }
91
93
  }
92
94
 
93
- @include widescreen{
95
+ @include widescreen {
94
96
  &.has-gap-#{$i}-widescreen {
95
97
  gap: $item;
98
+
96
99
  .column {
97
100
  --ColumnGap: #{$item};
98
101
  }
99
102
  }
100
103
  }
101
104
 
102
- @include fullhd{
105
+ @include fullhd {
103
106
  &.has-gap-#{$i}-fullhd {
104
107
  gap: $item;
108
+
105
109
  .column {
106
110
  --ColumnGap: #{$item};
107
111
  }
@@ -111,13 +115,12 @@ $gap :
111
115
  }
112
116
 
113
117
 
114
-
115
- @include mobile{
116
- &.is-peek{
118
+ @include mobile {
119
+ &.is-peek {
117
120
  padding-right: 15%;
118
121
  }
119
122
 
120
- @each $key, $value in $columnSize{
123
+ @each $key, $value in $columnSize {
121
124
  & > .column.is-#{$key}-mobile {
122
125
  flex: none;
123
126
  --ColumnFraction: #{$value};
@@ -131,9 +134,8 @@ $gap :
131
134
 
132
135
  }
133
136
 
134
- @include tablet{
135
-
136
- @each $key, $value in $columnSize{
137
+ @include tablet {
138
+ @each $key, $value in $columnSize {
137
139
  > .column.is-#{$key}-tablet {
138
140
  flex: none;
139
141
  --ColumnFraction: #{$value};
@@ -147,9 +149,8 @@ $gap :
147
149
 
148
150
  }
149
151
 
150
- @include touch{
151
-
152
- @each $key, $value in $columnSize{
152
+ @include touch {
153
+ @each $key, $value in $columnSize {
153
154
  > .column.is-#{$key}-touch {
154
155
  flex: none;
155
156
  --ColumnFraction: #{$value};
@@ -163,9 +164,8 @@ $gap :
163
164
 
164
165
  }
165
166
 
166
- @include desktop{
167
-
168
- @each $key, $value in $columnSize{
167
+ @include desktop {
168
+ @each $key, $value in $columnSize {
169
169
  > .column.is-#{$key}-desktop {
170
170
  flex: none;
171
171
  --ColumnFraction: #{$value};
@@ -179,10 +179,9 @@ $gap :
179
179
 
180
180
  }
181
181
 
182
- @include widescreen{
183
-
184
- @each $key, $value in $columnSize{
185
- > .column.is-#{$key}-widescreen{
182
+ @include widescreen {
183
+ @each $key, $value in $columnSize {
184
+ > .column.is-#{$key}-widescreen {
186
185
  flex: none;
187
186
  --ColumnFraction: #{$value};
188
187
  }
@@ -195,10 +194,9 @@ $gap :
195
194
 
196
195
  }
197
196
 
198
- @include fullhd{
199
-
200
- @each $key, $value in $columnSize{
201
- > .column.is-#{$key}-fullhd{
197
+ @include fullhd {
198
+ @each $key, $value in $columnSize {
199
+ > .column.is-#{$key}-fullhd {
202
200
  flex: none;
203
201
  --ColumnFraction: #{$value};
204
202
  }
@@ -213,41 +211,45 @@ $gap :
213
211
 
214
212
  @include mobile {
215
213
  --ColumnGap: 16px;
216
- &:not(.is-mobile){
214
+ &:not(.is-mobile) {
217
215
  flex-direction: column;
216
+
218
217
  > .column,
219
- > .column[class*="is-"]{
218
+ > .column[class*="is-"] {
220
219
  --ColumnFraction: 1;
221
220
  }
222
221
  }
223
222
  }
224
- @include tablet-only{
225
- &.is-desktop{
223
+ @include tablet-only {
224
+ &.is-desktop {
226
225
  flex-direction: column;
226
+
227
227
  > .column,
228
- > .column[class*="is-"]{
228
+ > .column[class*="is-"] {
229
229
  --ColumnFraction: 1;
230
230
  }
231
231
  }
232
232
  }
233
-
234
- &.is-mobile>.column.is-narrow{
235
- flex: none;
236
- }
237
-
238
233
  }
239
234
 
240
-
241
-
242
235
  .column {
243
236
  display: block;
244
237
  flex-basis: 0;
245
238
  flex-grow: 1;
246
239
  flex-shrink: 1;
247
- &.is-vcentered {
240
+
241
+ &.is-aligned-start {
242
+ align-self: start;
243
+ }
244
+
245
+ &.is-aligned-center {
248
246
  align-self: center;
249
247
  }
250
248
 
249
+ &.is-aligned-end {
250
+ align-self: end;
251
+ }
252
+
251
253
 
252
254
  @include mobile {
253
255
  &.is-narrow-mobile {
@@ -260,7 +262,6 @@ $gap :
260
262
  &.is-narrow-tablet {
261
263
  flex: none;
262
264
  }
263
-
264
265
  }
265
266
 
266
267
  @include touch {
@@ -290,7 +291,7 @@ $gap :
290
291
  }
291
292
 
292
293
  .columns {
293
- gap : 24px;
294
+ gap: 24px;
294
295
 
295
296
  &.is-scrollable {
296
297
  position: relative;
@@ -304,18 +305,21 @@ $gap :
304
305
  padding: 8px;
305
306
  scroll-padding: 8px;
306
307
 
307
- >.column {
308
+ > .column {
308
309
  scroll-snap-align: start;
309
- &:last-child{
310
+
311
+ &:last-child {
310
312
  scroll-snap-align: end;
311
313
  }
312
314
  }
313
- &:not(.has-scrollbar){
315
+
316
+ &:not(.has-scrollbar) {
314
317
  &::-webkit-scrollbar {
315
318
  scrollbar-width: none;
316
319
  }
317
320
  }
318
- &.has-scrollbar{
321
+
322
+ &.has-scrollbar {
319
323
  &::-webkit-scrollbar {
320
324
  height: 8px;
321
325
  }
@@ -338,7 +342,7 @@ $gap :
338
342
  }
339
343
 
340
344
  @include mobile {
341
- gap : 16px;
345
+ gap: 16px;
342
346
 
343
347
  }
344
348
 
@@ -349,7 +353,6 @@ $gap :
349
353
 
350
354
  &.is-gapless {
351
355
  gap: 0;
352
- --ColumnGap: 0px; // must be px because is used in calc.
353
356
  }
354
357
 
355
358
  &.is-mobile {
@@ -389,7 +392,7 @@ $gap :
389
392
  flex-direction: row;
390
393
  }
391
394
  }
392
- @include mobile{
395
+ @include mobile {
393
396
  &.is-fullbleed {
394
397
  width: 100vw !important;
395
398
  margin-left: 50%;
@@ -399,15 +402,16 @@ $gap :
399
402
  &.is-fullbleed {
400
403
  scroll-padding: 24px;
401
404
  }
402
- &.is-fullbleed.is-scrollable .column{
405
+ &.is-fullbleed.is-scrollable .column {
403
406
  scroll-snap-align: start;
404
407
  scroll-padding: 24px;
405
408
  }
406
- .scroll-view{
409
+ .scroll-view {
407
410
  overflow: inherit;
408
411
  }
409
412
  }
410
413
  }
411
- :root{
412
- --slider-size:min(100%, 1348px);
414
+
415
+ :root {
416
+ --slider-size: min(100%, 1348px);
413
417
  }
@@ -1,16 +1,13 @@
1
-
2
- $gap :
3
- 4px,
4
- 8px,
5
- 12px,
6
- 16px,
7
- 24px,
8
- 32px,
9
- 40px,
10
- 48px,
11
- 54px,
12
- 62px
13
- ;
1
+ $gap: 4px,
2
+ 8px,
3
+ 12px,
4
+ 16px,
5
+ 24px,
6
+ 32px,
7
+ 40px,
8
+ 48px,
9
+ 54px,
10
+ 62px;
14
11
 
15
12
 
16
13
  .rows {
@@ -21,10 +18,17 @@ $gap :
21
18
  height: 100%;
22
19
  gap: 24px;
23
20
 
24
- @include mobile{
21
+ @include mobile {
25
22
  gap: 16px;
26
23
  }
27
24
 
25
+ @for $i from 1 through length($gap) {
26
+ $item: nth($gap, $i);
27
+ &.has-gap-#{$i} {
28
+ gap: $item;
29
+ }
30
+ }
31
+
28
32
  &.is-aligned-end {
29
33
  justify-content: flex-end;
30
34
  }
@@ -42,6 +46,7 @@ $gap :
42
46
  display: block;
43
47
  flex-grow: 1;
44
48
  flex-shrink: 1;
49
+
45
50
  &.is-narrow {
46
51
  flex-grow: 0;
47
52
  }
@@ -127,30 +127,6 @@ $overlap-desktop: 30px;
127
127
  padding-top: 80px;
128
128
  padding-bottom: 80px;
129
129
  }
130
-
131
- .suptitle {
132
- display: none;
133
-
134
- @include desktop {
135
- display: block;
136
- margin-bottom: 30px;
137
- font-size: 19px;
138
- text-transform: uppercase;
139
- }
140
- }
141
-
142
- .title {
143
- font-size: 32px;
144
- margin-bottom: 25px;
145
-
146
- @include desktop {
147
- font-size: 52px;
148
- }
149
- }
150
-
151
- .button {
152
- width: auto;
153
- }
154
130
  }
155
131
 
156
132
  &.is-overlapped {
@@ -163,8 +139,4 @@ $overlap-desktop: 30px;
163
139
  }
164
140
  }
165
141
  }
166
-
167
- &.is-centered {
168
- text-align: center;
169
- }
170
142
  }
@@ -2,6 +2,7 @@
2
2
 
3
3
  :root {
4
4
  --radius: 8px;
5
+ --radius-medium: 8px;
5
6
  --radius-small: 4px;
6
7
  --radius-large: 16px;
7
8
  --border: 1px solid #{getColor('neutral')};
@@ -379,6 +379,13 @@
379
379
  }
380
380
 
381
381
  @mixin checkbox-and-radio($type) {
382
+ //TILES WRAPPER
383
+ .#{$type}-tiles {
384
+ display: flex;
385
+ gap: 16px;
386
+ flex-wrap: wrap;
387
+ }
388
+
382
389
  //BOTH
383
390
  .#{$type},
384
391
  .#{$type}-tile {
@@ -480,9 +487,6 @@
480
487
  position: relative;
481
488
  max-width: 160px;
482
489
  display: inline-block;
483
- margin: 0;
484
- margin-right: 16px;
485
- margin-top: 16px;
486
490
  text-align: center;
487
491
 
488
492
  input:disabled,
@@ -523,7 +527,6 @@
523
527
  }
524
528
 
525
529
  input {
526
-
527
530
  &:not(:disabled):not(:checked) ~ label.radio-label {
528
531
  @include label-states;
529
532
  }
@@ -568,8 +571,7 @@
568
571
  justify-content: space-between;
569
572
  align-items: center;
570
573
  max-width: unset;
571
- width: auto;
572
- margin: 16px 0;
574
+ width: 100%;
573
575
  position: relative;
574
576
 
575
577
  &.is-narrow {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta-130",
3
+ "version": "0.0.1-beta-131",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [