GithubHelp home page GithubHelp logo

pressbooks / buckram Goto Github PK

View Code? Open in Web Editor NEW
4.0 7.0 4.0 12.42 MB

Opinionated SCSS components for books (web, EPUB and PDF).

Home Page: https://buckram.pressbooks.org

License: GNU General Public License v3.0

JavaScript 0.74% HTML 13.30% SCSS 85.96%
books ebooks epub eprdctn

buckram's Issues

Standardize variable names for pseudo-content

  • Before and after part numbers/titles (TOC)
  • Before and after chapter numbers/titles (TOC)
  • Before and after part numbers/titles (part headings)
  • Before and after chapter numbers/titles (chapter headings)

Page break before chapter subtitle

When a subtitle (by itself with no other chapter features) is used on a chapter, the page breaks before the subtitle and the subtitle is pushed to the next page.

Headers variables

Add variables for bottom borders on headers. Also add variable for border colour.

Part Number Variables

Variables to add:

  • Left margin
  • Right margin
  • Border Bottom
  • Padding bottom (space between text and border)

the following page counter variables should end with !default to allow overwrites:

In https://github.com/pressbooks/buckram/blob/master/styles/variables/_structure.scss
the following page countervariables should end with !default to allow overwrites:

// Page number style

$front-matter-page-number-left: counter(page, lower-roman) !default;
$front-matter-page-number-right: counter(page, lower-roman) !default;

$introduction-page-number-left: counter(page) !default;
$introduction-page-number-right: counter(page) !default;

$part-page-number-left: counter(page) !default;
$part-page-number-right: counter(page) !default;

$chapter-page-number-left: counter(page) !default;
$chapter-page-number-right: counter(page) !default;

$back-matter-page-number-left: counter(page) !default;
$back-matter-page-number-right: counter(page) !default;

Chapter Number variables

Variables to add:

  • Border Bottom
  • Border Color
  • Padding Bottom (or space between text and border)
  • Left Margin
  • Right Margin
  • Before Content

Improve table of contents

  • Support centered TOC in PDF
  • Support better numbering for left-aligned TOC
  • Improve EPUB TOC support
  • Ensure that numbering in front matter doesn't switch back to Roman if other front matter follows the Introduction

Add support for section title decoration

Add support for section title decoration/glyph:
Variables to make it work:

  • font-family
  • content "\a "
  • display (default to none; if visible, set to block)
  • white-space: pre
  • font-size
  • font-weight
  • margin-top
  • margin-bottom

EPUB chapter subtitle column span

Chapter subtitles break chapter styling on chapters they are featured on. This is caused by style "column-span: all" on the element. When turned off, it fixes problem behaviour.

First page with "column-span: all"
screen shot 2018-05-08 at 12 01 49 pm

Second page with "column-span: all"
screen shot 2018-05-08 at 12 01 59 pm

First page with "column-span: all" removed:
screen shot 2018-05-08 at 12 02 10 pm

Second page with "column-span: all" removed:
screen shot 2018-05-08 at 12 02 20 pm

Title Page Title variables

Variables to add

  • Left margin
  • Right margin
  • Bottom border
  • Padding bottom (Space between text and border)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.