Skip to content
中文

Timeline

A run of events in time order, each node a phase of the moon.

Demo

  1. 写完初稿

    11 月 9 日,已完成十月初一

    共 2,140 字,分三节。

  2. 配图

    11 月 12 日,已完成十月初四

  3. 修改

    进行中

    第二节还要补一段引文。

  4. 发布

    计划在 11 月 22 日小雪

  1. Finish the first draft

    Nov 9, done

    2,140 words in three sections.

  2. Add images

    Nov 12, done

  3. Revise

    In progress

    Section two still needs a quotation.

  4. Publish

    Planned for Nov 22

Usage

An <ol class="hao-timeline">; each <li> holds a .hao-moon, the .hao-timeline__title, the .hao-timeline__meta, and an optional .hao-timeline__body. The current item takes aria-current="step".

  • The moon phase is the state: finished is a full moon (--p:1 with hao-moon--done, in bamboo green), in progress a half moon (--p:.5), not started an empty moon (--p:0). When you know the exact progress, write the true value.
  • The state also appears in the meta (“Done”, “In progress”), not just in the moon and the color.
  • Newest on top or on bottom—settle on one across the product. Logs (an action history) put the newest on top; plans (project progress) put the earliest on top.
  • Each item’s title is a noun phrase, its description at most two lines.
  • A horizontal flow with only a few steps uses steps instead.
  • After the date can come a small gold-ink line, .hao-timeline__lunar, holding the lunar date or the solar term (“十月初一”, “Minor Snow (小雪)”). Generate it from calendar data—never write it by hand. English interfaces leave it out.