@mirror-physics/fractal-ui 0.2.0-next.90 → 0.2.0-next.91

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/dist/index.css CHANGED
@@ -2814,32 +2814,28 @@
2814
2814
  /* src/components/Ghost/Ghost.css */
2815
2815
  .fractal-ghost {
2816
2816
  --fractal-ghost-base: var(--bg-surface-1);
2817
- --fractal-ghost-shine: color-mix(in srgb, var(--bg-canvas) 82%, transparent);
2818
2817
  position: relative;
2819
2818
  display: block;
2820
2819
  min-width: 0;
2821
2820
  min-height: 1px;
2822
2821
  overflow: hidden;
2823
- background: var(--fractal-ghost-base);
2824
- border-radius: var(--radius-sm);
2825
- }
2826
- .fractal-ghost::after {
2827
- position: absolute;
2828
- top: 0;
2829
- bottom: 0;
2830
- left: -50%;
2831
- width: 50%;
2832
- background:
2822
+ --fractal-ghost-shine: color-mix(in srgb, var(--bg-canvas) 70%, transparent);
2823
+ background-color: var(--fractal-ghost-base);
2824
+ background-image:
2833
2825
  linear-gradient(
2834
- 105deg,
2835
- transparent 0%,
2826
+ 110deg,
2827
+ transparent 30%,
2828
+ color-mix(in srgb, var(--fractal-ghost-shine) 20%, transparent) 38%,
2829
+ color-mix(in srgb, var(--fractal-ghost-shine) 65%, transparent) 44%,
2836
2830
  var(--fractal-ghost-shine) 50%,
2837
- transparent 100%);
2838
- content: "";
2839
- pointer-events: none;
2840
- transform: translate3d(-100%, 0, 0);
2841
- animation: fractal-ghost-shine var(--duration-ambient) linear infinite;
2842
- will-change: transform;
2831
+ color-mix(in srgb, var(--fractal-ghost-shine) 65%, transparent) 56%,
2832
+ color-mix(in srgb, var(--fractal-ghost-shine) 20%, transparent) 62%,
2833
+ transparent 70%);
2834
+ background-size: 300% 100%;
2835
+ background-repeat: no-repeat;
2836
+ background-position: 100% 0;
2837
+ border-radius: var(--radius-sm);
2838
+ animation: fractal-ghost-shine calc(var(--duration-ambient) * 2) var(--ease-in-out) infinite;
2843
2839
  }
2844
2840
  .fractal-ghost-line {
2845
2841
  height: 0.875rem;
@@ -3119,16 +3115,16 @@
3119
3115
  }
3120
3116
  @keyframes fractal-ghost-shine {
3121
3117
  from {
3122
- transform: translate3d(-100%, 0, 0);
3118
+ background-position: 100% 0;
3123
3119
  }
3124
3120
  to {
3125
- transform: translate3d(300%, 0, 0);
3121
+ background-position: 0% 0;
3126
3122
  }
3127
3123
  }
3128
3124
  @media (prefers-reduced-motion: reduce) {
3129
- .fractal-ghost::after {
3130
- display: none;
3125
+ .fractal-ghost {
3131
3126
  animation: none;
3127
+ background-image: none;
3132
3128
  }
3133
3129
  }
3134
3130