@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.
@@ -596,52 +596,52 @@
596
596
  opacity: 1;
597
597
  }
598
598
 
599
- .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])) {
599
+ .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)) {
600
600
  padding-inline: var(--cirth-form-element-spacing-horizontal) calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
601
601
  background-position: center right var(--cirth-space-3);
602
602
  background-size: var(--cirth-size-4) auto;
603
603
  background-repeat: no-repeat;
604
604
  }
605
605
 
606
- .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) {
606
+ .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) {
607
607
  background-image: var(--cirth-icon-valid);
608
608
  }
609
609
 
610
- .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) {
610
+ .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) {
611
611
  background-image: var(--cirth-icon-invalid);
612
612
  }
613
613
 
614
- .cirth :where(input, select, textarea):is([aria-invalid="false"], :user-valid:not([aria-invalid])) {
614
+ .cirth :where(input, select, textarea)[aria-invalid="false"] {
615
615
  --cirth-border-color: var(--cirth-form-element-valid-border-color);
616
616
  }
617
617
 
618
- .cirth :where(input, select, textarea):is([aria-invalid="false"], :user-valid:not([aria-invalid])):is(:active, :focus) {
618
+ .cirth :where(input, select, textarea)[aria-invalid="false"]:is(:active, :focus) {
619
619
  --cirth-border-color: var(--cirth-form-element-valid-active-border-color);
620
620
  }
621
621
 
622
- .cirth :where(input, select, textarea):is([aria-invalid="false"], :user-valid:not([aria-invalid])):is(:active, :focus):not([type="checkbox"], [type="radio"]) {
622
+ .cirth :where(input, select, textarea)[aria-invalid="false"]:is(:active, :focus):not([type="checkbox"], [type="radio"]) {
623
623
  --cirth-box-shadow: 0 0 0 var(--cirth-outline-width)
624
624
  var(--cirth-form-element-valid-focus-color);
625
625
  }
626
626
 
627
- .cirth :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid])) {
627
+ .cirth :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) {
628
628
  --cirth-border-color: var(--cirth-form-element-invalid-border-color);
629
629
  }
630
630
 
631
- .cirth :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid])):is(:active, :focus) {
631
+ .cirth :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)):is(:active, :focus) {
632
632
  --cirth-border-color: var(--cirth-form-element-invalid-active-border-color);
633
633
  }
634
634
 
635
- .cirth :where(input, select, textarea):is([aria-invalid="true"], :user-invalid:not([aria-invalid])):is(:active, :focus):not([type="checkbox"], [type="radio"]) {
635
+ .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"]) {
636
636
  --cirth-box-shadow: 0 0 0 var(--cirth-outline-width)
637
637
  var(--cirth-form-element-invalid-focus-color);
638
638
  }
639
639
 
640
- [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])) {
640
+ [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)) {
641
641
  background-position: center left var(--cirth-space-3);
642
642
  }
643
643
 
644
- [dir="rtl"] .cirth textarea:is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
644
+ [dir="rtl"] .cirth textarea:is([aria-invalid], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) {
645
645
  background-position: top left var(--cirth-space-3);
646
646
  }
647
647
 
@@ -676,7 +676,7 @@
676
676
  display: block;
677
677
  }
678
678
 
679
- .cirth textarea:is([aria-invalid], :user-invalid:not([aria-invalid]), :user-valid:not([aria-invalid])) {
679
+ .cirth textarea:is([aria-invalid], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) {
680
680
  --cirth-icon-height: calc(var(--cirth-size-4) * var(--cirth-line-height) +
681
681
  var(--cirth-form-element-spacing-vertical) * 2 +
682
682
  var(--cirth-border-width) * 2);
@@ -692,11 +692,11 @@
692
692
  display: block;
693
693
  }
694
694
 
695
- .cirth :where(input, select, textarea, fieldset):is([aria-invalid="false"], :user-valid:not([aria-invalid])) + small {
695
+ .cirth :where(input, select, textarea, fieldset)[aria-invalid="false"] + small {
696
696
  color: var(--cirth-ins-color);
697
697
  }
698
698
 
699
- .cirth :where(input, select, textarea, fieldset):is([aria-invalid="true"], :user-invalid:not([aria-invalid])) + small {
699
+ .cirth :where(input, select, textarea, fieldset):is([aria-invalid="true"], :user-invalid:not([aria-invalid], [type="range"]):not(select:focus)) + small {
700
700
  color: var(--cirth-del-color);
701
701
  }
702
702
 
@@ -848,6 +848,7 @@
848
848
  .cirth input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]):is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
849
849
  --cirth-icon-position: var(--cirth-space-3);
850
850
  --cirth-icon-width: var(--cirth-size-4);
851
+ min-width: 0;
851
852
  background-image: var(--cirth-icon-date);
852
853
  background-position: center right var(--cirth-icon-position);
853
854
  background-size: var(--cirth-icon-width) auto;
@@ -898,9 +899,9 @@
898
899
  }
899
900
 
900
901
  @supports not selector(::-webkit-calendar-picker-indicator) {
901
- .cirth [type="date"], .cirth [type="datetime-local"], .cirth [type="month"], .cirth [type="time"], .cirth [type="week"] {
902
- background-image: none;
903
- padding-inline-end: var(--cirth-form-element-spacing-horizontal);
902
+ .cirth input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]):is([type="date"], [type="datetime-local"]) {
903
+ color: #0000;
904
+ -webkit-text-fill-color: var(--cirth-form-element-color);
904
905
  }
