mdBook/data/html-template/_stylus/sidebar.styl

65 lines
1.0 KiB
Stylus
Raw Normal View History

@require 'variables'
2015-09-19 04:13:55 +08:00
.sidebar {
position: absolute
left: 0
top: 0
bottom: 0
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
}
code {
line-height: 2em;
}
2015-09-19 04:13:55 +08:00
}
.sidebar-hidden .sidebar {
left: - $sidebar-width
}
2015-09-25 02:56:16 +08:00
.sidebar-visible .sidebar {
left: 0
}
2015-09-19 04:13:55 +08:00
.chapter {
list-style: none outside none
padding-left: 0
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
line-height: 1.9em
2015-09-19 04:13:55 +08:00
li {
text-overflow: ellipsis
overflow: hidden
white-space: nowrap
}
}