Skip to content

Instantly share code, notes, and snippets.

@fomenyesu
Created April 21, 2016 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fomenyesu/39b1fe7bb48fd95ad2ab47fd3d8640ab to your computer and use it in GitHub Desktop.
Save fomenyesu/39b1fe7bb48fd95ad2ab47fd3d8640ab to your computer and use it in GitHub Desktop.
.toc {
font-size: 14px;
position: fixed;
top: 0px;
left: -330px;
width: 400px;
height: 100%;
overflow-x: scroll;
overflow-y: scroll;
padding: 0 0 0 100px;
box-shadow: 1px 0 3px rgba(0,0,0,0.25);
transition: all .66s ease-in-out;
opacity: .4;
}
.toc:hover {
left: -120px;
transition: all .2s ease-in-out;
opacity: .8;
}
.toc:before {
content: '目录';
padding-right: 4px;
float: right;
font-size: 16px;
font-weight: bold;
}
.toc:hover:before {
display: none;
}
.toc ul {
list-style-type: none;
}
body {
width: 80%;
margin-left: 19%;
}
@fomenyesu
Copy link
Author

this is a toc style for markdown. It create a left menu for you markdown document.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment