hide the sidebar for mobile screen

This commit is contained in:
geekplux 2016-06-09 02:04:08 +08:00
parent a888cad011
commit 2bb57ea40f
1 changed files with 47 additions and 1 deletions

View File

@ -1034,4 +1034,50 @@ h2.footnotes{
/* padding: 10px 20px 10px 60px; */
padding: 9px 12px;
margin-bottom: 24px;
font-family:"Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif}
font-family:"Roboto Slab","ff-tisa-web-pro","Georgia",Arial,sans-serif
}
/******** responsive for sidebar *******/
#toggle-sidebar {
display: none;
}
@media screen and (max-width: 768px) {
#table-of-contents {
display: none;
width: 60%;
}
#table-of-contents h2 a {
display: block;
}
#table-of-contents:target {
display: block;
}
#copyright, #postamble {
display: none;
}
#toggle-sidebar {
display: block;
background-color: #E0D6E9;
text-align: center;
padding: 0.6em;
margin-bottom: 0.6em;
}
#toggle-sidebar h2 {
margin: 0;
padding: 0;
}
}
/******** End responsive for sidebar *******/