diff options
author | Samy Pessé <samypesse@gmail.com> | 2014-08-09 23:45:55 -0700 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2014-08-11 07:36:51 -0700 |
commit | a54959ee4f879ea83a4a2f1e1457d0d3ca9836d5 (patch) | |
tree | 8592444f6a1fb1c8ee4f7a4566aec6dc46d14771 /theme/stylesheets/website | |
parent | 76ebca8c55970fe5492322fb4bcc7276a1eb5858 (diff) | |
download | gitbook-a54959ee4f879ea83a4a2f1e1457d0d3ca9836d5.zip gitbook-a54959ee4f879ea83a4a2f1e1457d0d3ca9836d5.tar.gz gitbook-a54959ee4f879ea83a4a2f1e1457d0d3ca9836d5.tar.bz2 |
Show title on hover of header
Diffstat (limited to 'theme/stylesheets/website')
-rwxr-xr-x | theme/stylesheets/website/header.less | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/theme/stylesheets/website/header.less b/theme/stylesheets/website/header.less index 9c6d9ca..f22bb1e 100755 --- a/theme/stylesheets/website/header.less +++ b/theme/stylesheets/website/header.less @@ -33,13 +33,15 @@ h1 { margin: 0px; font-size: 20px; + font-weight: 200; text-align: center; line-height: @header-height; - display: none; + opacity: 0; + .transition(opacity ease 0.4s); padding-left: 200px; padding-right: 200px; - .transition(margin-left 0.5s ease); + .transition(opacity 0.2s ease); overflow: hidden; text-overflow: ellipsis; @@ -58,6 +60,12 @@ display: none; } } + + &:hover { + h1 { + opacity: 1; + } + } } &.is-loading { |