customize sidebar and navbar via markdown file, #6 (#8)

* Refactor: use iife

* Feat: customize sidebar and navbar via markdown file, #6

* Add changelog
This commit is contained in:
cinwell.li 2016-11-29 01:07:47 +08:00 • committed by GitHub
commit 35d3bd1647
16 changed files with 625 additions and 333 deletions

View file

@ -105,7 +105,7 @@ main {
overflow-y: auto;
position: absolute;
top: 0;
width: 14em;
width: 16em;
z-index: 1;
padding-top: 40px;
}
@ -141,7 +141,7 @@ main {
/* main content */
.content {
bottom: 0;
left: 14em;
left: 16em;
overflow-y: auto;
position: absolute;
right: 0;
@ -152,7 +152,7 @@ main {
@media screen and (max-width: 600px) {
.sidebar {
left: -14em;
left: -16em;
}
.content {
@ -164,7 +164,7 @@ main {
.markdown-section {
position: relative;
margin: 0 auto;
max-width: 64em;
max-width: 60em;
padding: 20px 15px 40px 15px;
}

View file

@ -21,6 +21,11 @@ nav {
text-align: right;
}
nav ul, nav li {
list-style: none;
display: inline-block;
}
nav a {
margin: 0 1em;
padding: 5px 0;
@ -118,10 +123,13 @@ main {
list-style: none;
}
.sidebar li {
margin: 12px 15px;
}
.sidebar ul li a {
color: #7f8c8d;
display: block;
padding: 6px 15px;
border-bottom: none;
text-overflow: ellipsis;
overflow: hidden;
@ -138,10 +146,6 @@ main {
font-weight: 500;
}
.sidebar ul li ul {
padding-left: 20px;
}
/* main content */
.content {
bottom: 0;