Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/stylesheets/navigation.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/* The sidebar of Get started: the Command line group, a section inside a section. From 76.25em up the theme draws a
group as a bold heading and takes the indent off the pages under it, so mise, Homebrew and the rest line up with the
pages above and below the group. Here they get the indent that the theme gives the pages of a group that folds.
The selector is the theme's own, with one more section in front: the active tab, Get started, is a section as well,
and its pages must stay where they are. */
@media screen and (min-width: 76.25em) {
[dir="ltr"] .md-nav__item--section .md-nav__item--section > .md-nav > .md-nav__list {
margin-left: 0.6rem;
}

[dir="rtl"] .md-nav__item--section .md-nav__item--section > .md-nav > .md-nav__list {
margin-right: 0.6rem;
}
}
3 changes: 2 additions & 1 deletion zensical.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ nav = [

# The Playground page's layout and script. The script comes on every page, because the site navigates without
# reloading, and does nothing where there is no playground; the formatter itself loads on the Playground only.
extra_css = ["stylesheets/playground.css"]
# navigation.css indents the pages of the Command line group in the sidebar.
extra_css = ["stylesheets/playground.css", "stylesheets/navigation.css"]
extra_javascript = ["javascripts/playground.js"]

[project.theme]
Expand Down