semantic-forms 5.0.7 → 5.0.9

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.
@@ -52,13 +52,21 @@ form.semanticForms, form.semanticForms.light {
52
52
  }
53
53
 
54
54
  @media (prefers-color-scheme: dark) {
55
- form.semanticForms {
56
- @include dark-mode;
55
+ html:not(.light) {
56
+ body:not(.light) {
57
+ form.semanticForms {
58
+ @include dark-mode;
59
+ }
60
+ }
57
61
  }
58
62
  }
59
63
 
60
- form.semanticForms.dark {
61
- @include dark-mode;
64
+ html:not(.light) {
65
+ body:not(.light) {
66
+ form.semanticForms.dark {
67
+ @include dark-mode;
68
+ }
69
+ }
62
70
  }
63
71
  // #endregion
64
72
 
@@ -183,6 +191,11 @@ form.semanticForms, form.semanticForms.light {
183
191
  min-height: 38px;
184
192
  height: 100px;
185
193
  }
194
+
195
+ // hide native cancel button
196
+ input[type="search"]::-webkit-search-cancel-button {
197
+ display: none;
198
+ }
186
199
  // #endregion
187
200
 
188
201
  // #region buttons
@@ -257,7 +270,7 @@ form.semanticForms, form.semanticForms.light {
257
270
  }
258
271
  }
259
272
  // #endregion
260
-
273
+
261
274
  // #region invalid styling
262
275
  [data-invalid-text] {
263
276
  display: none;
@@ -609,65 +622,65 @@ form.semanticForms, form.semanticForms.light {
609
622
  &[class^='colspan-'] {
610
623
  max-width: 100%;
611
624
  }
612
-
625
+
613
626
  &.colspan-full {
614
627
  grid-column: 1 / -1;
615
628
  }
616
-
629
+
617
630
  &.colspan-5 {
618
631
  grid-column: span 5;
619
632
  }
620
-
633
+
621
634
  &.colspan-4 {
622
635
  grid-column: span 4;
623
636
  }
624
-
637
+
625
638
  &.colspan-3 {
626
639
  grid-column: span 3;
627
640
  }
628
-
641
+
629
642
  &.colspan-2 {
630
643
  grid-column: span 2;
631
644
  }
632
-
645
+
633
646
  &.colspan-1 {
634
647
  grid-column: span 1;
635
648
  }
636
649
  }
637
-
650
+
638
651
  fieldset[class^='colspan-'] dl,
639
652
  dl[class^='colspan-'] {
640
653
  div {
641
654
  max-width: 100%;
642
655
  }
643
656
  }
644
-
657
+
645
658
  fieldset.colspan-full dl,
646
659
  dl.colspan-full {
647
660
  grid-template-columns: repeat(auto-fit, minmax(var(--inputMinWidth), 1fr));
648
661
  }
649
-
662
+
650
663
  fieldset.colspan-5 dl,
651
664
  dl.colspan-5 {
652
665
  grid-template-columns: repeat(5, minmax(var(--inputMinWidth), 1fr));
653
666
  }
654
-
667
+
655
668
  fieldset.colspan-4 dl,
656
669
  dl.colspan-4 {
657
670
  grid-template-columns: repeat(4, minmax(var(--inputMinWidth), 1fr));
658
671
  }
659
-
660
-
672
+
673
+
661
674
  fieldset.colspan-3 dl,
662
675
  dl.colspan-3 {
663
676
  grid-template-columns: repeat(3, minmax(var(--inputMinWidth), 1fr));
664
677
  }
665
-
678
+
666
679
  fieldset.colspan-2 dl,
667
680
  dl.colspan-2 {
668
681
  grid-template-columns: repeat(2, minmax(var(--inputMinWidth), 1fr));
669
682
  }
670
-
683
+
671
684
  fieldset.colspan-1 dl,
672
685
  dl.colspan-1 {
673
686
  grid-template-columns: repeat(1, minmax(var(--inputMinWidth), 1fr));
@@ -897,7 +910,7 @@ form.semanticForms, form.semanticForms.light {
897
910
  }
898
911
 
899
912
  // #region low flow form
900
- &:not(.semanticFormsActive) {
913
+ &:not(.semanticFormsActive) {
901
914
  dl {
902
915
  display: flex;
903
916
  flex-direction: column;