@profitlich/template-toolkit 2.7.2 → 2.7.4

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.
@@ -67,7 +67,7 @@ export class Toolbar {
67
67
 
68
68
  #applyState() {
69
69
  document.body.setAttribute('data-dev-grid', this.#state.grid);
70
- document.body.setAttribute('data-dev-content-type', this.#state.contentType);
70
+ document.body.setAttribute('data-dev-content-types', this.#state.contentType);
71
71
  this.#updateImageSize();
72
72
  this.#updateContentTypeLabels();
73
73
  }
@@ -13,19 +13,17 @@ $color--dev-grid-center: rgba(0, 0, 0, 0.2);
13
13
  $margin-left: size($layout, $margin-left);
14
14
  $margin-right: size($layout, $margin-right);
15
15
 
16
- body[data-dev='true'] {
17
- .dev-toolbar__grid::after {
18
- // the grid is made through repition
19
- // 'important' because background settings are more specific than the grid settings
20
- background-size: calc((100% - ($columns * $gutter)) * calc(1 / $columns) + $gutter) 1px !important;
21
- margin: 0 ($margin-right - calc($gutter / 2)) 0 ($margin-left - calc($gutter / 2));
22
- // The grid is calculated starting from the middle
23
- // Thats why its necessary to add the half of the column gap to the left and right side
24
- width: calc(100% - $margin-right + calc($gutter / 2) - $margin-left + calc($gutter / 2));
25
- }
16
+ .dev-toolbar__grid::after {
17
+ // the grid is made through repition
18
+ // 'important' because background settings are more specific than the grid settings
19
+ background-size: calc((100% - ($columns * $gutter)) * calc(1 / $columns) + $gutter) 1px !important;
20
+ margin: 0 ($margin-right - calc($gutter / 2)) 0 ($margin-left - calc($gutter / 2));
21
+ // The grid is calculated starting from the middle
22
+ // Thats why its necessary to add the half of the column gap to the left and right side
23
+ width: calc(100% - $margin-right + calc($gutter / 2) - $margin-left + calc($gutter / 2));
26
24
  }
27
25
 
28
- body[data-dev='true'][data-dev-grid="lines"] {
26
+ body[data-dev-grid="lines"] {
29
27
  .dev-toolbar__grid::after {
30
28
  background:
31
29
  // center of the column spacing
@@ -38,7 +36,7 @@ $color--dev-grid-center: rgba(0, 0, 0, 0.2);
38
36
  }
39
37
  }
40
38
 
41
- body[data-dev='true'][data-dev-grid="ribbons"] {
39
+ body[data-dev-grid="ribbons"] {
42
40
  .dev-toolbar__grid::after {
43
41
  background:
44
42
  // ceft column ribbon
@@ -62,7 +60,7 @@ $color--dev-grid-center: rgba(0, 0, 0, 0.2);
62
60
  position: fixed;
63
61
  top: 0;
64
62
 
65
- body[data-dev='true'] & {
63
+ body:not([data-dev-grid='aus']) & {
66
64
  display: block;
67
65
  }
68
66
 
@@ -111,7 +109,7 @@ picture {
111
109
  pointer-events: none;
112
110
  z-index: 9999999;
113
111
 
114
- body[data-dev-content-type="true"] & {
112
+ body[data-dev-content-types="true"] & {
115
113
  display: block;
116
114
  }
117
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@profitlich/template-toolkit",
3
- "version": "2.7.2",
3
+ "version": "2.7.4",
4
4
  "description": "Shared SCSS layout system, JS utilities, components and build scripts for profitlich template repos",
5
5
  "type": "module",
6
6
  "exports": {