Added HKW sites

This commit is contained in:
Simon Martens
2022-10-28 03:01:08 +02:00
parent 8c8ad677af
commit 2bd41b943a
41 changed files with 377 additions and 271 deletions

View File

@@ -19,7 +19,7 @@
.ha-topnav.ha-topnav-collapsed
.ha-topnav-dropdown
.ha-topnav-dropdown-content {
@apply shadow-none desktop:shadow-md desktop:border-b
@apply shadow-none desktop:shadow-md desktop:border-b
}
.ha-menusymbol svg {
@@ -48,11 +48,11 @@
}
.ha-topnav-dropdown .ha-topnav-dropdown-content {
@apply hidden mr-6 pt-1 right-0 desktop:absolute min-w-[130px] z-50;
@apply hidden mr-6 pt-1 right-0 desktop:absolute min-w-[130px] z-50 whitespace-nowrap
}
.ha-topnav-dropdown .ha-topnav-dropdown-content a {
@apply pl-2 pr-3 py-2 block mr-0;
@apply pl-2 pr-3 py-2 block mr-0 whitespace-nowrap
}
.ha-topnav-dropdown .ha-topnav-dropdown-content .active {

File diff suppressed because one or more lines are too long

View File

@@ -21,6 +21,10 @@
@apply w-full py-12 px-12 md:px-16 hyphenate font-serif
}
.ha-static .ha-static-right-margin {
@apply md:pr-60 desktop:pr-80
}
.ha-static h1 {
@apply font-bold text-2xl desktop:font-normal desktop:text-5xl mb-9 unhyphenate
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 KiB

View File

@@ -266,27 +266,30 @@ const get_theme_settings = function (standard) {
// Functions for scrolling
const scrollFunction = function () {
button = document.getElementById("ha-scrollbutton");
if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
// button.style.display = "block";
button.style.pointerEvents = "auto";
button.style.opacity = "1";
} else {
// button.style.display = "none";
button.style.pointerEvents = "none";
button.style.opacity = "0";
if (button !== null) {
if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
// button.style.display = "block";
button.style.pointerEvents = "auto";
button.style.opacity = "1";
} else {
// button.style.display = "none";
button.style.pointerEvents = "none";
button.style.opacity = "0";
}
}
}
//////////////////////////////// ONLOAD ////////////////////////////////////
window.addEventListener("load", function () {
// Scroll button
scrollFunction();
let scrollbutton = this.document.getElementById("ha-scrollbutton");
scrollbutton.addEventListener("click", () => {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
})
this.window.addEventListener("scroll", scrollFunction);
if(document.getElementById("ha-scrollbutton") !== null) {
scrollFunction();
document.getElementById("ha-scrollbutton").addEventListener("click", () => {
document.body.scrollTop = 0; // For Safari
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
})
window.addEventListener("scroll", scrollFunction);
}
// Menu: Show / Hide Buttons for mobile View
if (
@@ -302,11 +305,11 @@ window.addEventListener("load", function () {
}
// Menu / Register / Search View: Mark active link
if (document.getElementById("ha-topnav") != null)
if (document.getElementById("ha-topnav") !== null)
markactive_startswith(document.getElementById("ha-topnav"));
if (document.getElementById("ha-register-nav") != null)
if (document.getElementById("ha-register-nav") !== null)
markactive_exact(document.getElementById("ha-register-nav"));
if (this.document.getElementById("ha-adminuploadfields") != null)
if (this.document.getElementById("ha-adminuploadfields") !== null)
markactive_exact(document.getElementById("ha-adminuploadfields"));
// Letter / Register View: Collapse all unfit boxes + resize observer