Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
yfanti committed Apr 10, 2024
1 parent 2a42e7c commit dd8bca1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
3 changes: 2 additions & 1 deletion src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ html.is-clipped--navbar {
display: none;
}
}

.eu-tenders {
position: sticky;
top: 1.125rem;
Expand All @@ -359,4 +360,4 @@ html.is-clipped--navbar {
.eu-flag {
height: calc(var(--navbar-height) / 2);
z-index: 6;
}
}
39 changes: 17 additions & 22 deletions src/css/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,6 @@
justify-content: flex-end;
}

@media screen and (min-width: 1024px) {
.navbar-brand {
flex-grow: 1;
}

.navbar-menu {
flex-grow: 0;
}
}

@media screen and (max-width: 768px) {
.navbar-brand .navbar-item + .navbar-item {
padding-left: 0;
Expand All @@ -33,6 +23,7 @@
.nav-container {
width: var(--nav-width);
}

.nav {
box-shadow: 0.5px 0 3px var(--nav-border-color);
}
Expand All @@ -46,6 +37,21 @@
top: 0;
visibility: visible;
}

/* .nav {
top: calc((var(--navbar-height) / 2) + var(--globan-height) );
box-shadow: none;
position: sticky;
height: var(--nav-height--desktop);
} */

.navbar-brand {
flex-grow: 1;
}

.navbar-menu {
flex-grow: 0;
}
}

.nav-container.is-active {
Expand All @@ -56,23 +62,12 @@
background: var(--nav-background);
position: sticky;
top: calc((var(--navbar-height) / 2) + var(--globan-height));
height: var(--nav-height);
}


@media screen and (min-width: 1024px) {
.nav {
top: calc((var(--navbar-height) / 2) + var(--globan-height) );
box-shadow: none;
position: sticky;
height: var(--nav-height--desktop);
}
height: var(--nav-height--desktop);
}

.nav .panels {
display: flex;
flex-direction: column;
height: inherit;
}

html.is-clipped--nav {
Expand Down
4 changes: 2 additions & 2 deletions src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,9 @@
--toolbar-height: calc(45 / var(--rem-base) * 1rem);
--drawer-height: var(--toolbar-height);
--body-top: calc(var(--navbar-height) - var(--globan-height));
--body-min-height: calc((100vh - var(--body-top)) + var(--globan-height));
--body-min-height: calc((100vh - var(--body-top)) + var(--globan-height));
--nav-height: calc(var(--body-min-height) - var(--toolbar-height));
--nav-height--desktop: var(--body-min-height);
--nav-height--desktop: calc(var(--body-min-height) + (var(--navbar-height) / 2));
--nav-panel-menu-height: calc(100% - var(--drawer-height));
--nav-panel-explore-height: calc(50% + var(--drawer-height));
--nav-width: calc(270 / var(--rem-base) * 1rem);
Expand Down

0 comments on commit dd8bca1

Please sign in to comment.