diff options
author | Erika Reinhardt <embreinhardt@gmail.com> | 2014-05-14 11:01:57 -0700 |
---|---|---|
committer | Erika Reinhardt <embreinhardt@gmail.com> | 2014-05-14 11:01:57 -0700 |
commit | 612f9a6dc7422e2f9979ff12ea495abf3bcb7348 (patch) | |
tree | a9b4d2e2d484017d88957779198e54d5bb4708ac /theme/stylesheets | |
parent | 0f38385c7d9138f0695a2814be9f0a76dbfab0aa (diff) | |
download | gitbook-612f9a6dc7422e2f9979ff12ea495abf3bcb7348.zip gitbook-612f9a6dc7422e2f9979ff12ea495abf3bcb7348.tar.gz gitbook-612f9a6dc7422e2f9979ff12ea495abf3bcb7348.tar.bz2 |
Add LESS variable for sidebar full-width breakpoint
Diffstat (limited to 'theme/stylesheets')
-rwxr-xr-x | theme/stylesheets/book/body.less | 2 | ||||
-rwxr-xr-x | theme/stylesheets/book/summary.less | 2 | ||||
-rwxr-xr-x | theme/stylesheets/variables.less | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/theme/stylesheets/book/body.less b/theme/stylesheets/book/body.less index bf04ec2..12986a8 100755 --- a/theme/stylesheets/book/body.less +++ b/theme/stylesheets/book/body.less @@ -84,7 +84,7 @@ } &.with-summary { - @media (min-width: 800px) { + @media (min-width: @sidebar-breakpoint) { .book-body { left: 250px; } diff --git a/theme/stylesheets/book/summary.less b/theme/stylesheets/book/summary.less index e3429bb..7fb8ee6 100755 --- a/theme/stylesheets/book/summary.less +++ b/theme/stylesheets/book/summary.less @@ -110,7 +110,7 @@ } } - @media (max-width: 600px) { + @media (max-width: @sidebar-breakpoint) { width: 100%; bottom: 0px; left: -100%; diff --git a/theme/stylesheets/variables.less b/theme/stylesheets/variables.less index 36fc195..fda6b13 100755 --- a/theme/stylesheets/variables.less +++ b/theme/stylesheets/variables.less @@ -17,6 +17,7 @@ // Sidebar @sidebar-width: 250px; +@sidebar-breakpoint: 600px; @sidebar-color: hsl(207, 15%, 80%); @sidebar-background: hsl(207, 15%, 95%); |