bilden
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-05-09 14:37:25 +00:00
parent 581a417c49
commit 1ce22e58a2
3 changed files with 24 additions and 0 deletions

View File

@ -20,6 +20,20 @@ title: Start
});
</script>
<script>
window.addEventListener('scroll', () => {
const header = document.querySelector('.md-header');
const tabs = document.querySelector('.md-tabs');
if (window.scrollY > window.innerHeight * 0.8) {
header.style.transform = "translateY(0)";
if (tabs) tabs.style.transform = "translateY(0)";
} else {
header.style.transform = "translateY(-100%)";
if (tabs) tabs.style.transform = "translateY(-100%)";
}
});
</script>
<!-- Bakgrundsbild med filter -->
<div style="
position: absolute;

View File

@ -0,0 +1,4 @@
.md-nav--primary .md-nav__title {
background: none !important;
box-shadow: none !important;
}

View File

@ -33,4 +33,10 @@
--md-primary-fg-color: #FFD300 !important;
--md-primary-fg-color--light: #FFE066 !important;
--md-primary-fg-color--dark: #CCAA00 !important;
}
.md-header,
.md-tabs {
transition: transform 0.3s ease;
}