Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Oct 10, 2023
1 parent a6abd04 commit 2c5a83c
Show file tree
Hide file tree
Showing 7 changed files with 172 additions and 128 deletions.
43 changes: 23 additions & 20 deletions css/reveal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ html.reveal-full-page {

background-color: #fff;
color: #000;

--r-reader-progress-width: 8px;
}

// Force the presentation to cover the full viewport when we
Expand Down Expand Up @@ -2003,7 +2005,8 @@ $notesWidthPercent: 25%;
}
}

.reveal-viewport.reveal-reader::-webkit-scrollbar {
.reveal-viewport.reveal-reader[data-reader-scroll-bar="true"]::-webkit-scrollbar,
.reveal-viewport.reveal-reader[data-reader-scroll-bar="auto"]::-webkit-scrollbar {
display: none;
}

Expand All @@ -2021,45 +2024,45 @@ $notesWidthPercent: 25%;

.reader-progress-inner {
position: absolute;
width: 8px;
width: var(--r-reader-progress-width);
height: 90vh;
right: $controlsSpacing;
top: 0;
transform: translateY(-50%);
border-radius: 8px;
border-radius: var(--r-reader-progress-width);
z-index: 10;

// Hit area
&:after {
content: '';
position: absolute;
width: 200%;
height: 100%;
top: 0;
left: -50%;
background: rgba( 0, 0, 0, 0 );
z-index: -1;
}
}

// Hit area
.reader-progress-inner:after {
content: '';
position: absolute;
width: 200%;
height: 100%;
top: 0;
left: -50%;
background: rgba( 0, 0, 0, 0 );
z-index: -1;
}

.reader-progress-playhead {
position: absolute;
width: 8px;
height: 8px;
width: var(--r-reader-progress-width);
height: var(--r-reader-progress-width);
top: 0;
left: 0;
border-radius: 8px;
border-radius: var(--r-reader-progress-width);
background-color: #fff;
transition: all 0.1s ease;
z-index: 2;
}

.reader-progress-slide {
position: absolute;
width: 100%;
transition: all 0.2s ease;
background-color: rgba( 255, 255, 255, 0.2 );
border-radius: 8px;
border-radius: var(--r-reader-progress-width);
transition: all 0.2s ease;
}

.reader-progress-slide.active {
Expand Down
2 changes: 1 addition & 1 deletion dist/reveal.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.esm.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/reveal.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 2c5a83c

Please sign in to comment.