@1024pix/pix-ui 49.2.0 → 49.2.1

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.
@@ -33,12 +33,16 @@ export default class PixStructureSwitcher extends Component {
33
33
 
34
34
  @action
35
35
  openMenu(event) {
36
+ if (this.isMenuOpen) return;
37
+
36
38
  event.preventDefault();
37
39
  this.isMenuOpen = true;
38
40
  }
39
41
 
40
42
  @action
41
43
  closeMenu(event) {
44
+ if (!this.isMenuOpen) return;
45
+
42
46
  event.preventDefault();
43
47
  this.isMenuOpen = false;
44
48
  }
@@ -1,8 +1,6 @@
1
1
  .pix-app-layout {
2
- --pix-navigation-width: 13.375rem;
3
-
4
2
  display: grid;
5
- grid-template-columns: var(--pix-navigation-width) 1fr;
3
+ grid-template-columns: min-content 1fr;
6
4
  gap: var(--pix-spacing-6x);
7
5
  padding: var(--pix-spacing-6x);
8
6
 
@@ -1,7 +1,7 @@
1
1
  .pix-navigation {
2
2
  --bg-color-focus: rgb(var(--pix-neutral-100-inline), 50%);
3
3
  --bg-color-active: rgb(var(--pix-neutral-100-inline), 30%);
4
-
4
+ --pix-navigation-width: 15rem;
5
5
 
6
6
  position: sticky;
7
7
  bottom: var(--pix-spacing-6x);
@@ -9,9 +9,9 @@
9
9
  display: flex;
10
10
  flex-direction: column;
11
11
  gap:var(--pix-spacing-6x);
12
- align-items: center;
12
+ align-items: stretch;
13
13
  justify-content: space-between;
14
- min-width: var(--pix-navigation-width);
14
+ width: var(--pix-navigation-width);
15
15
  height: auto;
16
16
  min-height: calc(100vh - var(--pix-spacing-6x) * 2);
17
17
 
@@ -29,6 +29,7 @@
29
29
  flex-direction: column;
30
30
  align-items: stretch;
31
31
  width: 100%;
32
+ max-width: none;
32
33
  min-height: auto;
33
34
  padding: 0;
34
35
 
@@ -44,15 +45,17 @@
44
45
  line-height: 0;
45
46
 
46
47
  img {
48
+ display: block;
47
49
  width: 132px;
48
50
  height: 48px;
51
+ margin:0 auto;
49
52
  }
50
53
 
51
54
  @include device-is('mobile') {
52
55
  display:flex;
53
56
  flex-direction: row;
54
57
  align-items: center;
55
- padding: var(--pix-spacing-4x) var(--pix-spacing-2x) var(--pix-spacing-4x) var(--pix-spacing-10x);
58
+ padding: var(--pix-spacing-4x) var(--pix-spacing-2x) var(--pix-spacing-4x) var(--pix-spacing-9x);
56
59
 
57
60
  img {
58
61
  width: 85px;
@@ -120,7 +123,7 @@
120
123
  @extend %pix-body-s;
121
124
 
122
125
  p {
123
- word-break: break-all;
126
+ word-break: break-word;
124
127
  }
125
128
 
126
129
  @include device-is('mobile') {
@@ -142,6 +145,8 @@
142
145
 
143
146
  .pix-button {
144
147
  width: 100%;
148
+ padding: var(--pix-spacing-2x) var(--pix-spacing-4x);
149
+ white-space: unset;
145
150
 
146
151
  @include device-is('mobile') {
147
152
  width: auto;
@@ -16,6 +16,7 @@ $pix-spacing-xxl: 48px;
16
16
  --pix-spacing-4x: 16px;
17
17
  --pix-spacing-6x: 24px;
18
18
  --pix-spacing-8x: 32px;
19
+ --pix-spacing-9x: 36px;
19
20
  --pix-spacing-10x: 40px;
20
21
  --pix-spacing-12x: 48px;
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1024pix/pix-ui",
3
- "version": "49.2.0",
3
+ "version": "49.2.1",
4
4
  "description": "Pix-UI is the implementation of Pix design principles and guidelines for its products.",
5
5
  "keywords": [
6
6
  "ember-addon"