Skip to content

Commit

Permalink
Merge pull request #105 from kvarteret/jonathan-samail-navbar
Browse files Browse the repository at this point in the history
Jonathan samail navbar
  • Loading branch information
Cengelsen authored Feb 7, 2024
2 parents c1375a2 + d22cf10 commit caf97dd
Show file tree
Hide file tree
Showing 2 changed files with 803 additions and 1,009 deletions.
24 changes: 19 additions & 5 deletions packages/dak-components/lib/components/layout/Layout.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Footer from "./Footer";
import { HamburgerMenu } from "./HamburgerMenu";
import Header from "./Header";
import { MultiMenu } from "./MultiMenu";
import Footer from './Footer';
import { HamburgerMenu } from './HamburgerMenu';
import Header from './Header';
import { MultiMenu } from './MultiMenu';

const Layout = ({ children, data }) => {
if (!data) return <> {children} </>;
Expand All @@ -15,7 +15,7 @@ const Layout = ({ children, data }) => {
for (const id of ids) {
const item = document.getElementById(id);
if (!item) continue;
item.style.display = "none";
item.style.display = 'none';
}
};

Expand Down Expand Up @@ -84,6 +84,20 @@ const Layout = ({ children, data }) => {
box-shadow: 0 4px 4px rgb(0 0 0 / 40%);
backdrop-filter: blur(4px);
}
@media screen and (max-width: 1281px) {
.header-bar {
/*Removing the header bar when screen o/1281px */
display: none;
}
}
@media screen and (max-width: 1281px) {
/* Reset margin start when screen o/1281px */
.content {
margin-block-start: 0;
}
}
`}
</style>
</HamburgerMenu>
Expand Down
Loading

0 comments on commit caf97dd

Please sign in to comment.