diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-03-31 17:38:26 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-03-31 17:38:28 -0700 |
commit | 91a916e1468d8b775facb11c5b5c35dcb19d37d9 (patch) | |
tree | b8b0e6ea7bcc0fa61d5297320082d1913db23146 /assets/stylesheets | |
parent | 752b26e963a231a55ffd3fe60e789635d4e9e6d6 (diff) | |
download | gitbook-91a916e1468d8b775facb11c5b5c35dcb19d37d9.zip gitbook-91a916e1468d8b775facb11c5b5c35dcb19d37d9.tar.gz gitbook-91a916e1468d8b775facb11c5b5c35dcb19d37d9.tar.bz2 |
Improve navigation on mobile resolutions
Diffstat (limited to 'assets/stylesheets')
-rw-r--r-- | assets/stylesheets/book/footer.less | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/assets/stylesheets/book/footer.less b/assets/stylesheets/book/footer.less index 7d3635a..3e1652b 100644 --- a/assets/stylesheets/book/footer.less +++ b/assets/stylesheets/book/footer.less @@ -20,17 +20,50 @@ .opacity(0.4); text-transform: uppercase; .transition(opacity 0.5s ease); + max-width: 40%; + min-width: 30px; + height: 80px; + display: inline-block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; - padding: 0px 30px; + padding: 0px 40px; + position: relative; + + i { + position: absolute; + top: 0px; + line-height: 80px; + } + + span { + + } + + &.prev { + i { + left: 0px; + } + } + + &.next { + i { + right: 0px; + } + } &:hover { text-decoration: none; .opacity(1); } + + @media (max-width: 600px) { + span { + display: none; + } + } } } } |