From: Max Value Date: Sat, 18 Apr 2026 22:38:27 +0000 (+0100) Subject: Added new triangle and cursor hints X-Git-Url: https://git.ozva.co.uk/?a=commitdiff_plain;h=d285da72174fedc91e6567a62bf4aad4cd5ab396;p=chester Added new triangle and cursor hints --- diff --git a/media/arrow.svg b/media/arrow.svg new file mode 100644 index 0000000..74f64f0 --- /dev/null +++ b/media/arrow.svg @@ -0,0 +1,66 @@ + + + + + + + + + + + + diff --git a/script.js b/script.js index b19680c..e1b24ee 100644 --- a/script.js +++ b/script.js @@ -154,38 +154,21 @@ function setup () { overflow: scroll; "> Change notes Chester -

Requests implemented from last meeting:

+

Todo:

-

Requests implemented from emailed document:

- -

Additional changes:

- -

Still todo:

- `; diff --git a/slideshow.js b/slideshow.js index f9285a8..7b01fb6 100644 --- a/slideshow.js +++ b/slideshow.js @@ -41,7 +41,9 @@ function setupSlideshow () { const prev = document.createElement("span"); prev.classList.add("prev"); - prev.innerHTML = "⮜"; + const prevImage = document.createElement("img"); + prevImage.src = "/media/arrow.svg"; + prev.src = "/media/arrow.svg"; prev.addEventListener("click", (e) => { e.preventDefault(); @@ -59,7 +61,8 @@ function setupSlideshow () { const next = document.createElement("span"); next.classList.add("next"); - next.innerHTML = "⮞"; + const nextImage = document.createElement("img"); + nextImage.src = "/media/arrow.svg"; next.addEventListener("click", (e) => { e.preventDefault(); @@ -79,6 +82,9 @@ function setupSlideshow () { slideshow.prepend(prev); slideshow.append(next); + next.append(nextImage); + prev.append(prevImage); + s++; } } diff --git a/style.css b/style.css index c4a596d..1e48666 100644 --- a/style.css +++ b/style.css @@ -131,6 +131,7 @@ blockquote { width: calc(55vw - 25px); height: calc((55vw - 25px) / 1.5); display: flex; + cursor: zoom-in; } .slideshow.full { --full-overhang: 12vw; @@ -153,20 +154,28 @@ blockquote { height: 100%; line-height: 100%; z-index: 0; - cursor: pointer; color: var(--darkgray); flex-wrap: nowrap; + transition: opacity 0.5s; +} +.slideshow > span:hover { opacity: 0.65; } +.slideshow > span > img { + height: 1em; + pointer-events: none; } -.slideshow > span:hover { color: var(--mediumgray); } .prev { - justify-content: flex-start; + justify-content: flex-end; margin-left: -2%; margin-right: -25%; + cursor: w-resize; + -webkit-transform: scaleX(-1); + transform: scaleX(-1); } .next { justify-content: flex-end; margin-left: -25%; margin-right: -2%; + cursor: e-resize; } .slideshow:first-child { margin-top: 0; } @@ -234,6 +243,7 @@ blockquote { background-color: rgba(51,51,51,0); backdrop-filter: blur(0px); transition: background-color 0.5s, backdrop-filter 0.5s; + cursor: zoom-out; } #dim span { position: absolute; @@ -285,7 +295,7 @@ blockquote { @media (orientation: portrait) { :root { - font-size: 1.3em; + font-size: 1.4em; } nav { @@ -356,14 +366,11 @@ blockquote { cursor: pointer; color: var(--darkgray) } - .slideshow > span:hover { color: var(--mediumgray); } .prev { - justify-content: flex-start; margin-left: -2%; margin-right: -22%; } .next { - justify-content: flex-end; margin-left: -22%; margin-right: -2%; }