From c8a93c1b26dfb9ce6a23c7871c6622ff6c0422a0 Mon Sep 17 00:00:00 2001 From: rdrew Date: Mon, 3 Aug 2026 12:24:04 -0300 Subject: [PATCH] mobile facets tweak --- cleanup.sh | 75 +++++++++++++++++++++++++++++++ css/components/islandora_mods.css | 2 +- deploy.sh | 2 +- 3 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 cleanup.sh diff --git a/cleanup.sh b/cleanup.sh new file mode 100644 index 0000000..17c133a --- /dev/null +++ b/cleanup.sh @@ -0,0 +1,75 @@ +#!/usr/bin/env bash +# Cleanup script for olivesbooks Drupal 10 theme +# Run this from the root of the olivesbooks git repo. +# +# Usage: +# chmod +x cleanup-olivesbooks.sh +# ./cleanup-olivesbooks.sh +# +# By default this only runs Tier 1 (safe backup/temp files) and the +# social-bar_.css duplicate fix. Tier 2 (likely-dead assets) is +# commented out — review that section and uncomment what you're +# comfortable removing after eyeballing the live site. + +set -e + +echo "=== Tier 1: backup/temp files (safe) ===" +git rm favicon.ico.old +git rm .prettierrc_old +git rm temp.html +git rm templates/includes/lp-banner.html.twig.old +git rm "templates/mirador.html.twig~" +git rm templates/views/views-view-fields--solr-search-content.html.twig.old +git rm css/components/islandora_mods.css.bk +git rm images/bookshelf.webp.bk + +echo "=== .DS_Store cleanup + gitignore ===" +git rm --cached .DS_Store 2>/dev/null || true +git rm --cached fonts/.DS_Store 2>/dev/null || true +if ! grep -q "^\.DS_Store$" .gitignore 2>/dev/null; then + echo ".DS_Store" >>.gitignore + git add .gitignore +fi + +# echo "=== social-bar_.css duplicate ===" +# git rm css/layout/social-bar_.css +# Also remove its entry from olivesbooks.libraries.yml manually: +# css/layout/social-bar_.css: {} +# (one line, under global-styling > css > layout) + +echo "" +echo "=== Tier 2: likely-dead CSS/images (REVIEW BEFORE RUNNING) ===" +echo "Uncomment lines below after confirming these aren't used on the live site." +echo "" + +# --- Unreferenced CSS --- +# git rm css/layout/wide-nav-expand.css +# git rm css/base/media-queries.css + +# --- Unreferenced images --- +# git rm images/telescope.svg +# git rm images/sextant.svg +# git rm images/sextant_old.svg +# git rm images/old-books-ladder.jpg +# git rm images/chevron-down.svg +# git rm images/background.svg +# git rm images/bookshelf_02.jpg +# git rm images/bookshelf.jpg +# git rm images/bookshelf.webp +# git rm images/search--white.svg +# git rm images/pei_map.jpg +# git rm images/pei_map_banner.jpg +# git rm images/imagined_logo.svg +# git rm images/throbber.svg + +# --- Disabled/unreferenced JS --- +# git rm js/nav-resize.js +# (also remove the commented-out line in olivesbooks.libraries.yml: +# # js/nav-resize.js: {} +# under navigation-primary > js) + +echo "" +echo "Done with enabled sections. Review the commit before pushing:" +echo " git status" +echo " git diff --cached --stat" +echo " git commit -m 'Remove obsolete backup/temp files and duplicate social-bar CSS'" diff --git a/css/components/islandora_mods.css b/css/components/islandora_mods.css index 58d4f62..b962bb0 100755 --- a/css/components/islandora_mods.css +++ b/css/components/islandora_mods.css @@ -372,6 +372,7 @@ nav.pager { #toggle-facets { background-color: var(--color--primary-50); font-family: var(--font-serif); + color: #fff; } .views-field.views-field-dc-description a { @@ -687,4 +688,3 @@ form#views-exposed-form-books-page-1 { .people-grid input.form-text { padding: 0 1em; } - diff --git a/deploy.sh b/deploy.sh index b767506..3351b9f 100755 --- a/deploy.sh +++ b/deploy.sh @@ -12,7 +12,7 @@ # -------------------------------------------------------- # --- CONFIGURATION (Edit these for new environments) --- -SERVER="booklives2.islandarchives.ca" +SERVER="137.149.52.42" THEME_DIR="/var/www/islandarchives2/web/themes/custom/olivesbooks" SITE_ROOT="/var/www/islandarchives2/web/sites/booklives2.islandarchives.ca" DRUSH_PATH="/var/www/islandarchives2/vendor/drush/drush/drush"