UNPKG

@synergy-design-system/components

Version:
149 lines (129 loc) 3.6 kB
// src/components/header/header.styles.ts import { css } from "lit"; var header_styles_default = css` :host { --sticky-position: 0; --metanavigation-item-size: var(--syn-font-size-x-large); display: block; } .header { background: var(--syn-panel-background-color); box-shadow: inset 0 -1px 0 0 var(--syn-header-border-color); } /** * 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-logo-color); } .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-logo-color); height: 32px; width: auto; } /** * The label section hosts the application name */ .header__label { color: var(--syn-typography-color-text); font: var(--syn-heading-large); 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-interactive-quiet-color); display: contents; font-size: var(--metanavigation-item-size); } /** * 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-interactive-quiet-color); 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-interactive-quiet-color-hover); } .header__burger-menu-toggle:active { color: var(--syn-interactive-quiet-color-active); } .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); } /** * #529: Sticky header styles */ :host([sticky]) { box-shadow: var(--syn-shadow-sticky-down); position: sticky; top: var(--sticky-position); /* Make sure the header is above all other content, but below any potential modals or overlays */ z-index: calc(infinity - 1); } `; export { header_styles_default }; //# sourceMappingURL=chunk.HUJAKIZN.js.map