diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-12-09 16:49:18 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-01-01 20:35:27 -0400 |
commit | 5fb2ef2bfae90831d0e8a5fee7163dfd96d70382 (patch) | |
tree | 19287c533de285d2047d6c8cb4d58f2b7991d17a /src/static | |
parent | 86be9294a09f947adcbda35c7a0050f3c087c918 (diff) |
content, client, css: art tag "panel" appearance
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/client3.js | 28 | ||||
-rw-r--r-- | src/static/site6.css | 31 |
2 files changed, 55 insertions, 4 deletions
diff --git a/src/static/client3.js b/src/static/client3.js index 4dab19d1..77999488 100644 --- a/src/static/client3.js +++ b/src/static/client3.js @@ -145,6 +145,34 @@ function dispatchInternalEvent(event, eventName, ...args) { return results; } +// CSS compatibility-assistant ---------------------------- + +const cssCompatibilityAssistantInfo = clientInfo.cssCompatibilityAssistantInfo = { + coverArtContainer: null, + coverArtImageDetails: null, +}; + +function getCSSCompatibilityAssistantInfoReferences() { + const info = cssCompatibilityAssistantInfo; + + info.coverArtContainer = + document.getElementById('cover-art-container'); + + info.coverArtImageDetails = + info.coverArtContainer?.querySelector('.image-details'); +} + +function mutateCSSCompatibilityContent() { + const info = cssCompatibilityAssistantInfo; + + if (info.coverArtImageDetails) { + info.coverArtContainer.classList.add('has-image-details'); + } +} + +clientSteps.getPageReferences.push(getCSSCompatibilityAssistantInfoReferences); +clientSteps.mutatePageContent.push(mutateCSSCompatibilityContent); + // JS-based links ----------------------------------------- const scriptedLinkInfo = initInfo('scriptedLinkInfo', { diff --git a/src/static/site6.css b/src/static/site6.css index bf9bc2cc..0f5a8f59 100644 --- a/src/static/site6.css +++ b/src/static/site6.css @@ -635,10 +635,13 @@ p .current { #cover-art-container { font-size: 0.8em; + box-shadow: 0 3px 3px 6px rgba(0, 0, 0, 0.35); } -#cover-art .square { - box-shadow: 0 0 3px 6px rgba(0, 0, 0, 0.35); +#cover-art-container:has(.image-details), +#cover-art-container.has-image-details { + border-bottom-left-radius: 4px; + border-bottom-right-radius: 4px; } #cover-art img { @@ -647,8 +650,28 @@ p .current { height: 100%; } -#cover-art-container p { - margin-top: 5px; +.image-details { + display: block; + + padding: 6px 9px 4px 9px; + margin-top: 0; + margin-bottom: 0; + background: var(--bg-black-color); + border: 2px solid var(--primary-color); + border-top: 0; + border-radius: 0 0 4px 4px; + + -webkit-backdrop-filter: blur(3px); + backdrop-filter: blur(3px); +} + +ul.image-details li { + display: inline-block; + margin: 0; +} + +#cover-art-container ul li:not(:last-child)::after { + content: " \00b7 "; } .commentary-entry-heading { |