diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-12-28 17:41:59 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 17:41:59 -0500 |
commit | b6038c87b66630b341e431a4722856c9a3a282ed (patch) | |
tree | 721c26ef99b1e953904c10060c2a1bace281335e /ext/mixed/css | |
parent | c03340c4aa77c0a84b28bf18407aa79972697213 (diff) |
Improve document focus control (#1167)
* Improve styles for #content-scroll-focus
* Create new class to manage and control document focus
* Use new focus class
* Add a check to prevent redundant .blur calls
Diffstat (limited to 'ext/mixed/css')
-rw-r--r-- | ext/mixed/css/display.css | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/mixed/css/display.css b/ext/mixed/css/display.css index a6ca2810..f0f39d07 100644 --- a/ext/mixed/css/display.css +++ b/ext/mixed/css/display.css @@ -244,6 +244,24 @@ a { } +/* Selection */ +#content-scroll-focus { + opacity: 0; + margin: 0; + padding: 0; + outline: none; + background-color: transparent; + display: inline; + width: 0; + height: 0; + line-height: 0; + user-select: none; +} +#content-scroll-focus::-moz-focus-inner { + border: 0; +} + + /* Scrollbars */ :root:not([data-theme=default]) .scrollbar { scrollbar-color: var(--scrollbar-thumb-color) var(--scrollbar-track-color); |