Disable indicator transitions when not in use (#1136)

This commit is contained in:
toasted-nutbread 2020-12-19 15:57:20 -05:00 committed by GitHub
parent 1b1b24ab35
commit d42b95a9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -720,8 +720,7 @@ button.action-button {
height: 0; height: 0;
top: 0; top: 0;
background-color: var(--entry-current-indicator-color); background-color: var(--entry-current-indicator-color);
transition: transition: none;
height var(--entry-current-indicator-transition-duration) linear;
} }
.entry.entry-current .entry-current-indicator-inner { .entry.entry-current .entry-current-indicator-inner {
height: var(--entry-current-indicator-width); height: var(--entry-current-indicator-width);
@ -736,11 +735,14 @@ button.action-button {
:root[data-popup-current-indicator-mode=dot-right] .entry-current-indicator-inner { :root[data-popup-current-indicator-mode=dot-right] .entry-current-indicator-inner {
display: block; display: block;
position: sticky; position: sticky;
transition:
height var(--entry-current-indicator-transition-duration) linear;
} }
:root[data-popup-current-indicator-mode=none] .entry-current-indicator, :root[data-popup-current-indicator-mode=none] .entry-current-indicator,
:root[data-popup-current-indicator-mode=asterisk] .entry-current-indicator, :root[data-popup-current-indicator-mode=asterisk] .entry-current-indicator,
:root[data-popup-current-indicator-mode=triangle] .entry-current-indicator { :root[data-popup-current-indicator-mode=triangle] .entry-current-indicator {
display: none; display: none;
transition: none;
} }
@ -788,6 +790,7 @@ button.action-button {
.term-expression:not(:first-of-type) .term-expression-current-indicator, .term-expression:not(:first-of-type) .term-expression-current-indicator,
:root:not([data-popup-current-indicator-mode=triangle]) .term-expression-current-indicator { :root:not([data-popup-current-indicator-mode=triangle]) .term-expression-current-indicator {
display: none; display: none;
transition: none;
} }