@progressive-development/pd-page 0.1.100 → 0.1.102
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.
- package/package.json +5 -5
- package/src/PdMenu.js +27 -13
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Progressive development page helper, teaser, menu, footer.",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"author": "PD Progressive Development",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.102",
|
|
7
7
|
"main": "index.js",
|
|
8
8
|
"module": "index.js",
|
|
9
9
|
"scripts": {
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@lit/localize": "^0.11.4",
|
|
23
|
-
"@progressive-development/pd-contact": "^0.1.
|
|
24
|
-
"@progressive-development/pd-dialog": "^0.1.
|
|
25
|
-
"@progressive-development/pd-forms": "^0.1.
|
|
26
|
-
"@progressive-development/pd-icon": "^0.1.
|
|
23
|
+
"@progressive-development/pd-contact": "^0.1.49",
|
|
24
|
+
"@progressive-development/pd-dialog": "^0.1.65",
|
|
25
|
+
"@progressive-development/pd-forms": "^0.1.51",
|
|
26
|
+
"@progressive-development/pd-icon": "^0.1.18",
|
|
27
27
|
"@progressive-development/pd-shared-styles": "^0.1.1",
|
|
28
28
|
"lit": "^2.8.0",
|
|
29
29
|
"pwa-helpers": "^0.9.1"
|
package/src/PdMenu.js
CHANGED
|
@@ -198,6 +198,14 @@ export class PdMenu extends LitElement {
|
|
|
198
198
|
pointer-events: none;
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
+
.menu-wrapper {
|
|
202
|
+
width: 100%;
|
|
203
|
+
display: flex;
|
|
204
|
+
align-items: center;
|
|
205
|
+
justify-content: end;
|
|
206
|
+
padding-right: 0.5rem;
|
|
207
|
+
}
|
|
208
|
+
|
|
201
209
|
.burger-menu {
|
|
202
210
|
display: flex;
|
|
203
211
|
gap: 0.3rem;
|
|
@@ -228,13 +236,17 @@ export class PdMenu extends LitElement {
|
|
|
228
236
|
color: var(--pd-default-hover-col);
|
|
229
237
|
}
|
|
230
238
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
239
|
+
|
|
240
|
+
/* Doppelt zum logo-container, pd-logo sonst nicht mehr funktional
|
|
241
|
+
*/
|
|
242
|
+
::slotted(.logo) {
|
|
243
|
+
width: 100%;
|
|
244
|
+
max-width: var(--pd-menu-logo-maxwidth, 8rem);
|
|
245
|
+
padding: var(--pd-menu-logo-padding, 2em);
|
|
246
|
+
width: 100%;
|
|
247
|
+
fill: var(--pd-menu-logo-color, #067394);
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
}
|
|
238
250
|
|
|
239
251
|
|
|
240
252
|
.locale-selection-logo {
|
|
@@ -320,9 +332,9 @@ export class PdMenu extends LitElement {
|
|
|
320
332
|
|
|
321
333
|
return html`
|
|
322
334
|
<div class="menu-container">
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
335
|
+
|
|
336
|
+
<slot @click="${this._logoClicked}" name="slotLogo"></slot>
|
|
337
|
+
|
|
326
338
|
<ul class="menu-ul ${this._smallScreen ? "burger-ul" : ""}">
|
|
327
339
|
${this._renderItems(this._smallScreen ? [...this.menuItems, ...this.topMenuItems] : this.menuItems, true, this._smallScreen)}
|
|
328
340
|
</ul>
|
|
@@ -349,9 +361,11 @@ export class PdMenu extends LitElement {
|
|
|
349
361
|
` : ''}
|
|
350
362
|
</ul>
|
|
351
363
|
` : html`
|
|
352
|
-
<div class="
|
|
353
|
-
<
|
|
354
|
-
|
|
364
|
+
<div class="menu-wrapper">
|
|
365
|
+
<div class="burger-menu" @click="${this._toggleBurgerMenu}">
|
|
366
|
+
<pd-icon class="burgerLogo" icon="${burgerIcon}" ?activeIcon="${!this._activeBurgerMenu}"></pd-icon>
|
|
367
|
+
<span class="item ${this._activeBurgerMenu ? 'active' : ''}">Menu</span>
|
|
368
|
+
</div>
|
|
355
369
|
</div>
|
|
356
370
|
`}
|
|
357
371
|
|