shinbun-components

<shinbun-page>

Page grid. Lays out articles and photos in columns.

Example

左の記事は3段。

右の記事も3段。

<shinbun-paper dan="6" chars="8" font-size="0.8rem">
  <shinbun-page>
    <shinbun-article span="3"><p>左の記事は3段。</p></shinbun-article>
    <shinbun-article span="3"><p>右の記事も3段。</p></shinbun-article>
  </shinbun-page>
</shinbun-paper>

Attributes

NameTypeDescription
gridbooleanCoordinate grid: fix the line axis too and fit articles into rectangles

Properties

NameTypeDescription
gridboolean

Methods

None

Slots

NameDescription
(default)shinbun-article, shinbun-photo, shinbun-nameplate, shinbun-box The page becomes keyboard-focusable (`tabindex="0"`) while its content scrolls.

CSS custom properties

NameDescription
--sb-danColumns per page in vertical writing
--sb-linesLines in the coordinate grid