0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-04 06:02:46 +00:00

Get basic function worked out

Adds `setBookMode()` which toggles a className on `.pages`.  The `.book-mode` class sets display to grid, and the first child/page to start at the second slot of the book arrangement.
This commit is contained in:
Gazook89
2024-08-23 00:32:30 -05:00
parent 8dadc57934
commit 375c54016c
2 changed files with 26 additions and 0 deletions

View File

@@ -8,6 +8,14 @@
:where(.pages) {
margin : 30px 0px;
&.book-mode {
display: grid;
grid-template-columns: repeat(2, auto);
grid-template-rows: repeat(3, auto);
gap: 10px 10px;
justify-content: center;
}
& > :where(.page) {
width : 215.9mm;
height : 279.4mm;