@progressive-development/pd-page 0.1.99 → 0.1.101
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 +1 -1
- package/src/PdMenu.js +32 -20
package/package.json
CHANGED
package/src/PdMenu.js
CHANGED
|
@@ -198,10 +198,17 @@ 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;
|
|
204
|
-
justify-content: end;
|
|
205
212
|
align-items: center;
|
|
206
213
|
cursor: pointer;
|
|
207
214
|
|
|
@@ -210,6 +217,13 @@ export class PdMenu extends LitElement {
|
|
|
210
217
|
|
|
211
218
|
--pd-icon-stroke-col-active: var(--pd-menu-font-col, var(--pd-default-bg-col));
|
|
212
219
|
--pd-icon-col-active: lightgrey;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.burger-menu:hover {
|
|
223
|
+
--pd-icon-col: var(--pd-default-hover-col);
|
|
224
|
+
--pd-icon-col-active: var(--pd-default-hover-col);
|
|
225
|
+
--pd-icon-stroke-col: var(--pd-menu-font-col, var(--pd-default-bg-col));
|
|
226
|
+
--pd-icon-stroke-col-active: var(--pd-menu-font-col, var(--pd-default-bg-col));
|
|
213
227
|
}
|
|
214
228
|
|
|
215
229
|
.burger-menu .item{
|
|
@@ -222,23 +236,17 @@ export class PdMenu extends LitElement {
|
|
|
222
236
|
color: var(--pd-default-hover-col);
|
|
223
237
|
}
|
|
224
238
|
|
|
225
|
-
.burger-menu:hover {
|
|
226
|
-
--pd-icon-col: var(--pd-default-hover-col);
|
|
227
|
-
--pd-icon-col-active: var(--pd-default-hover-col);
|
|
228
|
-
--pd-icon-stroke-col: var(--pd-menu-font-col, var(--pd-default-bg-col));
|
|
229
|
-
--pd-icon-stroke-col-active: var(--pd-menu-font-col, var(--pd-default-bg-col));
|
|
230
|
-
}
|
|
231
239
|
|
|
232
|
-
/*
|
|
233
|
-
einfacher als hier einzeln zu stylen. noch zu prüfen
|
|
240
|
+
/* Doppelt zum logo-container, pd-logo sonst nicht mehr funktional
|
|
234
241
|
*/
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
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
|
+
}
|
|
242
250
|
|
|
243
251
|
|
|
244
252
|
.locale-selection-logo {
|
|
@@ -324,7 +332,9 @@ export class PdMenu extends LitElement {
|
|
|
324
332
|
|
|
325
333
|
return html`
|
|
326
334
|
<div class="menu-container">
|
|
327
|
-
|
|
335
|
+
|
|
336
|
+
<slot @click="${this._logoClicked}" name="slotLogo"></slot>
|
|
337
|
+
|
|
328
338
|
<ul class="menu-ul ${this._smallScreen ? "burger-ul" : ""}">
|
|
329
339
|
${this._renderItems(this._smallScreen ? [...this.menuItems, ...this.topMenuItems] : this.menuItems, true, this._smallScreen)}
|
|
330
340
|
</ul>
|
|
@@ -351,9 +361,11 @@ export class PdMenu extends LitElement {
|
|
|
351
361
|
` : ''}
|
|
352
362
|
</ul>
|
|
353
363
|
` : html`
|
|
354
|
-
<div class="
|
|
355
|
-
<
|
|
356
|
-
|
|
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>
|
|
357
369
|
</div>
|
|
358
370
|
`}
|
|
359
371
|
|