Browse Source

Merge remote-tracking branch 'origin/master' into test-server-changes

master
rdrew 2 weeks ago
parent
commit
c4c9ef1ee9
  1. 0
      .php-cs-fixer.cache
  2. 0
      .php-cs-fixer.dist.php
  3. 0
      CLAUDE.md
  4. 0
      css/components/advanced_search.pager.css
  5. 2
      css/components/form-textarea.css
  6. 4
      css/components/header-buttons-mobile.css
  7. 22
      css/components/header-navigation.css
  8. 1
      css/components/islandora_mods.css
  9. 26
      css/components/navigation/nav-primary-button.css
  10. 2
      css/components/navigation/nav-primary-wide.css
  11. 0
      css/components/readmore.css
  12. 3
      deploy.sh
  13. 0
      fonts/Libre_Baskerville/LibreBaskerville-Italic-VariableFont_wght.ttf
  14. 0
      fonts/Libre_Baskerville/LibreBaskerville-Italic-VariableFont_wght.woff2
  15. 0
      fonts/Libre_Baskerville/LibreBaskerville-VariableFont_wght.ttf
  16. 0
      fonts/Libre_Baskerville/LibreBaskerville-VariableFont_wght.woff2
  17. 0
      fonts/Libre_Baskerville/OFL.txt
  18. 0
      fonts/Libre_Baskerville/README.txt
  19. 0
      fonts/Libre_Baskerville/static/LibreBaskerville-Bold.ttf
  20. 0
      fonts/Libre_Baskerville/static/LibreBaskerville-BoldItalic.ttf
  21. 0
      fonts/Libre_Baskerville/static/LibreBaskerville-Italic.ttf
  22. 0
      fonts/Libre_Baskerville/static/LibreBaskerville-Medium.ttf
  23. 0
      fonts/Libre_Baskerville/static/LibreBaskerville-MediumItalic.ttf
  24. 0
      fonts/Libre_Baskerville/static/LibreBaskerville-Regular.ttf
  25. 0
      fonts/Libre_Baskerville/static/LibreBaskerville-SemiBold.ttf
  26. 0
      fonts/Libre_Baskerville/static/LibreBaskerville-SemiBoldItalic.ttf
  27. 0
      fonts/Manufacturing_Consent/ManufacturingConsent-Regular.ttf
  28. 0
      fonts/Manufacturing_Consent/ManufacturingConsent-Regular.woff2
  29. 0
      fonts/Manufacturing_Consent/OFL.txt
  30. 0
      images/natural_paper.png
  31. 0
      images/newsprint.webp
  32. 0
      js/custom.js
  33. 0
      js/nouislider-year-format.js
  34. 38
      js/nouislider-year-format_v2.js
  35. 0
      js/readmore.js
  36. 0
      logo.svg
  37. 4
      olivesnews.libraries.yml
  38. 0
      templates/facets-result-item.html.twig
  39. 0
      templates/views/views-view-fields--newspaper_directory--page_2.html.twig
  40. 0
      templates/views/views-view-unformatted--newspaper_directory--page_2.html.twig

0
.php-cs-fixer.cache

0
.php-cs-fixer.dist.php

0
css/components/advanced_search.pager.css

2
css/components/form-textarea.css

