From 6ca40afac06b1420652b80af696ea655191af946 Mon Sep 17 00:00:00 2001 From: Prospector <6166773+Prospector@users.noreply.github.com> Date: Thu, 3 Mar 2022 20:18:42 -0800 Subject: [PATCH] Add expanding gallery images by clicking on them (#371) * Random css variable cleanup * Add an option for developers to temporarily switch between staging and production API * Added a feature to expand gallery images to view them larger. --- assets/styles/components.scss | 2 +- assets/styles/global.scss | 12 +- pages/_type/_id/gallery.vue | 206 ++++++++++++++++++++++++++++++++-- pages/settings/index.vue | 36 +++++- 4 files changed, 238 insertions(+), 18 deletions(-) diff --git a/assets/styles/components.scss b/assets/styles/components.scss index ee562ae2a..1373fdbdc 100644 --- a/assets/styles/components.scss +++ b/assets/styles/components.scss @@ -639,7 +639,7 @@ label { color: var(--color-text); span::before { - background-color: var(--color-brand-disabled); + background-color: var(--tab-underline-hovered); } } diff --git a/assets/styles/global.scss b/assets/styles/global.scss index 06d85f505..8edbca958 100644 --- a/assets/styles/global.scss +++ b/assets/styles/global.scss @@ -20,11 +20,9 @@ html { --color-brand: #30b27b; --color-brand-hover: #1e9565; --color-brand-active: #177955; - --color-brand-light: #30b27b; --color-brand-inverted: #ffffff; - --color-brand-2: #30b27b; - --color-brand-3: #30b27b; - --color-brand-disabled: #e2e8f0; + + --tab-underline-hovered: #e2e8f0; --color-button-bg: #e0e0e5; --color-button-text: var(--color-text-dark); @@ -98,11 +96,9 @@ html { --color-brand: #1bd96a; --color-brand-hover: #30b366; --color-brand-active: #55f5ae; - --color-brand-light: #30b27b; --color-brand-inverted: #000; - --color-brand-2: #30b27b; - --color-brand-3: #30b27b; - --color-brand-disabled: #414146; + + --tab-underline-hovered: #414146; --color-button-bg: #3e434b; --color-button-text: var(--color-text); diff --git a/pages/_type/_id/gallery.vue b/pages/_type/_id/gallery.vue index 2791d1a9a..1fa53cf09 100644 --- a/pages/_type/_id/gallery.vue +++ b/pages/_type/_id/gallery.vue @@ -1,5 +1,50 @@