@birdapi/velinstyle 0.6.1 → 0.7.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.
@@ -616,6 +616,51 @@
616
616
  .velin-nav__link[aria-current="page"] {
617
617
  border-block-end: 2px solid highlight;
618
618
  }
619
+
620
+ .velin-switch__track {
621
+ border: 1px solid buttontext;
622
+ }
623
+
624
+ .velin-switch__input:checked + .velin-switch__track {
625
+ background-color: highlight;
626
+ border-color: highlight;
627
+ }
628
+
629
+ .velin-pagination__link {
630
+ border: 1px solid buttontext;
631
+ }
632
+
633
+ .velin-pagination__link--active, .velin-pagination__link[aria-current="page"] {
634
+ color: highlighttext;
635
+ background-color: highlight;
636
+ border-color: highlight;
637
+ }
638
+
639
+ .velin-chip {
640
+ border: 1px solid buttontext;
641
+ }
642
+
643
+ .velin-stepper .step__marker {
644
+ border: 2px solid buttontext;
645
+ }
646
+
647
+ .velin-stepper .step--active .step__marker, .velin-stepper .step[aria-current="step"] .step__marker {
648
+ color: highlighttext;
649
+ background-color: highlight;
650
+ }
651
+
652
+ .velin-modal__backdrop, .velin-drawer__backdrop {
653
+ opacity: 1;
654
+ background-color: canvas;
655
+ }
656
+
657
+ .velin-progress__bar {
658
+ border: 1px solid buttontext;
659
+ }
660
+
661
+ .velin-progress__fill {
662
+ background-color: highlight;
663
+ }
619
664
  }
620
665
 
621
666
  .velin-skeleton {
@@ -702,6 +747,22 @@
702
747
  .velin-divider {
703
748
  border-width: 2px;
704
749
  }
750
+
751
+ .velin-nav__link {
752
+ font-weight: var(--velin-weight-semibold);
753
+ }
754
+
755
+ .velin-pagination__link, .velin-table th, .velin-table td {
756
+ border-width: 2px;
757
+ }
758
+
759
+ .velin-stepper .step__connector {
760
+ block-size: 3px;
761
+ }
762
+
763
+ .velin-stepper .step__label {
764
+ font-weight: var(--velin-weight-semibold);
765
+ }
705
766
  }
706
767
 
707
768
  @media (prefers-contrast: less) {
@@ -739,67 +800,68 @@
739
800
  }
740
801
  }
741
802
 
