# langref: rework the theming and layout · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/b60f2d0c9fa1d31c817ed39f87cf7619ff742dd3)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: b60f2d0c9fa1d31c817ed39f87cf7619ff742dd3

Requested commit: b60f2d0c9fa1d31c817ed39f87cf7619ff742dd3

Commit: b60f2d0c9fa1d31c817ed39f87cf7619ff742dd3

Tree: 6ae57341ea7eefcabc532178cce6c6d72d5fa1fc

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
langref: rework the theming and layout

 * Instead of the only color scheme being dark, the language reference
   now has a light theme by default, and respects the user's light/dark
   preference via prefers-color-scheme media query. Most browsers don't
   support this yet, so we just have to wait patiently for the future to
   arrive. closes #2172.

 * Instead of a side bar index, the index is inline with the rest of the
   content. This is simpler and more friendly to all user agents, and means
   we don't need the media query for mobile devices. It also makes
   back-references work, so now headers link to the table of contents
   and the table of contents links to headers.

```

## Parents

- [692086f898522ecde96742391140bca1212bf4fe](https://git.cafe/gitcafe/zig/commit/692086f898522ecde96742391140bca1212bf4fe?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/b60f2d0c9fa1d31c817ed39f87cf7619ff742dd3?format=markdown)
