pacem-less 0.52.2 → 0.52.3-boyle
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.
|
@@ -246,18 +246,19 @@ each(@sizes, {
|
|
|
246
246
|
}
|
|
247
247
|
|
|
248
248
|
// container queries
|
|
249
|
+
@PCSSs: ~"@{PCSS} ";
|
|
249
250
|
@_threshold_xs: @threshold_sm - 1;
|
|
250
|
-
@container @
|
|
251
|
+
@container @PCSSs (max-width: @_threshold_xs) {
|
|
251
252
|
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
253
|
+
.@{PCSS}-grid.grid-contained > .@{PCSS}-cell {
|
|
254
|
+
.ColsMid(cols, xs, 12);
|
|
255
|
+
.RowsMid(rows, xs, 12);
|
|
256
|
+
}
|
|
256
257
|
}
|
|
257
258
|
|
|
258
259
|
each(@sizes, {
|
|
259
260
|
@_threshold: ~"threshold_@{value}";
|
|
260
|
-
@container @
|
|
261
|
+
@container @PCSSs (min-width: @_threshold) {
|
|
261
262
|
|
|
262
263
|
.@{PCSS}-grid.grid-contained > .@{PCSS}-cell {
|
|
263
264
|
.ColsMid(cols, @value, 12);
|
|
@@ -301,112 +301,72 @@
|
|
|
301
301
|
.ShowWhenAtLeast(h);
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
+
@PCSSs: ~"@{PCSS} ";
|
|
305
|
+
|
|
304
306
|
.@{PCSS}-container {
|
|
305
307
|
// hide when below 'small' width
|
|
306
|
-
@container
|
|
307
|
-
@PCSS
|
|
308
|
-
|
|
309
|
-
(max-width: @threshold_sm - 1) {
|
|
308
|
+
@container @PCSSs (max-width: @threshold_sm - 1) {
|
|
310
309
|
.HideWhenLessThan(sm);
|
|
311
310
|
.HideWhenAtMost(xs);
|
|
312
311
|
// exception (show-xs: show only when EXACTLY 'xs')
|
|
313
312
|
.ShowWhenAtLeast(xs);
|
|
314
313
|
}
|
|
315
314
|
// show when at least 'small' wide
|
|
316
|
-
@container
|
|
317
|
-
@PCSS
|
|
318
|
-
|
|
319
|
-
(min-width: @threshold_sm) {
|
|
315
|
+
@container @PCSSs (min-width: @threshold_sm) {
|
|
320
316
|
.ShowWhenAtLeast(sm);
|
|
321
317
|
}
|
|
322
318
|
// hide when at most 'small' wide
|
|
323
|
-
@container
|
|
324
|
-
@PCSS
|
|
325
|
-
|
|
326
|
-
(max-width: @threshold_md - 1) {
|
|
319
|
+
@container @PCSSs (max-width: @threshold_md - 1) {
|
|
327
320
|
.HideWhenLessThan(md);
|
|
328
321
|
.HideWhenAtMost(sm);
|
|
329
322
|
}
|
|
330
323
|
// show when at least 'medium' wide
|
|
331
|
-
@container
|
|
332
|
-
@PCSS
|
|
333
|
-
|
|
334
|
-
(min-width: @threshold_md) {
|
|
324
|
+
@container @PCSSs (min-width: @threshold_md) {
|
|
335
325
|
.ShowWhenAtLeast(md);
|
|
336
326
|
}
|
|
337
327
|
// hide when at most 'medium' wide
|
|
338
|
-
@container
|
|
339
|
-
@PCSS
|
|
340
|
-
|
|
341
|
-
(max-width: @threshold_lg - 1) {
|
|
328
|
+
@container @PCSSs (max-width: @threshold_lg - 1) {
|
|
342
329
|
.HideWhenLessThan(lg);
|
|
343
330
|
.HideWhenAtMost(md);
|
|
344
331
|
}
|
|
345
332
|
// show when at least 'lg' wide
|
|
346
|
-
@container
|
|
347
|
-
@PCSS
|
|
348
|
-
|
|
349
|
-
(min-width: @threshold_lg) {
|
|
333
|
+
@container @PCSSs (min-width: @threshold_lg) {
|
|
350
334
|
.ShowWhenAtLeast(lg);
|
|
351
335
|
}
|
|
352
336
|
// hide when at most 'lg' wide
|
|
353
|
-
@container
|
|
354
|
-
@PCSS
|
|
355
|
-
|
|
356
|
-
(max-width: @threshold_xl - 1) {
|
|
337
|
+
@container @PCSSs (max-width: @threshold_xl - 1) {
|
|
357
338
|
.HideWhenLessThan(xl);
|
|
358
339
|
.HideWhenAtMost(lg);
|
|
359
340
|
}
|
|
360
341
|
// show when at least 'xl' wide
|
|
361
|
-
@container
|
|
362
|
-
@PCSS
|
|
363
|
-
|
|
364
|
-
(min-width: @threshold_xl) {
|
|
342
|
+
@container @PCSSs (min-width: @threshold_xl) {
|
|
365
343
|
.ShowWhenAtLeast(xl);
|
|
366
344
|
}
|
|
367
345
|
// hide when at most 'xl' wide
|
|
368
|
-
@container
|
|
369
|
-
@PCSS
|
|
370
|
-
|
|
371
|
-
(max-width: @threshold_hd - 1) {
|
|
346
|
+
@container @PCSSs (max-width: @threshold_hd - 1) {
|
|
372
347
|
.HideWhenLessThan(hd);
|
|
373
348
|
.HideWhenAtMost(xl);
|
|
374
349
|
}
|
|
375
350
|
// show when at least 'hd' wide
|
|
376
|
-
@container
|
|
377
|
-
@PCSS
|
|
378
|
-
|
|
379
|
-
(min-width: @threshold_hd) {
|
|
351
|
+
@container @PCSSs (min-width: @threshold_hd) {
|
|
380
352
|
.ShowWhenAtLeast(hd);
|
|
381
353
|
}
|
|
382
354
|
// hide when at most 'hd' wide
|
|
383
|
-
@container
|
|
384
|
-
@PCSS
|
|
385
|
-
|
|
386
|
-
(max-width: @threshold_2k - 1) {
|
|
355
|
+
@container @PCSSs (max-width: @threshold_2k - 1) {
|
|
387
356
|
.HideWhenLessThan(2k);
|
|
388
357
|
.HideWhenAtMost(hd);
|
|
389
358
|
}
|
|
390
359
|
// show when at least '2k' wide
|
|
391
|
-
@container
|
|
392
|
-
@PCSS
|
|
393
|
-
|
|
394
|
-
(min-width: @threshold_2k) {
|
|
360
|
+
@container @PCSSs (min-width: @threshold_2k) {
|
|
395
361
|
.ShowWhenAtLeast(2k);
|
|
396
362
|
}
|
|
397
363
|
// hide when at most '2k' wide
|
|
398
|
-
@container
|
|
399
|
-
@PCSS
|
|
400
|
-
|
|
401
|
-
(max-width: @threshold_4k - 1) {
|
|
364
|
+
@container @PCSSs (max-width: @threshold_4k - 1) {
|
|
402
365
|
.HideWhenLessThan(4k);
|
|
403
366
|
.HideWhenAtMost(2k);
|
|
404
367
|
}
|
|
405
368
|
// show when at least '4k' wide
|
|
406
|
-
@container
|
|
407
|
-
@PCSS
|
|
408
|
-
|
|
409
|
-
(min-width: @threshold_4k) {
|
|
369
|
+
@container @PCSSs (min-width: @threshold_4k) {
|
|
410
370
|
.ShowWhenAtLeast(4k);
|
|
411
371
|
}
|
|
412
372
|
}
|
package/package.json
CHANGED