@alivecss/aliveui 1.0.3 → 1.0.5

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/vite.mjs CHANGED
@@ -599,6 +599,9 @@ function generateBase(_config) {
599
599
  ::before,
600
600
  ::after {
601
601
  box-sizing: border-box;
602
+ border-width: 0;
603
+ border-style: solid;
604
+ border-color: currentColor;
602
605
  }
603
606
 
604
607
  html {
@@ -618,6 +621,39 @@ body {
618
621
  -moz-osx-font-smoothing: grayscale;
619
622
  }
620
623
 
624
+ blockquote,
625
+ dl,
626
+ dd,
627
+ h1,
628
+ h2,
629
+ h3,
630
+ h4,
631
+ h5,
632
+ h6,
633
+ hr,
634
+ figure,
635
+ p,
636
+ pre {
637
+ margin: 0;
638
+ }
639
+
640
+ fieldset {
641
+ margin: 0;
642
+ padding: 0;
643
+ }
644
+
645
+ legend {
646
+ padding: 0;
647
+ }
648
+
649
+ ol,
650
+ ul,
651
+ menu {
652
+ list-style: none;
653
+ margin: 0;
654
+ padding: 0;
655
+ }
656
+
621
657
  button,
622
658
  input,
623
659
  optgroup,
@@ -627,9 +663,24 @@ textarea {
627
663
  font-size: 100%;
628
664
  font-weight: inherit;
629
665
  line-height: inherit;
666
+ letter-spacing: inherit;
630
667
  color: inherit;
631
668
  margin: 0;
632
669
  padding: 0;
670
+ background-color: transparent;
671
+ background-image: none;
672
+ }
673
+
674
+ button,
675
+ [type='button'],
676
+ [type='reset'],
677
+ [type='submit'] {
678
+ -webkit-appearance: button;
679
+ cursor: pointer;
680
+ }
681
+
682
+ :disabled {
683
+ cursor: default;
633
684
  }
634
685
 
635
686
  button,
@@ -637,6 +688,28 @@ select {
637
688
  text-transform: none;
638
689
  }
639
690
 
691
+ img,
692
+ svg,
693
+ video,
694
+ canvas,
695
+ audio,
696
+ iframe,
697
+ embed,
698
+ object {
699
+ display: block;
700
+ vertical-align: middle;
701
+ }
702
+
703
+ img,
704
+ video {
705
+ max-width: 100%;
706
+ height: auto;
707
+ }
708
+
709
+ [hidden] {
710
+ display: none;
711
+ }
712
+
640
713
  /* \u2500\u2500 Design tokens \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
641
714
  :root {
642
715
  /* Motion durations */
@@ -834,6 +907,30 @@ select {
834
907
  .alive-loop-ping { animation: alive-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
835
908
  .alive-loop-bounce { animation: alive-bounce 1s infinite; }
836
909
 
910
+ /* \u2500\u2500 Scroll-reveal (data-alive-scroll) \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 */
911
+
912
+ [data-alive-scroll] {
913
+ opacity: 0;
914
+ transform: translateY(8px);
915
+ }
916
+ [data-alive-scroll].is-visible {
917
+ animation: alive-fade-up var(--alive-duration-slow) var(--alive-ease-emphasized) both;
918
+ }
919
+ [data-alive-scroll="fade"] {
920
+ opacity: 0;
921
+ transform: none;
922
+ }
923
+ [data-alive-scroll="fade"].is-visible {
924
+ animation: alive-fade-in var(--alive-duration-normal) var(--alive-ease-standard) both;
925
+ }
926
+ [data-alive-scroll="scale"] {
927
+ opacity: 0;
928
+ transform: scale(0.94);
929
+ }
930
+ [data-alive-scroll="scale"].is-visible {
931
+ animation: alive-scale-in var(--alive-duration-slow) var(--alive-ease-emphasized) both;
932
+ }
933
+
837
934
  /* Reduced motion \u2014 respect system preference */
838
935
  @media (prefers-reduced-motion: reduce) {
839
936
  .alive-enter,
@@ -856,6 +953,18 @@ select {
856
953
  transform: none;
857
954
  }
858
955
 
956
+ [data-alive-scroll],
957
+ [data-alive-scroll="fade"],
958
+ [data-alive-scroll="scale"] {
959
+ opacity: 1;
960
+ transform: none;
961
+ }
962
+ [data-alive-scroll].is-visible,
963
+ [data-alive-scroll="fade"].is-visible,
964
+ [data-alive-scroll="scale"].is-visible {
965
+ animation: none;
966
+ }
967
+
859
968
  /* depth system \u2014 disable hover lift and active press */
860
969
  .d2,
861
970
  .d2:hover,