All Downloads are FREE. Search and download functionalities are using the official Maven repository.

css.page-layout.params Maven / Gradle / Ivy

There is a newer version: 8.0.1
Show newest version



    
        
            

Page layout: Page width

The number of columns available for printing. Sets the default page width (this can be overwritten with `@page` rules), affects media queries that use the 'width' feature, and makes the variable `$page-width` available in style sheets. See the CSS specification for more info: - the [`@page`](http://braillespecs.github.io/braille-css/#h4_the-page-rule) rule - the [`size`](http://braillespecs.github.io/braille-css/#the-size-property) property - the [page dimensions media features](https://www.w3.org/TR/mediaqueries-4/#mf-dimensions)

Page layout: Page height

The number of rows available for printing. Sets the default page height (this can be overwritten with `@page` rules), affects media queries that use the 'height' feature, and makes the variable `$page-height` available in style sheets. See the CSS specification for more info: - the [`@page`](http://braillespecs.github.io/braille-css/#h4_the-page-rule) rule - the [`size`](http://braillespecs.github.io/braille-css/#the-size-property) property - the [page dimensions media features](https://www.w3.org/TR/mediaqueries-4/#mf-dimensions)

Page layout: Duplex

When enabled, will print on both sides of the paper.

Page numbers: Show braille page numbers

When enabled, will number braille pages. Makes the variable `$show-braille-page-numbers` available in style sheets. In order to use the variable include a rule like the following in your custom style sheet: ~~~sass @if $show-braille-page-numbers { @page { @top-right { content: counter(page); } } } ~~~ This will create a page number in the top right corner of every braille page. See the CSS specification for more info: - the [`@page`](http://braillespecs.github.io/braille-css/#h4_the-page-rule) rule - the [`counter()`](http://braillespecs.github.io/braille-css/#printing-counters-the-counter-function) function

Page numbers: Show print page numbers

When enabled, will indicate original page numbers. Makes the variable `$show-print-page-numbers` available in style sheets and includes the following rule by default: ~~~sass @if $show-print-page-numbers { .page-front, .page-normal, .page-special, [epub|type='pagebreak'] { string-set: print-page attr(title); } } ~~~ In order to use the `print-page` string include a rule like the following in your custom style sheet: ~~~css @page { @bottom-right { content: string(print-page); } } ~~~ See the CSS specification for more info: - the [`string-set`](http://braillespecs.github.io/braille-css/#h4_the-string-set-property) property - the [`@page`](http://braillespecs.github.io/braille-css/#h4_the-page-rule) rule - the [`string()`](http://braillespecs.github.io/braille-css/#h4_the-string-function) function

Headers/footers: Levels in footer

Specify which headings are rendered in the footer. Makes the variable `$levels-in-footer` available in style sheets and includes the following rule by default: ~~~sass @for $level from 1 through 6 { @if $levels-in-footer >= $level { h#{$level} { string-set: footer content(); } } } ~~~ In other words, the `footer` string is updated each time a heading with a level smaller than or equal to `levels-in-footer` is encountered. In order to use the `footer` string include a rule like the following in your custom style sheet: ~~~css @page { @bottom-center { content: string(footer); } } ~~~ See the CSS specification for more info: - the [`string-set`](http://braillespecs.github.io/braille-css/#h4_the-string-set-property) property - the [`@page`](http://braillespecs.github.io/braille-css/#h4_the-page-rule) rule - the [`string()`](http://braillespecs.github.io/braille-css/#h4_the-string-function) function





© 2015 - 2025 Weber Informatics LLC | Privacy Policy