2015-09-24 22:47:33 +08:00
|
|
|
@require 'variables'
|
|
|
|
|
2015-09-19 04:13:55 +08:00
|
|
|
.sidebar {
|
|
|
|
position: absolute
|
|
|
|
left: 0
|
|
|
|
top: 0
|
|
|
|
bottom: 0
|
2015-09-24 22:47:33 +08:00
|
|
|
width: $sidebar-width
|
2015-09-19 04:13:55 +08:00
|
|
|
overflow-y: auto
|
|
|
|
padding: 10px 10px
|
|
|
|
font-size: 0.875em
|
|
|
|
box-sizing: border-box
|
|
|
|
-webkit-overflow-scrolling: touch
|
|
|
|
|
|
|
|
// Animation: slide away
|
|
|
|
transition: left 0.5s
|
|
|
|
|
|
|
|
@media only screen and (max-width: 1060px) {
|
2015-09-25 02:56:16 +08:00
|
|
|
left: - $sidebar-width
|
2015-09-19 04:13:55 +08:00
|
|
|
}
|
2015-12-30 07:50:22 +08:00
|
|
|
|
|
|
|
code {
|
|
|
|
line-height: 2em;
|
|
|
|
}
|
2015-09-19 04:13:55 +08:00
|
|
|
}
|
|
|
|
|
2015-09-24 22:47:33 +08:00
|
|
|
.sidebar-hidden .sidebar {
|
|
|
|
left: - $sidebar-width
|
|
|
|
}
|
|
|
|
|
2015-09-25 02:56:16 +08:00
|
|
|
.sidebar-visible .sidebar {
|
2015-09-24 22:47:33 +08:00
|
|
|
left: 0
|
|
|
|
}
|
|
|
|
|
2015-09-19 04:13:55 +08:00
|
|
|
.chapter {
|
|
|
|
list-style: none outside none
|
|
|
|
padding-left: 0
|
2016-09-04 23:04:55 +08:00
|
|
|
line-height: 2.2em
|
2015-09-19 04:13:55 +08:00
|
|
|
|
|
|
|
li a {
|
|
|
|
padding: 5px 0
|
|
|
|
text-decoration: none
|
|
|
|
|
|
|
|
&:hover { text-decoration: none }
|
|
|
|
}
|
|
|
|
|
|
|
|
.spacer {
|
|
|
|
width: 100%
|
|
|
|
height: 3px
|
|
|
|
margin: 10px 0px
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.section {
|
|
|
|
list-style: none outside none
|
|
|
|
padding-left: 20px
|
2016-09-04 23:04:55 +08:00
|
|
|
line-height: 1.9em
|
2015-09-19 04:13:55 +08:00
|
|
|
|
|
|
|
li {
|
|
|
|
text-overflow: ellipsis
|
|
|
|
overflow: hidden
|
|
|
|
white-space: nowrap
|
|
|
|
}
|
|
|
|
}
|