Fix offset when jumping to anchors

Fixes #583
This commit is contained in:
Steve Purcell 2013-03-14 09:56:51 +00:00
parent fd8a8510a6
commit 2416ef38e5

View file

@ -52,6 +52,11 @@
.navbar, .navbar .brand, .navbar a, .navbar .nav>li>a {
color: #922793;
}
a[name] { /* Stop navbar from hiding anchors */
padding-top: 60px;
margin-top: -60px;
display: inline-block; /* required for webkit browsers */
}
</style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
@ -99,7 +104,8 @@
</div>
</div>
<section>
<h2 id="packages">Current List of <%=h packages.size %> Packages</h2>
<a name="packages"></a>
<h2>Current List of <%=h packages.size %> Packages</h2>
<table class="table table-bordered table-hover">
<thead>
<tr class="header">
@ -129,7 +135,8 @@
</table>
</section>
<section>
<h2 id="installing">Installing</h2>
<a name="installing"></a>
<h2>Installing</h2>
<p>To add the repository put this before the call to <code>package-initialize</code> in your <code>init.el</code> file.</p>
<!-- <script src="https://gist.github.com/1679158.js"> </script> -->
@ -139,7 +146,7 @@
Please read about <a href="#known-issues">known issues</a>
below before attempting to install multiple packages at once.
</p>
<h3 id="customizations">Customizations</h3>
<h3>Customizations</h3>
<p>
There is currently no way in <code>package.el</code> to
exclude or include versions. So to remedy this there is
@ -188,7 +195,8 @@
</dl>
</section>
<section>
<h2 id="known-issues">Known Issues</h2>
<a name="known-issues"></a>
<h2>Known Issues</h2>
<p>
<strong>Note:</strong> <em>These fixes are included in
the <code>melpa.el</code> package.</em>
@ -206,7 +214,8 @@
(print requirements))</code></pre>
</section>
<section>
<h2 id="updating">Updating Packages</h2>
<a name="updating"></a>
<h2>Updating Packages</h2>
<p>
<code>package.el</code> now includes a mechanism to upgrade
packages. After running <code>package-list-packages</code>,
@ -221,7 +230,8 @@
and delete packages that are installed multiple times. This
can happen when the install times out.
</p>
<h2 id="development">Development</h2>
<a name="development"></a>
<h2>Development</h2>
<p><a href="https://github.com/milkypostman/melpa">https://github.com/milkypostman/melpa</a></p>
<p>
Contributions are welcome. Currently, the builder supports