Skip to content

Commit

Permalink
Add table of contents.
Browse files Browse the repository at this point in the history
Closes #58.
  • Loading branch information
RubenVerborgh committed Feb 6, 2019
1 parent 2820081 commit a186561
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 0 deletions.
50 changes: 50 additions & 0 deletions _shared/styles/web-fundamentals.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.shower {
--accent: #3a2d72;
}

/* Title and title slide */
body {
padding-top: 30px !important;
Expand Down Expand Up @@ -55,6 +59,52 @@ body {
line-height: 1.5;
}

/* Navigation sidebar */

.shower.full nav {
display: none;
}

nav {
font-size: 80%;
line-height: 1.66;

position: fixed;
z-index: 10;
right: 0;
top: 50%;
transform: translate(0, -50%);
transition: .5s transform;

padding: 1em;

color: white;
background: var(--accent);

cursor: pointer;
}

nav:not(:hover) {
transform: translate(calc(100% - 1.8em), -50%);
transition: .5s .5s transform;
}

nav h2 {
letter-spacing: .1em;
font-weight: bold;
margin-bottom: .33em;
}

nav ol {
counter-reset: topic;

margin-left: 1em;
}
nav ol li:before {
counter-increment: topic;
content: counter(topic) '. '; */
}

/* General */
.slide h3 {
margin-bottom: 0;
Expand Down
11 changes: 11 additions & 0 deletions architecture/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ <h1>
</ul>
</header>

<nav>
<h2><a href="../">Overview</a></h2>
<ol>
<li><a href="../birds-eye-view/">A Bird’s-Eye View of the Web</a></li>
<li><a href="../architecture/">Web Architecture &amp; Technologies</a></li>
<li><a href="../web-apis/">Web APIs</a></li>
<li><a href="../semantic-web/">The Semantic Web &amp; Linked Data</a></li>
<li><a href="../linked-data-publishing/">Linked Data Publishing</a></li>
</ol>
</nav>

<div class="title slide" id="title">
<h2>
<a class="series" href="../">Web Fundamentals</a><br>
Expand Down
11 changes: 11 additions & 0 deletions birds-eye-view/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ <h1>
</ul>
</header>

<nav>
<h2><a href="../">Overview</a></h2>
<ol>
<li><a href="../birds-eye-view/">A Bird’s-Eye View of the Web</a></li>
<li><a href="../architecture/">Web Architecture &amp; Technologies</a></li>
<li><a href="../web-apis/">Web APIs</a></li>
<li><a href="../semantic-web/">The Semantic Web &amp; Linked Data</a></li>
<li><a href="../linked-data-publishing/">Linked Data Publishing</a></li>
</ol>
</nav>

<div class="title slide" id="title">
<h2>
<a class="series" href="../">Web Fundamentals</a><br>
Expand Down
11 changes: 11 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ <h1>
</ul>
</header>

<nav>
<h2><a href="./">Overview</a></h2>
<ol>
<li><a href="./birds-eye-view/">A Bird’s-Eye View of the Web</a></li>
<li><a href="./architecture/">Web Architecture &amp; Technologies</a></li>
<li><a href="./web-apis/">Web APIs</a></li>
<li><a href="./semantic-web/">The Semantic Web &amp; Linked Data</a></li>
<li><a href="./linked-data-publishing/">Linked Data Publishing</a></li>
</ol>
</nav>

<div class="title slide" id="title">
<h2>
<a class="series" href="#title">Web Fundamentals</a><br>
Expand Down
11 changes: 11 additions & 0 deletions linked-data-publishing/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ <h1>
</ul>
</header>

<nav>
<h2><a href="../">Overview</a></h2>
<ol>
<li><a href="../birds-eye-view/">A Bird’s-Eye View of the Web</a></li>
<li><a href="../architecture/">Web Architecture &amp; Technologies</a></li>
<li><a href="../web-apis/">Web APIs</a></li>
<li><a href="../semantic-web/">The Semantic Web &amp; Linked Data</a></li>
<li><a href="../linked-data-publishing/">Linked Data Publishing</a></li>
</ol>
</nav>

<div class="title slide" id="title">
<h2>
<a class="series" href="../">Web Fundamentals</a><br>
Expand Down
11 changes: 11 additions & 0 deletions semantic-web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ <h1>
</ul>
</header>

<nav>
<h2><a href="../">Overview</a></h2>
<ol>
<li><a href="../birds-eye-view/">A Bird’s-Eye View of the Web</a></li>
<li><a href="../architecture/">Web Architecture &amp; Technologies</a></li>
<li><a href="../web-apis/">Web APIs</a></li>
<li><a href="../semantic-web/">The Semantic Web &amp; Linked Data</a></li>
<li><a href="../linked-data-publishing/">Linked Data Publishing</a></li>
</ol>
</nav>

<div class="title slide" id="title">
<h2>
<a class="series" href="../">Web Fundamentals</a><br>
Expand Down
11 changes: 11 additions & 0 deletions web-apis/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ <h1>
</ul>
</header>

<nav>
<h2><a href="../">Overview</a></h2>
<ol>
<li><a href="../birds-eye-view/">A Bird’s-Eye View of the Web</a></li>
<li><a href="../architecture/">Web Architecture &amp; Technologies</a></li>
<li><a href="../web-apis/">Web APIs</a></li>
<li><a href="../semantic-web/">The Semantic Web &amp; Linked Data</a></li>
<li><a href="../linked-data-publishing/">Linked Data Publishing</a></li>
</ol>
</nav>

<div class="title slide" id="title">
<h2>
<a class="series" href="../">Web Fundamentals</a><br>
Expand Down

0 comments on commit a186561

Please sign in to comment.