extensions: tab-center-reborn: Add flag to disable animations

This commit is contained in:
Birdinfire 2024-01-07 01:29:42 +01:00 committed by GitHub
parent bdb708818c
commit 553a7faf42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 0 deletions

View File

@ -271,6 +271,7 @@ We also have optional features to enable support for some Firefox extensions.
> **Note:** You also need to copy the contents of the file `configuration/extensions/tab-center-reborn.css` into the settings page of Tabcenter-reborn..\
> **Note2:** You can also maintain the vertical tab always open with `gnomeTheme.extensions.tabCenterReborn.alwaysOpen`
> **Note2:** You can disable animation by disabling animation into the extension and adding the flags `gnomeTheme.extensions.tabCenterReborn.animationDisabled`
## Known bugs

View File

@ -65,11 +65,13 @@
width: 30vw !important;
max-width: 200px !important;
z-index: 1 !important;
animation-timing-function: linear;
transition: all var(--transition-time) ease var(--delay);
}
#sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) #sidebar,
#sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) {
animation-timing-function: linear;
transition: all var(--transition-time) ease 0s;
}
@ -167,3 +169,18 @@
}
}
}
@media (-moz-bool-pref: "gnomeTheme.extensions.tabCenterReborn.animationDisabled") {
#sidebar-box[sidebarcommand*="tabcenter"]:hover #sidebar,
#sidebar-box[sidebarcommand*="tabcenter"]:hover {
transition: none !important;
}
#sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) #sidebar,
#sidebar-box[sidebarcommand*="tabcenter"]:not(:hover) {
animation-timing-function: linear;
transition: none !important;
}
}