Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sidebar line height and spacing #949

Merged
merged 1 commit into from
Mar 26, 2025
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
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ To build the theme assets, run `npm run buildAssets`. You can also dynamically r

### Viewing local changes

Manually load `/build/index.html` in your browser to view your local build. For example, `file:///Users/<username>/Documents/ExpressionEngine-User-Guide/build/index.html`. You can use the side navigation to navigate to different local files, but the search functionality always takes you to the live version at docs.expressionengine.com.
There are 2 options for viewing your local changes.

1. Run `npx http-server -o` which should make the site available at [http://127.0.0.1:8080/build/](http://127.0.0.1:8080/build/).
2. Manually view any HTML file in `/build/` in your browser. For example, `file:///Users/<username>/Documents/ExpressionEngine-User-Guide/build/index.html` to view the home page.

You can use the side navigation to navigate to different local files, but the search functionality takes you to the live version at [https://docs.expressionengine.com](https://docs.expressionengine.com) unless you follow the steps at [Using DocSearch Locally](#using-docsearch-locally).

## Using DocSearch Locally

Expand Down
2 changes: 1 addition & 1 deletion theme/_assets/default.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions theme/assets-src/styles/sidebar.less
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,23 @@
}
// All nested lists
.sidebar-toc li ul {
margin: 8px 0 0 1em;
margin: 18px 0 0 1em;
padding-left: 1em;
border-left: 1px solid rgb(226, 229, 238);
}

// All items
.sidebar-toc li {
margin-bottom: 5px;
margin-bottom: 13px;
color: @dark-grey;
padding-right: @p-sm;
}

// First level items
.sidebar-toc > ul > li {
margin: 0 0 10px 0;
margin: 0 0 18px 0;
font-size: 0.95em;
line-height: 1.14em;
}
.sidebar-toc > ul > li > a {
color: rgb(117, 118, 152);
Expand Down