mdBook/data/_html-template/_stylus/sidebar.styl
Gambhiro c021940331 translation links
rename with _
translation links
css for translation links
2017-01-10 16:36:08 +00:00

65 lines
1.0 KiB
Stylus

@require 'variables'
.sidebar {
position: absolute
left: 0
top: 0
bottom: 0
width: $sidebar-width
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) {
left: - $sidebar-width
}
code {
line-height: 2em;
}
}
.sidebar-hidden .sidebar {
left: - $sidebar-width
}
.sidebar-visible .sidebar {
left: 0
}
.chapter {
list-style: none outside none
padding-left: 0
line-height: 2.2em
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
li {
text-overflow: ellipsis
overflow: hidden
white-space: nowrap
}
}