Skip to content

Commit

Permalink
Account for header offset when using internal anchors
Browse files Browse the repository at this point in the history
  • Loading branch information
eternauta1337 committed Mar 7, 2017
1 parent 5ff2dd0 commit 3ace4d1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 6 additions & 6 deletions includes/home.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# AwayJS API Documentation
AwayJS is composed of a series of modules which implement specific functionalities, allowing for a very flexible configuration of feature sets.

* [Modules](#modules)
* [Installation](#installation)
* [Feedback](#feedback)
* [Modules](#anchor_modules)
* [Installation](#anchor_installation)
* [Feedback](#anchor_feedback)

<a name="modules"></a>
<a name="anchor_modules" class="anchor"></a>
## Modules

### [core](core/)
Expand Down Expand Up @@ -35,13 +35,13 @@ Interface for scene modules, providing user interaction input / output and culli
### [parsers](parsers/)
Temporary module to hold parsers that output classes spanning multiple modules. To be split and moved to their respective module location(s) once additional refactors are in place.

<a name="installation"></a>
<a name="anchor_installation" class="anchor"></a>
## Installation

Please refer to the installation instructions found in
[awayjs-full](https://github.com/awayjs/awayjs-full).

<a name="feedback"></a>
<a name="anchor_feedback" class="anchor"></a>
## Feedback

Please let us know how you think this resource could be improved. We hear you!<br>
Expand Down
7 changes: 7 additions & 0 deletions theme/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,13 @@ ul.tsd-parameters .tsd-comment, ul.tsd-type-parameters .tsd-comment { margin-top
.tsd-sources ul, .tsd-sources p { margin: 0 !important; }
.tsd-sources ul { list-style: none; padding: 0; }

/* offset anchors to account for sticky header */
a.anchor {
display: block;
position: relative;
top: -40px;
}

.tsd-page-toolbar {
position: fixed;
z-index: 1;
Expand Down

0 comments on commit 3ace4d1

Please sign in to comment.