742
- .velin-secure-frame {
743
- display: none;
803
+ :root {
804
+ --velin-nav-height: 4rem;
805
+ scroll-padding-block-start: var(--velin-nav-height);
744
806
  }
745
807
 
746
- @media all {
747
- .velin-secure-frame {
748
- display: block;
749
- }
808
+ .velin-scroll-pt-nav {
809
+ scroll-padding-block-start: var(--velin-nav-height);
750
810
  }
751
811
 
752
- a[target="_blank"]:not([rel~="noopener"]) {
753
- &:after {
754
- content: " ↗";
755
- vertical-align: super;
756
- font-size: .75em;
757
- }
812
+ .velin-scroll-pt-none {
813
+ scroll-padding-block-start: 0;
758
814
  }
759
815
 
760
- .velin-user-content {
761
- all: initial;
762
- font-family: inherit;
763
- font-size: inherit;
764
- line-height: inherit;
765
- color: inherit;
766
- contain: layout style paint;
767
- word-break: break-word;
768
- overflow-wrap: break-word;
769
- display: block;
770
- overflow: hidden;
816
+ main:target, [id="main"]:target {
817
+ scroll-margin-block-start: var(--velin-nav-height);
771
818
  }
772
819
 
773
- .velin-user-content img, .velin-user-content video {
774
- max-width: 100%;
775
- height: auto;
820
+ .velin-target-min {
821
+ min-block-size: 1.5rem;
822
+ min-inline-size: 1.5rem;
776
823
  }
777
824
 
778
- .velin-user-content a {
779
- color: var(--velin-color-primary, #2563eb);
780
- text-decoration: underline;
825
+ .velin-target-touch, .velin-alert__close, .velin-toast-close, .velin-btn--sm {
826
+ min-block-size: 2.75rem;
827
+ min-inline-size: 2.75rem;
781
828
  }
782
829
 
783
- .velin-user-content script, .velin-user-content iframe, .velin-user-content object, .velin-user-content embed, .velin-user-content applet, .velin-user-content form[action], .velin-user-content [onload], .velin-user-content [onerror], .velin-user-content [onclick] {
784
- display: none !important;
830
+ .velin-pagination__ellipsis {
831
+ min-inline-size: 2.75rem;
785
832
  }
786
833
 
787
- input[type="password"], input[type="email"], input[type="tel"], input[type="number"][inputmode="numeric"] {
788
- -webkit-text-security: disc;
834
+ .velin-pagination--sm .velin-pagination__link {
835
+ min-block-size: 2.75rem;
836
+ min-inline-size: 2.75rem;
789
837
  }
790
838
 
791
- input[type="password"]:after, input[type="password"]:before {
792
- content: normal !important;
839
+ :root[data-velin-contrast="aaa"] {
840
+ --velin-color-text: oklch(8% .01 250);
841
+ --velin-color-text-muted: oklch(28% .01 250);
842
+ --velin-color-text-subtle: oklch(38% .01 250);
843
+ --velin-color-border: oklch(35% .01 250);
844
+ --velin-color-border-strong: oklch(20% .01 250);
845
+ --velin-color-primary: oklch(38% .18 250);
846
+ --velin-color-primary-hover: oklch(32% .18 250);
847
+ --velin-color-on-primary: oklch(100% 0 0);
848
+ --velin-color-focus: oklch(35% .22 250);
793
849
  }
794
850
 
795
- input:not([data-velin-no-paste]), textarea:not([data-velin-no-paste]) {
796
- -webkit-user-modify: read-write;
851
+ :root[data-velin-contrast="aaa"][data-velin-theme="dark"], :root[data-velin-contrast="aaa"]:not([data-velin-theme="light"]) {
852
+ @media (prefers-color-scheme: dark) {
853
+ --velin-color-text: oklch(98% .005 250);
854
+ --velin-color-text-muted: oklch(82% .005 250);
855
+ --velin-color-text-subtle: oklch(72% .005 250);
856
+ --velin-color-border: oklch(55% .01 250);
857
+ --velin-color-border-strong: oklch(70% .01 250);
858
+ --velin-color-primary: oklch(78% .14 250);
859
+ --velin-color-on-primary: oklch(8% .01 250);
860
+ }
797
861
  }
798
862
 
799
- input:-webkit-autofill {
800
- -webkit-box-shadow: 0 0 0 1000px var(--velin-color-surface-bright, #fff) inset;
801
- -webkit-text-fill-color: var(--velin-color-text, #1a1a2e);
802
- transition: background-color 600000s, color 600000s;
863
+ :root[data-velin-contrast="aaa"] .velin-btn, :root[data-velin-contrast="aaa"] .velin-input, :root[data-velin-contrast="aaa"] .velin-select, :root[data-velin-contrast="aaa"] .velin-textarea {
864
+ border-width: 2px;
803
865
  }
804
866
  }
805
867
 
@@ -8557,4 +8619,69 @@
8557
8619
  }
8558
8620
  }
8559
8621
 
8622
+ @layer security {
8623
+ .velin-secure-frame {
8624
+ display: none;
8625
+ }
8626
+
8627
+ @media all {
8628
+ .velin-secure-frame {
8629
+ display: block;
8630
+ }
8631
+ }
8632
+
8633
+ a[target="_blank"]:not([rel~="noopener"]) {
8634
+ &:after {
8635
+ content: " ↗";
8636
+ vertical-align: super;
8637
+ font-size: .75em;
8638
+ }
8639
+ }
8640
+
8641
+ .velin-user-content {
8642
+ all: initial;
8643
+ font-family: inherit;
8644
+ font-size: inherit;
8645
+ line-height: inherit;
8646
+ color: inherit;
8647
+ contain: layout style paint;
8648
+ word-break: break-word;
8649
+ overflow-wrap: break-word;
8650
+ display: block;
8651
+ overflow: hidden;
8652
+ }
8653
+
8654
+ .velin-user-content img, .velin-user-content video {
8655
+ max-width: 100%;
8656
+ height: auto;
8657
+ }
8658
+
8659
+ .velin-user-content a {
8660
+ color: var(--velin-color-primary, #2563eb);
8661
+ text-decoration: underline;
8662
+ }
8663
+
8664
+ .velin-user-content script, .velin-user-content iframe, .velin-user-content object, .velin-user-content embed, .velin-user-content applet, .velin-user-content form[action], .velin-user-content [onload], .velin-user-content [onerror], .velin-user-content [onclick] {
8665
+ display: none !important;
8666
+ }
8667
+
8668
+ input[type="password"] {
8669
+ -webkit-text-security: disc;
8670
+ }
8671
+
8672
+ input[type="password"]:after, input[type="password"]:before {
8673
+ content: normal !important;
8674
+ }
8675
+
8676
+ input:not([data-velin-no-paste]), textarea:not([data-velin-no-paste]) {
8677
+ -webkit-user-modify: read-write;
8678
+ }
8679
+
8680
+ input:-webkit-autofill {
8681
+ -webkit-box-shadow: 0 0 0 1000px var(--velin-color-surface-bright, #fff) inset;
8682
+ -webkit-text-fill-color: var(--velin-color-text, #1a1a2e);
8683
+ transition: background-color 600000s, color 600000s;
8684
+ }
8685
+ }
8686
+
8560
8687
  @layer themes;