Skip to content

Commit

Permalink
Slider et visionneuse : améliorations multiples (#744)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisben authored Nov 22, 2024
1 parent 3cc252d commit 289fe91
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 47 deletions.
19 changes: 10 additions & 9 deletions assets/sass/_theme/components/lightbox.sass
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
> button
@include button-reset
@include meta
background-color: var(--color-background)
color: var(--color-text)
background-color: $lightbox-button-background-color
color: $lightbox-button-color
height: $spacing-4
outline-color: $lightbox-focus-outline-color
margin: 0
padding: 0
width: $spacing-4
&:not(:last-child)
border-right: 1px solid var(--color-border)
border-right: 1px solid $lightbox-button-border-color
&.lightbox-button-next
@include icon(arrow-right-s-line, before)
&.lightbox-button-previous
Expand All @@ -76,15 +76,16 @@
&.lightbox-button-close
@include icon(close-line, before)
&[aria-expanded='true']
background-color: var(--color-text)
color: var(--color-background)
background-color: $lightbox-button-color
color: $lightbox-button-background-color
&:disabled
background: var(--color-background-alt)
background: $lightbox-button-disabled-background
&::before
color: var(--color-border)
color: $lightbox-button-disabled-color
&-detail
background-color: var(--color-background)
background: $lightbox-detail-background
bottom: calc(var(--spacing-4) + var(--spacing-2) + 1px)
color: $lightbox-detail-color
display: none
padding: $spacing-2
position: fixed
Expand All @@ -95,7 +96,7 @@
width: columns(6)
&__title, &__close
@include meta
color: var(--color-text-alt)
color: $lightbox-detail-meta-color
&__close
@include button-reset
cursor: pointer
Expand Down
12 changes: 10 additions & 2 deletions assets/sass/_theme/configuration/components.sass
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,16 @@ $breadcrumb-icon-color: var(--color-text-alt) !default
// Lightbox
$lightbox-backdrop: blur(5px) !default
$lightbox-background-color: rgba(0, 0, 0, 0.80) !default
$lightbox-focus-outline-color: white !default
$lightbox-background-color: white !default
$lightbox-button-background-color: var(--color-background) !default
$lightbox-button-color: var(--color-text) !default
$lightbox-button-border-color: var(--color-border) !default
$lightbox-button-disabled-background: var(--color-background-alt) !default
$lightbox-button-disabled-color: var(--color-border) !default
$lightbox-detail-background: var(--color-background) !default
$lightbox-detail-color: var(--color-text) !default
$lightbox-detail-meta-color: var(--color-text-alt) !default
$lightbox-focus-outline-color: black !default

// Table of content
$toc-color: var(--color-text) !default
Expand Down
7 changes: 0 additions & 7 deletions layouts/partials/blocks/templates/gallery/carousel-image.html

This file was deleted.

29 changes: 0 additions & 29 deletions layouts/partials/blocks/templates/gallery/images.html

This file was deleted.

0 comments on commit 289fe91

Please sign in to comment.