diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:00:22 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-03-31 12:00:22 -0700 |
commit | 1f3f06284193fa6da12629966e0438f5a1f75bf6 (patch) | |
tree | 89d128bd5c06e12f7ce9e3c999021cc94adc98ad /public/stylesheets/book/summary.less | |
parent | 0af1886358e79b5e9f84fcdeb7017edbc185d3c7 (diff) | |
download | gitbook-1f3f06284193fa6da12629966e0438f5a1f75bf6.zip gitbook-1f3f06284193fa6da12629966e0438f5a1f75bf6.tar.gz gitbook-1f3f06284193fa6da12629966e0438f5a1f75bf6.tar.bz2 |
Add base for generation
Diffstat (limited to 'public/stylesheets/book/summary.less')
-rw-r--r-- | public/stylesheets/book/summary.less | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/public/stylesheets/book/summary.less b/public/stylesheets/book/summary.less new file mode 100644 index 0000000..9ed73a8 --- /dev/null +++ b/public/stylesheets/book/summary.less @@ -0,0 +1,60 @@ +.book { + .book-summary { + @width: 250px; + + position: fixed; + top: 40px; + left: -@width; + bottom: 0px; + z-index: 1; + + overflow-y: auto; + + width: @width; + background: #2e3133; + color: #e2edf2; + + .transition(all 0.5s ease); + + ul.summary { + list-style: none; + margin: 0px; + padding: 0px; + + li { + &.divider { + height: 1px; + margin: 7px 0; + overflow: hidden; + background: #35393b; + } + + a { + display: block; + height: 40px; + padding: 11px 15px; + border-bottom: none; + text-transform: uppercase; + color: #e2edf2; + + &:hover { + background: #242628; + text-decoration: none; + } + } + } + } + + @media (max-width: 600px) { + width: 100%; + bottom: 0px; + left: -100%; + } + } + + &.with-summary { + .book-summary { + left: 0px; + } + } +} |