pressbooks / buckram

Opinionated SCSS components for books (web, EPUB and PDF).
https://buckram.pressbooks.org
GNU General Public License v3.0
4 stars 4 forks source link

Chapter Openers: Having a different running content and chapter number location on page 1 of chapters #353

Open beckej13820 opened 7 months ago

beckej13820 commented 7 months ago

I'm attempting to create a custom child theme.

The production team I am working with would like to have no header on the first page in a new chapter, and have the page number somewhere other than the top corner.

I thought this was possible in buckram through the manipulation of two variables in the theme file.

$first-running-content-position: $first-numbering-position:

In my theme, in the _structure.scss file, I have the following rules:

// Structure

$running-content-position: 'top-outside' !default; $left-running-separator: '\A0\A0\A0\A0\A0\A0\A0\A0' !default; $right-running-separator: '\A0\A0\A0\A0\A0\A0\A0\A0' !default; $first-numbering-position: 'bottom-center' !default; $first-running-content-position: null !important;

However, I do not see a change happening with my exports. Screenshot 2024-01-12 at 1 50 59 PM

beckej13820 commented 7 months ago

@greatislander Ned, this is an issue where it's hard to me to understand whether its a bug, or if I'm doing something wrong. Would you be willing to take a look?

greatislander commented 2 months ago

After some investigation it appears that this is in fact a bug. Buckram should support hiding running content/numbering on specific pages and although the seem appears to be properly constructed and the logic within Buckram appears to support this, it's not compiling SCSS to CSS which includes the necessary rules. I expect this is related to the larger issues noted here: https://github.com/pressbooks/buckram/issues/289 and https://github.com/pressbooks/pressbooks/issues/2281#issuecomment-1007245092.