--- url: "https://designsystem.gov.cz/templates/components/detail/header.html" titulek: "Header | Gov Design System CE - Templates" h1: "Header" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 02:17:17" znaku: 22422 slov: 2788 kodovani: "utf-8" sha256: "27d504e582aca5a2c262b55feb4c7d0b85dce3bc170b64b34a0ffe8054014cb3" --- - HTML - View - Context - Assets - Info - Notes `
Přihlásit se English
` `
{{ render '[@header-left](./header-left.html)' }} {{ render '[@search](./search.html)' search merge=true }} {{#each button}} {{ render '[@button](./button.html)' this }} {{/each}}
{{ render '[@main-navigation](./main-navigation.html)' merge=true }}
{{#if suggestions}}
{{ render '[@suggestions](./suggestions.html)' this merge=true }}
{{/if}}
` `{ "search": { "classes": [ "gov-search--fixed-width" ] }, "theme": { "aria-label": "Přepínač barevného schématu stránky" }, "button": [ { "text": "Přihlásit se", "color": "primary", "type": "solid", "size": "m", "aria-label": "Přihlášení do klientské zóny" }, { "text": "English", "color": "primary", "type": "base", "size": "m", "aria-label": "Click to change language to English", "icon-start": { "slot": "icon-start", "type": "templates", "name": "flag" } } ], "button-nav-small": [ { "color": "primary", "type": "base", "size": "m", "aria-label": "Vyhledat na webu", "icon-start": { "slot": "icon-start", "type": "templates", "name": "search" } }, { "text": "Přihlásit se", "color": "primary", "type": "solid", "size": "m", "aria-label": "Přihlášení do klientské zóny" } ], "dropdown": { "button": { "text": "CZ", "color": "primary", "type": "base", "size": "m", "aria-label": "Selecting the language of the page", "icon-end": { "slot": "icon-end", "type": "templates", "name": "chevron-down" } }, "list": [ { "text": "CZ", "color": "primary", "type": "base", "size": "m", "expanded": true, "role": "menuitem" }, { "text": "EN", "color": "primary", "type": "base", "size": "m", "expanded": true, "role": "menuitem" } ] }, "searchbar": { "button": { "color": "neutral", "type": "base", "size": "l", "aria-label": "Zavřít vyhledávání", "icon-start": { "slot": "icon-start", "type": "templates", "name": "x-lg" } } }, "lang": { "text": "English", "color": "primary", "type": "base", "size": "l", "aria-label": "Click to change language to English" }, "aria-label": "Hlavní navigace", "nav-small": [ { "button": "Úřad", "megamenu": [ { "heading": "Heading item", "link": [ { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" } ], "more": "+ Další" }, { "heading": "Heading item", "link": [ { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" } ], "more": "+ Další" }, { "heading": "Heading item", "link": [ { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" } ] }, { "heading": "Heading item", "link": [ { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" } ], "more": "+ Další" }, { "heading": "Heading item", "link": [ { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" } ], "more": "+ Další" }, { "heading": "Heading item", "link": [ { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" } ] }, { "heading": "Heading item", "link": [ { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" } ] }, { "heading": "Heading item", "link": [ { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" }, { "name": "Menu item" } ] } ] }, { "button": "Tisk a média", "subnav": [ { "name": "Menu item" }, { "name": "Menu item" } ] }, { "text": "Kontakty", "href": "#" } ] }` File: - **Content:** `@import "../../../styles/mixins"; $class: ".gov-header"; #{$class} { & { background-color: var(--component-nav-background); } &__content { @include flex($direction: column, $gap: var(--templates-margin-m)); padding: var(--templates-margin-l); } &__navigation { position: relative; z-index: 10; padding: var(--templates-margin-s) 0; border-top: 1px solid var(--border-primary); } &__logo { color: var(--icon-on-subtle); @include typography("body-m"); text-decoration: none; } &__action { display: none; } &__search-bar { display: none !important; position: absolute !important; top: 0; left: 0; right: 0; width: 100%; background-color: var(--component-nav-background); > * { width: 100%; padding: var(--templates-margin-l) 0; } } .gov-logo { color: var(--icon-on-subtle); width: auto; height: rem-calc(56); } @include mq($from: md) { .gov-logo { height: rem-calc(64); } &__content { @include flex($direction: row, $justify: space-between, $align: center); max-width: var(--templates-layout-page-limit-max); margin: 0 auto; padding: 0 var(--templates-margin-l); } &__divider { padding: var(--templates-margin-m) 0; border-bottom: 1px solid var(--component-nav-separator); } &__navigation { max-width: var(--templates-layout-page-limit-max); margin: 0 auto; padding: var(--templates-margin-s) 0; border: none; } &__logo { @include typography("body-l"); } &__action { display: flex; } &__search-bar { .gov-search { width: rem-calc(500); } } &__mobile { display: none; } } &--small { #{$class}__content { position: relative; z-index: 10; padding: 0; gap: 0; > #{$class}__navigation { position: static; } } #{$class}__left { padding: var(--templates-margin-l); } @include mq($from: md) { padding: var(--templates-margin-m) 0; #{$class}__content { padding: 0 var(--templates-margin-l); gap: var(--templates-margin-l); } #{$class}__left { padding: 0; } #{$class}__navigation { max-width: none; margin: 0 auto 0 0; } } } }` - **URL:** [/components/raw/header/header.scss](../raw/header/header.scss) - **Filesystem Path:** src/components/organisms/header/header.scss - **Size:** 3.2 KB - **Handle:** @header - **Variants *(2)*:** [Default](./header--default.html), [Small](./header--small.html) - **Preview:** [With layout](../preview/header.html) [Component only](../render/header.html) - **Filesystem Path:** src/components/organisms/header/header.hbs - **References *(5)*:** [@header-left](./header-left.html), [@search](./search.html), [@button](./button.html), [@main-navigation](./main-navigation.html), [@suggestions](./suggestions.html) - **Referenced by *(31)*:** [@aktivni](./aktivni.html), [@vyhledavani](./vyhledavani.html), [@prazdny-stav](./prazdny-stav.html), [@seznam-s-filtry](./seznam-s-filtry.html), [@mrizka](./mrizka.html), [@centrum-podpory](./centrum-podpory.html), [@faq-akordeony](./faq-akordeony.html), [@faq-bloky](./faq-bloky.html), [@clanek](./clanek.html), [@clanek--s-pozadim](./clanek--s-pozadim.html), [@clanek--oddelene-bloky](./clanek--oddelene-bloky.html), [@domovska-stranka](./domovska-stranka.html), [@carousely](./carousely.html), [@vice-informaci](./vice-informaci.html), [@volna-mista](./volna-mista.html), [@detail-pozice](./detail-pozice.html), [@kontakty](./kontakty.html), [@mapa-webu](./mapa-webu.html), [@o-nas](./o-nas.html), [@prvni-uroven](./prvni-uroven.html), [@druha-uroven](./druha-uroven.html), [@detail-zamestnance](./detail-zamestnance.html), [@povinne-zverejnovane-informace](./povinne-zverejnovane-informace.html), [@tiskove-zpravy](./tiskove-zpravy.html), [@kontakty-pro-media](./kontakty-pro-media.html), [@logo-manual](./logo-manual.html), [@vysledky-vyhledavani](./vysledky-vyhledavani.html), [@vice-kategorii](./vice-kategorii.html), [@aktivni-filtry](./aktivni-filtry.html), [@nacitani-vysledku](./nacitani-vysledku.html), [@prazdne-vysledky](./prazdne-vysledky.html) No notes defined.