905
906
  }
906
907
 
@@ -1183,28 +1184,28 @@
1183
1184
  margin-bottom: 0;
1184
1185
  }
1185
1186
 
1186
- .cirth [role="search"] > *, .cirth [role="search"] input:not([type="checkbox"], [type="radio"]), .cirth [role="search"] select, .cirth [role="group"]:not(fieldset) > *, .cirth [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]), .cirth [role="group"]:not(fieldset) select {
1187
+ .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 [role="group"]:not(fieldset) > :not([hidden], input[type="hidden"]), .cirth [role="group"]:not(fieldset) input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]), .cirth [role="group"]:not(fieldset) select:not([hidden]) {
1187
1188
  flex: auto;
1188
1189
  margin-bottom: 0;
1189
1190
  position: relative;
1190
1191
  }
1191
1192
 
1192
- .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 [role="group"]:not(fieldset) > :is(input, select, textarea), .cirth [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):is(input, select, textarea), .cirth [role="group"]:not(fieldset) select:is(input, select, textarea) {
1193
+ .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 [role="group"]:not(fieldset) > :not([hidden], input[type="hidden"]):is(input, select, textarea), .cirth [role="group"]:not(fieldset) input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):is(input, select, textarea), .cirth [role="group"]:not(fieldset) select:not([hidden]):is(input, select, textarea) {
1193
1194
  flex: 99;
1194
1195
  }
1195
1196
 
1196
- .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 [role="group"]:not(fieldset) > :not(:first-child), .cirth [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):not(:first-child), .cirth [role="group"]:not(fieldset) select:not(:first-child) {
1197
+ .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 [role="group"]:not(fieldset) > :not([hidden], input[type="hidden"]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) select:not([hidden]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))) {
1197
1198
  border-start-start-radius: 0;
1198
1199
  border-end-start-radius: 0;
1199
1200
  margin-inline-start: 0;
1200
1201
  }
1201
1202
 
1202
- .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 [role="group"]:not(fieldset) > :not(:last-child), .cirth [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):not(:last-child), .cirth [role="group"]:not(fieldset) select:not(:last-child) {
1203
+ .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 [role="group"]:not(fieldset) > :not([hidden], input[type="hidden"]):not(:nth-last-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):not(:nth-last-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) select:not([hidden]):not(:nth-last-child(1 of :not([hidden], input[type="hidden"]))) {
1203
1204
  border-start-end-radius: 0;
1204
1205
  border-end-end-radius: 0;
1205
1206
  }
1206
1207
 
1207
- .cirth [role="search"] > :focus, .cirth [role="search"] input:not([type="checkbox"], [type="radio"]):focus, .cirth [role="search"] select:focus, .cirth [role="group"]:not(fieldset) > :focus, .cirth [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):focus, .cirth [role="group"]:not(fieldset) select:focus {
1208
+ .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 [role="group"]:not(fieldset) > :not([hidden], input[type="hidden"]):focus, .cirth [role="group"]:not(fieldset) input:not([hidden], [type="checkbox"], [type="hidden"], [type="radio"]):focus, .cirth [role="group"]:not(fieldset) select:not([hidden]):focus {
1208
1209
  z-index: 2;
1209
1210
  }
1210
1211
 
@@ -1218,7 +1219,7 @@
1218
1219
  border-end-end-radius: var(--cirth-border-radius);
1219
1220
  }
1220
1221
 
1221
- .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 [role="group"]:not(fieldset) button:not(:first-child), .cirth [role="group"]:not(fieldset) [type="submit"]:not(:first-child), .cirth [role="group"]:not(fieldset) [type="reset"]:not(:first-child), .cirth [role="group"]:not(fieldset) [type="button"]:not(:first-child), .cirth [role="group"]:not(fieldset) [role="button"]:not(:first-child), .cirth [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):not(:first-child), .cirth [role="group"]:not(fieldset) select:not(:first-child) {
1222
+ .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 [role="group"]:not(fieldset) button:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) [type="submit"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) [type="reset"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) [type="button"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) [role="button"]:not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) input:not([type="checkbox"], [type="radio"]):not(:nth-child(1 of :not([hidden], input[type="hidden"]))), .cirth [role="group"]:not(fieldset) select:not(:nth-child(1 of :not([hidden], input[type="hidden"]))) {
1222
1223
  margin-inline-start: calc(var(--cirth-border-width) * -1);
1223
1224
  }
1224
1225
 
@@ -1320,12 +1321,12 @@
1320
1321
  }
1321
1322
  }
1322
1323
 
1323
- .cirth [role="search"] > :first-child {
1324
+ .cirth [role="search"] > :not([hidden], input[type="hidden"]):nth-child(1 of :not([hidden], input[type="hidden"])) {
1324
1325
  border-start-start-radius: var(--cirth-radius-pill);
1325
1326
  border-end-start-radius: var(--cirth-radius-pill);
1326
1327
  }
1327
1328
 
1328
- .cirth [role="search"] > :last-child {
1329
+ .cirth [role="search"] > :not([hidden], input[type="hidden"]):nth-last-child(1 of :not([hidden], input[type="hidden"])) {
1329
1330
  border-start-end-radius: var(--cirth-radius-pill);
1330
1331
  border-end-end-radius: var(--cirth-radius-pill);
1331
1332
  }