@trilogy-ds/styles 0.0.1-beta-147 → 0.0.1-beta-sc-2

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.
@@ -3,39 +3,40 @@
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;
24
23
  %flex-none {
25
24
  flex: none;
26
25
  }
27
26
 
28
27
 
29
- $gap: 4px,
30
- 8px,
31
- 12px,
32
- 16px,
33
- 24px,
34
- 32px,
35
- 40px,
36
- 48px,
37
- 54px,
38
- 62px;
28
+ $gap :
29
+ 4px,
30
+ 8px,
31
+ 12px,
32
+ 16px,
33
+ 24px,
34
+ 32px,
35
+ 40px,
36
+ 48px,
37
+ 54px,
38
+ 62px
39
+ ;
39
40
 
40
41
  .columns {
41
42
  display: flex;
@@ -45,11 +46,11 @@ $gap: 4px,
45
46
  flex: none;
46
47
  }
47
48
 
48
- .column[class*="is-"]:not(.is-narrow) {
49
- width: #{$columnWidth};
49
+ .column[class*="is-"]:not(.is-narrow){
50
+ width: #{$columnWidth};
50
51
  }
51
52
 
52
- @each $key, $value in $columnSize {
53
+ @each $key, $value in $columnSize{
53
54
  > .column.is-#{$key} {
54
55
  flex: none;
55
56
  --ColumnFraction: #{$value};
@@ -65,47 +66,42 @@ $gap: 4px,
65
66
  $item: nth($gap, $i);
66
67
  &.is-mobile.has-gap-#{$i} {
67
68
  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
-
78
77
  .column {
79
78
  --ColumnGap: #{$item};
80
79
  }
81
80
  }
82
81
  }
83
82
 
84
- @include desktop {
83
+ @include desktop{
85
84
  &.has-gap-#{$i},
86
85
  &.has-gap-#{$i}-desktop {
87
86
  gap: $item;
88
-
89
87
  .column {
90
88
  --ColumnGap: #{$item};
91
89
  }
92
90
  }
93
91
  }
94
92
 
95
- @include widescreen {
93
+ @include widescreen{
96
94
  &.has-gap-#{$i}-widescreen {
97
95
  gap: $item;
98
-
99
96
  .column {
100
97
  --ColumnGap: #{$item};
101
98
  }
102
99
  }
103
100
  }
104
101
 
105
- @include fullhd {
102
+ @include fullhd{
106
103
  &.has-gap-#{$i}-fullhd {
107
104
  gap: $item;
108
-
109
105
  .column {
110
106
  --ColumnGap: #{$item};
111
107
  }
@@ -115,12 +111,13 @@ $gap: 4px,
115
111
  }
116
112
 
117
113
 
118
- @include mobile {
119
- &.is-peek {
114
+
115
+ @include mobile{
116
+ &.is-peek{
120
117
  padding-right: 15%;
121
118
  }
122
119
 
123
- @each $key, $value in $columnSize {
120
+ @each $key, $value in $columnSize{
124
121
  & > .column.is-#{$key}-mobile {
125
122
  flex: none;
126
123
  --ColumnFraction: #{$value};
@@ -134,8 +131,9 @@ $gap: 4px,
134
131
 
135
132
  }
136
133
 
137
- @include tablet {
138
- @each $key, $value in $columnSize {
134
+ @include tablet{
135
+
136
+ @each $key, $value in $columnSize{
139
137
  > .column.is-#{$key}-tablet {
140
138
  flex: none;
141
139
  --ColumnFraction: #{$value};
@@ -149,8 +147,9 @@ $gap: 4px,
149
147
 
150
148
  }
151
149
 
152
- @include touch {
153
- @each $key, $value in $columnSize {
150
+ @include touch{
151
+
152
+ @each $key, $value in $columnSize{
154
153
  > .column.is-#{$key}-touch {
155
154
  flex: none;
156
155
  --ColumnFraction: #{$value};
@@ -164,8 +163,9 @@ $gap: 4px,
164
163
 
165
164
  }
166
165
 
167
- @include desktop {
168
- @each $key, $value in $columnSize {
166
+ @include desktop{
167
+
168
+ @each $key, $value in $columnSize{
169
169
  > .column.is-#{$key}-desktop {
170
170
  flex: none;
171
171
  --ColumnFraction: #{$value};
@@ -179,9 +179,10 @@ $gap: 4px,
179
179
 
180
180
  }
181
181
 
182
- @include widescreen {
183
- @each $key, $value in $columnSize {
184
- > .column.is-#{$key}-widescreen {
182
+ @include widescreen{
183
+
184
+ @each $key, $value in $columnSize{
185
+ > .column.is-#{$key}-widescreen{
185
186
  flex: none;
186
187
  --ColumnFraction: #{$value};
187
188
  }
@@ -194,9 +195,10 @@ $gap: 4px,
194
195
 
195
196
  }
196
197
 
197
- @include fullhd {
198
- @each $key, $value in $columnSize {
199
- > .column.is-#{$key}-fullhd {
198
+ @include fullhd{
199
+
200
+ @each $key, $value in $columnSize{
201
+ > .column.is-#{$key}-fullhd{
200
202
  flex: none;
201
203
  --ColumnFraction: #{$value};
202
204
  }
@@ -211,45 +213,41 @@ $gap: 4px,
211
213
 
212
214
  @include mobile {
213
215
  --ColumnGap: 16px;
214
- &:not(.is-mobile) {
216
+ &:not(.is-mobile){
215
217
  flex-direction: column;
216
-
217
218
  > .column,
218
- > .column[class*="is-"] {
219
+ > .column[class*="is-"]{
219
220
  --ColumnFraction: 1;
220
221
  }
221
222
  }
222
223
  }
223
- @include tablet-only {
224
- &.is-desktop {
224
+ @include tablet-only{
225
+ &.is-desktop{
225
226
  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
+
233
238
  }
234
239
 
240
+
241
+
235
242
  .column {
236
243
  display: block;
237
244
  flex-basis: 0;
238
245
  flex-grow: 1;
239
246
  flex-shrink: 1;
240
-
241
- &.is-aligned-start {
242
- align-self: start;
243
- }
244
-
245
- &.is-aligned-center {
247
+ &.is-vcentered {
246
248
  align-self: center;
247
249
  }
248
250
 
249
- &.is-aligned-end {
250
- align-self: end;
251
- }
252
-
253
251
 
254
252
  @include mobile {
255
253
  &.is-narrow-mobile {
@@ -262,6 +260,7 @@ $gap: 4px,
262
260
  &.is-narrow-tablet {
263
261
  flex: none;
264
262
  }
263
+
265
264
  }
266
265
 
267
266
  @include touch {
@@ -291,7 +290,7 @@ $gap: 4px,
291
290
  }
292
291
 
293
292
  .columns {
294
- gap: 24px;
293
+ gap : 24px;
295
294
 
296
295
  &.is-scrollable {
297
296
  position: relative;
@@ -305,21 +304,18 @@ $gap: 4px,
305
304
  padding: 8px;
306
305
  scroll-padding: 8px;
307
306
 
308
- > .column {
307
+ >.column {
309
308
  scroll-snap-align: start;
310
-
311
- &:last-child {
309
+ &:last-child{
312
310
  scroll-snap-align: end;
313
311
  }
314
312
  }
315
-
316
- &:not(.has-scrollbar) {
313
+ &:not(.has-scrollbar){
317
314
  &::-webkit-scrollbar {
318
315
  scrollbar-width: none;
319
316
  }
320
317
  }
321
-
322
- &.has-scrollbar {
318
+ &.has-scrollbar{
323
319
  &::-webkit-scrollbar {
324
320
  height: 8px;
325
321
  }
@@ -342,7 +338,7 @@ $gap: 4px,
342
338
  }
343
339
 
344
340
  @include mobile {
345
- gap: 16px;
341
+ gap : 16px;
346
342
 
347
343
  }
348
344
 
@@ -353,6 +349,7 @@ $gap: 4px,
353
349
 
354
350
  &.is-gapless {
355
351
  gap: 0;
352
+ --ColumnGap: 0px; // must be px because is used in calc.
356
353
  }
357
354
 
358
355
  &.is-mobile {
@@ -392,7 +389,7 @@ $gap: 4px,
392
389
  flex-direction: row;
393
390
  }
394
391
  }
395
- @include mobile {
392
+ @include mobile{
396
393
  &.is-fullbleed {
397
394
  width: 100vw !important;
398
395
  margin-left: 50%;
@@ -402,16 +399,15 @@ $gap: 4px,
402
399
  &.is-fullbleed {
403
400
  scroll-padding: 24px;
404
401
  }
405
- &.is-fullbleed.is-scrollable .column {
402
+ &.is-fullbleed.is-scrollable .column{
406
403
  scroll-snap-align: start;
407
404
  scroll-padding: 24px;
408
405
  }
409
- .scroll-view {
406
+ .scroll-view{
410
407
  overflow: inherit;
411
408
  }
412
409
  }
413
410
  }
414
-
415
- :root {
416
- --slider-size: min(100%, 1348px);
411
+ :root{
412
+ --slider-size:min(100%, 1348px);
417
413
  }
@@ -1,13 +1,16 @@
1
- $gap: 4px,
2
- 8px,
3
- 12px,
4
- 16px,
5
- 24px,
6
- 32px,
7
- 40px,
8
- 48px,
9
- 54px,
10
- 62px;
1
+
2
+ $gap :
3
+ 4px,
4
+ 8px,
5
+ 12px,
6
+ 16px,
7
+ 24px,
8
+ 32px,
9
+ 40px,
10
+ 48px,
11
+ 54px,
12
+ 62px
13
+ ;
11
14
 
12
15
 
13
16
  .rows {
@@ -18,17 +21,10 @@ $gap: 4px,
18
21
  height: 100%;
19
22
  gap: 24px;
20
23
 
21
- @include mobile {
24
+ @include mobile{
22
25
  gap: 16px;
23
26
  }
24
27
 
25
- @for $i from 1 through length($gap) {
26
- $item: nth($gap, $i);
27
- &.has-gap-#{$i} {
28
- gap: $item;
29
- }
30
- }
31
-
32
28
  &.is-aligned-end {
33
29
  justify-content: flex-end;
34
30
  }
@@ -46,7 +42,6 @@ $gap: 4px,
46
42
  display: block;
47
43
  flex-grow: 1;
48
44
  flex-shrink: 1;
49
-
50
45
  &.is-narrow {
51
46
  flex-grow: 0;
52
47
  }
@@ -127,6 +127,30 @@ $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
+ }
130
154
  }
131
155
 
132
156
  &.is-overlapped {
@@ -139,4 +163,8 @@ $overlap-desktop: 30px;
139
163
  }
140
164
  }
141
165
  }
166
+
167
+ &.is-centered {
168
+ text-align: center;
169
+ }
142
170
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  :root {
4
4
  --radius: 8px;
5
- --radius-medium: 8px;
6
5
  --radius-small: 4px;
7
6
  --radius-large: 16px;
8
7
  --border: 1px solid #{getColor('neutral')};
@@ -379,13 +379,6 @@
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
-
389
382
  //BOTH
390
383
  .#{$type},
391
384
  .#{$type}-tile {
@@ -487,6 +480,9 @@
487
480
  position: relative;
488
481
  max-width: 160px;
489
482
  display: inline-block;
483
+ margin: 0;
484
+ margin-right: 16px;
485
+ margin-top: 16px;
490
486
  text-align: center;
491
487
 
492
488
  input:disabled,
@@ -527,6 +523,7 @@
527
523
  }
528
524
 
529
525
  input {
526
+
530
527
  &:not(:disabled):not(:checked) ~ label.radio-label {
531
528
  @include label-states;
532
529
  }
@@ -571,7 +568,8 @@
571
568
  justify-content: space-between;
572
569
  align-items: center;
573
570
  max-width: unset;
574
- width: 100%;
571
+ width: auto;
572
+ margin: 16px 0;
575
573
  position: relative;
576
574
 
577
575
  &.is-narrow {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta-147",
3
+ "version": "0.0.1-beta-sc-2",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [