mirror of
https://github.com/zen-browser/desktop.git
synced 2026-03-03 15:28:18 +00:00
feat: Fixed delay and animations for the omnibox, b=no-bug, c=common
This commit is contained in:
@@ -250,11 +250,9 @@ var gZenUIManager = {
|
||||
const input = gURLBar.textbox;
|
||||
if (gURLBar.hasAttribute('breakout-extend') && !this._animatingSearchMode) {
|
||||
this._animatingSearchMode = true;
|
||||
this.motion
|
||||
.animate(input, { scale: [1, 0.98, 1] }, { duration: 0.25, delay: 0.1 })
|
||||
.then(() => {
|
||||
delete this._animatingSearchMode;
|
||||
});
|
||||
this.motion.animate(input, { scale: [1, 0.98, 1] }, { duration: 0.25 }).then(() => {
|
||||
delete this._animatingSearchMode;
|
||||
});
|
||||
if (searchMode) {
|
||||
gURLBar.setAttribute('animate-searchmode', 'true');
|
||||
this._animatingSearchModeTimeout = setTimeout(() => {
|
||||
|
||||
@@ -103,7 +103,7 @@
|
||||
/* Mark: URL Bar */
|
||||
@keyframes zen-urlbar-searchmode {
|
||||
0% {
|
||||
box-shadow: 0 0 20px color-mix(in srgb, var(--zen-primary-color), var(--toolbox-textcolor) 40%);
|
||||
box-shadow: 0 0 20px color-mix(in srgb, var(--zen-primary-color), var(--toolbox-textcolor) 20%);
|
||||
}
|
||||
|
||||
100% {
|
||||
|
||||
Reference in New Issue
Block a user