Skip to content

Commit

Permalink
Allow resizing slide thumbnails with CSS variable
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepman4267 committed Sep 9, 2024
1 parent ca279b8 commit eec3b4e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions OpenShow/slides/static/slides/slide-thumbnail.css
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
body {
--display-size-divisor: 10
}

.slide-thumbnail .slide {
min-width: 1920px;
width: 1920px;
min-height: 1080px;
transform: scale(0.1);
margin-right: calc(-1920px / 10);
margin-bottom: calc(-1080px / 10);
margin-left: calc(calc(100% - calc(1920px / 10)) / 2);
transform: scale(calc(1 / var(--display-size-divisor)));
margin-right: calc(-1920px / var(--display-size-divisor));
margin-bottom: calc(-1080px / var(--display-size-divisor));
margin-left: calc(calc(100% - calc(1920px / var(--display-size-divisor))) / 2);
transform-origin: left top;
background: black;
align-self: center;
pointer-events: none;
}

.slide-thumbnail {
max-width: calc(1920px / 10);
max-height: calc(1080px / 10);
max-width: calc(1920px / var(--display-size-divisor));
max-height: calc(1080px / var(--display-size-divisor));
overflow: hidden;
/*margin: 0.5rem;*/
outline: 1px solid var(--faded-fg);
Expand Down

0 comments on commit eec3b4e

Please sign in to comment.