@trilogy-ds/styles 0.0.1-beta-122 → 0.0.1-beta-125

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.
@@ -20,7 +20,6 @@ $columnSize : (
20
20
  "half" : math.div(12, 6)
21
21
  );
22
22
 
23
- $columnNumber : 12;
24
23
  %flex-none {
25
24
  flex: none;
26
25
  }
@@ -39,7 +38,7 @@ $gap :
39
38
  62px
40
39
  ;
41
40
 
42
- .columns{
41
+ .columns {
43
42
  display: flex;
44
43
  --ColumnGap: 24px;
45
44
 
@@ -47,39 +46,10 @@ $gap :
47
46
  flex: none;
48
47
  }
49
48
 
50
- @for $i from 1 through $columnNumber {
51
- &.has-#{$i}-cols > .column { @extend %flex-none; }
52
- }
53
-
54
49
  .column[class*="is-"]:not(.is-narrow){
55
50
  width: #{$columnWidth};
56
51
  }
57
52
 
58
-
59
-
60
- &.has-1-cols > .column:not(.is-narrow),
61
- &.has-2-cols > .column:not(.is-narrow),
62
- &.has-3-cols > .column:not(.is-narrow),
63
- &.has-4-cols > .column:not(.is-narrow),
64
- &.has-5-cols > .column:not(.is-narrow),
65
- &.has-6-cols > .column:not(.is-narrow),
66
- &.has-7-cols > .column:not(.is-narrow),
67
- &.has-8-cols > .column:not(.is-narrow),
68
- &.has-9-cols > .column:not(.is-narrow),
69
- &.has-10-cols > .column:not(.is-narrow),
70
- &.has-11-cols > .column:not(.is-narrow),
71
- &.has-12-cols > .column:not(.is-narrow)
72
- {
73
- width: #{$columnWidth};
74
- }
75
-
76
- @for $i from 1 through 12 {
77
- &.has-#{$i}-cols > .column{
78
- --ColumnFraction: #{$i};
79
- flex: none;
80
- }
81
- }
82
-
83
53
  @each $key, $value in $columnSize{
84
54
  > .column.is-#{$key} {
85
55
  flex: none;
@@ -146,12 +116,6 @@ $gap :
146
116
  &.is-peek{
147
117
  padding-right: 15%;
148
118
  }
149
- @for $i from 0 through 12 {
150
- &.has-#{$i}-cols-mobile > .column{
151
- --ColumnFraction: #{$i};
152
- flex: none;
153
- }
154
- }
155
119
 
156
120
  @each $key, $value in $columnSize{
157
121
  & > .column.is-#{$key}-mobile {
@@ -169,13 +133,6 @@ $gap :
169
133
 
170
134
  @include tablet{
171
135
 
172
- @for $i from 0 through 12 {
173
- &.has-#{$i}-cols-tablet > .column{
174
- --ColumnFraction: #{$i};
175
- flex: none;
176
- }
177
- }
178
-
179
136
  @each $key, $value in $columnSize{
180
137
  > .column.is-#{$key}-tablet {
181
138
  flex: none;
@@ -192,13 +149,6 @@ $gap :
192
149
 
193
150
  @include touch{
194
151
 
195
- @for $i from 0 through 12 {
196
- &.has-#{$i}-cols-touch > .column{
197
- --ColumnFraction: #{$i};
198
- flex: none;
199
- }
200
- }
201
-
202
152
  @each $key, $value in $columnSize{
203
153
  > .column.is-#{$key}-touch {
204
154
  flex: none;
@@ -215,13 +165,6 @@ $gap :
215
165
 
216
166
  @include desktop{
217
167
 
218
- @for $i from 0 through 12 {
219
- &.has-#{$i}-cols-desktop > .column{
220
- --ColumnFraction: #{$i};
221
- flex: none;
222
- }
223
- }
224
-
225
168
  @each $key, $value in $columnSize{
226
169
  > .column.is-#{$key}-desktop {
227
170
  flex: none;
@@ -238,13 +181,6 @@ $gap :
238
181
 
239
182
  @include widescreen{
240
183
 
241
- @for $i from 0 through 12 {
242
- &.has-#{$i}-cols-widescreen > .column{
243
- --ColumnFraction: #{$i};
244
- flex: none;
245
- }
246
- }
247
-
248
184
  @each $key, $value in $columnSize{
249
185
  > .column.is-#{$key}-widescreen{
250
186
  flex: none;
@@ -261,13 +197,6 @@ $gap :
261
197
 
262
198
  @include fullhd{
263
199
 
264
- @for $i from 0 through 12 {
265
- &.has-#{$i}-cols-fullhd > .column{
266
- --ColumnFraction: #{$i};
267
- flex: none;
268
- }
269
- }
270
-
271
200
  @each $key, $value in $columnSize{
272
201
  > .column.is-#{$key}-fullhd{
273
202
  flex: none;
@@ -302,7 +231,9 @@ $gap :
302
231
  }
303
232
  }
304
233
 
305
-
234
+ &.is-mobile>.column.is-narrow{
235
+ flex: none;
236
+ }
306
237
 
307
238
  }
308
239
 
@@ -418,6 +349,7 @@ $gap :
418
349
 
419
350
  &.is-gapless {
420
351
  gap: 0;
352
+ --ColumnGap: 0px; // must be px because is used in calc.
421
353
  }
422
354
 
423
355
  &.is-mobile {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta-122",
3
+ "version": "0.0.1-beta-125",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [