aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/css/display.css
diff options
context:
space:
mode:
Diffstat (limited to 'ext/mixed/css/display.css')
-rw-r--r--ext/mixed/css/display.css6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css
index b9215af4..325cc8e7 100644
--- a/ext/mixed/css/display.css
+++ b/ext/mixed/css/display.css
@@ -81,11 +81,15 @@ ol, ul {
border-bottom-style: solid;
}
+html:root[data-yomichan-page=search] .navigation-header {
+ position: sticky;
+}
+
html:root[data-yomichan-page=float] .navigation-header {
position: fixed;
}
-.navigation-header:not([hidden])~.navigation-header-spacer {
+html:root[data-yomichan-page=float] .navigation-header:not([hidden])~.navigation-header-spacer {
height: 2.1em;
}