From 6c96669d87d23043feb1ad1073405cdf79aa45d4 Mon Sep 17 00:00:00 2001 From: Chris Hallberg Date: Tue, 10 Dec 2024 11:31:34 -0500 Subject: [PATCH] Button normalization (#1247) - fix(less): add some button normalization to fix appearance. - fix(seadragon): prevent layered icons from breaking the First Directive. --- .../css/styles.less | 13 ++++++++++++- .../modules/uv-shared-module/css/scaffolding.less | 7 +++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/css/styles.less b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/css/styles.less index 9a45075e7..eb8a9c39d 100644 --- a/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/css/styles.less +++ b/src/content-handlers/iiif/modules/uv-openseadragoncenterpanel-module/css/styles.less @@ -76,6 +76,10 @@ &.disabled { background-image: data-uri('../img/right_arrow_disabled.png'); } + + & .uv-icon-next { + background-image: none; + } } &.next.vertical { @@ -93,6 +97,13 @@ } } } + + + /* fixes out-of-scope iiif-tree and iiif-gallery icons */ + &.prev .uv-icon-prev, + &.next .uv-icon-next { + background-image: none; + } } .zoomIn{ @@ -262,4 +273,4 @@ .openseadragon-canvas { outline: none; } -} \ No newline at end of file +} diff --git a/src/content-handlers/iiif/modules/uv-shared-module/css/scaffolding.less b/src/content-handlers/iiif/modules/uv-shared-module/css/scaffolding.less index 589a959a2..e06876a2e 100644 --- a/src/content-handlers/iiif/modules/uv-shared-module/css/scaffolding.less +++ b/src/content-handlers/iiif/modules/uv-shared-module/css/scaffolding.less @@ -50,6 +50,13 @@ line-height: inherit; } + // Button normalization + + button { + border: 0; + background-color: transparent; + } + // Links a {