Skip to content

Commit 764d83c

Browse files
authored
Merge pull request #949 from swierczek/sidebar-line-height
Update sidebar line height and spacing
2 parents d0437fd + c4a4811 commit 764d83c

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,12 @@ To build the theme assets, run `npm run buildAssets`. You can also dynamically r
3232

3333
### Viewing local changes
3434

35-
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.
35+
There are 2 options for viewing your local changes.
36+
37+
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/).
38+
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.
39+
40+
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).
3641

3742
## Using DocSearch Locally
3843

theme/_assets/default.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme/assets-src/styles/sidebar.less

+4-3
Original file line numberDiff line numberDiff line change
@@ -126,22 +126,23 @@
126126
}
127127
// All nested lists
128128
.sidebar-toc li ul {
129-
margin: 8px 0 0 1em;
129+
margin: 18px 0 0 1em;
130130
padding-left: 1em;
131131
border-left: 1px solid rgb(226, 229, 238);
132132
}
133133

134134
// All items
135135
.sidebar-toc li {
136-
margin-bottom: 5px;
136+
margin-bottom: 13px;
137137
color: @dark-grey;
138138
padding-right: @p-sm;
139139
}
140140

141141
// First level items
142142
.sidebar-toc > ul > li {
143-
margin: 0 0 10px 0;
143+
margin: 0 0 18px 0;
144144
font-size: 0.95em;
145+
line-height: 1.14em;
145146
}
146147
.sidebar-toc > ul > li > a {
147148
color: rgb(117, 118, 152);

0 commit comments

Comments
 (0)