@ -17,7 +17,7 @@ textarea {
padding: var(--sp); padding: var(--sp);
} }
.region--sidebar input.form-text { .region--sidebar input.form-text {
width: 14em; max-width: 14em;
} }
.region--sidebar .advanced-search-form { .region--sidebar .advanced-search-form {
input.form-text { input.form-text {

4
css/components/header-buttons-mobile.css

@ -28,14 +28,14 @@
} }
/* @media ((((min-width: 60rem)))) { */ /* @media ((((min-width: 60rem)))) { */
@media ((((min-width: 55rem)))) { @media ((((min-width: 1250px)))) {
.mobile-buttons { .mobile-buttons {
margin-block-start: var(--sp6); margin-block-start: var(--sp6);
} }
} }
/* @media ((((min-width: 60rem)))) { */ /* @media ((((min-width: 60rem)))) { */
@media ((((min-width: 55rem)))) { @media ((((min-width: 1250px)))) {
body:not(.is-always-mobile-nav) .mobile-buttons { body:not(.is-always-mobile-nav) .mobile-buttons {
display: none; display: none;
} }

22
css/components/header-navigation.css

@ -30,14 +30,17 @@
* mobile navigation needs to slide beneath the button, but we also cannot * mobile navigation needs to slide beneath the button, but we also cannot
* use padding because that would enable the button to scroll out of the * use padding because that would enable the button to scroll out of the
* viewport on short screens. */ * viewport on short screens. */
border-block-start: solid var(--color--white) calc(var(--sp3) + var(--drupal-displace-offset-top, 0px)); border-block-start: solid var(--color--white)
calc(var(--sp3) + var(--drupal-displace-offset-top, 0px));
background-color: var(--color--white); background-color: var(--color--white);
box-shadow: 0 0 72px rgba(0, 0, 0, 0.1); box-shadow: 0 0 72px rgba(0, 0, 0, 0.1);
} }
.header-nav.is-active { .header-nav.is-active {
visibility: visible; visibility: visible;
transform: translateX(calc(-100% - var(--drupal-displace-offset-right, 0px))); /* LTR */ transform: translateX(
calc(-100% - var(--drupal-displace-offset-right, 0px))
); /* LTR */
} }
[dir="rtl"] .header-nav.is-active { [dir="rtl"] .header-nav.is-active {
@ -84,7 +87,7 @@ html.js .header-nav {
} }
/* @media ((((min-width: 60rem)))) { */ /* @media ((((min-width: 60rem)))) { */
@media ((((min-width: 55rem)))) { @media ((((min-width: 1250px)))) {
body:not(.is-always-mobile-nav) .header-nav { body:not(.is-always-mobile-nav) .header-nav {
position: static; position: static;
display: flex; display: flex;
@ -113,14 +116,21 @@ html.js .header-nav {
max-width: calc((7 * (var(--grid-col-width) + var(--grid-gap)))); max-width: calc((7 * (var(--grid-col-width) + var(--grid-gap))));
padding-inline-end: var(--sp); padding-inline-end: var(--sp);
transition: transform 0.2s, visibility 0.2s; transition: transform 0.2s, visibility 0.2s;
border-top-width: calc(var(--drupal-displace-offset-top, 0px) + var(--sp11)); border-top-width: calc(
var(--drupal-displace-offset-top, 0px) + var(--sp11)
);
} }
} }
@media (min-width: 90rem) { @media (min-width: 90rem) {
body.is-always-mobile-nav .header-nav { body.is-always-mobile-nav .header-nav {
max-width: calc(100vw - (var(--max-width) + var(--content-left)) + ((7 * (var(--grid-col-width) + var(--grid-gap))))); max-width: calc(
padding-inline-end: calc(100vw - (var(--max-width) + var(--content-left) - var(--sp))); 100vw - (var(--max-width) + var(--content-left)) +
((7 * (var(--grid-col-width) + var(--grid-gap))))
);
padding-inline-end: calc(
100vw - (var(--max-width) + var(--content-left) - var(--sp))
);
} }
} }

1
css/components/islandora_mods.css

@ -826,3 +826,4 @@ div#block-olivesnews-search {
.path-frontpage .main-content__container.container { .path-frontpage .main-content__container.container {
padding-top: 4em; padding-top: 4em;
} }
.search-result.views-row { min-width: 0;}

26
css/components/navigation/nav-primary-button.css

@ -15,7 +15,9 @@
overflow: hidden; overflow: hidden;
width: var(--sp2); width: var(--sp2);
height: var(--sp2); height: var(--sp2);
margin-block-start: var(--sp0-5); /* Visually align button with menu link text. */ margin-block-start: var(
--sp0-5
); /* Visually align button with menu link text. */
padding-block: 0; padding-block: 0;
padding-inline-start: 0; padding-inline-start: 0;
padding-inline-end: 0; padding-inline-end: 0;
@ -76,7 +78,7 @@
pointer-events: none; pointer-events: none;
} }
@media ((((min-width: 60rem)))) { @media ((((min-width: 1250px)))) {
body:not(.is-always-mobile-nav) .primary-nav__button-toggle { body:not(.is-always-mobile-nav) .primary-nav__button-toggle {
flex-shrink: 0; flex-shrink: 0;
align-self: stretch; align-self: stretch;
@ -91,7 +93,9 @@
outline: 0; outline: 0;
} }
body:not(.is-always-mobile-nav) .primary-nav__button-toggle:focus .icon--menu-toggle { body:not(.is-always-mobile-nav)
.primary-nav__button-toggle:focus
.icon--menu-toggle {
border: solid 2px var(--color--primary-40); border: solid 2px var(--color--primary-40);
} }
@ -100,11 +104,15 @@
color: currentColor; color: currentColor;
} }
body:not(.is-always-mobile-nav) .primary-nav__button-toggle[aria-expanded="true"] .icon--menu-toggle::after { body:not(.is-always-mobile-nav)
.primary-nav__button-toggle[aria-expanded="true"]
.icon--menu-toggle::after {
opacity: 0.8; opacity: 0.8;
} }
body:not(.is-always-mobile-nav) .primary-nav__button-toggle .icon--menu-toggle { body:not(.is-always-mobile-nav)
.primary-nav__button-toggle
.icon--menu-toggle {
inset-inline-start: 0.1875rem; inset-inline-start: 0.1875rem;
width: 1.125rem; width: 1.125rem;
transform: translateY(-50%); transform: translateY(-50%);
@ -112,11 +120,15 @@
background-color: var(--color--white); background-color: var(--color--white);
} }
body:not(.is-always-mobile-nav) .primary-nav__button-toggle .icon--menu-toggle::before { body:not(.is-always-mobile-nav)
.primary-nav__button-toggle
.icon--menu-toggle::before {
content: none; content: none;
} }
body:not(.is-always-mobile-nav) .primary-nav__button-toggle .icon--menu-toggle::after { body:not(.is-always-mobile-nav)
.primary-nav__button-toggle
.icon--menu-toggle::after {
/* stylelint-disable csstools/use-logical */ /* stylelint-disable csstools/use-logical */
top: calc(50% - 2px); top: calc(50% - 2px);
left: 0.1875rem; left: 0.1875rem;

2
css/components/navigation/nav-primary-wide.css

@ -10,7 +10,7 @@
* Nav Primary (wide widths). * Nav Primary (wide widths).
*/ */
@media ((((min-width: 50rem)))) { @media ((((min-width: 1250px)))) {
body:not(.is-always-mobile-nav) .primary-nav__menu-item { body:not(.is-always-mobile-nav) .primary-nav__menu-item {
flex-wrap: nowrap; /* Ensure that sub navigation toggle button doesn't wrap underneath link. */ flex-wrap: nowrap; /* Ensure that sub navigation toggle button doesn't wrap underneath link. */
} }

0
css/components/readmore.css

3
deploy.sh

@ -12,7 +12,8 @@
# -------------------------------------------------------- # --------------------------------------------------------
# --- CONFIGURATION (Edit these for new environments) --- # --- CONFIGURATION (Edit these for new environments) ---
SERVER="newspapers2.islandarchives.ca" # SERVER="newspapers2.islandarchives.ca"
SERVER="137.149.52.48"
THEME_DIR="/var/www/islandnewspapers2/web/themes/custom/olivesnews" THEME_DIR="/var/www/islandnewspapers2/web/themes/custom/olivesnews"
SITE_ROOT="/var/www/islandnewspapers2/web/sites/islandnewspapers2" SITE_ROOT="/var/www/islandnewspapers2/web/sites/islandnewspapers2"
DRUSH_PATH="/var/www/islandnewspapers2/vendor/drush/drush/drush" DRUSH_PATH="/var/www/islandnewspapers2/vendor/drush/drush/drush"

0
fonts/Libre_Baskerville/LibreBaskerville-Italic-VariableFont_wght.ttf

0
fonts/Libre_Baskerville/LibreBaskerville-Italic-VariableFont_wght.woff2

0
fonts/Libre_Baskerville/LibreBaskerville-VariableFont_wght.ttf

0
fonts/Libre_Baskerville/LibreBaskerville-VariableFont_wght.woff2

0
fonts/Libre_Baskerville/OFL.txt

0
fonts/Libre_Baskerville/README.txt

0
fonts/Libre_Baskerville/static/LibreBaskerville-Bold.ttf

0
fonts/Libre_Baskerville/static/LibreBaskerville-BoldItalic.ttf

0
fonts/Libre_Baskerville/static/LibreBaskerville-Italic.ttf

0
fonts/Libre_Baskerville/static/LibreBaskerville-Medium.ttf

0
fonts/Libre_Baskerville/static/LibreBaskerville-MediumItalic.ttf

0
fonts/Libre_Baskerville/static/LibreBaskerville-Regular.ttf

0
fonts/Libre_Baskerville/static/LibreBaskerville-SemiBold.ttf

0
fonts/Libre_Baskerville/static/LibreBaskerville-SemiBoldItalic.ttf

0
fonts/Manufacturing_Consent/ManufacturingConsent-Regular.ttf

0
fonts/Manufacturing_Consent/ManufacturingConsent-Regular.woff2

0
fonts/Manufacturing_Consent/OFL.txt

0
images/natural_paper.png

Before

Width:  |  Height:  |  Size: 98 KiB

After

Width:  |  Height:  |  Size: 98 KiB

0
images/newsprint.webp

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 69 KiB

0
js/custom.js

0
js/nouislider-year-format.js

38
js/nouislider-year-format_v2.js

@ -0,0 +1,38 @@
(function (Drupal) {
"use strict";
Drupal.behaviors.nouisliderYearFormat = {
attach: function (context) {
// 1. Target the slider element
const sliderEl = document.getElementById("year");
if (!sliderEl) return;
// 2. Use a small function to attach the rounding logic
const applyRounding = () => {
if (sliderEl.noUiSlider && !sliderEl.dataset.yearFormatApplied) {
sliderEl.dataset.yearFormatApplied = "true";
sliderEl.noUiSlider.on("update", function (values, handle) {
const inputId =
handle === 0 ? "nouislider-input-from" : "nouislider-input-to";
const input = document.getElementById(inputId);
if (input) {
// Round the string value ("1971.00" -> 1971)
input.value = Math.round(parseFloat(values[handle]));
}
});
}
};
// 3. Try immediately, then periodically until the slider is ready
applyRounding();
const retry = setInterval(() => {
applyRounding();
if (sliderEl.dataset.yearFormatApplied) clearInterval(retry);
}, 100);
// Stop trying after 3 seconds
setTimeout(() => clearInterval(retry), 3000);
},
};
})(Drupal);

0
js/readmore.js

0
logo.svg

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

4
olivesnews.libraries.yml

@ -58,7 +58,7 @@ global-styling:
js: js:
js/checkbox.js: {} js/checkbox.js: {}
js/custom.js: {} #js/custom.js: {}
js/readmore.js: {} js/readmore.js: {}
dependencies: dependencies:
@ -69,7 +69,7 @@ global-styling:
nouislider-year-format: nouislider-year-format:
js: js:
js/nouislider-year-format.js: {} js/nouislider-year-format_v2.js: {}
dependencies: dependencies:
- core/drupal - core/drupal

0
templates/facets-result-item.html.twig

0
templates/views/views-view-fields--newspaper_directory--page_2.html.twig

0
templates/views/views-view-unformatted--newspaper_directory--page_2.html.twig

Loading…
Cancel
Save