@cirthcss/cirth 0.8.3 → 0.8.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/cirth.css CHANGED
@@ -726,52 +726,52 @@ label[aria-disabled="true"] input[disabled] {
726
726
  opacity: 1;
727
727
  }
728
728
 
729
- :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"]):is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
729
+ :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"]):is([aria-invalid], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) {
730
730
  padding-inline: var(--cirth-form-element-spacing-horizontal) calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
731
731
  background-position: center right var(--cirth-space-3);
732
732
  background-size: var(--cirth-size-4) auto;
733
733
  background-repeat: no-repeat;
734
734
  }
735
735
 
736
- :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"]):is([aria-invalid="false"], :user-valid:not([aria-invalid])):not(select) {
736
+ :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"])[aria-invalid="false"]:not(select) {
737
737
  background-image: var(--cirth-icon-valid);
738
738
  }
739
739
 
740
- :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"]):is([aria-invalid="true"], :user-invalid:not([aria-invalid])):not(select) {
740
+ :where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"]):is([aria-invalid="true"], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)):not(select) {
741
741
  background-image: var(--cirth-icon-invalid);
742
742
  }
743
743
 
744
- :where(input, select, textarea):is([aria-invalid="false"], :user-valid:not([aria-invalid])) {
744
+ :where(input, select, textarea)[aria-invalid="false"] {
745
745
  --cirth-border-color: var(--cirth-form-element-valid-border-color);
746
746
  }
747
747
 
748
- :where(input, select, textarea):is([aria-invalid="false"], :user-valid:not([aria-invalid])):is(:active, :focus) {
748
+ :where(input, select, textarea)[aria-invalid="false"]:is(:active, :focus) {
749
749
  --cirth-border-color: var(--cirth-form-element-valid-active-border-color);
750
750
  }
751
751
 
752
- :where(input, select, textarea):is([aria-invalid="false"], :user-valid:not([aria-invalid])):is(:active, :focus):not([type="checkbox"], [type="radio"]) {
752
+ :where(input, select, textarea)[aria-invalid="false"]:is(:active, :focus):not([type="checkbox"], [type="radio"]) {
753
753
  --cirth-box-shadow: 0 0 0 var(--cirth-outline-width)
754
754
  var(--cirth-form-element-valid-focus-color);
755
755
  }
756
756
 
757
- :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid])) {
757
+ :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) {
758
758
  --cirth-border-color: var(--cirth-form-element-invalid-border-color);
759
759
  }
760
760
 
761
- :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid])):is(:active, :focus) {
761
+ :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)):is(:active, :focus) {
762
762
  --cirth-border-color: var(--cirth-form-element-invalid-active-border-color);
763
763
  }
764
764
 
765
- :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid])):is(:active, :focus):not([type="checkbox"], [type="radio"]) {
765
+ :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)):is(:active, :focus):not([type="checkbox"], [type="radio"]) {
766
766
  --cirth-box-shadow: 0 0 0 var(--cirth-outline-width)
767
767
  var(--cirth-form-element-invalid-focus-color);
768
768
  }
769
769
 
770
- [dir="rtl"] :where(input, select, textarea):not([type="checkbox"], [type="radio"]):is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
770
+ [dir="rtl"] :where(input, select, textarea):not([type="checkbox"], [type="radio"]):is([aria-invalid], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) {
771
771
  background-position: center left var(--cirth-space-3);
772
772
  }
773
773
 
774
- [dir="rtl"] textarea:is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
774
+ [dir="rtl"] textarea:is([aria-invalid], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) {
775
775
  background-position: top left var(--cirth-space-3);
776
776
  }
777
777
 
@@ -806,7 +806,7 @@ textarea {
806
806
  display: block;
807
807
  }
808
808
 
809
- textarea:is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
809
+ textarea:is([aria-invalid], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) {
810
810
  --cirth-icon-height: calc(var(--cirth-size-4) * var(--cirth-line-height) +
811
811
  var(--cirth-form-element-spacing-vertical) * 2 +
812
812
  var(--cirth-border-width) * 2);
@@ -822,11 +822,11 @@ textarea:is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([
822
822
  display: block;
823
823
  }
824
824
 
825
- :where(input, select, textarea, fieldset, .row):is([aria-invalid="false"], :user-valid:not([aria-invalid])) + small {
825
+ :where(input, select, textarea, fieldset, .row)[aria-invalid="false"] + small {
826
826
  color: var(--cirth-ins-color);
827
827
  }
828
828
 
829
- :where(input, select, textarea, fieldset, .row):is([aria-invalid="true"], :user-invalid:not([aria-invalid])) + small {
829
+ :where(input, select, textarea, fieldset, .row):is([aria-invalid="true"], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) + small {
830
830
  color: var(--cirth-del-color);
831
831
  }
832
832
 
@@ -978,6 +978,7 @@ label:has([type="checkbox"], [type="radio"]) {
978
978
  input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]):is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
979
979
  --cirth-icon-position: var(--cirth-space-3);
980
980
  --cirth-icon-width: var(--cirth-size-4);
981
+ min-width: 0;
981
982
  background-image: var(--cirth-icon-date);
982
983
  background-position: center right var(--cirth-icon-position);
983
984
  background-size: var(--cirth-icon-width) auto;
@@ -1028,9 +1029,9 @@ input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])[type
1028
1029
  }
1029
1030
 
1030
1031
  @supports not selector(::-webkit-calendar-picker-indicator) {
1031
- [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"] {
1032
- background-image: none;
1033
- padding-inline-end: var(--cirth-form-element-spacing-horizontal);
1032
+ input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]):is([type="date"], [type="datetime-local"]) {
1033
+ color: #0000;
1034
+ -webkit-text-fill-color: var(--cirth-form-element-color);
1034
1035
  }
1035
1036
  }
1036
1037
 
@@ -1358,7 +1359,7 @@ details.dropdown > summary:not([role])[aria-invalid="true"] {
1358
1359
 
1359
1360
  nav details.dropdown {
1360
1361
  margin: calc(var(--cirth-nav-element-spacing-vertical) * -1) 0;
1361
- display: inline;
1362
+ display: inline-block;
1362
1363
  }
1363
1364
 
1364
1365
  nav details.dropdown > summary:after {
@@ -1494,28 +1495,28 @@ label > details.dropdown {
1494
1495
  margin-bottom: 0;
1495
1496
  }
1496
1497
 
1497
- [role="search"] > *, [role="search"] input:not([type="checkbox"], [type="radio"]), [role="search"] select, .group > *, .group input:not([type="checkbox"], [type="radio"]), .group select {
1498
+ [role="search"] > :not([hidden], input[type="hidden"]), [role="search"] input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]), [role="search"] select:not([hidden]), .group > :not([hidden], input[type="hidden"]), .group input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]), .group select:not([hidden]) {
1498
1499
  flex: auto;
1499
1500
  margin-bottom: 0;
1500
1501
  position: relative;
1501
1502
  }
1502
1503
 
1503
- [role="search"] > :is(input, select, textarea), [role="search"] input:not([type="checkbox"], [type="radio"]):is(input, select, textarea), [role="search"] select:is(input, select, textarea), .group > :is(input, select, textarea), .group input:not([type="checkbox"], [type="radio"]):is(input, select, textarea), .group select:is(input, select, textarea) {
1504
+ [role="search"] > :not([hidden], input[type="hidden"]):is(input, select, textarea), [role="search"] input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):is(input, select, textarea), [role="search"] select:not([hidden]):is(input, select, textarea), .group > :not([hidden], input[type="hidden"]):is(input, select, textarea), .group input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):is(input, select, textarea), .group select:not([hidden]):is(input, select, textarea) {
1504
1505
  flex: 99;
1505
1506
  }
1506
1507
 
