UNPKG

@synergy-design-system/components

Version:

This package provides the base of the Synergy Design System as native web components. It uses [lit](https://www.lit.dev) and parts of [shoelace](https://shoelace.style/). Synergy officially supports the latest two versions of all major browsers (as define

134 lines (117 loc) 3.17 kB
// src/components/header/header.styles.ts import { css } from "lit"; var header_styles_default = css` :host { display: block; } .header { background: var(--syn-color-neutral-0); box-shadow: inset 0 -1px 0 0 var(--syn-color-neutral-400); } /** * The primary content area displays one to many slotted items * and contains the following items: * - side nav state icon (OPTIONAL) * - company or application logo * - application name * - meta-navigation */ .header__content { align-items: center; box-sizing: content-box; display: flex; min-height: 40px; padding: var(--syn-spacing-small) var(--syn-spacing-large); } /** * The logo slot includes the application or company logo */ .header__logo ::slotted(*), .header__logo syn-icon { display: block; } /** * Make sure to use the correct color and outline for links */ .header__logo ::slotted(a), .header__logo ::slotted(a:hover) { color: var(--syn-color-primary-600); } .header__logo ::slotted(a:is(:focus-visible)) { outline: var(--syn-focus-ring); outline-offset: var(--syn-focus-ring-offset); } /** * Styles for the default logo. This makes sure the default SICK logo has the correct size and color */ .header__logo syn-icon, .header__logo syn-icon::part(svg) { color: var(--syn-color-primary-600); height: 32px; width: auto; } /** * The label section hosts the application name */ .header__label { color: var(--syn-typography-color-text); font: var(--syn-body-large-bold); padding: 0 var(--syn-spacing-2x-large); white-space: nowrap; } /** * The options menu holds an arbitrary list of <syn-icon-button /> */ .header__meta-navigation { display: flex; flex: 1; gap: var(--syn-spacing-x-small); justify-content: end; } .header__meta-navigation ::slotted(*) { color: var(--syn-color-neutral-950); display: contents; font-size: var(--syn-font-size-x-large); } /** * The horizontal top navigation section */ .header__navigation { padding: 0 var(--syn-spacing-large); } /** * The burger menu icon styles */ .header__burger-menu-toggle { align-items: center; background: none; border: none; color: var(--syn-color-neutral-950); cursor: pointer; display: flex; font-size: var(--syn-font-size-x-large); margin-right: calc(var(--syn-spacing-medium) + var(--syn-spacing-2x-small)); padding: var(--syn-spacing-x-small); transition: var(--syn-transition-x-fast) color; } .header__burger-menu-toggle:hover { color: var(--syn-color-primary-600); } .header__burger-menu-toggle:active { color: var(--syn-color-primary-700); } .header__burger-menu-toggle:focus-visible { outline: var(--syn-focus-ring); outline-offset: var(--syn-focus-ring-offset); } /** * If the burger menu is provided, use a smaller spacing on the left side */ .header--has-burger-menu .header__content { padding-left: var(--syn-spacing-medium); } `; export { header_styles_default }; //# sourceMappingURL=chunk.5T3OGIGW.js.map