forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ToC will now show deeper heading levels as needed, and gives some visual indication of where you are on the page. This helps a ton with browsing around and referencing different parts of the docs. Signed-off-by: Patrick East <east.patrick@gmail.com>
- Loading branch information
1 parent
224e804
commit 9383de1
Showing
5 changed files
with
47 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,27 @@ | ||
.toc-link::before | ||
background-color: #EEE | ||
content: ' ' | ||
display: inline-block | ||
height: inherit | ||
left: 0 | ||
margin-top: .1rem | ||
position: absolute | ||
width: 2px | ||
|
||
.is-active-link::before | ||
background-color: $primary | ||
|
||
.toc | ||
a | ||
color: $primary | ||
color: #737373 | ||
|
||
&:hover | ||
color: $dark | ||
|
||
li | ||
line-height: 110% | ||
|
||
+desktop | ||
margin: .5rem 0 1rem 1rem | ||
font-size: .9rem | ||
|
||
li + li | ||
margin-top: .6rem | ||
|
||
+touch | ||
margin: .4rem 0 .75rem .8rem | ||
font-size: .75rem | ||
|
||
li + li | ||
margin-top: .4rem | ||
|
||
ul li ul li ul li | ||
display: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.7.0/tocbot.min.js"></script> | ||
{{ $app := resources.Get "js/app.js" | fingerprint }} | ||
<script src="{{ $app.RelPermalink }}" integrity="{{ $app.Data.Integrity }}"></script> | ||
<script src="/js/anchor.min.js"></script> |