Skip to content

Commit

Permalink
Update popup-fancybox.scss
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Apr 20, 2024
1 parent aa4761f commit 5158f89
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions assets/css/popup-fancybox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,21 +53,15 @@
}

.fancybox-thumbs__list a {
width: var(--vp-popup--thumbnails__size);
max-width: calc(100% - 4px);
height: calc(var(--vp-popup--thumbnails__size) / calc(var(--vp-popup--thumbnails__aspect-ratio)));
width: calc(100% - 4px);
max-width: none;
height: auto;
max-height: none;
aspect-ratio: var(--vp-popup--thumbnails__aspect-ratio);

&::before {
border: 2px solid var(--vp-popup--thumbnails--items__border-color);
}

@supports (aspect-ratio: 16 / 9) {
width: calc(100% - 4px);
max-width: none;
height: auto;
max-height: none;
aspect-ratio: var(--vp-popup--thumbnails__aspect-ratio);
}
}

.fancybox-thumbs-y .fancybox-thumbs__list {
Expand Down

0 comments on commit 5158f89

Please sign in to comment.