diff --git a/web/themes/custom/schunder/css/stil.css b/web/themes/custom/schunder/css/stil.css index 10ed39ce..28ceafbb 100644 --- a/web/themes/custom/schunder/css/stil.css +++ b/web/themes/custom/schunder/css/stil.css @@ -2,6 +2,7 @@ --bezh: #ffeebc; --rdeca: #fe0000; --rumena: #f8fa35; + --modra: #214afc; } @font-face { @@ -19,6 +20,10 @@ body { background: white !important; } +body.schunderkids { + background: var(--modra) !important; +} + #page { background: transparent !important; min-height: 100vh; @@ -447,7 +452,7 @@ h1 { } /* podstran slika glave */ -.block-views-block-slika-glave-za-podstran-block-1 { +.block-views-blockslika-glave-za-podstran-block-1 { z-index: -100; position: fixed; top: 0; @@ -456,7 +461,7 @@ h1 { bottom: 0; } -.block-views-block-slika-glave-za-podstran-block-1 img { +.block-views-blockslika-glave-za-podstran-block-1 img { object-fit: cover; width: 100%; height: 100%; diff --git a/web/themes/custom/schunder/js/nav.js b/web/themes/custom/schunder/js/nav.js deleted file mode 100644 index e69de29b..00000000 diff --git a/web/themes/custom/schunder/js/skript.js b/web/themes/custom/schunder/js/skript.js index aa0ed0b5..f99e6cca 100644 --- a/web/themes/custom/schunder/js/skript.js +++ b/web/themes/custom/schunder/js/skript.js @@ -88,6 +88,12 @@ function linkclickHandler(event) { if (event.ctrlKey || event.metaKey || event.shiftKey || event.altKey) return; var link = event.target; while (link && link.tagName !== "A") link = link.parentNode; + + if (link.classList.contains('colorbox')) { + event.preventDefault(); + return; + } + if (!link || !link.href || link.target) return; try { if (pendingForward) history.replaceState(null, "", link.href);