Stats Pattern
Stats are a list of paired properties and values that we use at the end of meta, blurbs, and similar descriptive blocks. They are usually countable values (e.g., Hits: 100) or some kind of binary status (e.g., Status: Complete).
The stats style is declared in 10-types-groups.css.
Table of contents
Rules
Stats are always a dl.stats
. You can never have any other kind of stats.
Stats always come at the end of meta and work blurbs. Stats may also appear in other contexts.
dl.stats
may appear within a dd.stats
, but it can’t be depended on. Blurbs do not use that structure, but meta does.
Property and value pairs may be given matching class names. Never give a class to the property and not the value (or vice verse).
Quick reference
- [...]
- always included
- {...}
- sometimes included
[dl stats] [dt][/dt] [dd][/dd] [/dl]
HTML diagram
This diagram is taken from work meta.
<dl class="work meta group">
<dt...
<dd...
<dt class="stats">
<dd class="stats">
<dl class="stats">
<dt class="published">
<dd class="published">
<dt class="words">
<dd class="words">
<dt class="chapters">
<dd class="chapters">
<dt class="comments">
<dd class="comments">
<dt class="kudos">
<dd class="kudos">
<dt class="hits">
<dd class="hits">