@mirror-physics/fractal-ui 0.2.0-next.71 → 0.2.0-next.73

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
@@ -616,6 +616,111 @@
616
616
  cursor: not-allowed;
617
617
  }
618
618
 
619
+ /* src/components/Slider/Slider.css */
620
+ .fractal-slider {
621
+ display: grid;
622
+ width: 100%;
623
+ min-width: 120px;
624
+ gap: var(--space-1, 4px);
625
+ }
626
+ .fractal-slider-values {
627
+ display: flex;
628
+ min-height: 1.2em;
629
+ justify-content: space-between;
630
+ color: var(--fg-primary);
631
+ font-size: 0.75rem;
632
+ font-variant-numeric: tabular-nums;
633
+ font-weight: 500;
634
+ line-height: 1.2;
635
+ }
636
+ .fractal-slider[data-knobs="1"] .fractal-slider-values {
637
+ justify-content: flex-end;
638
+ }
639
+ .fractal-slider-control {
640
+ position: relative;
641
+ height: 24px;
642
+ }
643
+ .fractal-slider-track,
644
+ .fractal-slider-selection {
645
+ position: absolute;
646
+ top: 10px;
647
+ height: 4px;
648
+ border-radius: var(--radius-full, 9999px);
649
+ pointer-events: none;
650
+ }
651
+ .fractal-slider-track {
652
+ right: 0;
653
+ left: 0;
654
+ background: var(--bg-surface-2);
655
+ }
656
+ .fractal-slider-selection {
657
+ right: calc(100% - var(--fractal-slider-selection-end));
658
+ left: var(--fractal-slider-selection-start);
659
+ background: var(--accent-default);
660
+ }
661
+ .fractal-slider-control > input[type=range] {
662
+ position: absolute;
663
+ inset: 0;
664
+ z-index: 1;
665
+ width: 100%;
666
+ height: 24px;
667
+ margin: 0;
668
+ appearance: none;
669
+ background: transparent;
670
+ pointer-events: none;
671
+ }
672
+ .fractal-slider-control > input[type=range]::-webkit-slider-runnable-track {
673
+ height: 4px;
674
+ background: transparent;
675
+ }
676
+ .fractal-slider-control > input[type=range]::-webkit-slider-thumb {
677
+ width: 14px;
678
+ height: 14px;
679
+ margin-top: -5px;
680
+ appearance: none;
681
+ border: 2px solid var(--bg-canvas);
682
+ border-radius: 50%;
683
+ background: var(--accent-default);
684
+ box-shadow: 0 0 0 1px var(--accent-default);
685
+ cursor: grab;
686
+ pointer-events: auto;
687
+ }
688
+ .fractal-slider-control > input[type=range]::-moz-range-track {
689
+ height: 4px;
690
+ background: transparent;
691
+ }
692
+ .fractal-slider-control > input[type=range]::-moz-range-thumb {
693
+ width: 12px;
694
+ height: 12px;
695
+ border: 2px solid var(--bg-canvas);
696
+ border-radius: 50%;
697
+ background: var(--accent-default);
698
+ box-shadow: 0 0 0 1px var(--accent-default);
699
+ cursor: grab;
700
+ pointer-events: auto;
701
+ }
702
+ .fractal-slider-control > input[type=range]:focus-visible::-webkit-slider-thumb {
703
+ outline: 2px solid var(--border-focus);
704
+ outline-offset: 2px;
705
+ }
706
+ .fractal-slider-control > input[type=range]:focus-visible::-moz-range-thumb {
707
+ outline: 2px solid var(--border-focus);
708
+ outline-offset: 2px;
709
+ }
710
+ .fractal-slider-control > input[type=range]:active::-webkit-slider-thumb {
711
+ cursor: grabbing;
712
+ }
713
+ .fractal-slider-control > input[type=range]:active::-moz-range-thumb {
714
+ cursor: grabbing;
715
+ }
716
+ .fractal-slider--disabled {
717
+ opacity: 0.5;
718
+ }
719
+ .fractal-slider--disabled .fractal-slider-control > input[type=range]::-webkit-slider-thumb,
720
+ .fractal-slider--disabled .fractal-slider-control > input[type=range]::-moz-range-thumb {
721
+ cursor: not-allowed;
722
+ }
723
+
619
724
  /* src/components/PasswordInput/PasswordInput.css */
620
725
  .fractal-password-input {
621
726
  position: relative;