@rescui/typography 0.16.4 → 0.17.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/lib/create-text-cn.d.ts +0 -2
- package/lib/create-text-cn.js +5 -4
- package/lib/index-moduled.css +1252 -0
- package/lib/index-moduled.p.module.css.js +118 -0
- package/lib/index.css +13 -64
- package/lib/index.d.ts +0 -1
- package/lib/index.js +1 -1
- package/lib/mixins.p.css +155 -316
- package/lib/mixins.pcss +155 -316
- package/lib/public-api.p.css +7 -92
- package/lib/public-api.pcss +7 -92
- package/package.json +6 -6
- package/lib/any.d.ts +0 -1
package/lib/public-api.p.css
CHANGED
|
@@ -667,15 +667,6 @@
|
|
|
667
667
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.15em;
|
|
668
668
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
669
669
|
}
|
|
670
|
-
@define-mixin rs-typography-auto-offset-true{
|
|
671
|
-
--_rs-typography-auto-offset-or-initial:var(
|
|
672
|
-
--_rs-typography-text-auto-offset,
|
|
673
|
-
0
|
|
674
|
-
);
|
|
675
|
-
}
|
|
676
|
-
@define-mixin rs-typography-auto-offset-false{
|
|
677
|
-
--_rs-typography-auto-offset-or-initial:initial;
|
|
678
|
-
}
|
|
679
670
|
@define-mixin rs-typography-ul{
|
|
680
671
|
--_rs-typography-list-li-content-base:'\2022';
|
|
681
672
|
--_rs-typography-list-counter:initial;
|
|
@@ -906,10 +897,11 @@
|
|
|
906
897
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
907
898
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
908
899
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
909
|
-
|
|
900
|
+
}
|
|
901
|
+
@define-mixin rs-typography-paragraph-auto-offset-styles{
|
|
910
902
|
& > p:not(:nth-child(1)),
|
|
911
903
|
& > pre:not(:nth-child(1)){
|
|
912
|
-
|
|
904
|
+
margin-top:var(--_rs-typography-text-auto-offset, 0);
|
|
913
905
|
}
|
|
914
906
|
}
|
|
915
907
|
@define-mixin rs-typography-list-styles{
|
|
@@ -1033,14 +1025,14 @@
|
|
|
1033
1025
|
font-size:16px;
|
|
1034
1026
|
line-height:24px;
|
|
1035
1027
|
> code,
|
|
1036
|
-
>
|
|
1028
|
+
> [class*='rs-code']{
|
|
1037
1029
|
border:0;
|
|
1038
1030
|
|
|
1039
1031
|
white-space:pre;
|
|
1040
1032
|
word-break:normal;
|
|
1041
1033
|
}
|
|
1042
1034
|
code,
|
|
1043
|
-
|
|
1035
|
+
[class*='rs-code']{
|
|
1044
1036
|
display:inline;
|
|
1045
1037
|
overflow:visible;
|
|
1046
1038
|
|
|
@@ -1269,10 +1261,6 @@
|
|
|
1269
1261
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1270
1262
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1271
1263
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1272
|
-
& > p:not(:nth-child(1)),
|
|
1273
|
-
& > pre:not(:nth-child(1)){
|
|
1274
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1275
|
-
}
|
|
1276
1264
|
|
|
1277
1265
|
color:var(--_rs-typography-base-color);
|
|
1278
1266
|
}
|
|
@@ -1328,10 +1316,6 @@
|
|
|
1328
1316
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1329
1317
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1330
1318
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1331
|
-
& > p:not(:nth-child(1)),
|
|
1332
|
-
& > pre:not(:nth-child(1)){
|
|
1333
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1334
|
-
}
|
|
1335
1319
|
|
|
1336
1320
|
color:var(--_rs-typography-base-color);
|
|
1337
1321
|
}
|
|
@@ -1413,10 +1397,6 @@
|
|
|
1413
1397
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1414
1398
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1415
1399
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1416
|
-
& > p:not(:nth-child(1)),
|
|
1417
|
-
& > pre:not(:nth-child(1)){
|
|
1418
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1419
|
-
}
|
|
1420
1400
|
|
|
1421
1401
|
color:var(--_rs-typography-base-color);
|
|
1422
1402
|
}
|
|
@@ -1485,10 +1465,6 @@
|
|
|
1485
1465
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1486
1466
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1487
1467
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1488
|
-
& > p:not(:nth-child(1)),
|
|
1489
|
-
& > pre:not(:nth-child(1)){
|
|
1490
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1491
|
-
}
|
|
1492
1468
|
|
|
1493
1469
|
color:var(--_rs-typography-base-color);
|
|
1494
1470
|
}
|
|
@@ -1554,10 +1530,6 @@
|
|
|
1554
1530
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1555
1531
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1556
1532
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1557
|
-
& > p:not(:nth-child(1)),
|
|
1558
|
-
& > pre:not(:nth-child(1)){
|
|
1559
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1560
|
-
}
|
|
1561
1533
|
|
|
1562
1534
|
color:var(--_rs-typography-base-color);
|
|
1563
1535
|
}
|
|
@@ -1618,10 +1590,6 @@
|
|
|
1618
1590
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1619
1591
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1620
1592
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1621
|
-
& > p:not(:nth-child(1)),
|
|
1622
|
-
& > pre:not(:nth-child(1)){
|
|
1623
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1624
|
-
}
|
|
1625
1593
|
|
|
1626
1594
|
color:var(--_rs-typography-base-color);
|
|
1627
1595
|
}
|
|
@@ -1681,10 +1649,6 @@
|
|
|
1681
1649
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1682
1650
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1683
1651
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1684
|
-
& > p:not(:nth-child(1)),
|
|
1685
|
-
& > pre:not(:nth-child(1)){
|
|
1686
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1687
|
-
}
|
|
1688
1652
|
|
|
1689
1653
|
color:var(--_rs-typography-base-color);
|
|
1690
1654
|
}
|
|
@@ -1734,10 +1698,6 @@
|
|
|
1734
1698
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1735
1699
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1736
1700
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1737
|
-
& > p:not(:nth-child(1)),
|
|
1738
|
-
& > pre:not(:nth-child(1)){
|
|
1739
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1740
|
-
}
|
|
1741
1701
|
|
|
1742
1702
|
color:var(--_rs-typography-base-color);
|
|
1743
1703
|
}
|
|
@@ -1787,10 +1747,6 @@
|
|
|
1787
1747
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1788
1748
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1789
1749
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1790
|
-
& > p:not(:nth-child(1)),
|
|
1791
|
-
& > pre:not(:nth-child(1)){
|
|
1792
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1793
|
-
}
|
|
1794
1750
|
|
|
1795
1751
|
color:var(--_rs-typography-base-color);
|
|
1796
1752
|
}
|
|
@@ -1840,10 +1796,6 @@
|
|
|
1840
1796
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1841
1797
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1842
1798
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1843
|
-
& > p:not(:nth-child(1)),
|
|
1844
|
-
& > pre:not(:nth-child(1)){
|
|
1845
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1846
|
-
}
|
|
1847
1799
|
|
|
1848
1800
|
color:var(--_rs-typography-base-color);
|
|
1849
1801
|
}
|
|
@@ -1909,10 +1861,6 @@
|
|
|
1909
1861
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1910
1862
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1911
1863
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1912
|
-
& > p:not(:nth-child(1)),
|
|
1913
|
-
& > pre:not(:nth-child(1)){
|
|
1914
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1915
|
-
}
|
|
1916
1864
|
|
|
1917
1865
|
color:var(--_rs-typography-base-color);
|
|
1918
1866
|
}
|
|
@@ -1978,10 +1926,6 @@
|
|
|
1978
1926
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1979
1927
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1980
1928
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1981
|
-
& > p:not(:nth-child(1)),
|
|
1982
|
-
& > pre:not(:nth-child(1)){
|
|
1983
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1984
|
-
}
|
|
1985
1929
|
|
|
1986
1930
|
color:var(--_rs-typography-base-color);
|
|
1987
1931
|
}
|
|
@@ -2037,10 +1981,6 @@
|
|
|
2037
1981
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
2038
1982
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
2039
1983
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
2040
|
-
& > p:not(:nth-child(1)),
|
|
2041
|
-
& > pre:not(:nth-child(1)){
|
|
2042
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
2043
|
-
}
|
|
2044
1984
|
|
|
2045
1985
|
color:var(--_rs-typography-base-color);
|
|
2046
1986
|
}
|
|
@@ -2099,10 +2039,6 @@
|
|
|
2099
2039
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
2100
2040
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
2101
2041
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
2102
|
-
& > p:not(:nth-child(1)),
|
|
2103
|
-
& > pre:not(:nth-child(1)){
|
|
2104
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
2105
|
-
}
|
|
2106
2042
|
|
|
2107
2043
|
color:var(--_rs-typography-base-color);
|
|
2108
2044
|
}
|
|
@@ -2161,10 +2097,6 @@
|
|
|
2161
2097
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
2162
2098
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
2163
2099
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
2164
|
-
& > p:not(:nth-child(1)),
|
|
2165
|
-
& > pre:not(:nth-child(1)){
|
|
2166
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
2167
|
-
}
|
|
2168
2100
|
|
|
2169
2101
|
color:var(--_rs-typography-base-color);
|
|
2170
2102
|
}
|
|
@@ -2220,10 +2152,6 @@
|
|
|
2220
2152
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
2221
2153
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
2222
2154
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
2223
|
-
& > p:not(:nth-child(1)),
|
|
2224
|
-
& > pre:not(:nth-child(1)){
|
|
2225
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
2226
|
-
}
|
|
2227
2155
|
|
|
2228
2156
|
color:var(--_rs-typography-base-color);
|
|
2229
2157
|
}
|
|
@@ -2406,14 +2334,14 @@
|
|
|
2406
2334
|
font-size:16px;
|
|
2407
2335
|
line-height:24px;
|
|
2408
2336
|
> code,
|
|
2409
|
-
>
|
|
2337
|
+
> [class*='rs-code']{
|
|
2410
2338
|
border:0;
|
|
2411
2339
|
|
|
2412
2340
|
white-space:pre;
|
|
2413
2341
|
word-break:normal;
|
|
2414
2342
|
}
|
|
2415
2343
|
code,
|
|
2416
|
-
|
|
2344
|
+
[class*='rs-code']{
|
|
2417
2345
|
display:inline;
|
|
2418
2346
|
overflow:visible;
|
|
2419
2347
|
|
|
@@ -3278,19 +3206,6 @@
|
|
|
3278
3206
|
--_rs-typography-hardness-color:initial;
|
|
3279
3207
|
}
|
|
3280
3208
|
}
|
|
3281
|
-
@define-mixin rs-text-cn-auto-offset-true{
|
|
3282
|
-
&:not(html){
|
|
3283
|
-
--_rs-typography-auto-offset-or-initial:var(
|
|
3284
|
-
--_rs-typography-text-auto-offset,
|
|
3285
|
-
0
|
|
3286
|
-
);
|
|
3287
|
-
}
|
|
3288
|
-
}
|
|
3289
|
-
@define-mixin rs-text-cn-auto-offset-false{
|
|
3290
|
-
&:not(html){
|
|
3291
|
-
--_rs-typography-auto-offset-or-initial:initial;
|
|
3292
|
-
}
|
|
3293
|
-
}
|
|
3294
3209
|
@define-mixin rs-text-cn-list-offset-items-8{
|
|
3295
3210
|
&:not(html){
|
|
3296
3211
|
--_rs-typography-list-li-margin-top:8px;
|
package/lib/public-api.pcss
CHANGED
|
@@ -667,15 +667,6 @@
|
|
|
667
667
|
--_rs-typography-link-external-standalone-border-offset-from-text-base:1.15em;
|
|
668
668
|
--_rs-typography-link-border-bottom-width-from-text:2px;
|
|
669
669
|
}
|
|
670
|
-
@define-mixin rs-typography-auto-offset-true{
|
|
671
|
-
--_rs-typography-auto-offset-or-initial:var(
|
|
672
|
-
--_rs-typography-text-auto-offset,
|
|
673
|
-
0
|
|
674
|
-
);
|
|
675
|
-
}
|
|
676
|
-
@define-mixin rs-typography-auto-offset-false{
|
|
677
|
-
--_rs-typography-auto-offset-or-initial:initial;
|
|
678
|
-
}
|
|
679
670
|
@define-mixin rs-typography-ul{
|
|
680
671
|
--_rs-typography-list-li-content-base:'\2022';
|
|
681
672
|
--_rs-typography-list-counter:initial;
|
|
@@ -906,10 +897,11 @@
|
|
|
906
897
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
907
898
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
908
899
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
909
|
-
|
|
900
|
+
}
|
|
901
|
+
@define-mixin rs-typography-paragraph-auto-offset-styles{
|
|
910
902
|
& > p:not(:nth-child(1)),
|
|
911
903
|
& > pre:not(:nth-child(1)){
|
|
912
|
-
|
|
904
|
+
margin-top:var(--_rs-typography-text-auto-offset, 0);
|
|
913
905
|
}
|
|
914
906
|
}
|
|
915
907
|
@define-mixin rs-typography-list-styles{
|
|
@@ -1033,14 +1025,14 @@
|
|
|
1033
1025
|
font-size:16px;
|
|
1034
1026
|
line-height:24px;
|
|
1035
1027
|
> code,
|
|
1036
|
-
>
|
|
1028
|
+
> [class*='rs-code']{
|
|
1037
1029
|
border:0;
|
|
1038
1030
|
|
|
1039
1031
|
white-space:pre;
|
|
1040
1032
|
word-break:normal;
|
|
1041
1033
|
}
|
|
1042
1034
|
code,
|
|
1043
|
-
|
|
1035
|
+
[class*='rs-code']{
|
|
1044
1036
|
display:inline;
|
|
1045
1037
|
overflow:visible;
|
|
1046
1038
|
|
|
@@ -1269,10 +1261,6 @@
|
|
|
1269
1261
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1270
1262
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1271
1263
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1272
|
-
& > p:not(:nth-child(1)),
|
|
1273
|
-
& > pre:not(:nth-child(1)){
|
|
1274
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1275
|
-
}
|
|
1276
1264
|
|
|
1277
1265
|
color:var(--_rs-typography-base-color);
|
|
1278
1266
|
}
|
|
@@ -1328,10 +1316,6 @@
|
|
|
1328
1316
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1329
1317
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1330
1318
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1331
|
-
& > p:not(:nth-child(1)),
|
|
1332
|
-
& > pre:not(:nth-child(1)){
|
|
1333
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1334
|
-
}
|
|
1335
1319
|
|
|
1336
1320
|
color:var(--_rs-typography-base-color);
|
|
1337
1321
|
}
|
|
@@ -1413,10 +1397,6 @@
|
|
|
1413
1397
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1414
1398
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1415
1399
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1416
|
-
& > p:not(:nth-child(1)),
|
|
1417
|
-
& > pre:not(:nth-child(1)){
|
|
1418
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1419
|
-
}
|
|
1420
1400
|
|
|
1421
1401
|
color:var(--_rs-typography-base-color);
|
|
1422
1402
|
}
|
|
@@ -1485,10 +1465,6 @@
|
|
|
1485
1465
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1486
1466
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1487
1467
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1488
|
-
& > p:not(:nth-child(1)),
|
|
1489
|
-
& > pre:not(:nth-child(1)){
|
|
1490
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1491
|
-
}
|
|
1492
1468
|
|
|
1493
1469
|
color:var(--_rs-typography-base-color);
|
|
1494
1470
|
}
|
|
@@ -1554,10 +1530,6 @@
|
|
|
1554
1530
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1555
1531
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1556
1532
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1557
|
-
& > p:not(:nth-child(1)),
|
|
1558
|
-
& > pre:not(:nth-child(1)){
|
|
1559
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1560
|
-
}
|
|
1561
1533
|
|
|
1562
1534
|
color:var(--_rs-typography-base-color);
|
|
1563
1535
|
}
|
|
@@ -1618,10 +1590,6 @@
|
|
|
1618
1590
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1619
1591
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1620
1592
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1621
|
-
& > p:not(:nth-child(1)),
|
|
1622
|
-
& > pre:not(:nth-child(1)){
|
|
1623
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1624
|
-
}
|
|
1625
1593
|
|
|
1626
1594
|
color:var(--_rs-typography-base-color);
|
|
1627
1595
|
}
|
|
@@ -1681,10 +1649,6 @@
|
|
|
1681
1649
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1682
1650
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1683
1651
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1684
|
-
& > p:not(:nth-child(1)),
|
|
1685
|
-
& > pre:not(:nth-child(1)){
|
|
1686
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1687
|
-
}
|
|
1688
1652
|
|
|
1689
1653
|
color:var(--_rs-typography-base-color);
|
|
1690
1654
|
}
|
|
@@ -1734,10 +1698,6 @@
|
|
|
1734
1698
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1735
1699
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1736
1700
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1737
|
-
& > p:not(:nth-child(1)),
|
|
1738
|
-
& > pre:not(:nth-child(1)){
|
|
1739
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1740
|
-
}
|
|
1741
1701
|
|
|
1742
1702
|
color:var(--_rs-typography-base-color);
|
|
1743
1703
|
}
|
|
@@ -1787,10 +1747,6 @@
|
|
|
1787
1747
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1788
1748
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1789
1749
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1790
|
-
& > p:not(:nth-child(1)),
|
|
1791
|
-
& > pre:not(:nth-child(1)){
|
|
1792
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1793
|
-
}
|
|
1794
1750
|
|
|
1795
1751
|
color:var(--_rs-typography-base-color);
|
|
1796
1752
|
}
|
|
@@ -1840,10 +1796,6 @@
|
|
|
1840
1796
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1841
1797
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1842
1798
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1843
|
-
& > p:not(:nth-child(1)),
|
|
1844
|
-
& > pre:not(:nth-child(1)){
|
|
1845
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1846
|
-
}
|
|
1847
1799
|
|
|
1848
1800
|
color:var(--_rs-typography-base-color);
|
|
1849
1801
|
}
|
|
@@ -1909,10 +1861,6 @@
|
|
|
1909
1861
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1910
1862
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1911
1863
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1912
|
-
& > p:not(:nth-child(1)),
|
|
1913
|
-
& > pre:not(:nth-child(1)){
|
|
1914
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1915
|
-
}
|
|
1916
1864
|
|
|
1917
1865
|
color:var(--_rs-typography-base-color);
|
|
1918
1866
|
}
|
|
@@ -1978,10 +1926,6 @@
|
|
|
1978
1926
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
1979
1927
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
1980
1928
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
1981
|
-
& > p:not(:nth-child(1)),
|
|
1982
|
-
& > pre:not(:nth-child(1)){
|
|
1983
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
1984
|
-
}
|
|
1985
1929
|
|
|
1986
1930
|
color:var(--_rs-typography-base-color);
|
|
1987
1931
|
}
|
|
@@ -2037,10 +1981,6 @@
|
|
|
2037
1981
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
2038
1982
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
2039
1983
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
2040
|
-
& > p:not(:nth-child(1)),
|
|
2041
|
-
& > pre:not(:nth-child(1)){
|
|
2042
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
2043
|
-
}
|
|
2044
1984
|
|
|
2045
1985
|
color:var(--_rs-typography-base-color);
|
|
2046
1986
|
}
|
|
@@ -2099,10 +2039,6 @@
|
|
|
2099
2039
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
2100
2040
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
2101
2041
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
2102
|
-
& > p:not(:nth-child(1)),
|
|
2103
|
-
& > pre:not(:nth-child(1)){
|
|
2104
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
2105
|
-
}
|
|
2106
2042
|
|
|
2107
2043
|
color:var(--_rs-typography-base-color);
|
|
2108
2044
|
}
|
|
@@ -2161,10 +2097,6 @@
|
|
|
2161
2097
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
2162
2098
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
2163
2099
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
2164
|
-
& > p:not(:nth-child(1)),
|
|
2165
|
-
& > pre:not(:nth-child(1)){
|
|
2166
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
2167
|
-
}
|
|
2168
2100
|
|
|
2169
2101
|
color:var(--_rs-typography-base-color);
|
|
2170
2102
|
}
|
|
@@ -2220,10 +2152,6 @@
|
|
|
2220
2152
|
font-variant-numeric:var(--_rs-typography-font-variant-numeric);
|
|
2221
2153
|
-webkit-font-feature-settings:'kern', 'liga', 'calt';
|
|
2222
2154
|
font-feature-settings:'kern', 'liga', 'calt';
|
|
2223
|
-
& > p:not(:nth-child(1)),
|
|
2224
|
-
& > pre:not(:nth-child(1)){
|
|
2225
|
-
padding-top:var(--_rs-typography-auto-offset-or-initial);
|
|
2226
|
-
}
|
|
2227
2155
|
|
|
2228
2156
|
color:var(--_rs-typography-base-color);
|
|
2229
2157
|
}
|
|
@@ -2406,14 +2334,14 @@
|
|
|
2406
2334
|
font-size:16px;
|
|
2407
2335
|
line-height:24px;
|
|
2408
2336
|
> code,
|
|
2409
|
-
>
|
|
2337
|
+
> [class*='rs-code']{
|
|
2410
2338
|
border:0;
|
|
2411
2339
|
|
|
2412
2340
|
white-space:pre;
|
|
2413
2341
|
word-break:normal;
|
|
2414
2342
|
}
|
|
2415
2343
|
code,
|
|
2416
|
-
|
|
2344
|
+
[class*='rs-code']{
|
|
2417
2345
|
display:inline;
|
|
2418
2346
|
overflow:visible;
|
|
2419
2347
|
|
|
@@ -3278,19 +3206,6 @@
|
|
|
3278
3206
|
--_rs-typography-hardness-color:initial;
|
|
3279
3207
|
}
|
|
3280
3208
|
}
|
|
3281
|
-
@define-mixin rs-text-cn-auto-offset-true{
|
|
3282
|
-
&:not(html){
|
|
3283
|
-
--_rs-typography-auto-offset-or-initial:var(
|
|
3284
|
-
--_rs-typography-text-auto-offset,
|
|
3285
|
-
0
|
|
3286
|
-
);
|
|
3287
|
-
}
|
|
3288
|
-
}
|
|
3289
|
-
@define-mixin rs-text-cn-auto-offset-false{
|
|
3290
|
-
&:not(html){
|
|
3291
|
-
--_rs-typography-auto-offset-or-initial:initial;
|
|
3292
|
-
}
|
|
3293
|
-
}
|
|
3294
3209
|
@define-mixin rs-text-cn-list-offset-items-8{
|
|
3295
3210
|
&:not(html){
|
|
3296
3211
|
--_rs-typography-list-li-margin-top:8px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rescui/typography",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "JetBrains",
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@babel/runtime-corejs3": "^7.14.0",
|
|
22
|
-
"@rescui/colors": "^0.2.
|
|
23
|
-
"bem-cn-fast": "^1.0.2",
|
|
22
|
+
"@rescui/colors": "^0.2.3",
|
|
24
23
|
"classnames": "^2.2.6",
|
|
25
24
|
"inter-ui": "^3.15.1"
|
|
26
25
|
},
|
|
@@ -30,7 +29,7 @@
|
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@rescui/postcss-preset-library": "^0.2.1",
|
|
33
|
-
"@rescui/scripts": "^0.3.
|
|
32
|
+
"@rescui/scripts": "^0.3.3",
|
|
34
33
|
"@rescui/visual-regression": "^0.1.2",
|
|
35
34
|
"case": "^1.6.3",
|
|
36
35
|
"fs-extra": "^7.0.1",
|
|
@@ -38,10 +37,11 @@
|
|
|
38
37
|
"shx": "^0.3.3"
|
|
39
38
|
},
|
|
40
39
|
"scripts": {
|
|
41
|
-
"build": "rescui-scripts build --
|
|
40
|
+
"build": "rescui-scripts build --css-out-filename index-moduled && yarn run build-global && yarn run build-api && yarn run build-mixins && shx cp src/font-*.css lib",
|
|
41
|
+
"build-global": "rescui-scripts postcss --glob ./index.p.css --no-clean-out --no-source-maps",
|
|
42
42
|
"build-api": "rescui-scripts build-pcss-api --file public-api.p.css",
|
|
43
43
|
"build-mixins": "rescui-scripts build-pcss-api --file mixins.p.css"
|
|
44
44
|
},
|
|
45
45
|
"nx": {},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "b422496bacb5df4a601008c646abfb08cebe461c"
|
|
47
47
|
}
|
package/lib/any.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module 'bem-cn-fast';
|