« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateGroupGalleryPage.js2
-rw-r--r--src/static/css/site.css30
2 files changed, 31 insertions, 1 deletions
diff --git a/src/content/dependencies/generateGroupGalleryPage.js b/src/content/dependencies/generateGroupGalleryPage.js
index 80a0cb55..dfdad0e8 100644
--- a/src/content/dependencies/generateGroupGalleryPage.js
+++ b/src/content/dependencies/generateGroupGalleryPage.js
@@ -134,6 +134,8 @@ export default {
 
             language.encapsulate(pageCapsule, 'albumViewSwitcher', capsule =>
               html.tag('p', {class: 'gallery-view-switcher'},
+                {class: ['drop', 'shiny']},
+
                 {[html.onlyIfContent]: true},
                 {[html.joinChildren]: html.tag('br')},
 
diff --git a/src/static/css/site.css b/src/static/css/site.css
index 6fa4da38..9394e4c8 100644
--- a/src/static/css/site.css
+++ b/src/static/css/site.css
@@ -1914,6 +1914,8 @@ ul.quick-info li:not(:last-child)::after {
 }
 
 .gallery-view-switcher {
+  margin-left: auto;
+  margin-right: auto;
   text-align: center;
   line-height: 1.4;
 }
@@ -2512,7 +2514,33 @@ html[data-url-key="localized.listing"][data-url-value0="tags/network"] dl dt:las
     linear-gradient(#000000bb, #000000bb),
     var(--primary-color);
 
-  box-shadow: 0 -2px 6px -1px var(--dim-color) inset;
+  --drop-shadow: 0 -2px 6px -1px var(--dim-color) inset;
+  box-shadow: var(--drop-shadow);
+}
+
+.drop.shiny {
+  cursor: default;
+}
+
+@supports (box-shadow: 1px 1px 1px color-mix(in srgb, blue, 40% red)) {
+  @property --drop-shine {
+    syntax: '<percentage>';
+    initial-value: 0%;
+    inherits: false;
+  }
+
+  .drop.shiny {
+    cursor: default;
+    transition: --drop-shine 0.2s;
+  }
+
+  .drop.shiny:hover {
+    --drop-shine: 100%;
+
+    box-shadow:
+      var(--drop-shadow),
+      0 2px 4px -0.5px color-mix(in srgb, var(--primary-color), calc(100% - var(--drop-shine)) transparent);
+  }
 }
 
 .commentary-drop {