Skip to content

Commit f2fc5c5

Browse files
apooravcastrofrog
authored andcommitted
Fix for astropy#77
1 parent ab760ca commit f2fc5c5

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
lines changed

about.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676

7777
<section>
78-
<h1>About The Astropy Project</h1>
78+
<h1 id="about-the-astropy-project">About The Astropy Project<a class="paralink" href="#about-the-astropy-project" title="Permalink to this headline"></a></h1>
7979

8080
<p> The Astropy Project is a community effort to develop a core package
8181
for astronomy using the
@@ -104,7 +104,7 @@ <h1>About The Astropy Project</h1>
104104
</section>
105105

106106
<section>
107-
<h1><i>astropy</i> Core Package</h1>
107+
<h1 id="astropy-core-package"><i>astropy</i> Core Package<a class="paralink" href="#astropy-core-package" title="Permalink to this headline"></a></h1>
108108

109109
<p>The <i>astropy</i> package (alternatively known as the "core" package)
110110
contains various classes, utilities, and a packaging framework intended
@@ -119,7 +119,7 @@ <h1><i>astropy</i> Core Package</h1>
119119
</section>
120120

121121
<section>
122-
<h1>Affiliated Packages</h1>
122+
<h1 id="affiliated-packages">Affiliated Packages<a class="paralink" href="#affiliated-packages" title="Permalink to this headline"></a></h1>
123123

124124
<p>The Astropy project includes the concept of "affiliated packages." An
125125
affiliated package is an astronomy-related python package that is not
@@ -161,14 +161,14 @@ <h1>Affiliated Packages</h1>
161161
<section>
162162
<a name="license"></a>
163163

164-
<h1>License</h1>
164+
<h1 id="license">License<a class="paralink" href="#license" title="Permalink to this headline"></a></h1>
165165

166166
<p>Astropy is licensed under a <a href="http://opensource.org/licenses/BSD-3-Clause">three-clause BSD license</a>. For details, see the <a href="https://github.com/astropy/astropy/blob/master/LICENSE.rst" target="_blank">LICENSE.rst</a> file in the astropy repository.</p>
167167
</section>
168168

169169
<section>
170170

171-
<h1>Fiscal Sponsor</h1>
171+
<h1 id="fiscal-sponsor">Fiscal Sponsor<a class="paralink" href="#fiscal-sponsor" title="Permalink to this headline"></a></h1>
172172

173173
<p>The Astropy Project is fiscally sponsored by <a href="http://www.numfocus.org/">NumFOCUS</a></p>
174174
<a href="https://www.numfocus.org"><img width="299" src="images/Numfocus_stamp.png"></a>

css/style.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,19 @@ a:hover{
126126
color:#333;
127127
}
128128

129+
a.paralink{
130+
font-size: 0.8em;
131+
padding: 0 4px 0 4px;
132+
text-decoration: none;
133+
visibility: hidden;
134+
}
135+
136+
a.paralink:hover{
137+
background-color: #FF5000;
138+
color: white;
139+
text-decoration: none;
140+
}
141+
129142
h1{
130143
font-size: 24px;
131144
margin-top: 10px;

js/functions.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ $( document ).ready(function(){
216216
});
217217
});
218218
});
219+
220+
//making permalink visible only when user moves cursor on headline, otherwise hidden
221+
$("h1").hover(function() {
222+
$(this).children("a").css("visibility", "visible");
223+
}, function() {
224+
$(this).children("a").css("visibility", "hidden");
225+
});
219226
}); // Document Ready
220227

221228

0 commit comments

Comments
 (0)