mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-09-28 17:19:01 +02:00
comment nav
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -23,6 +23,7 @@ var Navigation = React.createClass({
|
||||
<navigation className={ this.props.compact ? "compact" : null }>
|
||||
<ul className="navigation">
|
||||
{ sectionPages.map(this.generateNavItem) }
|
||||
<li><a href="#comments">Comments and questions</a></li>
|
||||
</ul>
|
||||
</navigation>
|
||||
</div>
|
||||
|
14
index.html
14
index.html
@@ -68,7 +68,21 @@
|
||||
</div>
|
||||
</article>
|
||||
|
||||
<section id="comments">
|
||||
<style>
|
||||
#comments {
|
||||
margin-top: 0px;
|
||||
width: calc(960px + 2em);
|
||||
border-top: 1px solid rgba(255, 0, 0, 0.5);
|
||||
padding-top: 3em;
|
||||
}
|
||||
</style>
|
||||
<h2>Comments and questions</h2>
|
||||
<div id="disqus_thread"></div>
|
||||
</section>
|
||||
|
||||
<!-- Disqus commenting -->
|
||||
<script src="lib/site/disqus.js" async></script>
|
||||
|
||||
<!-- referral tracking, because I like knowing who's linking to my book -->
|
||||
<script src="lib/site/referrer.js" async></script>
|
||||
|
@@ -14,9 +14,12 @@ navigation {
|
||||
padding: 0.5em 1em;
|
||||
|
||||
li {
|
||||
&:nth-child(n+2):before {
|
||||
&:nth-child(n+2)[data-number]:before {
|
||||
content: "§" attr(data-number) ". "
|
||||
}
|
||||
&:nth-child(n+2):not([data-number]) {
|
||||
margin: 5px 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -75,9 +75,12 @@ navigation ul {
|
||||
margin: 0;
|
||||
padding: 0.5em 1em;
|
||||
}
|
||||
navigation ul li:nth-child(n+2):before {
|
||||
navigation ul li:nth-child(n+2)[data-number]:before {
|
||||
content: "§" attr(data-number) ". ";
|
||||
}
|
||||
navigation ul li:nth-child(n+2):not([data-number]) {
|
||||
margin: 5px 0;
|
||||
}
|
||||
navigation.compact {
|
||||
width: 100%;
|
||||
border: none;
|
||||
|
Reference in New Issue
Block a user