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