mirror of
https://git.sr.ht/~cadence/bibliogram
synced 2024-11-22 08:07:30 +00:00
Add timeline columns setting
This commit is contained in:
parent
8a1c2ddb80
commit
f6977ed3b9
@ -7,7 +7,7 @@ mixin timeline_page(page, pageIndex)
|
||||
header.page-number(id=`page-${pageNumber}`)
|
||||
span.number Page #{pageNumber}
|
||||
|
||||
.timeline-inner
|
||||
.timeline-inner(class=`${settings.timeline_columns}-columns`)
|
||||
- const suggestedSize = 260 //- from css :(
|
||||
each image in page
|
||||
- const thumbnail = image.getSuggestedThumbnailP(suggestedSize) //- use this as the src in case there are problems with srcset
|
||||
|
@ -76,11 +76,11 @@ html
|
||||
|
||||
+checkbox("display_top_nav", "Display top bar", "Always", false)
|
||||
|
||||
+select("timeline_columns", "Timeline columns", true, [
|
||||
+select("timeline_columns", "Timeline columns", false, [
|
||||
{value: "dynamic", text: "Dynamic"},
|
||||
{value: "3", text: "3 columns"},
|
||||
{value: "4", text: "4 columns"},
|
||||
{value: "6", text: "6 columns"}
|
||||
{value: "three", text: "3 columns"},
|
||||
{value: "four", text: "4 columns"},
|
||||
{value: "six", text: "6 columns"}
|
||||
])
|
||||
|
||||
+select("caption_side", "Caption side", false, [
|
||||
|
@ -217,6 +217,18 @@ body
|
||||
flex-wrap: wrap
|
||||
margin: 0 auto
|
||||
|
||||
&.three-columns
|
||||
max-width: 810px
|
||||
|
||||
@media screen and (max-width: $layout-a-max)
|
||||
max-width: 480px
|
||||
|
||||
&.four-columns
|
||||
max-width: 1080px
|
||||
|
||||
&.six-columns
|
||||
max-width: 1620px
|
||||
|
||||
@media screen and (max-width: $layout-c-max)
|
||||
display: grid
|
||||
grid-template-columns: repeat(3, 1fr)
|
||||
|
Loading…
Reference in New Issue
Block a user