diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-08 22:14:24 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 07:36:47 -0700 |
commit | 046b789fa81e91f654f494c5abca8a6d4181f744 (patch) | |
tree | 55335849fe196b883a4355acc70d4478eb73bd0c /theme/stylesheets | |
parent | cd50a1402f6ce05735259673a20d6c3eff408fe6 (diff) | |
download | gitbook-046b789fa81e91f654f494c5abca8a6d4181f744.zip gitbook-046b789fa81e91f654f494c5abca8a6d4181f744.tar.gz gitbook-046b789fa81e91f654f494c5abca8a6d4181f744.tar.bz2 |
Fix navigation links position
Diffstat (limited to 'theme/stylesheets')
-rwxr-xr-x | theme/stylesheets/website/body.less | 8 | ||||
-rwxr-xr-x | theme/stylesheets/website/navigation.less | 2 | ||||
-rwxr-xr-x | theme/stylesheets/website/summary.less | 2 | ||||
-rw-r--r-- | theme/stylesheets/website/variables.less | 1 |
4 files changed, 7 insertions, 6 deletions
diff --git a/theme/stylesheets/website/body.less b/theme/stylesheets/website/body.less index 184351b..e65ead4 100755 --- a/theme/stylesheets/website/body.less +++ b/theme/stylesheets/website/body.less @@ -13,15 +13,15 @@ color: @page-color; background: @body-background; - .transition(left 0.5s ease); + .transition(left @sidebar-transition-duration ease); .body-inner { - /*position: absolute; + position: absolute; top: 0px; right: 0px; left: 0px; bottom: 0px; - overflow-y: auto;*/ + overflow-y: auto; } .page-wrapper { @@ -53,7 +53,7 @@ } @media (max-width: @mobileMaxWidth) { - .transition-transform(0.5s ease); + .transition-transform(@sidebar-transition-duration ease); } } diff --git a/theme/stylesheets/website/navigation.less b/theme/stylesheets/website/navigation.less index f3848f3..15da0c4 100755 --- a/theme/stylesheets/website/navigation.less +++ b/theme/stylesheets/website/navigation.less @@ -1,7 +1,7 @@ .book .book-body { .navigation { position: absolute; - top: 0px; + top: @header-height; bottom: 0px; margin: 0; max-width: 150px; diff --git a/theme/stylesheets/website/summary.less b/theme/stylesheets/website/summary.less index 1b6513a..baf3141 100755 --- a/theme/stylesheets/website/summary.less +++ b/theme/stylesheets/website/summary.less @@ -13,7 +13,7 @@ background: @sidebar-background; border-right: 1px solid @sidebar-border; - .transition(left 0.5s ease); + .transition(left @sidebar-transition-duration ease); .book-search { padding: @sidebar-search-padding; diff --git a/theme/stylesheets/website/variables.less b/theme/stylesheets/website/variables.less index a234bb1..01eb9ed 100644 --- a/theme/stylesheets/website/variables.less +++ b/theme/stylesheets/website/variables.less @@ -114,6 +114,7 @@ @body-background-2: #1d1f21; // Sidebar +@sidebar-transition-duration: 250ms; @sidebar-color-1: #AFA790; @sidebar-color-2: hsl(207, 15%, 80%); @sidebar-background-1: #111; |