feat(TOC): Table of Contents

post(typoclassopedia): alternative formulations for Applicative
This commit is contained in:
Mahdi Dibaiee
2017-10-06 18:41:43 +03:30
parent c4d343b3fd
commit ae6b5b2be7
7 changed files with 399 additions and 3 deletions

29
_sass/toc.scss Normal file
View File

@ -0,0 +1,29 @@
#toc-container {
h2 {
display: inline-block;
}
input, input + span {
margin-left: 1rem;
}
input {
position: absolute;
width: 50px;
height: 20px;
opacity: 0;
margin-top: 10px;
}
input + span::before {
content: '[hide]';
}
input:checked ~ ul {
display: none;
}
input:checked + span::before {
content: '[show]';
}
}