Skip to content

Commit

Permalink
Updated website table of contents styles (#1681)
Browse files Browse the repository at this point in the history
The TOC will now be located at the bottom left and be more friendly to smaller screens.
  • Loading branch information
lukasoppermann authored and RunDevelopment committed Jan 3, 2019
1 parent 55fb0f8 commit efdd96c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 2 additions & 2 deletions faq.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
position: static;
max-width: 900px;
font-size: 100%;
opacity: 1;
color: black;
}
</style>
<script src="prefixfree.min.js"></script>
Expand Down Expand Up @@ -179,4 +179,4 @@ <h1>How can I use different highlighting for tokens with the same name in differ
<script src="code.js"></script>

</body>
</html>
</html>
14 changes: 10 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,15 @@ footer {

#toc {
position: fixed;
left: 1%;
max-width: calc(48% - 450px);
bottom: 15px;
max-width: calc(50% - 450px - 40px);
font-size: 80%;
opacity: .3;
z-index: 999;
background: white;
color: rgba(0,0,0,.5);
padding: 0 10px 10px;
border-radius: 0 3px 3px 0;
box-sizing: border-box;
}

@media (max-width: 1200px) {
Expand All @@ -345,11 +350,12 @@ footer {
}

#toc:hover {
opacity: 1;
color: rgba(0,0,0,1);
}

#toc h1 {
font-size: 180%;
margin-top: .75rem;
}

#toc li {
Expand Down

0 comments on commit efdd96c

Please sign in to comment.