@progressive-development/pd-page 0.1.100 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. 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.100",
6
+ "version": "0.1.101",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
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
- .logo-container {
232
- max-width: var(--pd-menu-logo-maxwidth, 8rem);
233
- width: 100%;
234
- padding: var(--pd-menu-logo-padding, 2em);
235
- fill: var(--pd-menu-logo-color, #067394);
236
- cursor: pointer;
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
- <div class="logo-container">
324
- <slot @click="${this._logoClicked}" name="slotLogo"></slot>
325
- </div>
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="burger-menu" @click="${this._toggleBurgerMenu}">
353
- <pd-icon class="burgerLogo" icon="${burgerIcon}" ?activeIcon="${!this._activeBurgerMenu}"></pd-icon>
354
- <span class="item ${this._activeBurgerMenu ? 'active' : ''}">Menu</span>
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