From 7517af4942b122a89410f09980ab73fa0732107b Mon Sep 17 00:00:00 2001 From: Matthias Metelka <62722460+kleinerpirat@users.noreply.github.com> Date: Thu, 18 Aug 2022 04:48:28 +0200 Subject: [PATCH] Fix not being able to scroll when mouse hovers PlainTextInput (#2019) * Remove overscroll-behavior: none for * (all elements) * Revert "Remove overscroll-behavior: none for * (all elements)" This reverts commit 189358908cecd03027e19d8fe47822735319ec17. * Use body instead of *, but keep CSS rule * Unify two CSS rules --- qt/aqt/data/web/css/webview.scss | 7 +------ sass/base.scss | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/qt/aqt/data/web/css/webview.scss b/qt/aqt/data/web/css/webview.scss index ee0f9cd4b..71a377303 100644 --- a/qt/aqt/data/web/css/webview.scss +++ b/qt/aqt/data/web/css/webview.scss @@ -14,8 +14,8 @@ body { color: var(--text-fg); background: var(--window-bg); - margin: 1em; transition: opacity 0.5s ease-out; + margin: 2em; overscroll-behavior: none; } @@ -24,11 +24,6 @@ a { text-decoration: none; } -body { - margin: 2em; - overscroll-behavior: none; -} - h1 { margin-bottom: 0.2em; } diff --git a/sass/base.scss b/sass/base.scss index fa5e21cf1..ab8054a6b 100644 --- a/sass/base.scss +++ b/sass/base.scss @@ -32,7 +32,7 @@ $utilities: ( flex-basis: 75%; } -* { +body { overscroll-behavior: none; }