@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/README.md
CHANGED
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
Include one stylesheet and write ordinary semantic HTML.
|
|
53
53
|
|
|
54
54
|
```html
|
|
55
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@cirthcss/cirth@0.
|
|
55
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@cirthcss/cirth@0.8.0/dist/cirth.min.css">
|
|
56
56
|
```
|
|
57
57
|
|
|
58
58
|
```html
|
package/dist/cirth.classless.css
CHANGED
|
@@ -36,40 +36,13 @@ main {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
body > header, body > main, body > footer {
|
|
39
|
-
|
|
40
|
-
padding: var(--cirth-block-spacing-vertical)
|
|
41
|
-
|
|
39
|
+
grid-template-columns: minmax(var(--cirth-spacing), 1fr) minmax(0, var(--cirth-container-max-width)) minmax(var(--cirth-spacing), 1fr);
|
|
40
|
+
padding-block: var(--cirth-block-spacing-vertical);
|
|
41
|
+
display: grid;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
max-width: 510px;
|
|
47
|
-
padding-inline: 0;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
@media (min-width: 768px) {
|
|
52
|
-
body > header, body > main, body > footer {
|
|
53
|
-
max-width: 700px;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
@media (min-width: 1024px) {
|
|
58
|
-
body > header, body > main, body > footer {
|
|
59
|
-
max-width: 950px;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
@media (min-width: 1280px) {
|
|
64
|
-
body > header, body > main, body > footer {
|
|
65
|
-
max-width: 1200px;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@media (min-width: 1536px) {
|
|
70
|
-
body > header, body > main, body > footer {
|
|
71
|
-
max-width: 1450px;
|
|
72
|
-
}
|
|
44
|
+
body > header > *, body > main > *, body > footer > * {
|
|
45
|
+
grid-column: 2;
|
|
73
46
|
}
|
|
74
47
|
|
|
75
48
|
section {
|
|
@@ -247,7 +220,6 @@ button {
|
|
|
247
220
|
text-transform: none;
|
|
248
221
|
margin: 0;
|
|
249
222
|
font-family: inherit;
|
|
250
|
-
overflow: visible;
|
|
251
223
|
}
|
|
252
224
|
|
|
253
225
|
button, [type="submit"], [type="reset"], [type="button"] {
|
|
@@ -396,6 +368,7 @@ button:focus-visible, button[aria-current]:not([aria-current="false"]):focus-vis
|
|
|
396
368
|
border-collapse: collapse;
|
|
397
369
|
border-spacing: 0;
|
|
398
370
|
text-indent: 0;
|
|
371
|
+
border-color: currentColor;
|
|
399
372
|
width: 100%;
|
|
400
373
|
}
|
|
401
374
|
|
|
@@ -417,21 +390,11 @@ tfoot th, tfoot td {
|
|
|
417
390
|
vertical-align: middle;
|
|
418
391
|
}
|
|
419
392
|
|
|
420
|
-
audio, video {
|
|
421
|
-
display: inline-block;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
audio:not([controls]) {
|
|
425
|
-
height: 0;
|
|
426
|
-
display: none;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
393
|
:where(iframe) {
|
|
430
394
|
border-style: none;
|
|
431
395
|
}
|
|
432
396
|
|
|
433
397
|
img {
|
|
434
|
-
border-style: none;
|
|
435
398
|
max-width: 100%;
|
|
436
399
|
}
|
|
437
400
|
|
|
@@ -443,10 +406,6 @@ img:where(:not([height]), [width][height]) {
|
|
|
443
406
|
fill: currentColor;
|
|
444
407
|
}
|
|
445
408
|
|
|
446
|
-
svg:not(:root), svg:not(:host) {
|
|
447
|
-
overflow: hidden;
|
|
448
|
-
}
|
|
449
|
-
|
|
450
409
|
pre, code, kbd, samp {
|
|
451
410
|
font-size: .875em;
|
|
452
411
|
font-family: var(--cirth-font-family);
|
|
@@ -458,7 +417,6 @@ pre code, pre samp {
|
|
|
458
417
|
}
|
|
459
418
|
|
|
460
419
|
pre {
|
|
461
|
-
-ms-overflow-style: scrollbar;
|
|
462
420
|
overflow: auto;
|
|
463
421
|
}
|
|
464
422
|
|
|
@@ -520,14 +478,10 @@ hr {
|
|
|
520
478
|
color: inherit;
|
|
521
479
|
}
|
|
522
480
|
|
|
523
|
-
[hidden]
|
|
481
|
+
[hidden]:where(:not([hidden="until-found"])) {
|
|
524
482
|
display: none;
|
|
525
483
|
}
|
|
526
484
|
|
|
527
|
-
canvas {
|
|
528
|
-
display: inline-block;
|
|
529
|
-
}
|
|
530
|
-
|
|
531
485
|
input, optgroup, select, textarea {
|
|
532
486
|
font-size: var(--cirth-font-size-md);
|
|
533
487
|
line-height: var(--cirth-line-height);
|
|
@@ -536,26 +490,7 @@ input, optgroup, select, textarea {
|
|
|
536
490
|
font-family: inherit;
|
|
537
491
|
}
|
|
538
492
|
|
|
539
|
-
input {
|
|
540
|
-
overflow: visible;
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
select {
|
|
544
|
-
text-transform: none;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
493
|
legend {
|
|
548
|
-
max-width: 100%;
|
|
549
|
-
color: inherit;
|
|
550
|
-
white-space: normal;
|
|
551
|
-
padding: 0;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
textarea {
|
|
555
|
-
overflow: auto;
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
[type="checkbox"], [type="radio"] {
|
|
559
494
|
padding: 0;
|
|
560
495
|
}
|
|
561
496
|
|
|
@@ -576,28 +511,15 @@ textarea {
|
|
|
576
511
|
-webkit-appearance: none;
|
|
577
512
|
}
|
|
578
513
|
|
|
579
|
-
|
|
514
|
+
::file-selector-button {
|
|
580
515
|
-webkit-appearance: button;
|
|
581
516
|
font: inherit;
|
|
582
517
|
}
|
|
583
518
|
|
|
584
|
-
::-moz-focus-inner {
|
|
585
|
-
border-style: none;
|
|
586
|
-
padding: 0;
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
:-moz-focusring {
|
|
590
|
-
outline: none;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
519
|
:-moz-ui-invalid {
|
|
594
520
|
box-shadow: none;
|
|
595
521
|
}
|
|
596
522
|
|
|
597
|
-
::-ms-expand {
|
|
598
|
-
display: none;
|
|
599
|
-
}
|
|
600
|
-
|
|
601
523
|
[type="file"], [type="range"] {
|
|
602
524
|
border-width: 0;
|
|
603
525
|
padding: 0;
|
|
@@ -674,11 +596,10 @@ label[aria-disabled="true"] input[disabled] {
|
|
|
674
596
|
}
|
|
675
597
|
|
|
676
598
|
:where(input, select, textarea):not([type="checkbox"], [type="radio"], [type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"], [type="range"])[aria-invalid] {
|
|
599
|
+
padding-inline: var(--cirth-form-element-spacing-horizontal) calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
|
|
677
600
|
background-position: center right var(--cirth-space-3);
|
|
678
601
|
background-size: var(--cirth-size-4) auto;
|
|
679
602
|
background-repeat: no-repeat;
|
|
680
|
-
padding-inline-start: var(--cirth-form-element-spacing-horizontal);
|
|
681
|
-
padding-inline-end: calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
|
|
682
603
|
}
|
|
683
604
|
|
|
684
605
|
: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) {
|
|
@@ -728,32 +649,16 @@ input::placeholder, textarea::placeholder, select:invalid {
|
|
|
728
649
|
opacity: 1;
|
|
729
650
|
}
|
|
730
651
|
|
|
731
|
-
input::-webkit-input-placeholder {
|
|
732
|
-
color: var(--cirth-form-element-placeholder-color);
|
|
733
|
-
opacity: 1;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
|
-
textarea::-webkit-input-placeholder {
|
|
737
|
-
color: var(--cirth-form-element-placeholder-color);
|
|
738
|
-
opacity: 1;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
652
|
input:not([type="checkbox"], [type="radio"]), select, textarea {
|
|
742
653
|
margin-bottom: var(--cirth-spacing);
|
|
743
654
|
}
|
|
744
655
|
|
|
745
|
-
select::-ms-expand {
|
|
746
|
-
background-color: #0000;
|
|
747
|
-
border: 0;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
656
|
select:not([multiple], [size]) {
|
|
657
|
+
padding-inline: var(--cirth-form-element-spacing-horizontal) calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
|
|
751
658
|
background-image: var(--cirth-icon-chevron);
|
|
752
659
|
background-position: center right var(--cirth-space-3);
|
|
753
660
|
background-size: var(--cirth-size-4) auto;
|
|
754
661
|
background-repeat: no-repeat;
|
|
755
|
-
padding-inline-start: var(--cirth-form-element-spacing-horizontal);
|
|
756
|
-
padding-inline-end: calc(var(--cirth-form-element-spacing-horizontal) + var(--cirth-space-6));
|
|
757
662
|
}
|
|
758
663
|
|
|
759
664
|
select[multiple] option:checked {
|
|
@@ -953,39 +858,42 @@ input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"])[type
|
|
|
953
858
|
background-image: var(--cirth-icon-time);
|
|
954
859
|
}
|
|
955
860
|
|
|
861
|
+
::-webkit-date-and-time-value {
|
|
862
|
+
text-align: inherit;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
::-webkit-datetime-edit {
|
|
866
|
+
padding-block: 0;
|
|
867
|
+
}
|
|
868
|
+
|
|
956
869
|
[type="date"]::-webkit-calendar-picker-indicator {
|
|
957
870
|
width: var(--cirth-icon-width);
|
|
871
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
958
872
|
opacity: 0;
|
|
959
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
960
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
961
873
|
}
|
|
962
874
|
|
|
963
875
|
[type="datetime-local"]::-webkit-calendar-picker-indicator {
|
|
964
876
|
width: var(--cirth-icon-width);
|
|
877
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
965
878
|
opacity: 0;
|
|
966
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
967
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
968
879
|
}
|
|
969
880
|
|
|
970
881
|
[type="month"]::-webkit-calendar-picker-indicator {
|
|
971
882
|
width: var(--cirth-icon-width);
|
|
883
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
972
884
|
opacity: 0;
|
|
973
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
974
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
975
885
|
}
|
|
976
886
|
|
|
977
887
|
[type="time"]::-webkit-calendar-picker-indicator {
|
|
978
888
|
width: var(--cirth-icon-width);
|
|
889
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
979
890
|
opacity: 0;
|
|
980
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
981
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
982
891
|
}
|
|
983
892
|
|
|
984
893
|
[type="week"]::-webkit-calendar-picker-indicator {
|
|
985
894
|
width: var(--cirth-icon-width);
|
|
895
|
+
margin-inline: var(--cirth-icon-position) calc(var(--cirth-icon-width) * -1);
|
|
986
896
|
opacity: 0;
|
|
987
|
-
margin-inline-start: var(--cirth-icon-position);
|
|
988
|
-
margin-inline-end: calc(var(--cirth-icon-width) * -1);
|
|
989
897
|
}
|
|
990
898
|
|
|
991
899
|
@-moz-document url-prefix() {
|
|
@@ -1857,7 +1765,7 @@ progress::-moz-progress-bar {
|
|
|
1857
1765
|
opacity: 0;
|
|
1858
1766
|
}
|
|
1859
1767
|
|
|
1860
|
-
|
|
1768
|
+
100% {
|
|
1861
1769
|
transform: var(--cirth-tooltip-caret-slide-to);
|
|
1862
1770
|
opacity: 1;
|
|
1863
1771
|
}
|
|
@@ -1876,14 +1784,10 @@ progress::-moz-progress-bar {
|
|
|
1876
1784
|
}
|
|
1877
1785
|
|
|
1878
1786
|
[aria-hidden="false"][hidden]:not(:focus) {
|
|
1879
|
-
clip:
|
|
1787
|
+
clip-path: inset(50%);
|
|
1880
1788
|
position: absolute;
|
|
1881
1789
|
}
|
|
1882
1790
|
|
|
1883
|
-
a, area, button, input, label, select, summary, textarea, [tabindex] {
|
|
1884
|
-
-ms-touch-action: manipulation;
|
|
1885
|
-
}
|
|
1886
|
-
|
|
1887
1791
|
[dir="rtl"] {
|
|
1888
1792
|
direction: rtl;
|
|
1889
1793
|
}
|
|
@@ -2012,6 +1916,7 @@ a, area, button, input, label, select, summary, textarea, [tabindex] {
|
|
|
2012
1916
|
--cirth-typography-spacing-vertical: var(--cirth-space-4);
|
|
2013
1917
|
--cirth-block-spacing-vertical: var(--cirth-spacing);
|
|
2014
1918
|
--cirth-block-spacing-horizontal: var(--cirth-spacing);
|
|
1919
|
+
--cirth-container-max-width: 60rem;
|
|
2015
1920
|
--cirth-form-element-spacing-vertical: var(--cirth-space-2);
|
|
2016
1921
|
--cirth-form-element-spacing-horizontal: var(--cirth-space-4);
|
|
2017
1922
|
--cirth-form-label-font-weight: var(--cirth-font-weight);
|
|
@@ -2042,6 +1947,7 @@ a {
|
|
|
2042
1947
|
|
|
2043
1948
|
small {
|
|
2044
1949
|
--cirth-font-size: .875em;
|
|
1950
|
+
font-size: var(--cirth-font-size);
|
|
2045
1951
|
}
|
|
2046
1952
|
|
|
2047
1953
|
h1, h2, h3 {
|