summaryrefslogtreecommitdiffstats
path: root/theme/stylesheets/website
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-08-09 23:45:55 -0700
committerSamy Pessé <samypesse@gmail.com>2014-08-11 07:36:51 -0700
commita54959ee4f879ea83a4a2f1e1457d0d3ca9836d5 (patch)
tree8592444f6a1fb1c8ee4f7a4566aec6dc46d14771 /theme/stylesheets/website
parent76ebca8c55970fe5492322fb4bcc7276a1eb5858 (diff)
downloadgitbook-a54959ee4f879ea83a4a2f1e1457d0d3ca9836d5.zip
gitbook-a54959ee4f879ea83a4a2f1e1457d0d3ca9836d5.tar.gz
gitbook-a54959ee4f879ea83a4a2f1e1457d0d3ca9836d5.tar.bz2
Show title on hover of header
Diffstat (limited to 'theme/stylesheets/website')
-rwxr-xr-xtheme/stylesheets/website/header.less12
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 {