1507
- [role="search"] > :not(:first-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="search"] select:not(:first-child), .group > :not(:first-child), .group input:not([type="checkbox"], [type="radio"]):not(:first-child), .group select:not(:first-child) {
1508
+ [role="search"] > :not([hidden], input[type="hidden"]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] select:not([hidden]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group > :not([hidden], input[type="hidden"]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group select:not([hidden]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))) {
1508
1509
  border-start-start-radius: 0;
1509
1510
  border-end-start-radius: 0;
1510
1511
  margin-inline-start: 0;
1511
1512
  }
1512
1513
 
1513
- [role="search"] > :not(:last-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:last-child), [role="search"] select:not(:last-child), .group > :not(:last-child), .group input:not([type="checkbox"], [type="radio"]):not(:last-child), .group select:not(:last-child) {
1514
+ [role="search"] > :not([hidden], input[type="hidden"]):not(:nth-last-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):not(:nth-last-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] select:not([hidden]):not(:nth-last-child(1 of :not([hidden], input[type="hidden"]))), .group > :not([hidden], input[type="hidden"]):not(:nth-last-child(1 of :not([hidden], input[type="hidden"]))), .group input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):not(:nth-last-child(1 of :not([hidden], input[type="hidden"]))), .group select:not([hidden]):not(:nth-last-child(1 of :not([hidden], input[type="hidden"]))) {
1514
1515
  border-start-end-radius: 0;
1515
1516
  border-end-end-radius: 0;
1516
1517
  }
1517
1518
 
1518
- [role="search"] > :focus, [role="search"] input:not([type="checkbox"], [type="radio"]):focus, [role="search"] select:focus, .group > :focus, .group input:not([type="checkbox"], [type="radio"]):focus, .group select:focus {
1519
+ [role="search"] > :not([hidden], input[type="hidden"]):focus, [role="search"] input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):focus, [role="search"] select:not([hidden]):focus, .group > :not([hidden], input[type="hidden"]):focus, .group input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):focus, .group select:not([hidden]):focus {
1519
1520
  z-index: 2;
1520
1521
  }
1521
1522
 
@@ -1524,7 +1525,7 @@ label > details.dropdown {
1524
1525
  border-end-end-radius: var(--cirth-border-radius);
1525
1526
  }
1526
1527
 
1527
- [role="search"] button:not(:first-child), [role="search"] [type="submit"]:not(:first-child), [role="search"] [type="reset"]:not(:first-child), [role="search"] [type="button"]:not(:first-child), [role="search"] [role="button"]:not(:first-child), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:first-child), [role="search"] select:not(:first-child), .group button:not(:first-child), .group [type="submit"]:not(:first-child), .group [type="reset"]:not(:first-child), .group [type="button"]:not(:first-child), .group [role="button"]:not(:first-child), .group input:not([type="checkbox"], [type="radio"]):not(:first-child), .group select:not(:first-child) {
1528
+ [role="search"] button:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] [type="submit"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] [type="reset"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] [type="button"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] [role="button"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] input:not([type="checkbox"], [type="radio"]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), [role="search"] select:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group button:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group [type="submit"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group [type="reset"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group [type="button"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group [role="button"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group input:not([type="checkbox"], [type="radio"]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .group select:not(:nth-child(1 of :not([hidden], input[type="hidden"]))) {
1528
1529
  margin-inline-start: calc(var(--cirth-border-width) * -1);
1529
1530
  }
1530
1531
 
@@ -1606,12 +1607,12 @@ label > details.dropdown {
1606
1607
  }
1607
1608
  }
1608
1609
 
1609
- [role="search"] > :first-child {
1610
+ [role="search"] > :not([hidden], input[type="hidden"]):nth-child(1 of :not([hidden], input[type="hidden"])) {
1610
1611
  border-start-start-radius: var(--cirth-radius-pill);
1611
1612
  border-end-start-radius: var(--cirth-radius-pill);
1612
1613
  }
1613
1614
 
1614
- [role="search"] > :last-child {
1615
+ [role="search"] > :not([hidden], input[type="hidden"]):nth-last-child(1 of :not([hidden], input[type="hidden"])) {
1615
1616
  border-start-end-radius: var(--cirth-radius-pill);
1616
1617
  border-end-end-radius: var(--cirth-radius-pill);
1617
1618
  }