UNPKG

@puzzleitc/puzzle-shell

Version:

The standard design for Puzzle tools

66 lines (64 loc) 2 kB
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; import { LitElement, css, html } from "lit"; import { customElement } from "lit/decorators/custom-element.js"; import { property } from "lit/decorators/property.js"; import { theme } from "../utils/theme"; /** * Footer action link. * * @slot - Slot for the icon and the text */ let FooterLink = class FooterLink extends LitElement { constructor() { super(...arguments); this.href = "#"; } render() { return html `<a href="${this.href}"> <slot></slot> </a>`; } }; FooterLink.styles = [ theme, css ` a { display: flex; align-items: center; font-family: var(--pzsh-font-family); color: var(--pzsh-color-brand-1); text-decoration: none; } a:hover, a:active { text-decoration: underline; } ::slotted(pzsh-icon), ::slotted(svg) { margin-right: calc(var(--pzsh-spacer) / 2); } @media (max-width: ${theme.breakpoint}px) { a { margin-left: 0; color: var(--pzsh-color-brand-1); } a:hover, a:active { background-color: var(--pzsh-topbar-menu-bg-alt); text-decoration: none; } } `, ]; __decorate([ property({ type: String }) ], FooterLink.prototype, "href", void 0); FooterLink = __decorate([ customElement("pzsh-footer-link") ], FooterLink); export { FooterLink };