Skip to content

Instantly share code, notes, and snippets.

@atenami
Created August 14, 2017 13:26
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 atenami/a3c9674eff715c991824680c3c67f568 to your computer and use it in GitHub Desktop.
Save atenami/a3c9674eff715c991824680c3c67f568 to your computer and use it in GitHub Desktop.
<style type="text/css">
.table-of-contents {
position: relative;
background-color: #ECEEF1;
padding: 40px 10px 10px 35px !important;
border-radius: 6px;
font-size: 14px;
line-height: 28px;
}
.table-of-contents::before {
content: ‘もくじ’;
position: absolute;
display: block;
text-align: center;
top: 8px;
left: 45%;
margin-left: -1em;
font-size: 18px;
font-weight: 700;
z-index: 2;
}
/* ### 目次周りの余白を調節する ### */
.entry-content ol,.entry-content ul {
margin: 0 0 0 0 !important;
padding: 0 0 0 18px;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment