@cirthcss/cirth 0.6.0 → 0.8.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.
- package/README.md +1 -1
- package/dist/cirth.classless.css +27 -121
- package/dist/cirth.classless.min.css +1 -1
- package/dist/cirth.classless.scoped.css +27 -121
- package/dist/cirth.classless.scoped.min.css +1 -1
- package/dist/cirth.css +80 -125
- package/dist/cirth.min.css +1 -1
- package/dist/cirth.scoped.css +80 -125
- package/dist/cirth.scoped.min.css +1 -1
- package/package.json +5 -6
package/dist/cirth.css
CHANGED
|
@@ -44,55 +44,48 @@ section {
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.container, .container-fluid {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
margin-inline: auto;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@media (min-width: 576px) {
|
|
53
|
-
.container {
|
|
54
|
-
max-width: 510px;
|
|
55
|
-
padding-inline: 0;
|
|
56
|
-
}
|
|
47
|
+
grid-template-columns: minmax(var(--cirth-spacing), 1fr) minmax(0, 1fr) minmax(var(--cirth-spacing), 1fr);
|
|
48
|
+
display: grid;
|
|
57
49
|
}
|
|
58
50
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
max-width: 700px;
|
|
62
|
-
}
|
|
51
|
+
.container > *, .container-fluid > * {
|
|
52
|
+
grid-column: 2;
|
|
63
53
|
}
|
|
64
54
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
max-width: 950px;
|
|
68
|
-
}
|
|
55
|
+
.container {
|
|
56
|
+
grid-template-columns: minmax(var(--cirth-spacing), 1fr) minmax(0, var(--cirth-container-max-width)) minmax(var(--cirth-spacing), 1fr);
|
|
69
57
|
}
|
|
70
58
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
max-width: 1200px;
|
|
74
|
-
}
|
|
59
|
+
.breakout {
|
|
60
|
+
grid-column: 1 / -1;
|
|
75
61
|
}
|
|
76
62
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
max-width: 1450px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.grid {
|
|
84
|
-
grid-column-gap: var(--cirth-grid-column-gap);
|
|
85
|
-
grid-row-gap: var(--cirth-grid-row-gap);
|
|
63
|
+
.row {
|
|
64
|
+
gap: var(--cirth-grid-row-gap) var(--cirth-grid-column-gap);
|
|
86
65
|
grid-template-columns: 1fr;
|
|
87
66
|
display: grid;
|
|
88
67
|
}
|
|
89
68
|
|
|
90
69
|
@media (min-width: 768px) {
|
|
91
|
-
.
|
|
70
|
+
.row {
|
|
92
71
|
grid-template-columns: repeat(auto-fit, minmax(0%, 1fr));
|
|
93
72
|
}
|
|
94
73
|
}
|
|
95
74
|
|
|
75
|
+
.row > * {
|
|
76
|
+
min-width: 0;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.row > :where(button, [type="submit"], [type="reset"], [role="button"], input:not([type="checkbox"], [type="radio"]), select, textarea) {
|
|
80
|
+
margin-bottom: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.grid {
|
|
84
|
+
gap: var(--cirth-grid-row-gap) var(--cirth-grid-column-gap);
|
|
85
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--cirth-grid-min-column)), 1fr));
|
|
86
|
+
display: grid;
|
|
87
|
+
}
|
|
88
|
+
|
|
96
89
|
.grid > * {
|
|
97
90
|
min-width: 0;
|
|
98
91
|
}
|
|
@@ -296,7 +289,6 @@ button {
|
|
|
296
289
|
text-transform: none;
|
|
297
290
|
margin: 0;
|
|
298
291
|
font-family: inherit;
|
|
299
|
-
overflow: visible;
|
|
300
292
|
}
|
|
301
293
|
|
|
302
294
|
button, [type="submit"], [type="reset"], [type="button"] {
|
|
@@ -499,6 +491,7 @@ button:focus-visible, button[aria-current]:not([aria-current="false"]):focus-vis
|
|
|
499
491
|
border-collapse: collapse;
|
|
500
492
|
border-spacing: 0;
|
|
501
493
|
text-indent: 0;
|
|
494
|
+
border-color: currentColor;
|
|
502
495
|
width: 100%;
|
|
503
496
|
}
|
|
504
497
|
|
|
@@ -524,21 +517,11 @@ table.striped tbody tr:nth-child(odd) th, table.striped tbody tr:nth-child(odd)
|
|
|
524
517
|
vertical-align: middle;
|
|
525
518
|
}
|
|
526
519
|
|
|
527
|
-
audio, video {
|
|
528
|
-
display: inline-block;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
audio:not([controls]) {
|
|
532
|
-
height: 0;
|
|
533
|
-
display: none;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
520
|
:where(iframe) {
|
|
537
521
|
border-style: none;
|
|
538
522
|
}
|
|
539
523
|
|
|
540
524
|
img {
|
|
541
|
-
border-style: none;
|
|
542
525
|
max-width: 100%;
|
|
543
526
|
}
|
|
544
527
|
|
|
@@ -550,10 +533,6 @@ img:where(:not([height]), [width][height]) {
|
|
|
550
533
|
fill: currentColor;
|
|
551
534
|
}
|
|
552
535
|
|
|
553
|
-
svg:not(:root), svg:not(:host) {
|
|
554
|
-
overflow: hidden;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
536
|
pre, code, kbd, samp {
|
|
558
537
|
font-size: .875em;
|
|
559
538
|
font-family: var(--cirth-font-family);
|
|
@@ -565,7 +544,6 @@ pre code, pre samp {
|
|
|
565
544
|
}
|
|
566
545
|
|
|
567
546
|
pre {
|
|
568
|
-
-ms-overflow-style: scrollbar;
|
|
569
547
|
overflow: auto;
|
|
570
548
|
}
|
|
571
549
|
|
|
@@ -627,14 +605,10 @@ hr {
|
|
|
627
605
|
color: inherit;
|
|
628
606
|
}
|
|
629
607
|
|
|
630
|
-
[hidden]
|
|
608
|
+
[hidden]:where(:not([hidden="until-found"])) {
|
|
631
609
|
display: none;
|
|
632
610
|
}
|
|
633
611
|
|
|
634
|
-
canvas {
|
|
635
|
-
display: inline-block;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
612
|
input, optgroup, select, textarea {
|
|
639
613
|
font-size: var(--cirth-font-size-md);
|
|
640
614
|
line-height: var(--cirth-line-height);
|
|
@@ -643,26 +617,7 @@ input, optgroup, select, textarea {
|
|
|
643
617
|
font-family: inherit;
|
|
644
618
|
}
|
|
645
619
|
|
|
646
|
-
input {
|
|
647
|
-
overflow: visible;
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
select {
|
|
651
|
-
text-transform: none;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
620
|
legend {
|
|
655
|
-
max-width: 100%;
|
|
656
|
-
color: inherit;
|
|
657
|
-
white-space: normal;
|
|
658
|
-
padding: 0;
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
textarea {
|
|
662
|
-
overflow: auto;
|
|
663
|
-
}
|
|
664
|
-
|
|
665
|
-
[type="checkbox"], [type="radio"] {
|
|
666
621
|
padding: 0;
|
|
667
622
|
}
|
|
668
623
|
|
|
@@ -683,28 +638,15 @@ textarea {
|
|
|
683
638
|
-webkit-appearance: none;
|
|
684
639
|
}
|
|
685
640
|
|
|
686
|
-
|
|
641
|
+
::file-selector-button {
|
|
687
642
|
-webkit-appearance: button;
|
|
688
643
|
font: inherit;
|
|
689
644
|
}
|
|
690
645
|
|
|
691
|
-
::-moz-focus-inner {
|
|
692
|
-
border-style: none;
|
|
693
|
-
padding: 0;
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
:-moz-focusring {
|
|
697
|
-
outline: none;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
646
|
:-moz-ui-invalid {
|
|
701
647
|
box-shadow: none;
|
|
702
648
|
}
|
|
703
649
|
|
|
704
|
-
::-ms-expand {
|
|
705
|
-
display: none;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
650
|
[type="file"], [type="range"] {
|
|
709
651
|
border-width: 0;
|
|
710
652
|
padding: 0;
|
|
@@ -781,11 +723,10 @@ label[aria-disabled="true"] input[disabled] {
|
|
|
781
723
|
}
|
|
782
724
|
|
|
783
725
|
:where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"])[aria-invalid] {
|
|
726
|
+
padding-inline: var(--cirth-form-element-spacing-horizontal) calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
|
|
784
727
|
background-position: center right var(--cirth-space-3);
|
|
785
728
|
background-size: var(--cirth-size-4) auto;
|
|
786
729
|
background-repeat: no-repeat;
|
|
787
|
-
padding-inline-start: var(--cirth-form-element-spacing-horizontal);
|
|
788
|
-
padding-inline-end: calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
|
|
789
730
|
}
|
|
790
731
|
|
|
791
732
|
: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) {
|
|
@@ -835,32 +776,16 @@ input::placeholder, textarea::placeholder, select:invalid {
|
|
|
835
776
|
opacity: 1;
|
|
836
777
|
}
|
|
837
778
|
|
|
838
|
-
input::-webkit-input-placeholder {
|
|
839
|
-
color: var(--cirth-form-element-placeholder-color);
|
|
840
|
-
opacity: 1;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
textarea::-webkit-input-placeholder {
|
|
844
|
-
color: var(--cirth-form-element-placeholder-color);
|
|
845
|
-
opacity: 1;
|
|
846
|
-
}
|
|
847
|
-
|
|
848
779
|
input:not([type="checkbox"], [type="radio"]), select, textarea {
|
|
849
780
|
margin-bottom: var(--cirth-spacing);
|
|
850
781
|
}
|
|
851
782
|
|
|
852
|
-
select::-ms-expand {
|
|
853
|
-
background-color: #0000;
|
|
854
|
-
border: 0;
|
|
855
|
-
}
|
|
856
|
-
|
|
857
783
|
select:not([multiple], [size]) {
|
|
784
|
+
padding-inline: var(--cirth-form-element-spacing-horizontal) calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
|
|
858
785
|
background-image: var(--cirth-icon-chevron);
|
|
859
786
|
background-position: center right var(--cirth-space-3);
|
|
860
787
|
background-size: var(--cirth-size-4) auto;
|
|
861
788
|
background-repeat: no-repeat;
|
|
862
|
-
padding-inline-start: var(--cirth-form-element-spacing-horizontal);
|
|
863
|
-
padding-inline-end: calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
|
|
864
789
|
}
|
|
865
790
|
|
|
866
791
|
select[multiple] option:checked {
|
|
@@ -885,7 +810,7 @@ textarea[aria-invalid] {
|
|
|
885
810
|
background-size: var(--cirth-size-4) var(--cirth-icon-height);
|
|
886
811
|
}
|
|
887
812
|
|
|
888
|
-
:where(input, select, textarea, fieldset, .
|
|
813
|
+
:where(input, select, textarea, fieldset, .row) + small {
|
|
889
814
|
width: 100%;
|
|
890
815
|
margin-top: calc(var(--cirth-spacing) * -.75);
|
|
891
816
|
margin-bottom: var(--cirth-spacing);
|
|
@@ -893,11 +818,11 @@ textarea[aria-invalid] {
|
|
|
893
818
|
display: block;
|
|
894
819
|
}
|
|
895
820
|
|
|
896
|
-
:where(input, select, textarea, fieldset, .
|
|
821
|
+
:where(input, select, textarea, fieldset, .row)[aria-invalid="false"] + small {
|
|
897
822
|
color: var(--cirth-ins-color);
|
|
898
823
|
}
|
|
899
824
|
|
|
900
|
-
:where(input, select, textarea, fieldset, .
|
|
825
|
+
:where(input, select, textarea, fieldset, .row)[aria-invalid="true"] + small {
|
|
901
826
|
color: var(--cirth-del-color);
|
|
902
827
|
}
|
|
903
828
|
|
|
@@ -1060,39 +985,42 @@ input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])[type
|
|
|
1060
985
|
background-image: var(--cirth-icon-time);
|
|
1061
986
|
}
|
|
1062
987
|
|
|
988
|
+
::-webkit-date-and-time-value {
|
|
989
|
+
text-align: inherit;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
::-webkit-datetime-edit {
|
|
993
|
+
padding-block: 0;
|
|
994
|
+
}
|
|
995
|
+
|
|
1063
996
|
[type="date"]::-webkit-calendar-picker-indicator {
|
|
1064
997
|
width: var(--cirth-icon-width);
|
|
998
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
1065
999
|
opacity: 0;
|
|
1066
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
1067
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
1068
1000
|
}
|
|
1069
1001
|
|
|
1070
1002
|
[type="datetime-local"]::-webkit-calendar-picker-indicator {
|
|
1071
1003
|
width: var(--cirth-icon-width);
|
|
1004
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
1072
1005
|
opacity: 0;
|
|
1073
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
1074
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
1075
1006
|
}
|
|
1076
1007
|
|
|
1077
1008
|
[type="month"]::-webkit-calendar-picker-indicator {
|
|
1078
1009
|
width: var(--cirth-icon-width);
|
|
1010
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
1079
1011
|
opacity: 0;
|
|
1080
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
1081
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
1082
1012
|
}
|
|
1083
1013
|
|
|
1084
1014
|
[type="time"]::-webkit-calendar-picker-indicator {
|
|
1085
1015
|
width: var(--cirth-icon-width);
|
|
1016
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
1086
1017
|
opacity: 0;
|
|
1087
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
1088
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
1089
1018
|
}
|
|
1090
1019
|
|
|
1091
1020
|
[type="week"]::-webkit-calendar-picker-indicator {
|
|
1092
1021
|
width: var(--cirth-icon-width);
|
|
1022
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
1093
1023
|
opacity: 0;
|
|
1094
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
1095
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
1096
1024
|
}
|
|
1097
1025
|
|
|
1098
1026
|
@-moz-document url-prefix() {
|
|
@@ -1832,7 +1760,7 @@ dialog:not([open]), dialog[open="false"] {
|
|
|
1832
1760
|
.modal-is-open {
|
|
1833
1761
|
pointer-events: none;
|
|
1834
1762
|
touch-action: none;
|
|
1835
|
-
padding-inline-end: var(--cirth-scrollbar-width,
|
|
1763
|
+
padding-inline-end: var(--cirth-scrollbar-width, 0);
|
|
1836
1764
|
overflow: hidden;
|
|
1837
1765
|
}
|
|
1838
1766
|
|
|
@@ -2189,7 +2117,7 @@ progress::-moz-progress-bar {
|
|
|
2189
2117
|
opacity: 0;
|
|
2190
2118
|
}
|
|
2191
2119
|
|
|
2192
|
-
|
|
2120
|
+
100% {
|
|
2193
2121
|
transform: var(--cirth-tooltip-caret-slide-to);
|
|
2194
2122
|
opacity: 1;
|
|
2195
2123
|
}
|
|
@@ -2208,14 +2136,10 @@ progress::-moz-progress-bar {
|
|
|
2208
2136
|
}
|
|
2209
2137
|
|
|
2210
2138
|
[aria-hidden="false"][hidden]:not(:focus) {
|
|
2211
|
-
clip:
|
|
2139
|
+
clip-path: inset(50%);
|
|
2212
2140
|
position: absolute;
|
|
2213
2141
|
}
|
|
2214
2142
|
|
|
2215
|
-
a, area, button, input, label, select, summary, textarea, [tabindex] {
|
|
2216
|
-
-ms-touch-action: manipulation;
|
|
2217
|
-
}
|
|
2218
|
-
|
|
2219
2143
|
[dir="rtl"] {
|
|
2220
2144
|
direction: rtl;
|
|
2221
2145
|
}
|
|
@@ -2232,6 +2156,34 @@ a, area, button, input, label, select, summary, textarea, [tabindex] {
|
|
|
2232
2156
|
}
|
|
2233
2157
|
}
|
|
2234
2158
|
|
|
2159
|
+
.sr-only {
|
|
2160
|
+
clip-path: inset(50%);
|
|
2161
|
+
white-space: nowrap;
|
|
2162
|
+
border: 0;
|
|
2163
|
+
width: 1px;
|
|
2164
|
+
height: 1px;
|
|
2165
|
+
margin: -1px;
|
|
2166
|
+
padding: 0;
|
|
2167
|
+
position: absolute;
|
|
2168
|
+
overflow: hidden;
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
.sr-only-focusable:focus, .sr-only-focusable:focus-within {
|
|
2172
|
+
clip-path: none;
|
|
2173
|
+
white-space: normal;
|
|
2174
|
+
width: auto;
|
|
2175
|
+
height: auto;
|
|
2176
|
+
margin: 0;
|
|
2177
|
+
position: static;
|
|
2178
|
+
overflow: visible;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
.truncate {
|
|
2182
|
+
white-space: nowrap;
|
|
2183
|
+
text-overflow: ellipsis;
|
|
2184
|
+
overflow: hidden;
|
|
2185
|
+
}
|
|
2186
|
+
|
|
2235
2187
|
:root, :host {
|
|
2236
2188
|
--cirth-color-black: #000;
|
|
2237
2189
|
--cirth-color-white: #fff;
|
|
@@ -2344,8 +2296,10 @@ a, area, button, input, label, select, summary, textarea, [tabindex] {
|
|
|
2344
2296
|
--cirth-typography-spacing-vertical: var(--cirth-space-4);
|
|
2345
2297
|
--cirth-block-spacing-vertical: var(--cirth-spacing);
|
|
2346
2298
|
--cirth-block-spacing-horizontal: var(--cirth-spacing);
|
|
2299
|
+
--cirth-container-max-width: 60rem;
|
|
2347
2300
|
--cirth-grid-column-gap: var(--cirth-spacing);
|
|
2348
2301
|
--cirth-grid-row-gap: var(--cirth-spacing);
|
|
2302
|
+
--cirth-grid-min-column: 12rem;
|
|
2349
2303
|
--cirth-form-element-spacing-vertical: var(--cirth-space-2);
|
|
2350
2304
|
--cirth-form-element-spacing-horizontal: var(--cirth-space-4);
|
|
2351
2305
|
--cirth-form-label-font-weight: var(--cirth-font-weight);
|
|
@@ -2376,6 +2330,7 @@ a, a.secondary, a.contrast {
|
|
|
2376
2330
|
|
|
2377
2331
|
small {
|
|
2378
2332
|
--cirth-font-size: .875em;
|
|
2333
|
+
font-size: var(--cirth-font-size);
|
|
2379
2334
|
}
|
|
2380
2335
|
|
|
2381
2336
|
h1, h2, h3 {
|