Skip to content

Commit

Permalink
Remove opacity from lightbox pagination dots
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgraham committed Nov 19, 2024
1 parent 14fb0c7 commit c6a0c89
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/index.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.css.map

Large diffs are not rendered by default.

21 changes: 17 additions & 4 deletions src/components/lightbox.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
.lightbox > .overlay__scrim.bg-white + .lightbox__dialog,
.lightbox[data-theme="light"] > .overlay__scrim.bg-background + .lightbox__dialog,
.lightbox:not([data-theme]) > .overlay__scrim.bg-background + .lightbox__dialog {
--lightbox-active-color: #808080;
--lightbox-inactive-color: #bfbfbf;
}

.lightbox > .overlay__scrim.bg-black + .lightbox__dialog,
.lightbox[data-theme="dark"] > .overlay__scrim.bg-background + .lightbox__dialog,
.lightbox[data-theme="high-contrast"] > .overlay__scrim.bg-background + .lightbox__dialog {
--lightbox-active-color: #a6a6a6;
--lightbox-inactive-color: #666666;
}

.lightbox {
position: fixed;
top: 0;
Expand Down Expand Up @@ -40,7 +54,7 @@
.lightbox__next,
.lightbox__previous,
.lightbox__close {
color: gray;
color: var(--lightbox-active-color);
}

.lightbox__next,
Expand Down Expand Up @@ -86,10 +100,9 @@
width: var(--spacing-lg);
height: var(--spacing-lg);
border-radius: 50%;
background-color: gray;
opacity: var(--opacity-disabled);
background-color: var(--lightbox-inactive-color);
}

.lightbox__pagination-dot.selected {
opacity: 1;
background-color: var(--lightbox-active-color);
}

0 comments on commit c6a0c89

Please sign in to comment.