Skip to content

Commit 85794d9

Browse files
authored
Merge pull request #32 from mikael-ros/31-pagination-breaks-when-page-number-goes-into-the-double-digits
Fixed pagination issue, by giving pagination more space
2 parents b98ba67 + 7425a43 commit 85794d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+9
-7
lines changed

css/neobeam.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/* Defaults */
2222
/************/
2323
:root {
24-
--build-multiplier: 100; /* Set to 1 when working in vscode, 100 when building */
24+
--build-multiplier: 100; /* Might need to be set to 1 in some cases to fix color issues */
2525

2626
/* -- Colors -- */
2727
/* Primary, and variations */
@@ -187,7 +187,7 @@ section::after {
187187

188188
height: var(--footer-height);
189189
line-height: var(--footer-height);
190-
width: var(--footer-height);
190+
width: calc(2*var(--footer-height)); /* Give more space as necessary */
191191
color: var(--text-color-negative);
192192
font-size: calc(0.65 * var(--font-size)); /* For some reason simply writing 0.65rem won't do here */
193193

@@ -244,7 +244,7 @@ footer > *:last-child {
244244
z-index: 1;
245245

246246
/* Leave space for pagination number */
247-
--pagination-space: calc(var(--footer-height) + 2 * var(--text-padding));
247+
--pagination-space: calc(2*var(--footer-height) + 2 * var(--text-padding));
248248
margin-left: calc(-2 * var(--radius-space) - var(--pagination-space));
249249
padding-left: calc(var(--text-padding) + var(--radius-space));
250250
padding-right: var(--pagination-space);

example/example.md

Lines changed: 3 additions & 3 deletions

previews/beamer/beamer-0.png

-382 Bytes

previews/beamer/beamer-1.png

-125 Bytes

previews/beamer/beamer-2.png

-127 Bytes

previews/beamer/beamer-3.png

-122 Bytes

previews/beamer/beamer-4.png

-127 Bytes

previews/beamer/beamer-5.png

-125 Bytes

previews/beamer/beamer-6.png

-139 Bytes

previews/beamer/beamer-7.png

-135 Bytes

0 commit comments

Comments
 (0)