Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Styling

The site has one stylesheet, Assets/style.css. It is embedded in the generator, written once per run to <output-directory>/style.<hash>.css and linked from every page, so a browser caches it once. The name holds a hash of the content: an update gets a new name, and the browser fetches it without a full refresh. A book page adds an inline <style> with its language’s @font-face rules, the one part that differs per language. The PDF has its own Assets/pdf.css, which imports this one; see PDF export.

Guidelines

  • Plain. No CSS framework, no theme, no external stylesheet or font. Pages keep a centered reading column; only the map pages use the full window.
  • Light and dark for free. color-scheme: light dark and colors relative to the text (opacity, rgba, color-mix) rather than fixed values, so no rule needs a dark-mode override. The parchment is the one fixed palette.
  • Hierarchy by weight and gray, not boxes. Secondary information (FormIds, sources, counts, empty values) is smaller or grayed. Avoid boxed panels and heavy rules; a thin light rule is enough to separate blocks.
  • Show, don’t hide. An absent value reads “(none)”, grayed; an empty section keeps its shape, grayed and inert. The reader sees that the field exists and is empty.
  • Semantic HTML, no tables. Label/value pairs are a <dl> laid out as a grid, lists are lists, foldable parts are <details>.
  • Works without JavaScript. A script adds js to <body>; anything that needs it (tabs, search boxes) is shown only then. Without it, the panels a tab would switch between follow each other.
  • Native controls. Buttons, links and <details>, so the keyboard works the browser’s way: Tab moves the focus, Enter or Space acts. No custom key handling.
  • Narrow windows. Every page sets a viewport meta. Below 36rem a reading page gives its text the width (a list row stacks, the parchment’s padding shrinks); below 48rem the map’s menu folds above the map. A line of short items wraps between items, never inside one.
  • Motion. Honor prefers-reduced-motion.
  • The book is the game’s, the rest is the site’s. Book content keeps the game’s fonts and proportions (below). Text the game never showed, such as a placeholder note about missing content or a menu-art gallery, uses the site’s UI font so it doesn’t pass for book text.
  • No rule depends on the text of a book.

Book page geometry

The book content is not a 1:1 copy of the in-game page: it fills the site’s column and uses a web reading line height. What it keeps from the game is the size of images and markup fonts relative to the body text. The page is laid out in the book menu’s Flash stage pixels, with the game’s 22 px body text, then scaled down to screen with CSS zoom. Authored <img width height> and <font size> values are in that same unit, so they keep their in-game proportion to the text.

PropertyValueSource
Font size22 pxbook.swf PageTextField font height, written size="22" in its htmlText
Unsized <img>64 × 64 px, stretchedMeasured in-game
Sized <img>Its width × heightThe tag’s own attributes, see below
Screen scalezoom: 0.75Body text at about 16.5 CSS px
Width, line height, spacingSite column, 1.6, 1.1em between paragraphsWeb reading, not the game’s 296 px page

PageTextField is the one DefineEditText (HTML, word wrap, multiline) in interface/book.swf from Skyrim - Interface.bsa; the book menu places it once per page.

Images are inline, on the text baseline, the way Scaleform lays out an <img> in a book text field: the text after an image starts at the image’s bottom line, and the next line starts below the image. No float and no wrap around it. In the QA book (skyrim.esm:0B7736), an illuminated letter followed by “mage within text.” renders that way in-game, with or without the surrounding <p>.

An <img> without width and height is drawn in-game into a fixed box, not at the texture’s own size: the QA book’s dbhand.png (512 × 512) and I_letter.png (132 × 197) both measure about 64 × 62 stage px in a 1080p screenshot, the letter visibly squashed out of its portrait shape. The 64 is measured, not read from a file: if a drop cap or an unsized picture looks off against the game, check this value first.

Rendering/Markup/ImageTagRenderer.TryRenderImage carries a tag’s own width/height through onto the rendered <img> when both are present and each parses as a positive integer. That size, not the PNG’s pixel size, is what the book shows: the Dark Brotherhood hand-print is a 512 × 512 PNG, shown at 230×230 in one book and 300×300 in another; a puzzle illustration is a 1300 × 1200 PNG shown at 296×278, the full width of the in-game page. An image wider than the column shrinks to it and keeps its aspect ratio.

Line breaks and page breaks don’t follow the game: the column is wider than the 296 px in-game page, and [pagebreak] shows as a rule instead of starting a new page. Site text inside the book area (a placeholder note, a menu-art gallery) cancels the zoom to stay at the site’s UI size.

Map pages

The map page (maps/index.html, see Maps) uses the full window: the worldspace menu on the left, scrolling on its own, the map on the right. The page itself never scrolls. The iframe page (maps/embed.html) is the map alone.

Leaflet-MiniMap lays its control out at full size before folding it, with a CSS transition, so a minimap that starts folded would visibly shrink as the page opens. map_view.js turns the transition off while it adds the minimap; the fold button still animates.