Skip to content

Commit

Permalink
flashes icon after displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Jul 22, 2024
1 parent ec7e164 commit 8ea3cdd
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions core/infobar.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ const INFOBAR_STYLES = `
border-color: #eee;
border-radius: 16px;
z-index: 2147483647;
animation-name: flash;
animation-duration: .5s;
animation-timing-function: cubic-bezier(0.39, 0.58, 0.57, 1);
animation-delay: 1s;
animation-iteration-count: 2;
}
.infobar:valid, .infobar:not(:focus-within) .infobar-content {
Expand All @@ -78,8 +83,8 @@ const INFOBAR_STYLES = `
border-color: #878787;
border-radius: 8px;
opacity: 1;
transition-property: opacity, background-color, border-color, border-radius,
color;
transition-property: opacity, background-color, border-color, border-radius, color;
animation-play-state: paused;
}
.infobar-content {
Expand Down Expand Up @@ -115,6 +120,17 @@ const INFOBAR_STYLES = `
min-block-size: 24px;
}
@keyframes flash {
0%, 100% {
background-color: #737373;
opacity: .7;
}
50% {
background-color: #171717;
opacity: 1;
}
}
.infobar:focus-within .infobar-icon {
z-index: -1;
background-image: none;
Expand Down

0 comments on commit 8ea3cdd

Please sign in to comment.