From 1c5dc1e310905b063a32ee1d30ccc329a4616e4a Mon Sep 17 00:00:00 2001 From: WofWca Date: Sat, 3 Aug 2019 22:56:25 +0800 Subject: [PATCH] ui: Improve next/prev chapter links' style --- src/theme/css/chrome.css | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/theme/css/chrome.css b/src/theme/css/chrome.css index 77446a46..495f9b6a 100644 --- a/src/theme/css/chrome.css +++ b/src/theme/css/chrome.css @@ -126,7 +126,7 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta text-decoration: none; position: fixed; - top: 50px; /* Height of menu-bar */ + top: 0; bottom: 0; margin: 0; max-width: 150px; @@ -137,10 +137,14 @@ html:not(.sidebar-visible) #menu-bar:not(:hover).folded > #menu-bar-sticky-conta align-content: center; flex-direction: column; - transition: color 0.5s; + transition: color 0.5s, background-color 0.5s; } -.nav-chapters:hover { text-decoration: none; } +.nav-chapters:hover { + text-decoration: none; + background-color: var(--theme-hover); + transition: background-color 0.15s, color 0.15s; +} .nav-wrapper { margin-top: 50px;