Skip to content

Commit

Permalink
cosmetic changes in the header
Browse files Browse the repository at this point in the history
  • Loading branch information
yfanti committed May 14, 2024
1 parent fa48471 commit 6279068
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 18 deletions.
13 changes: 13 additions & 0 deletions src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ html.is-clipped--navbar {
padding-top: var(--navbar-height);
} */

.navbar-scrollable {
background: var(--navbar-background);
color: var(--navbar-font-color);
font-size: calc(16 / var(--rem-base) * 1rem);
height: calc(var(--navbar-height) / 2);
top: var(--globan-height);
width: 100%;
z-index: var(--z-index-navbar);
display: flex;
flex-direction: column;
}

.navbar {
background: var(--navbar-background);
color: var(--navbar-font-color);
Expand All @@ -24,6 +36,7 @@ html.is-clipped--navbar {
z-index: var(--z-index-navbar);
display: flex;
flex-direction: column;
border-bottom: 6px solid var(--color-OP-green);
}

.navbar a {
Expand Down
36 changes: 18 additions & 18 deletions src/partials/header.hbs
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@

{{>header-scripts}}

<div class="eu-flag">
<nav class="navbar">
<div class="navbar-brand">
<div class="eu-flag">
<nav class="navbar-scrollable">
<div class="navbar-brand">

<div class="eu-emblem" style="display: inline-block;">
<!-- flag and logo-->
<div class="eu-emblem-std-en" ><a href="https://european-union.europa.eu/index_en"><span></span></a></div>
<div class="eu-emblem-std-en"><a href="https://european-union.europa.eu/index_en"><span></span></a>
</div>
</div>
</div>
<div class="sep-frame">
<div class="sep-frame">
<div class="rect-grey"></div>
</div>
</nav>
</nav>

</div>
</div>

<div class="eu-tenders">
<nav class="navbar">
<div class="text-eu-tenders">EU tenders</div>
<div class="eu-tenders">
<nav class="navbar">
<div class="text-eu-tenders">EU tenders</div>

<div id="topbar-nav" class="navbar-menu">
<div class="text-eu-subtext-text">TED Developer Docs</div>
<div class="text-eu-subtext-label">Documentation for TED developers and eSenders</div>
<div class="navbar-end">
{{#if env.SEARCH_ENABLED}}
<div class="navbar-item search">
<input id="search-input" type="text" placeholder="Search docs">
</div>
{{/if}}
{{#if env.SEARCH_ENABLED}}
<div class="navbar-item search">
<input id="search-input" type="text" placeholder="Search docs">
</div>
{{/if}}
</div>
</div>
</nav>
</div>
</nav>
</div>

0 comments on commit 6279068

Please sign in to comment.