@next-library/theme 1.0.11 → 1.0.13

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-library/theme",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -93,7 +93,7 @@
93
93
  "rehype-external-links": "^3.0.0",
94
94
  "rehype-highlight": "^7.0.2",
95
95
  "rehype-autolink-headings": "^7.1.0",
96
- "@next-library/core": "1.0.41"
96
+ "@next-library/core": "1.0.42"
97
97
  },
98
98
  "devDependencies": {
99
99
  "@testing-library/jest-dom": "^6.1.0",
package/src/style.css CHANGED
@@ -254,3 +254,40 @@
254
254
  .cl-pager-title { font-size: 0.95rem; font-weight: 500; color: var(--foreground); }
255
255
  .cl-edit-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--muted-foreground); transition: color 0.15s; }
256
256
  .cl-edit-link:hover { color: var(--foreground); }
257
+
258
+ /* ── GitHub star nudge: invite a star without nagging ── */
259
+ @keyframes nl-star-pop { 0% { transform: scale(1); } 45% { transform: scale(1.45); } 100% { transform: scale(1); } }
260
+ @keyframes nl-star-fly {
261
+ 0% { opacity: 0; transform: translateY(15px) scale(0.5) rotate(-20deg); }
262
+ 25% { opacity: 1; }
263
+ 70% { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); }
264
+ 100% { opacity: 0; transform: translateY(-3px) scale(1.15); }
265
+ }
266
+ @keyframes nl-star-ring {
267
+ 0% { box-shadow: 0 0 0 0 color-mix(in oklab, #f5b50a 45%, transparent); }
268
+ 100% { box-shadow: 0 0 0 7px color-mix(in oklab, #f5b50a 0%, transparent); }
269
+ }
270
+ @keyframes nl-star-twinkle {
271
+ 0%, 90%, 100% { transform: scale(1); color: inherit; }
272
+ 94% { transform: scale(1.28) rotate(-6deg); color: #f5b50a; }
273
+ 97% { transform: scale(1.1) rotate(4deg); color: #f5b50a; }
274
+ }
275
+ .nl-star-btn--nudge { animation: nl-star-ring 0.9s ease-out 0.5s 1; }
276
+ .nl-star-btn--nudge .nl-star-mark { animation: nl-star-pop 0.6s ease-out 0.9s both; color: #f5b50a; }
277
+ .nl-star-fly {
278
+ position: absolute;
279
+ left: 0;
280
+ top: 0;
281
+ color: #f5b50a;
282
+ fill: #f5b50a;
283
+ pointer-events: none;
284
+ animation: nl-star-fly 1.2s cubic-bezier(0.34, 1.3, 0.5, 1) 0.4s both;
285
+ }
286
+ .nl-star-btn:hover .nl-star-mark { color: #f5b50a; }
287
+ .nl-star-mark--twinkle { animation: nl-star-twinkle 8s ease-in-out infinite; }
288
+ @media (prefers-reduced-motion: reduce) {
289
+ .nl-star-btn--nudge,
290
+ .nl-star-btn--nudge .nl-star-mark,
291
+ .nl-star-fly,
292
+ .nl-star-mark--twinkle { animation: none !important; }
293
+ }