starlight-cannoli-plugins 2.18.0 → 2.19.0
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.
|
@@ -81,6 +81,22 @@ var pageSrcStyles = css`
|
|
|
81
81
|
background: var(--sl-color-bg-nav);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
@keyframes page-src-glow {
|
|
85
|
+
0% {
|
|
86
|
+
box-shadow: 0 0 0 0 transparent;
|
|
87
|
+
}
|
|
88
|
+
30% {
|
|
89
|
+
box-shadow: 0 0 12px 4px var(--sl-color-accent);
|
|
90
|
+
}
|
|
91
|
+
100% {
|
|
92
|
+
box-shadow: 0 0 0 0 transparent;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.page-src-action-bar__btn--glow {
|
|
97
|
+
animation: page-src-glow 1s ease-out;
|
|
98
|
+
}
|
|
99
|
+
|
|
84
100
|
.page-src-action-bar__btn--loading {
|
|
85
101
|
cursor: default;
|
|
86
102
|
pointer-events: none;
|
package/dist/index.js
CHANGED
|
@@ -126,6 +126,12 @@ function createActionBar(options) {
|
|
|
126
126
|
});
|
|
127
127
|
bar.appendChild(menuBtn);
|
|
128
128
|
bar.appendChild(menu);
|
|
129
|
+
menuBtn.classList.add("page-src-action-bar__btn--glow");
|
|
130
|
+
menuBtn.addEventListener(
|
|
131
|
+
"animationend",
|
|
132
|
+
() => menuBtn.classList.remove("page-src-action-bar__btn--glow"),
|
|
133
|
+
{ once: true }
|
|
134
|
+
);
|
|
129
135
|
return bar;
|
|
130
136
|
}
|
|
131
137
|
function initPageActionBar(options) {
|
package/package.json
CHANGED