aliascss 1.4.4 → 1.4.7
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/aliascss.config.js +32 -32
- package/dist/aliascss.js +1 -1
- package/lib/compilers/color.js +5 -5
- package/lib/compilers/gradient.js +3 -3
- package/lib/compilers/stringAndContent.js +2 -1
- package/lib/component-elements.d.ts +155 -0
- package/lib/component-elements.js +223 -0
- package/lib/config.d.ts +1 -0
- package/lib/config.js +2 -1
- package/lib/css-properties-all.js +337 -202
- package/lib/custom-css-compilers.js +54 -54
- package/lib/extras-elements.d.ts +87 -0
- package/lib/extras-elements.js +184 -0
- package/lib/form-elements.d.ts +75 -0
- package/lib/form-elements.js +186 -0
- package/lib/layout-elements.d.ts +59 -0
- package/lib/layout-elements.js +113 -0
- package/lib/nav-elements.d.ts +71 -0
- package/lib/nav-elements.js +243 -0
- package/lib/node/compileFile-bk.d.ts +27 -0
- package/lib/node/compileFile-bk.js +379 -0
- package/lib/node/compileFile.d.ts +11 -11
- package/lib/node/compileFile.js +170 -235
- package/lib/prebuild.d.ts +520 -12
- package/lib/prebuild.js +9 -852
- package/lib/prefix/PseudoPrefixNew.js +301 -16
- package/lib/prefix/attribute-selector.js +4 -2
- package/lib/prefix/pseudoSelectorNew.js +184 -49
- package/lib/prefix/responsive.d.ts +13 -9
- package/lib/prefix/responsive.js +131 -9
- package/lib/returnPropertyAndValue.js +9 -4
- package/lib/returnStatement-bk.d.ts +5 -0
- package/lib/returnStatement-bk.js +311 -0
- package/lib/returnStatement.js +165 -2
- package/lib/static/customStaticClassNames.js +35 -35
- package/lib/static/staticClassNamesAlias.js +18 -16
- package/lib/table-elements.d.ts +39 -0
- package/lib/table-elements.js +90 -0
- package/lib/utils/helper.d.ts +6 -0
- package/lib/utils/helper.js +52 -0
- package/lib/x-classes/x-bundle.d.ts +563 -0
- package/lib/x-classes/x-bundle.js +11 -0
- package/lib/x-classes/x-comps.d.ts +87 -0
- package/lib/x-classes/x-comps.js +189 -0
- package/lib/x-classes/x-extras.d.ts +155 -0
- package/lib/x-classes/x-extras.js +223 -0
- package/lib/x-classes/x-form-components.d.ts +75 -0
- package/lib/x-classes/x-form-components.js +186 -0
- package/lib/x-classes/x-helper-components.d.ts +63 -0
- package/lib/x-classes/x-helper-components.js +91 -0
- package/lib/x-classes/x-layout-components.d.ts +59 -0
- package/lib/x-classes/x-layout-components.js +113 -0
- package/lib/x-classes/x-menu.d.ts +23 -0
- package/lib/x-classes/x-menu.js +55 -0
- package/lib/x-classes/x-navs.d.ts +71 -0
- package/lib/x-classes/x-navs.js +243 -0
- package/lib/x-classes/x-table.d.ts +39 -0
- package/lib/x-classes/x-table.js +90 -0
- package/lib/x-classes/x-theme.d.ts +15 -0
- package/lib/x-classes/x-theme.js +32 -0
- package/lib/x-imports.d.ts +31 -0
- package/lib/x-imports.js +748 -0
- package/package.json +1 -1
|
@@ -60,7 +60,7 @@ const cssProps = {
|
|
|
60
60
|
alias: 'ac',
|
|
61
61
|
type: 's',
|
|
62
62
|
compiler: (value) => value.replace(/^-/, '').replace(/-(safe|unsafe|first|last|baseline)/g, ' $1'),
|
|
63
|
-
values: ['stretch:s', 'center:c', 'flex-start:fs', 'flex-end:fe', 'space-between:sb', 'space-around:sa', 'space-evenly:se'],
|
|
63
|
+
values: ['start:s', 'end:e', 'normal:n', 'baseline:b:bl', 'stretch:s', 'center:c', 'flex-start:fs', 'flex-end:fe', 'space-between:sb', 'space-around:sa', 'space-evenly:se'],
|
|
64
64
|
},
|
|
65
65
|
'align-items': {
|
|
66
66
|
alias: 'ai',
|
|
@@ -106,7 +106,7 @@ const cssProps = {
|
|
|
106
106
|
},
|
|
107
107
|
'animation-composition': {
|
|
108
108
|
'alias': 'anc',
|
|
109
|
-
compiler: (value) => value.replace(/[-_]/g, '
|
|
109
|
+
compiler: (value) => value.replace(/[-_]/g, ' ')
|
|
110
110
|
},
|
|
111
111
|
'animation-delay': {
|
|
112
112
|
alias: 'adl',
|
|
@@ -186,7 +186,7 @@ const cssProps = {
|
|
|
186
186
|
'animation-range-end': {
|
|
187
187
|
'alias': 'are',
|
|
188
188
|
compiler: (value) => value.replace(/-/g, ' ').replace(/([\d])[p][\s]/, '$1% ').replace(/([\d])[p]$/, '$1%'),
|
|
189
|
-
values: ['normal:nl', 'cover', 'contain
|
|
189
|
+
values: ['normal:nl', 'cover', 'contain']
|
|
190
190
|
},
|
|
191
191
|
'animation-range-start': {
|
|
192
192
|
'alias': 'ars',
|
|
@@ -224,7 +224,7 @@ const cssProps = {
|
|
|
224
224
|
if (value.match(/^[-]?url/)) {
|
|
225
225
|
return url(value);
|
|
226
226
|
}
|
|
227
|
-
else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|
|
|
227
|
+
else if (value.match(/[-]?(((repeating-)?(conic|linear|radial)-gradient)|(rrg|rg|lg|rcg|cg|rlg))([(-_][\w_-]+)/)) {
|
|
228
228
|
return gradient(value, custom);
|
|
229
229
|
}
|
|
230
230
|
else {
|
|
@@ -243,19 +243,19 @@ const cssProps = {
|
|
|
243
243
|
alias: 'bgbm',
|
|
244
244
|
type: 's',
|
|
245
245
|
compiler: (value) => value.replace(/^-/, '').replace(/(-|__)/g, ', ').replace(/color,[\s]dodge/g, 'color-dodge'),
|
|
246
|
-
values: ['normal:nl', 'multiply:m', 'screen:s', 'overlay:o', 'darken:d', 'lighten:l', 'color-dodge:cd', 'saturation:sa
|
|
246
|
+
values: ['normal:nl', 'multiply:m', 'screen:s', 'overlay:o', 'darken:d', 'lighten:l', 'color-dodge:cd', 'saturation:sa:s2', 'color:c', 'luminosity:lu:l2'],
|
|
247
247
|
},
|
|
248
248
|
'background-clip': {
|
|
249
249
|
alias: 'bgcl',
|
|
250
250
|
type: 's',
|
|
251
251
|
compiler: (value) => value.replace(/^-/, '').replace(/(-|__)/g, ', ').replace(/,[\s]b/g, '-b'),
|
|
252
|
-
values: ['border-box:bb', 'padding-box:pb', 'content-box:cb'],
|
|
252
|
+
values: ['border-box:bb', 'padding-box:pb', 'content-box:cb', 'text:t'],
|
|
253
253
|
},
|
|
254
254
|
'background-color': {
|
|
255
255
|
alias: 'bgc',
|
|
256
256
|
type: 'd',
|
|
257
257
|
compiler: color,
|
|
258
|
-
values:
|
|
258
|
+
// values:[],
|
|
259
259
|
},
|
|
260
260
|
'background-image': {
|
|
261
261
|
alias: 'bgi',
|
|
@@ -340,7 +340,7 @@ const cssProps = {
|
|
|
340
340
|
alias: 'b',
|
|
341
341
|
type: 'd',
|
|
342
342
|
compiler: border,
|
|
343
|
-
values: ['none:n'],
|
|
343
|
+
values: ['none:n', '0'],
|
|
344
344
|
},
|
|
345
345
|
'border-block': {
|
|
346
346
|
alias: '',
|
|
@@ -493,7 +493,7 @@ const cssProps = {
|
|
|
493
493
|
alias: 'bir',
|
|
494
494
|
type: 's',
|
|
495
495
|
// compiler:'',
|
|
496
|
-
values: ['stretch:s', 'repeat:r', 'round:ro
|
|
496
|
+
values: ['stretch:s', 'repeat:r', 'round:ro:r2', 'space:sp:s2'],
|
|
497
497
|
},
|
|
498
498
|
'border-image-slice': {
|
|
499
499
|
alias: '',
|
|
@@ -864,7 +864,7 @@ const cssProps = {
|
|
|
864
864
|
alias: '',
|
|
865
865
|
type: 'd',
|
|
866
866
|
compiler: (value) => value.replace(/^-/, '').replace(/_[_]?/g, ' '),
|
|
867
|
-
values: ['none:n', 'strict:st', 'content:c', 'size:si', 'inline-size:is', 'layout:l', 'style:sty', 'paint:
|
|
867
|
+
values: ['none:n', 'strict:st', 'content:c', 'size:si', 'inline-size:is', 'layout:l', 'style:sty', 'paint:p']
|
|
868
868
|
},
|
|
869
869
|
'contain-intrinsic-block-size': {
|
|
870
870
|
alias: '',
|
|
@@ -904,7 +904,7 @@ const cssProps = {
|
|
|
904
904
|
'container-name': {
|
|
905
905
|
alias: '',
|
|
906
906
|
type: 'd',
|
|
907
|
-
compiler: (value) => value.replace(/^-/, '').replace(/__
|
|
907
|
+
compiler: (value) => value.replace(/^-/, '').replace(/__/g, ' '),
|
|
908
908
|
values: []
|
|
909
909
|
},
|
|
910
910
|
'container-type': {
|
|
@@ -917,7 +917,7 @@ const cssProps = {
|
|
|
917
917
|
alias: 'cont',
|
|
918
918
|
type: 'd',
|
|
919
919
|
compiler: content,
|
|
920
|
-
values: ['normal:nl', 'none:n', 'open-quote:oq', 'close-quote:cq', 'no-open-quote:noq', 'no-close-quote:ncq'],
|
|
920
|
+
values: ['"":empty', 'normal:nl', 'none:n', 'open-quote:oq', 'close-quote:cq', 'no-open-quote:noq', 'no-close-quote:ncq'],
|
|
921
921
|
},
|
|
922
922
|
'content-visibility': {
|
|
923
923
|
alias: 'cv',
|
|
@@ -928,7 +928,7 @@ const cssProps = {
|
|
|
928
928
|
alias: 'ci',
|
|
929
929
|
type: 'd',
|
|
930
930
|
compiler: (value) => value.replace(/^-/, '').replace(/[-]([-]?[\d])[-]?/g, ' $1 '),
|
|
931
|
-
values: ['none'],
|
|
931
|
+
values: ['none:n'],
|
|
932
932
|
},
|
|
933
933
|
'counter-reset': {
|
|
934
934
|
alias: '',
|
|
@@ -963,7 +963,7 @@ const cssProps = {
|
|
|
963
963
|
alias: 'd',
|
|
964
964
|
type: 's',
|
|
965
965
|
// compiler:'',
|
|
966
|
-
values: ['block:b', 'compact:cp', 'container:c', 'flex:f', 'grid:g', 'inline:i', 'inline-block:ib',
|
|
966
|
+
values: ['block:b', 'compact:cp', 'container:c', 'contents:cont', 'flex:f', 'grid:g', 'inline:i', 'inline-block:ib',
|
|
967
967
|
'inline-flex:if', 'inline-grid:ig', 'inline-table:it',
|
|
968
968
|
'list-item:li', 'none:n', 'run-in:ri', 'table:t', 'table-caption:tcap', 'table-cell:tcl', 'table-column:tc',
|
|
969
969
|
'table-column-group:tcg', 'table-footer-group:tfg', 'table-header-group:thg', 'table-row:tr', 'table-row-group:trg'],
|
|
@@ -1034,7 +1034,7 @@ const cssProps = {
|
|
|
1034
1034
|
alias: 'f', // ----
|
|
1035
1035
|
type: 's',
|
|
1036
1036
|
// compiler:'',
|
|
1037
|
-
values: ['none:n', 'left:l', 'right:r'
|
|
1037
|
+
values: ['none:n', 'left:l', 'right:r'],
|
|
1038
1038
|
},
|
|
1039
1039
|
'font': {
|
|
1040
1040
|
alias: '',
|
|
@@ -1058,13 +1058,13 @@ const cssProps = {
|
|
|
1058
1058
|
alias: 'fk',
|
|
1059
1059
|
type: 's',
|
|
1060
1060
|
// compiler:'',
|
|
1061
|
-
values: ['auto:a', 'normal:nl
|
|
1061
|
+
values: ['auto:a', 'normal:nl:n2', 'none:n'],
|
|
1062
1062
|
},
|
|
1063
1063
|
'font-language-override': {
|
|
1064
1064
|
alias: 'flo',
|
|
1065
1065
|
type: 'd',
|
|
1066
1066
|
compiler: (value) => value.replace(/(\w+)/, '"$1"'),
|
|
1067
|
-
values: ['normal
|
|
1067
|
+
values: ['normal|:nl'],
|
|
1068
1068
|
},
|
|
1069
1069
|
'font-size': {
|
|
1070
1070
|
alias: 'fs',
|
|
@@ -1131,7 +1131,7 @@ const cssProps = {
|
|
|
1131
1131
|
alias: 'fvn',
|
|
1132
1132
|
type: 's',
|
|
1133
1133
|
// compiler:'',
|
|
1134
|
-
values: ['normal:nl', 'ordinal:o', 'slashed-zero:sz', 'lining-nums:ln', 'oldstyle-nums:on', 'proportional-nums:pn', 'tabular-nums:
|
|
1134
|
+
values: ['normal:nl', 'ordinal:o', 'slashed-zero:sz', 'lining-nums:ln', 'oldstyle-nums:on', 'proportional-nums:pn', 'tabular-nums:tn', 'diagonal-fractions:df', 'stacked-fractions:sf'],
|
|
1135
1135
|
},
|
|
1136
1136
|
'font-variant-position': {
|
|
1137
1137
|
alias: 'fvp',
|
|
@@ -1179,7 +1179,7 @@ const cssProps = {
|
|
|
1179
1179
|
type: 'd',
|
|
1180
1180
|
compiler: (value) => repeat(value).replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g, " $1($2 , $3 ) ")
|
|
1181
1181
|
.replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
|
|
1182
|
-
.replace(/-([\
|
|
1182
|
+
.replace(/-([\daamf])/g, ' $1')
|
|
1183
1183
|
.replace(/([\d])d([\d])/g, '$1.$2').replace(/auto-flow-dense/g, 'auto-flow dense').replace(/auto flow/, 'auto-flow')
|
|
1184
1184
|
.replace(/([\d])p([\s])/g, "$1% ").replace(/p$/, "%").replace(/-by[-\s]/g, ' / '),
|
|
1185
1185
|
values: ['none:n'],
|
|
@@ -1312,7 +1312,7 @@ const cssProps = {
|
|
|
1312
1312
|
// compiler:(value:string)=>{
|
|
1313
1313
|
// return value.replace(/[-]?(minmax)-(min-content|max-content|auto|\w+)-(min-content|max-content|auto|\w+)/g," $1($2 , $3 ) ")
|
|
1314
1314
|
// .replace(/[-]?(fit-content)[-]([\w]+)/g, "$1( $2 ) ")
|
|
1315
|
-
// .replace(/-([\
|
|
1315
|
+
// .replace(/-([\daamf])/g,' $1')
|
|
1316
1316
|
// .replace(/([\d])d([\d])/g,'$1.$2')
|
|
1317
1317
|
// .replace(/([\d])p([\s])/g,"$1% ").replace(/p$/,"%");
|
|
1318
1318
|
// },
|
|
@@ -1383,7 +1383,7 @@ const cssProps = {
|
|
|
1383
1383
|
'inset-area': {
|
|
1384
1384
|
alias: 'ia',
|
|
1385
1385
|
values: ['none:n', 'top left:top-left:tl', 'start end:start-end:se', 'block-start center:block-start-center:bsc',
|
|
1386
|
-
'inline-start block-end:inline-start
|
|
1386
|
+
'inline-start block-end:inline-start-block-end:isbe', 'x-start y-end:x-start-y-end:xsye',
|
|
1387
1387
|
'center y-self-end:center-y-self-end:cye', 'top span-left:top-span-left:tsl',
|
|
1388
1388
|
'center span-start:center-span-start:css', 'inline-start span-block-end:inline-start-span-block-end:issbe',
|
|
1389
1389
|
'y-start span-x-end:y-start-span-x-end:yssxe', 'top span-all:top-span-all:tsa', 'block-end span-all:block-end-span-all:besa',
|
|
@@ -1437,14 +1437,14 @@ const cssProps = {
|
|
|
1437
1437
|
alias: 'jc',
|
|
1438
1438
|
type: 's',
|
|
1439
1439
|
// compiler:'',
|
|
1440
|
-
values: ['flex-start:fs', 'flex-end:fe', 'center:c', 'space-around:sa', 'space-evenly:se', 'space-between:sb'],
|
|
1440
|
+
values: ['left:l', 'right:r', 'stretch:st', 'normal:n', 'start:s', 'end:e', 'flex-start:fs', 'flex-end:fe', 'center:c', 'space-around:sa', 'space-evenly:se', 'space-between:sb'],
|
|
1441
1441
|
},
|
|
1442
1442
|
'justify-items': {
|
|
1443
1443
|
alias: 'ji',
|
|
1444
1444
|
type: 's',
|
|
1445
1445
|
// compiler:'',
|
|
1446
|
-
values: ['legacy:le
|
|
1447
|
-
'normal:nl', 'baseline:b', 'first baseline:first-baseline:fb', 'last baseline:last-baseline:
|
|
1446
|
+
values: ['legacy:le:l2', 'stretch:st:s2', 'start:s', 'left:l', 'center:c', 'end:e', 'right:r', 'flex-start:fs', 'flex-end:fe',
|
|
1447
|
+
'normal:nl', 'baseline:b', 'first baseline:first-baseline:fb', 'last baseline:last-baseline:lb', 'self-start:ss', 'self-end:se',
|
|
1448
1448
|
'unsafe:us', 'safe center:safe-center:sc', 'unsafe center:unsafe-center:uc', 'legacy right:legacy-right:lr',
|
|
1449
1449
|
'legacy left:legacy-left:ll', 'legacy center:legacy-center:lc'],
|
|
1450
1450
|
},
|
|
@@ -1474,7 +1474,7 @@ const cssProps = {
|
|
|
1474
1474
|
alias: 'lc',
|
|
1475
1475
|
type: 'd',
|
|
1476
1476
|
compiler: color,
|
|
1477
|
-
values:
|
|
1477
|
+
// values:[],
|
|
1478
1478
|
},
|
|
1479
1479
|
'line-break': {
|
|
1480
1480
|
alias: 'lb',
|
|
@@ -1535,7 +1535,7 @@ const cssProps = {
|
|
|
1535
1535
|
alias: 'm',
|
|
1536
1536
|
type: 'd',
|
|
1537
1537
|
compiler: length,
|
|
1538
|
-
values: [...remUnits, ...remUnitsNegative],
|
|
1538
|
+
values: ['auto:a', ...remUnits, ...remUnitsNegative],
|
|
1539
1539
|
},
|
|
1540
1540
|
'margin-block': {
|
|
1541
1541
|
alias: '',
|
|
@@ -1654,7 +1654,7 @@ const cssProps = {
|
|
|
1654
1654
|
alias: '',
|
|
1655
1655
|
type: 's',
|
|
1656
1656
|
// compiler:'',
|
|
1657
|
-
values: ['repeat-x:rx', 'repeat-y:ry', 'repeat:r', 'space:
|
|
1657
|
+
values: ['repeat-x:rx', 'repeat-y:ry', 'repeat:r', 'space:s', 'round:ro:r2', 'no-repeat:nr'],
|
|
1658
1658
|
},
|
|
1659
1659
|
'mask-size': {
|
|
1660
1660
|
alias: '',
|
|
@@ -1911,31 +1911,31 @@ const cssProps = {
|
|
|
1911
1911
|
alias: 'p',
|
|
1912
1912
|
type: 'd',
|
|
1913
1913
|
compiler: length,
|
|
1914
|
-
values: [
|
|
1914
|
+
values: [...remUnits],
|
|
1915
1915
|
},
|
|
1916
1916
|
'padding-block': {
|
|
1917
1917
|
alias: '',
|
|
1918
1918
|
type: 's',
|
|
1919
1919
|
compiler: length,
|
|
1920
|
-
values: [
|
|
1920
|
+
values: [...remUnits],
|
|
1921
1921
|
},
|
|
1922
1922
|
'padding-block-end': {
|
|
1923
1923
|
alias: 'pbe',
|
|
1924
1924
|
type: 'd',
|
|
1925
1925
|
compiler: length,
|
|
1926
|
-
values: [
|
|
1926
|
+
values: [...remUnits],
|
|
1927
1927
|
},
|
|
1928
1928
|
'padding-block-start': {
|
|
1929
1929
|
alias: 'pbs',
|
|
1930
1930
|
type: 'd',
|
|
1931
1931
|
compiler: length,
|
|
1932
|
-
values: [
|
|
1932
|
+
values: [...remUnits],
|
|
1933
1933
|
},
|
|
1934
1934
|
'padding-bottom': {
|
|
1935
1935
|
alias: 'pb',
|
|
1936
1936
|
type: 'd',
|
|
1937
1937
|
compiler: length,
|
|
1938
|
-
values: [
|
|
1938
|
+
values: [...remUnits],
|
|
1939
1939
|
},
|
|
1940
1940
|
'padding-inline': {
|
|
1941
1941
|
alias: 'pi',
|
|
@@ -1947,31 +1947,31 @@ const cssProps = {
|
|
|
1947
1947
|
alias: 'pie',
|
|
1948
1948
|
type: 'd',
|
|
1949
1949
|
compiler: length,
|
|
1950
|
-
values: [
|
|
1950
|
+
values: [...remUnits],
|
|
1951
1951
|
},
|
|
1952
1952
|
'padding-inline-start': {
|
|
1953
1953
|
alias: 'pis',
|
|
1954
1954
|
type: 'd',
|
|
1955
1955
|
compiler: length,
|
|
1956
|
-
values: [
|
|
1956
|
+
values: [...remUnits],
|
|
1957
1957
|
},
|
|
1958
1958
|
'padding-left': {
|
|
1959
1959
|
alias: 'pl',
|
|
1960
1960
|
type: 'd',
|
|
1961
1961
|
compiler: length,
|
|
1962
|
-
values: [
|
|
1962
|
+
values: [...remUnits],
|
|
1963
1963
|
},
|
|
1964
1964
|
'padding-right': {
|
|
1965
1965
|
alias: 'pr',
|
|
1966
1966
|
type: 'd',
|
|
1967
1967
|
compiler: length,
|
|
1968
|
-
values: [
|
|
1968
|
+
values: [...remUnits],
|
|
1969
1969
|
},
|
|
1970
1970
|
'padding-top': {
|
|
1971
1971
|
alias: 'pt',
|
|
1972
1972
|
type: 'd',
|
|
1973
1973
|
compiler: length,
|
|
1974
|
-
values: [
|
|
1974
|
+
values: [...remUnits],
|
|
1975
1975
|
},
|
|
1976
1976
|
'page': {
|
|
1977
1977
|
alias: 'pg',
|
|
@@ -2060,6 +2060,16 @@ const cssProps = {
|
|
|
2060
2060
|
compiler: (value) => "-" + value,
|
|
2061
2061
|
values: ['none:n']
|
|
2062
2062
|
},
|
|
2063
|
+
'position-area': {
|
|
2064
|
+
// alias:'pa',
|
|
2065
|
+
values: ['none:n', 'top left:top-left:tl', 'start end:start-end:se', 'block-start center:block-start-center:bsc',
|
|
2066
|
+
'inline-start block-end:inline-start-block-end:isbe', 'x-start y-end:x-start-y-end:xsye',
|
|
2067
|
+
'center y-self-end:center-y-self-end:cye', 'top span-left:top-span-left:tsl',
|
|
2068
|
+
'center span-start:center-span-start:css', 'inline-start span-block-end:inline-start-span-block-end:issbe',
|
|
2069
|
+
'y-start span-x-end:y-start-span-x-end:yssxe', 'top span-all:top-span-all:tsa', 'block-end span-all:block-end-span-all:besa',
|
|
2070
|
+
'x-self-start span-all:x-self-start-span-all:xsssa', 'top:t', 'inline-start:is', 'center:c', 'span-all:sa', 'end:e'
|
|
2071
|
+
],
|
|
2072
|
+
},
|
|
2063
2073
|
'print-color-adjust': {
|
|
2064
2074
|
alias: 'pca',
|
|
2065
2075
|
type: 's',
|
|
@@ -2295,7 +2305,7 @@ const cssProps = {
|
|
|
2295
2305
|
alias: 'sbw',
|
|
2296
2306
|
type: 'd',
|
|
2297
2307
|
compiler: length,
|
|
2298
|
-
values: [''],
|
|
2308
|
+
values: ['none:n'],
|
|
2299
2309
|
},
|
|
2300
2310
|
'shape-image-threshold': {
|
|
2301
2311
|
alias: 'sit',
|
|
@@ -2428,7 +2438,7 @@ const cssProps = {
|
|
|
2428
2438
|
alias: 'to',
|
|
2429
2439
|
type: 's',
|
|
2430
2440
|
// compiler:'',
|
|
2431
|
-
values: ['clip:c', 'ellipsis:e'
|
|
2441
|
+
values: ['clip:c', 'ellipsis:e'],
|
|
2432
2442
|
},
|
|
2433
2443
|
'text-rendering': {
|
|
2434
2444
|
alias: '',
|
|
@@ -2562,7 +2572,7 @@ const cssProps = {
|
|
|
2562
2572
|
alias: 'ub',
|
|
2563
2573
|
type: 's',
|
|
2564
2574
|
// compiler:'',
|
|
2565
|
-
values: ['normal:nl', 'embed:e', 'isolate:i', 'bidi-override:bo', 'isolate-override:io', 'plaintext:p
|
|
2575
|
+
values: ['normal:nl', 'embed:e', 'isolate:i', 'bidi-override:bo', 'isolate-override:io', 'plaintext:p:pt'],
|
|
2566
2576
|
},
|
|
2567
2577
|
'user-select': {
|
|
2568
2578
|
alias: 'us',
|
|
@@ -2640,7 +2650,7 @@ const cssProps = {
|
|
|
2640
2650
|
'will-change': {
|
|
2641
2651
|
alias: 'wc', // --
|
|
2642
2652
|
type: 's',
|
|
2643
|
-
compiler: (value) => value.replace(/^-/, '').replace(/__
|
|
2653
|
+
compiler: (value) => value.replace(/^-/, '').replace(/__/g, ', '),
|
|
2644
2654
|
values: ['auto:a', 'scroll-position:sc', 'contents:c', 'transform:tf', 'opacity:o', 'left:l', 'top:t'],
|
|
2645
2655
|
},
|
|
2646
2656
|
'word-break': {
|
|
@@ -2781,174 +2791,299 @@ const cssProps = {
|
|
|
2781
2791
|
compiler: color,
|
|
2782
2792
|
values: ['transparent:t'],
|
|
2783
2793
|
},
|
|
2784
|
-
|
|
2785
|
-
//
|
|
2786
|
-
//
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
if(value.length===3){
|
|
2795
|
-
return `padding-left:${value[1]};padding-right:${value[2]}`;
|
|
2796
|
-
}else if(value.length===2){
|
|
2797
|
-
return `padding-left:${value[1]};padding-right:${value[1]}`;
|
|
2798
|
-
}
|
|
2799
|
-
// else{
|
|
2800
|
-
// return `padding-left:${y};padding-right:${y}`;
|
|
2801
|
-
// }
|
|
2802
|
-
},
|
|
2803
|
-
groups:{
|
|
2804
|
-
0:"padding-left:0;padding-right:0",
|
|
2805
|
-
},
|
|
2794
|
+
// ---------------- New properties ----------------
|
|
2795
|
+
// Paste inside the cssProps object. Uses the same imports already in the file
|
|
2796
|
+
// (length, color, border, url). Aliases are left empty on purpose: these are
|
|
2797
|
+
// less common properties, so the full semantic name is the intended form.
|
|
2798
|
+
// ---------- Fonts & text rendering ----------
|
|
2799
|
+
'webkit-font-smoothing': {
|
|
2800
|
+
alias: '',
|
|
2801
|
+
property: '-webkit-font-smoothing',
|
|
2802
|
+
type: 's',
|
|
2803
|
+
values: ['auto:a', 'none:n', 'antialiased:aa', 'subpixel-antialiased:sa'],
|
|
2806
2804
|
},
|
|
2807
|
-
'
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
}
|
|
2813
|
-
const value=y.split('-');
|
|
2814
|
-
if(value.length===3){
|
|
2815
|
-
return `padding-left:${value[1]};padding-right:${value[2]}`;
|
|
2816
|
-
}else if(value.length===2){
|
|
2817
|
-
return `padding-left:${value[1]};padding-right:${value[1]}`;
|
|
2818
|
-
}
|
|
2819
|
-
// else{
|
|
2820
|
-
// return `padding-left:${y};padding-right:${y}`;
|
|
2821
|
-
// }
|
|
2822
|
-
},
|
|
2823
|
-
groups:{
|
|
2824
|
-
0:"padding-left:0;padding-right:0",
|
|
2825
|
-
},
|
|
2805
|
+
'moz-osx-font-smoothing': {
|
|
2806
|
+
alias: '',
|
|
2807
|
+
property: '-moz-osx-font-smoothing',
|
|
2808
|
+
type: 's',
|
|
2809
|
+
values: ['auto:a', 'grayscale:gs'],
|
|
2826
2810
|
},
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
type:'
|
|
2830
|
-
compiler:
|
|
2831
|
-
|
|
2832
|
-
return `padding-top:var(${y});padding-bottom:var(${y})`;
|
|
2833
|
-
}
|
|
2834
|
-
const value=y.split('-');
|
|
2835
|
-
if(value.length===3){
|
|
2836
|
-
return `padding-top:${value[1]};padding-bottom:${value[2]}`;
|
|
2837
|
-
}else if(value.length===2){
|
|
2838
|
-
return `padding-top:${value[1]};padding-bottom:${value[1]}`;
|
|
2839
|
-
}
|
|
2840
|
-
// else{
|
|
2841
|
-
// return `padding-top:${y};padding-bottom:${y}`;
|
|
2842
|
-
// }
|
|
2843
|
-
},
|
|
2844
|
-
groups:{
|
|
2845
|
-
0:"padding-top:0;padding-bottom:0",
|
|
2846
|
-
},
|
|
2811
|
+
'text-size-adjust': {
|
|
2812
|
+
alias: '',
|
|
2813
|
+
type: 'd',
|
|
2814
|
+
compiler: length,
|
|
2815
|
+
values: ['none:n', 'auto:a'],
|
|
2847
2816
|
},
|
|
2848
|
-
'
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
const value=y.split('-');
|
|
2855
|
-
if(value.length===3){
|
|
2856
|
-
return `padding-top:${value[1]};padding-bottom:${value[2]}`;
|
|
2857
|
-
}else if(value.length===2){
|
|
2858
|
-
return `padding-top:${value[1]};padding-bottom:${value[1]}`;
|
|
2859
|
-
}
|
|
2860
|
-
// else{
|
|
2861
|
-
// return `padding-top:${y};padding-bottom:${y}`;
|
|
2862
|
-
// }
|
|
2863
|
-
},
|
|
2864
|
-
groups:{
|
|
2865
|
-
0:"padding-top:0;padding-bottom:0",
|
|
2866
|
-
},
|
|
2817
|
+
'webkit-text-size-adjust': {
|
|
2818
|
+
alias: '',
|
|
2819
|
+
property: '-webkit-text-size-adjust',
|
|
2820
|
+
type: 'd',
|
|
2821
|
+
compiler: length,
|
|
2822
|
+
values: ['none:n', 'auto:a'],
|
|
2867
2823
|
},
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
}
|
|
2875
|
-
const value=y.replace(/--/g,'-M').split('-');
|
|
2876
|
-
if(value.length===3){
|
|
2877
|
-
return `margin-left:${value[1].replace("M",'-')};margin-right:${value[2].replace("M",'-')}`;
|
|
2878
|
-
}else if(value.length===2){
|
|
2879
|
-
return `margin-left:${value[1].replace("M",'-')};margin-right:${value[1].replace("M",'-')}`;
|
|
2880
|
-
}
|
|
2881
|
-
// else{
|
|
2882
|
-
// return `margin-left:${y};margin-right:${y}`;
|
|
2883
|
-
// }
|
|
2884
|
-
},
|
|
2885
|
-
groups:{
|
|
2886
|
-
0:"margin-left:0;margin-right:0",
|
|
2887
|
-
},
|
|
2824
|
+
'webkit-text-fill-color': {
|
|
2825
|
+
alias: '',
|
|
2826
|
+
property: '-webkit-text-fill-color',
|
|
2827
|
+
type: 'd',
|
|
2828
|
+
compiler: color,
|
|
2829
|
+
values: ['transparent:t', 'currentcolor:cc'],
|
|
2888
2830
|
},
|
|
2889
|
-
'
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
const value
|
|
2896
|
-
if(
|
|
2897
|
-
return
|
|
2898
|
-
}
|
|
2899
|
-
return `margin-left:${value[1].replace("M",'-')};margin-right:${value[1].replace("M",'-')}`;
|
|
2900
|
-
}
|
|
2901
|
-
// else{
|
|
2902
|
-
// return `margin-left:${y};margin-right:${y}`;
|
|
2903
|
-
// }
|
|
2904
|
-
},
|
|
2905
|
-
groups:{
|
|
2906
|
-
0:"margin-left:0;margin-right:0",
|
|
2831
|
+
'webkit-text-stroke': {
|
|
2832
|
+
// webkit-text-stroke-1px-red -> -webkit-text-stroke: 1px red
|
|
2833
|
+
alias: '',
|
|
2834
|
+
property: '-webkit-text-stroke',
|
|
2835
|
+
type: 'd',
|
|
2836
|
+
compiler: (value, custom) => {
|
|
2837
|
+
const m = value.match(/^-([^-]+)-(.+)$/);
|
|
2838
|
+
if (!m)
|
|
2839
|
+
return length(value);
|
|
2840
|
+
return `${m[1].replace(/(\d)d(\d)/, '$1.$2')} ${color('-' + m[2], custom)}`;
|
|
2907
2841
|
},
|
|
2842
|
+
values: [],
|
|
2908
2843
|
},
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2844
|
+
'webkit-text-stroke-width': {
|
|
2845
|
+
alias: '',
|
|
2846
|
+
property: '-webkit-text-stroke-width',
|
|
2847
|
+
type: 'd',
|
|
2848
|
+
compiler: length,
|
|
2849
|
+
values: ['thin:t', 'medium:m', 'thick:th'],
|
|
2850
|
+
},
|
|
2851
|
+
'webkit-text-stroke-color': {
|
|
2852
|
+
alias: '',
|
|
2853
|
+
property: '-webkit-text-stroke-color',
|
|
2854
|
+
type: 'd',
|
|
2855
|
+
compiler: color,
|
|
2856
|
+
values: [],
|
|
2857
|
+
},
|
|
2858
|
+
'text-decoration-skip-ink': {
|
|
2859
|
+
alias: '',
|
|
2860
|
+
type: 's',
|
|
2861
|
+
values: ['auto:a', 'none:n', 'all'],
|
|
2862
|
+
},
|
|
2863
|
+
'text-emphasis-style': {
|
|
2864
|
+
alias: '',
|
|
2865
|
+
type: 's',
|
|
2866
|
+
values: ['none:n', 'filled:f', 'open:o', 'dot:d', 'circle:c', 'double-circle:dc', 'triangle:t', 'sesame:s',
|
|
2867
|
+
'filled dot:filled-dot:fd', 'open dot:open-dot:od', 'filled circle:filled-circle:fc', 'open circle:open-circle:oc'],
|
|
2868
|
+
},
|
|
2869
|
+
'text-emphasis-position': {
|
|
2870
|
+
alias: '',
|
|
2871
|
+
type: 's',
|
|
2872
|
+
values: ['over:o', 'under:u', 'over right:over-right:or', 'over left:over-left:ol',
|
|
2873
|
+
'under right:under-right:ur', 'under left:under-left:ul'],
|
|
2874
|
+
},
|
|
2875
|
+
'font-optical-sizing': {
|
|
2876
|
+
alias: '',
|
|
2877
|
+
type: 's',
|
|
2878
|
+
values: ['auto:a', 'none:n'],
|
|
2879
|
+
},
|
|
2880
|
+
'font-palette': {
|
|
2881
|
+
// font-palette---my-palette -> font-palette: --my-palette
|
|
2882
|
+
alias: '',
|
|
2883
|
+
type: 'd',
|
|
2884
|
+
compiler: (value) => value.replace(/^-/, ''),
|
|
2885
|
+
values: ['normal:nl', 'light:l', 'dark:d'],
|
|
2886
|
+
},
|
|
2887
|
+
'font-synthesis-weight': {
|
|
2888
|
+
alias: '',
|
|
2889
|
+
type: 's',
|
|
2890
|
+
values: ['auto:a', 'none:n'],
|
|
2891
|
+
},
|
|
2892
|
+
'font-synthesis-style': {
|
|
2893
|
+
alias: '',
|
|
2894
|
+
type: 's',
|
|
2895
|
+
values: ['auto:a', 'none:n', 'oblique-only:oo'],
|
|
2896
|
+
},
|
|
2897
|
+
'font-synthesis-small-caps': {
|
|
2898
|
+
alias: '',
|
|
2899
|
+
type: 's',
|
|
2900
|
+
values: ['auto:a', 'none:n'],
|
|
2901
|
+
},
|
|
2902
|
+
'hyphenate-character': {
|
|
2903
|
+
// hyphenate-character-auto, or a string: hyphenate-character-~ -> "~"
|
|
2904
|
+
alias: '',
|
|
2905
|
+
type: 'd',
|
|
2906
|
+
compiler: (value) => `"${value.replace(/^-/, '').replace(/\\_/g, '\u0000').replace(/_/g, ' ').replace(/\u0000/g, '_')}"`,
|
|
2907
|
+
values: ['auto:a'],
|
|
2908
|
+
},
|
|
2909
|
+
'hyphenate-limit-chars': {
|
|
2910
|
+
// hyphenate-limit-chars-6-3-2 -> 6 3 2
|
|
2911
|
+
alias: '',
|
|
2912
|
+
type: 'd',
|
|
2913
|
+
compiler: (value) => value.replace(/^-/, '').replace(/-/g, ' '),
|
|
2914
|
+
values: ['auto:a'],
|
|
2915
|
+
},
|
|
2916
|
+
'text-box': {
|
|
2917
|
+
// text-box-trim-both_cap_alphabetic -> trim-both cap alphabetic
|
|
2918
|
+
alias: '',
|
|
2919
|
+
type: 'd',
|
|
2920
|
+
compiler: (value) => value.replace(/^-/, '').replace(/_/g, ' '),
|
|
2921
|
+
values: ['normal:nl'],
|
|
2922
|
+
},
|
|
2923
|
+
'text-box-trim': {
|
|
2924
|
+
alias: '',
|
|
2925
|
+
type: 's',
|
|
2926
|
+
values: ['none:n', 'trim-start:ts', 'trim-end:te', 'trim-both:tb'],
|
|
2927
|
+
},
|
|
2928
|
+
'text-box-edge': {
|
|
2929
|
+
// text-box-edge-cap_alphabetic -> cap alphabetic
|
|
2930
|
+
alias: '',
|
|
2931
|
+
type: 'd',
|
|
2932
|
+
compiler: (value) => value.replace(/^-/, '').replace(/_/g, ' '),
|
|
2933
|
+
values: ['auto:a'],
|
|
2934
|
+
},
|
|
2935
|
+
// ---------- Logical border shorthands ----------
|
|
2936
|
+
'border-block-start': {
|
|
2937
|
+
alias: '',
|
|
2938
|
+
type: 'd',
|
|
2939
|
+
compiler: border,
|
|
2940
|
+
values: ['none:n'],
|
|
2941
|
+
},
|
|
2942
|
+
'border-block-end': {
|
|
2943
|
+
alias: '',
|
|
2944
|
+
type: 'd',
|
|
2945
|
+
compiler: border,
|
|
2946
|
+
values: ['none:n'],
|
|
2947
|
+
},
|
|
2948
|
+
'border-inline-start': {
|
|
2949
|
+
alias: '',
|
|
2950
|
+
type: 'd',
|
|
2951
|
+
compiler: border,
|
|
2952
|
+
values: ['none:n'],
|
|
2953
|
+
},
|
|
2954
|
+
'border-inline-end': {
|
|
2955
|
+
alias: '',
|
|
2956
|
+
type: 'd',
|
|
2957
|
+
compiler: border,
|
|
2958
|
+
values: ['none:n'],
|
|
2959
|
+
},
|
|
2960
|
+
// ---------- Overflow (logical) ----------
|
|
2961
|
+
'overflow-block': {
|
|
2962
|
+
alias: '',
|
|
2963
|
+
type: 's',
|
|
2964
|
+
values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a'],
|
|
2965
|
+
},
|
|
2966
|
+
'overflow-inline': {
|
|
2967
|
+
alias: '',
|
|
2968
|
+
type: 's',
|
|
2969
|
+
values: ['visible:v', 'hidden:h', 'clip:c', 'scroll:s', 'auto:a'],
|
|
2970
|
+
},
|
|
2971
|
+
// ---------- Anchor positioning ----------
|
|
2972
|
+
'position-try': {
|
|
2973
|
+
alias: '',
|
|
2974
|
+
type: 'd',
|
|
2975
|
+
compiler: (value) => value.replace(/^-/, '').replace(/__/g, ', ').replace(/_/g, ' '),
|
|
2976
|
+
// values:['none:n','flip-block:fb','flip-inline:fi','flip-start:fs'],
|
|
2977
|
+
},
|
|
2978
|
+
'position-try-fallbacks': {
|
|
2979
|
+
// position-try-fallbacks-flip-block__flip-inline -> flip-block, flip-inline
|
|
2980
|
+
// position-try-fallbacks-flip-block_flip-inline -> flip-block flip-inline
|
|
2981
|
+
// position-try-fallbacks---my-try -> --my-try
|
|
2982
|
+
alias: '',
|
|
2983
|
+
type: 'd',
|
|
2984
|
+
compiler: (value) => value.replace(/^-/, '').replace(/__/g, ', ').replace(/_/g, ' '),
|
|
2985
|
+
values: ['none:n', 'flip-block:fb', 'flip-inline:fi', 'flip-start:fs'],
|
|
2986
|
+
},
|
|
2987
|
+
'position-try-order': {
|
|
2988
|
+
alias: '',
|
|
2989
|
+
type: 's',
|
|
2990
|
+
values: ['normal:nl', 'most-width:mw', 'most-height:mh', 'most-block-size:mbs', 'most-inline-size:mis'],
|
|
2991
|
+
},
|
|
2992
|
+
'position-visibility': {
|
|
2993
|
+
alias: '',
|
|
2994
|
+
type: 's',
|
|
2995
|
+
values: ['always:a', 'anchors-visible:av', 'no-overflow:no'],
|
|
2996
|
+
},
|
|
2997
|
+
'anchor-scope': {
|
|
2998
|
+
// same convention as anchor-name: anchor-scope-card -> --card
|
|
2999
|
+
alias: '',
|
|
3000
|
+
type: 'd',
|
|
3001
|
+
compiler: (value) => "-" + value.replace(/__/g, ', --'),
|
|
3002
|
+
values: ['none:n', 'all'],
|
|
3003
|
+
},
|
|
3004
|
+
// ---------- Animation & view transitions ----------
|
|
3005
|
+
'interpolate-size': {
|
|
3006
|
+
alias: '',
|
|
3007
|
+
type: 's',
|
|
3008
|
+
values: ['numeric-only:no', 'allow-keywords:ak'],
|
|
3009
|
+
},
|
|
3010
|
+
'view-transition-class': {
|
|
3011
|
+
// view-transition-class-card_slide -> card slide
|
|
3012
|
+
alias: '',
|
|
3013
|
+
type: 'd',
|
|
3014
|
+
compiler: (value) => value.replace(/^-/, '').replace(/_/g, ' '),
|
|
3015
|
+
values: ['none:n'],
|
|
3016
|
+
},
|
|
3017
|
+
// ---------- SVG ----------
|
|
3018
|
+
// `r` is intentionally not added: it is already the alias for `right`.
|
|
3019
|
+
'cx': {
|
|
3020
|
+
alias: '',
|
|
3021
|
+
type: 'd',
|
|
3022
|
+
compiler: length,
|
|
3023
|
+
values: [],
|
|
3024
|
+
},
|
|
3025
|
+
'cy': {
|
|
3026
|
+
alias: '',
|
|
3027
|
+
type: 'd',
|
|
3028
|
+
compiler: length,
|
|
3029
|
+
values: [],
|
|
3030
|
+
},
|
|
3031
|
+
'rx': {
|
|
3032
|
+
alias: '',
|
|
3033
|
+
type: 'd',
|
|
3034
|
+
compiler: length,
|
|
3035
|
+
values: ['auto:a'],
|
|
3036
|
+
},
|
|
3037
|
+
'ry': {
|
|
3038
|
+
alias: '',
|
|
3039
|
+
type: 'd',
|
|
3040
|
+
compiler: length,
|
|
3041
|
+
values: ['auto:a'],
|
|
3042
|
+
},
|
|
3043
|
+
'stroke-miterlimit': {
|
|
3044
|
+
alias: '',
|
|
3045
|
+
type: 'd',
|
|
3046
|
+
compiler: (value) => value.replace(/^-/, '').replace(/(\d)d(\d)/, '$1.$2'),
|
|
3047
|
+
values: [],
|
|
3048
|
+
},
|
|
3049
|
+
'clip-rule': {
|
|
3050
|
+
alias: '',
|
|
3051
|
+
type: 's',
|
|
3052
|
+
values: ['nonzero:nz', 'evenodd:eo'],
|
|
3053
|
+
},
|
|
3054
|
+
'shape-rendering': {
|
|
3055
|
+
alias: '',
|
|
3056
|
+
type: 's',
|
|
3057
|
+
values: ['auto:a', 'optimizeSpeed:os', 'crispEdges:ce', 'geometricPrecision:gp'],
|
|
3058
|
+
},
|
|
3059
|
+
'dominant-baseline': {
|
|
3060
|
+
alias: '',
|
|
3061
|
+
type: 's',
|
|
3062
|
+
values: ['auto:a', 'alphabetic', 'ideographic', 'middle:m', 'central:c', 'mathematical', 'hanging', 'text-top', 'text-bottom'],
|
|
3063
|
+
},
|
|
3064
|
+
'marker': {
|
|
3065
|
+
alias: '',
|
|
3066
|
+
type: 'd',
|
|
3067
|
+
compiler: (value) => url(value),
|
|
3068
|
+
values: ['none:n'],
|
|
3069
|
+
},
|
|
3070
|
+
'marker-start': {
|
|
3071
|
+
alias: '',
|
|
3072
|
+
type: 'd',
|
|
3073
|
+
compiler: (value) => url(value),
|
|
3074
|
+
values: ['none:n'],
|
|
3075
|
+
},
|
|
3076
|
+
'marker-mid': {
|
|
3077
|
+
alias: '',
|
|
3078
|
+
type: 'd',
|
|
3079
|
+
compiler: (value) => url(value),
|
|
3080
|
+
values: ['none:n'],
|
|
3081
|
+
},
|
|
3082
|
+
'marker-end': {
|
|
3083
|
+
alias: '',
|
|
3084
|
+
type: 'd',
|
|
3085
|
+
compiler: (value) => url(value),
|
|
3086
|
+
values: ['none:n'],
|
|
2929
3087
|
},
|
|
2930
|
-
'my':{
|
|
2931
|
-
type:'group',
|
|
2932
|
-
compiler:(y)=>{ return "fuck";
|
|
2933
|
-
if(/^--[a-z]/.test(y)){
|
|
2934
|
-
return `margin-top:var(${y});margin-bottom:var(${y})`;
|
|
2935
|
-
}
|
|
2936
|
-
const value=y.replace(/--/g,'-M').split('-');
|
|
2937
|
-
if(value.length===3){
|
|
2938
|
-
return `margin-top:${value[1].replace("M",'-')};margin-bottom:${value[2].replace("M",'-')}`;
|
|
2939
|
-
}else if(value.length===2){
|
|
2940
|
-
return `margin-top:${value[1].replace("M",'-')};margin-bottom:${value[1].replace("M",'-')}`;
|
|
2941
|
-
}
|
|
2942
|
-
// else{
|
|
2943
|
-
// return `margin-top:${y};margin-bottom:${y}`;
|
|
2944
|
-
// }
|
|
2945
|
-
},
|
|
2946
|
-
groups:{
|
|
2947
|
-
0:"margin-top:0;margin-bottom:0",
|
|
2948
|
-
1:`margin-top:${1/4}rem;margin-bottom:${1/4}rem`,
|
|
2949
|
-
'-1ss':`margin-top:-${1/4}rem;margin-bottom:-${1/4}rem`,
|
|
2950
|
-
},
|
|
2951
|
-
}
|
|
2952
|
-
*/
|
|
2953
3088
|
};
|
|
2954
3089
|
export default cssProps;
|