pacem-less 0.40.0 → 0.40.1-atlantis

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.
@@ -220,7 +220,7 @@
220
220
 
221
221
  @media (max-width: @threshold_sm - 1) {
222
222
 
223
- .@{PCSS}-grid:not(.grid-contained) .@{PCSS}-cell {
223
+ .@{PCSS}-grid:not(.grid-contained) > .@{PCSS}-cell {
224
224
  .ColsMid(cols, xs, 12);
225
225
  .RowsMid(rows, xs, 12);
226
226
  }
@@ -230,7 +230,7 @@ each(@sizes, {
230
230
  @_threshold: ~"threshold_@{value}";
231
231
  @media (min-width: @@_threshold){
232
232
 
233
- .@{PCSS}-grid:not(.grid-contained) .@{PCSS}-cell {
233
+ .@{PCSS}-grid:not(.grid-contained) > .@{PCSS}-cell {
234
234
  .ColsMid(cols, @value, 12);
235
235
  .RowsMid(rows, @value, 12);
236
236
  }
@@ -239,7 +239,7 @@ each(@sizes, {
239
239
 
240
240
  @media (orientation: portrait) {
241
241
 
242
- .@{PCSS}-grid .@{PCSS}-cell {
242
+ .@{PCSS}-grid > .@{PCSS}-cell {
243
243
  .ColsMid(cols, v, 12);
244
244
  .RowsMid(rows, v, 12);
245
245
  }
@@ -249,7 +249,7 @@ each(@sizes, {
249
249
  @_threshold_xs: @threshold_sm - 1;
250
250
  @container @PCSS (max-width: @_threshold_xs) {
251
251
 
252
- .@{PCSS}-grid.grid-contained .@{PCSS}-cell {
252
+ .@{PCSS}-grid.grid-contained > .@{PCSS}-cell {
253
253
  .ColsMid(cols, xs, 12);
254
254
  .RowsMid(rows, xs, 12);
255
255
  }
@@ -259,7 +259,7 @@ each(@sizes, {
259
259
  @_threshold: ~"threshold_@{value}";
260
260
  @container @PCSS (min-width: @@_threshold){
261
261
 
262
- .@{PCSS}-grid.grid-contained .@{PCSS}-cell {
262
+ .@{PCSS}-grid.grid-contained > .@{PCSS}-cell {
263
263
  .ColsMid(cols, @value, 12);
264
264
  .RowsMid(rows, @value, 12);
265
265
  }
@@ -249,3 +249,71 @@
249
249
  .HideWhenAtMost(h);
250
250
  .ShowWhenAtLeast(h);
251
251
  }
252
+
253
+ .@{PCSS}-container {
254
+ // hide when below 'small' width
255
+ @container @PCSS (max-width: @threshold_sm - 1) {
256
+ .HideWhenLessThan(sm);
257
+ .HideWhenAtMost(xs);
258
+ // exception (show-xs: show only when EXACTLY 'xs')
259
+ .ShowWhenAtLeast(xs);
260
+ }
261
+ // show when at least 'small' wide
262
+ @container @PCSS (min-width: @threshold_sm) {
263
+ .ShowWhenAtLeast(sm);
264
+ }
265
+ // hide when at most 'small' wide
266
+ @container @PCSS (max-width: @threshold_md - 1) {
267
+ .HideWhenLessThan(md);
268
+ .HideWhenAtMost(sm);
269
+ }
270
+ // show when at least 'medium' wide
271
+ @container @PCSS (min-width: @threshold_md) {
272
+ .ShowWhenAtLeast(md);
273
+ }
274
+ // hide when at most 'medium' wide
275
+ @container @PCSS (max-width: @threshold_lg - 1) {
276
+ .HideWhenLessThan(lg);
277
+ .HideWhenAtMost(md);
278
+ }
279
+ // show when at least 'lg' wide
280
+ @container @PCSS (min-width: @threshold_lg) {
281
+ .ShowWhenAtLeast(lg);
282
+ }
283
+ // hide when at most 'lg' wide
284
+ @container @PCSS (max-width: @threshold_xl - 1) {
285
+ .HideWhenLessThan(xl);
286
+ .HideWhenAtMost(lg);
287
+ }
288
+ // show when at least 'xl' wide
289
+ @container @PCSS (min-width: @threshold_xl) {
290
+ .ShowWhenAtLeast(xl);
291
+ }
292
+ // hide when at most 'xl' wide
293
+ @container @PCSS (max-width: @threshold_hd - 1) {
294
+ .HideWhenLessThan(hd);
295
+ .HideWhenAtMost(xl);
296
+ }
297
+ // show when at least 'hd' wide
298
+ @container @PCSS (min-width: @threshold_hd) {
299
+ .ShowWhenAtLeast(hd);
300
+ }
301
+ // hide when at most 'hd' wide
302
+ @container @PCSS (max-width: @threshold_2k - 1) {
303
+ .HideWhenLessThan(2k);
304
+ .HideWhenAtMost(hd);
305
+ }
306
+ // show when at least '2k' wide
307
+ @container @PCSS (min-width: @threshold_2k) {
308
+ .ShowWhenAtLeast(2k);
309
+ }
310
+ // hide when at most '2k' wide
311
+ @container @PCSS (max-width: @threshold_4k - 1) {
312
+ .HideWhenLessThan(4k);
313
+ .HideWhenAtMost(2k);
314
+ }
315
+ // show when at least '4k' wide
316
+ @container @PCSS (min-width: @threshold_4k) {
317
+ .ShowWhenAtLeast(4k);
318
+ }
319
+ }
@@ -1,10 +1,18 @@
1
1
  @import "../../shared";
2
2
  @import "../theme-dark";
3
3
 
4
- @{P}-context-menu{
4
+ @{P}-context-menu {
5
5
  display: inline-block;
6
+
7
+ @{P}-button {
8
+ color: inherit;
9
+
10
+ &:hover {
11
+ color: inherit;
12
+ }
13
+ }
6
14
  }
7
15
 
8
- .@{PCSS}-context-menuitem{
16
+ .@{PCSS}-context-menuitem {
9
17
  .Inert();
10
- }
18
+ }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.40.0",
2
+ "version": "0.40.1-atlantis",
3
3
  "name": "pacem-less",
4
4
  "homepage": "https://js.pacem.it",
5
5
  "repository": {