single-file-core 1.5.8 → 1.5.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/core/infobar.js +18 -2
  2. package/package.json +1 -1
package/core/infobar.js CHANGED
@@ -67,6 +67,11 @@ const INFOBAR_STYLES = `
67
67
  border-color: #eee;
68
68
  border-radius: 16px;
69
69
  z-index: 2147483647;
70
+ animation-name: flash;
71
+ animation-duration: .5s;
72
+ animation-timing-function: cubic-bezier(0.39, 0.58, 0.57, 1);
73
+ animation-delay: 1s;
74
+ animation-iteration-count: 2;
70
75
  }
71
76
 
72
77
  .infobar:valid, .infobar:not(:focus-within) .infobar-content {
@@ -78,8 +83,8 @@ const INFOBAR_STYLES = `
78
83
  border-color: #878787;
79
84
  border-radius: 8px;
80
85
  opacity: 1;
81
- transition-property: opacity, background-color, border-color, border-radius,
82
- color;
86
+ transition-property: opacity, background-color, border-color, border-radius, color;
87
+ animation-play-state: paused;
83
88
  }
84
89
 
85
90
  .infobar-content {
@@ -115,6 +120,17 @@ const INFOBAR_STYLES = `
115
120
  min-block-size: 24px;
116
121
  }
117
122
 
123
+ @keyframes flash {
124
+ 0%, 100% {
125
+ background-color: #737373;
126
+ opacity: .7;
127
+ }
128
+ 50% {
129
+ background-color: #171717;
130
+ opacity: 1;
131
+ }
132
+ }
133
+
118
134
  .infobar:focus-within .infobar-icon {
119
135
  z-index: -1;
120
136
  background-image: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",