From 91b0a99d81d218452f3a0b767b40a4d9e9218018 Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Mon, 3 Aug 2015 18:17:39 +0200 Subject: [PATCH] Fix bug in menu-bar title, again... Because I didn't solve it previously --- book-example/book/book.css | 5 +++-- src/theme/book.css | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/book-example/book/book.css b/book-example/book/book.css index da44f461..8a324b8a 100644 --- a/book-example/book/book.css +++ b/book-example/book/book.css @@ -115,6 +115,8 @@ html, body { } .menu-bar i { + position: relative; + z-index: 10; line-height: 50px; -webkit-transition: color 0.5s; /* Safari */ -o-transition: color 0.5s; /* Opera */ @@ -128,7 +130,6 @@ html, body { } .menu-title { - z-index: -999; color: #7E7E7E; display: inline-block; font-weight: 200; @@ -149,7 +150,7 @@ html, body { transition: opacity 0.5s ease-in-out; } -.menu-title:hover { +.menu-bar:hover .menu-title { color: #7E7E7E; opacity: 1; } diff --git a/src/theme/book.css b/src/theme/book.css index da44f461..8a324b8a 100644 --- a/src/theme/book.css +++ b/src/theme/book.css @@ -115,6 +115,8 @@ html, body { } .menu-bar i { + position: relative; + z-index: 10; line-height: 50px; -webkit-transition: color 0.5s; /* Safari */ -o-transition: color 0.5s; /* Opera */ @@ -128,7 +130,6 @@ html, body { } .menu-title { - z-index: -999; color: #7E7E7E; display: inline-block; font-weight: 200; @@ -149,7 +150,7 @@ html, body { transition: opacity 0.5s ease-in-out; } -.menu-title:hover { +.menu-bar:hover .menu-title { color: #7E7E7E; opacity: 1; }