@jtlan/csstype 0.0.2 → 0.0.4
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/index.d.ts +47 -47
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
22
22
|
*
|
|
23
23
|
* @see https://developer.mozilla.org/docs/Web/CSS/accent-color
|
|
24
24
|
*/
|
|
25
|
-
accentColor
|
|
25
|
+
accentColor/*;强调颜色*/?: Property.AccentColor | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* The CSS **`align-content`** property sets the distribution of space between and around content items along a flexbox's cross-axis or a grid's block axis.
|
|
28
28
|
*
|
|
@@ -123,7 +123,7 @@ export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
123
123
|
*
|
|
124
124
|
* @see https://developer.mozilla.org/docs/Web/CSS/align-tracks
|
|
125
125
|
*/
|
|
126
|
-
alignTracks
|
|
126
|
+
alignTracks/*;对齐轨道*/?: Property.AlignTracks | undefined;
|
|
127
127
|
/**
|
|
128
128
|
* The **`animation-delay`** CSS property specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation. The animation can start later, immediately from its beginning, or immediately and partway through the animation.
|
|
129
129
|
*
|
|
@@ -242,7 +242,7 @@ export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
242
242
|
*
|
|
243
243
|
* @see https://developer.mozilla.org/docs/Web/CSS/animation-timeline
|
|
244
244
|
*/
|
|
245
|
-
animationTimeline
|
|
245
|
+
animationTimeline/*;动画时间线*/?: Property.AnimationTimeline | undefined;
|
|
246
246
|
/**
|
|
247
247
|
* The **`animation-timing-function`** CSS property sets how an animation progresses through the duration of each cycle.
|
|
248
248
|
*
|
|
@@ -286,7 +286,7 @@ export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
286
286
|
*
|
|
287
287
|
* @see https://developer.mozilla.org/docs/Web/CSS/aspect-ratio
|
|
288
288
|
*/
|
|
289
|
-
aspectRatio
|
|
289
|
+
aspectRatio/*;高宽比*/?: Property.AspectRatio | undefined;
|
|
290
290
|
/**
|
|
291
291
|
* The **`backdrop-filter`** CSS property lets you apply graphical effects such as blurring or color shifting to the area behind an element. Because it applies to everything _behind_ the element, to see the effect you must make the element or its background at least partially transparent.
|
|
292
292
|
*
|
|
@@ -1329,7 +1329,7 @@ export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
1329
1329
|
*
|
|
1330
1330
|
* @see https://developer.mozilla.org/docs/Web/CSS/color
|
|
1331
1331
|
*/
|
|
1332
|
-
color
|
|
1332
|
+
color/*;颜色*/?: Property.Color | undefined;
|
|
1333
1333
|
/**
|
|
1334
1334
|
* The **`print-color-adjust`** CSS property sets what, if anything, the user agent may do to optimize the appearance of the element on the output device. By default, the browser is allowed to make any adjustments to the element's appearance it determines to be necessary and prudent given the type and capabilities of the output device.
|
|
1335
1335
|
*
|
|
@@ -4860,7 +4860,7 @@ export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
4860
4860
|
*
|
|
4861
4861
|
* @see https://developer.mozilla.org/docs/Web/CSS/top
|
|
4862
4862
|
*/
|
|
4863
|
-
top
|
|
4863
|
+
top/*;上*/?: Property.Top<TLength> | undefined;
|
|
4864
4864
|
/**
|
|
4865
4865
|
* The **`touch-action`** CSS property sets how an element's region can be manipulated by a touchscreen user (for example, by zooming features built into the browser).
|
|
4866
4866
|
*
|
|
@@ -5065,7 +5065,7 @@ export interface StandardLonghandProperties<TLength = (string & {}) | 0, TTime =
|
|
|
5065
5065
|
*
|
|
5066
5066
|
* @see https://developer.mozilla.org/docs/Web/CSS/visibility
|
|
5067
5067
|
*/
|
|
5068
|
-
visibility
|
|
5068
|
+
visibility/*;可见*/?: Property.Visibility | undefined;
|
|
5069
5069
|
/**
|
|
5070
5070
|
* The **`white-space`** CSS property sets how white space inside an element is handled.
|
|
5071
5071
|
*
|
|
@@ -18507,9 +18507,9 @@ export namespace Property {
|
|
|
18507
18507
|
|
|
18508
18508
|
export type BackgroundPosition<TLength = (string & {}) | 0> = Globals | DataType.BgPosition<TLength> | (string & {});
|
|
18509
18509
|
|
|
18510
|
-
export type BackgroundPositionX<TLength = (string & {}) | 0> = Globals | TLength | "center" | "left" | "right" | "x-end" | "x-start" | (string & {});
|
|
18510
|
+
export type BackgroundPositionX<TLength = (string & {}) | 0> = Globals | TLength | "center"/*;中*/ | "left" | "right" | "x-end" | "x-start" | (string & {});
|
|
18511
18511
|
|
|
18512
|
-
export type BackgroundPositionY<TLength = (string & {}) | 0> = Globals | TLength | "bottom" | "center" | "top" | "y-end" | "y-start" | (string & {});
|
|
18512
|
+
export type BackgroundPositionY<TLength = (string & {}) | 0> = Globals | TLength | "bottom" | "center"/*;中*/ | "top" | "y-end" | "y-start" | (string & {});
|
|
18513
18513
|
|
|
18514
18514
|
export type BackgroundRepeat = Globals | DataType.RepeatStyle | (string & {});
|
|
18515
18515
|
|
|
@@ -18654,7 +18654,7 @@ export namespace Property {
|
|
|
18654
18654
|
|
|
18655
18655
|
export type Bottom<TLength = (string & {}) | 0> = Globals | TLength | "auto" | (string & {});
|
|
18656
18656
|
|
|
18657
|
-
export type BoxAlign = Globals | "baseline" | "center" | "end" | "start" | "stretch";
|
|
18657
|
+
export type BoxAlign = Globals | "baseline" | "center"/*;中*/ | "end" | "start" | "stretch";
|
|
18658
18658
|
|
|
18659
18659
|
export type BoxDecorationBreak = Globals | "clone" | "slice";
|
|
18660
18660
|
|
|
@@ -18670,7 +18670,7 @@ export namespace Property {
|
|
|
18670
18670
|
|
|
18671
18671
|
export type BoxOrient = Globals | "block-axis" | "horizontal" | "inherit" | "inline-axis" | "vertical";
|
|
18672
18672
|
|
|
18673
|
-
export type BoxPack = Globals | "center" | "end" | "justify" | "start";
|
|
18673
|
+
export type BoxPack = Globals | "center"/*;中*/ | "end" | "justify" | "start";
|
|
18674
18674
|
|
|
18675
18675
|
export type BoxShadow = Globals | "none" | (string & {});
|
|
18676
18676
|
|
|
@@ -19360,7 +19360,7 @@ export namespace Property {
|
|
|
19360
19360
|
|
|
19361
19361
|
export type RowGap<TLength = (string & {}) | 0> = Globals | TLength | "normal" | (string & {});
|
|
19362
19362
|
|
|
19363
|
-
export type RubyAlign = Globals | "center" | "space-around" | "space-between" | "start";
|
|
19363
|
+
export type RubyAlign = Globals | "center"/*;中*/ | "space-around" | "space-between" | "start";
|
|
19364
19364
|
|
|
19365
19365
|
export type RubyMerge = Globals | "auto" | "collapse" | "separate";
|
|
19366
19366
|
|
|
@@ -19414,7 +19414,7 @@ export namespace Property {
|
|
|
19414
19414
|
|
|
19415
19415
|
export type ScrollPaddingTop<TLength = (string & {}) | 0> = Globals | TLength | "auto" | (string & {});
|
|
19416
19416
|
|
|
19417
|
-
export type ScrollSnapAlign = Globals | "center" | "end" | "none" | "start" | (string & {});
|
|
19417
|
+
export type ScrollSnapAlign = Globals | "center"/*;中*/ | "end" | "none" | "start" | (string & {});
|
|
19418
19418
|
|
|
19419
19419
|
export type ScrollSnapCoordinate<TLength = (string & {}) | 0> = Globals | DataType.Position<TLength> | "none" | (string & {});
|
|
19420
19420
|
|
|
@@ -19452,7 +19452,7 @@ export namespace Property {
|
|
|
19452
19452
|
|
|
19453
19453
|
export type TextAlign = Globals | "center"/*;中*/ | "end" | "justify" | "left" | "match-parent" | "right" | "start";
|
|
19454
19454
|
|
|
19455
|
-
export type TextAlignLast = Globals | "auto" | "center" | "end" | "justify" | "left" | "right" | "start";
|
|
19455
|
+
export type TextAlignLast = Globals | "auto" | "center"/*;中*/ | "end" | "justify" | "left" | "right" | "start";
|
|
19456
19456
|
|
|
19457
19457
|
export type TextCombineUpright = Globals | "all" | "none" | (string & {});
|
|
19458
19458
|
|
|
@@ -19539,7 +19539,7 @@ export namespace Property {
|
|
|
19539
19539
|
|
|
19540
19540
|
export type TransformBox = Globals | "border-box" | "content-box" | "fill-box" | "stroke-box" | "view-box";
|
|
19541
19541
|
|
|
19542
|
-
export type TransformOrigin<TLength = (string & {}) | 0> = Globals | TLength | "bottom" | "center" | "left" | "right" | "top" | (string & {});
|
|
19542
|
+
export type TransformOrigin<TLength = (string & {}) | 0> = Globals | TLength | "bottom" | "center"/*;中*/ | "left" | "right" | "top" | (string & {});
|
|
19543
19543
|
|
|
19544
19544
|
export type TransformStyle = Globals | "flat" | "preserve-3d";
|
|
19545
19545
|
|
|
@@ -19585,7 +19585,7 @@ export namespace Property {
|
|
|
19585
19585
|
| "top"
|
|
19586
19586
|
| (string & {});
|
|
19587
19587
|
|
|
19588
|
-
export type Visibility = Globals | "collapse" | "hidden" | "visible"
|
|
19588
|
+
export type Visibility = Globals | "collapse" | "hidden"/*;隐藏*/ | "visible"/*;可见*/;
|
|
19589
19589
|
|
|
19590
19590
|
export type WhiteSpace = Globals | "-moz-pre-wrap" | "break-spaces" | "normal" | "nowrap" | "pre" | "pre-line" | "pre-wrap";
|
|
19591
19591
|
|
|
@@ -19960,9 +19960,9 @@ export namespace Property {
|
|
|
19960
19960
|
|
|
19961
19961
|
export type WebkitMaskPosition<TLength = (string & {}) | 0> = Globals | DataType.Position<TLength> | (string & {});
|
|
19962
19962
|
|
|
19963
|
-
export type WebkitMaskPositionX<TLength = (string & {}) | 0> = Globals | TLength | "center" | "left" | "right" | (string & {});
|
|
19963
|
+
export type WebkitMaskPositionX<TLength = (string & {}) | 0> = Globals | TLength | "center"/*;中*/ | "left" | "right" | (string & {});
|
|
19964
19964
|
|
|
19965
|
-
export type WebkitMaskPositionY<TLength = (string & {}) | 0> = Globals | TLength | "bottom" | "center" | "top" | (string & {});
|
|
19965
|
+
export type WebkitMaskPositionY<TLength = (string & {}) | 0> = Globals | TLength | "bottom" | "center"/*;中*/ | "top" | (string & {});
|
|
19966
19966
|
|
|
19967
19967
|
export type WebkitMaskRepeat = Globals | DataType.RepeatStyle | (string & {});
|
|
19968
19968
|
|
|
@@ -20268,7 +20268,7 @@ export namespace AtRule {
|
|
|
20268
20268
|
|
|
20269
20269
|
type LineGapOverride = "normal" | (string & {});
|
|
20270
20270
|
|
|
20271
|
-
type Bleed<TLength> = TLength | "auto"
|
|
20271
|
+
type Bleed<TLength> = TLength | "auto"/*;自动*/;
|
|
20272
20272
|
|
|
20273
20273
|
type Marks = "crop" | "cross" | "none" | (string & {});
|
|
20274
20274
|
|
|
@@ -20314,7 +20314,7 @@ export namespace DataType {
|
|
|
20314
20314
|
|
|
20315
20315
|
type Attachment = "fixed" | "local" | "scroll";
|
|
20316
20316
|
|
|
20317
|
-
type BgPosition<TLength> = TLength | "bottom" | "center" | "left" | "right" | "top" | (string & {});
|
|
20317
|
+
type BgPosition<TLength> = TLength | "bottom" | "center"/*;中*/ | "left" | "right" | "top" | (string & {});
|
|
20318
20318
|
|
|
20319
20319
|
type BgSize<TLength> = TLength | "auto" | "contain" | "cover" | (string & {});
|
|
20320
20320
|
|
|
@@ -20373,7 +20373,7 @@ export namespace DataType {
|
|
|
20373
20373
|
|
|
20374
20374
|
type ContentList = Quote | "contents" | (string & {});
|
|
20375
20375
|
|
|
20376
|
-
type ContentPosition = "center" | "end" | "flex-end" | "flex-start" | "start";
|
|
20376
|
+
type ContentPosition = "center"/*;中*/ | "end" | "flex-end" | "flex-start" | "start";
|
|
20377
20377
|
|
|
20378
20378
|
type CubicBezierTimingFunction = "ease" | "ease-in" | "ease-in-out" | "ease-out" | (string & {});
|
|
20379
20379
|
|
|
@@ -20409,7 +20409,7 @@ export namespace DataType {
|
|
|
20409
20409
|
| "WindowFrame"
|
|
20410
20410
|
| "WindowText";
|
|
20411
20411
|
|
|
20412
|
-
type DisplayInside = "-ms-flexbox" | "-ms-grid" | "-webkit-flex" | "flex" | "flow" | "flow-root" | "grid" | "ruby" | "table";
|
|
20412
|
+
type DisplayInside = "-ms-flexbox" | "-ms-grid" | "-webkit-flex" | "flex"/*;弹性*/ | "flow" | "flow-root" | "grid" | "ruby" | "table";
|
|
20413
20413
|
|
|
20414
20414
|
type DisplayInternal =
|
|
20415
20415
|
| "ruby-base"
|
|
@@ -20464,16 +20464,16 @@ export namespace DataType {
|
|
|
20464
20464
|
type MaskingMode = "alpha" | "luminance" | "match-source";
|
|
20465
20465
|
|
|
20466
20466
|
type NamedColor =
|
|
20467
|
-
| "aliceblue"
|
|
20468
|
-
| "antiquewhite"
|
|
20469
|
-
| "aqua"
|
|
20470
|
-
| "aquamarine"
|
|
20471
|
-
| "azure"
|
|
20472
|
-
| "beige"
|
|
20467
|
+
| "aliceblue"/*;艾丽丝蓝*/
|
|
20468
|
+
| "antiquewhite"/*;古白*/
|
|
20469
|
+
| "aqua"/*;浅绿*/
|
|
20470
|
+
| "aquamarine"/*;浅蓝色*/
|
|
20471
|
+
| "azure"/*;天青*/
|
|
20472
|
+
| "beige"/*;米黄*/
|
|
20473
20473
|
| "bisque"
|
|
20474
|
-
| "black"
|
|
20474
|
+
| "black"/*;黑*/
|
|
20475
20475
|
| "blanchedalmond"
|
|
20476
|
-
| "blue"
|
|
20476
|
+
| "blue"/*;蓝*/
|
|
20477
20477
|
| "blueviolet"
|
|
20478
20478
|
| "brown"
|
|
20479
20479
|
| "burlywood"
|
|
@@ -20512,13 +20512,13 @@ export namespace DataType {
|
|
|
20512
20512
|
| "firebrick"
|
|
20513
20513
|
| "floralwhite"
|
|
20514
20514
|
| "forestgreen"
|
|
20515
|
-
| "fuchsia"
|
|
20515
|
+
| "fuchsia"/*;樱红*/
|
|
20516
20516
|
| "gainsboro"
|
|
20517
20517
|
| "ghostwhite"
|
|
20518
20518
|
| "gold"
|
|
20519
20519
|
| "goldenrod"
|
|
20520
|
-
| "gray"
|
|
20521
|
-
| "green"
|
|
20520
|
+
| "gray"/*;灰*/
|
|
20521
|
+
| "green"/*;绿*/
|
|
20522
20522
|
| "greenyellow"
|
|
20523
20523
|
| "grey"
|
|
20524
20524
|
| "honeydew"
|
|
@@ -20546,11 +20546,11 @@ export namespace DataType {
|
|
|
20546
20546
|
| "lightslategrey"
|
|
20547
20547
|
| "lightsteelblue"
|
|
20548
20548
|
| "lightyellow"
|
|
20549
|
-
| "lime"
|
|
20549
|
+
| "lime"/*;青柠 */
|
|
20550
20550
|
| "limegreen"
|
|
20551
20551
|
| "linen"
|
|
20552
20552
|
| "magenta"
|
|
20553
|
-
| "maroon"
|
|
20553
|
+
| "maroon"/*;褐红*/
|
|
20554
20554
|
| "mediumaquamarine"
|
|
20555
20555
|
| "mediumblue"
|
|
20556
20556
|
| "mediumorchid"
|
|
@@ -20565,11 +20565,11 @@ export namespace DataType {
|
|
|
20565
20565
|
| "mistyrose"
|
|
20566
20566
|
| "moccasin"
|
|
20567
20567
|
| "navajowhite"
|
|
20568
|
-
| "navy"
|
|
20568
|
+
| "navy"/*;海军蓝*/
|
|
20569
20569
|
| "oldlace"
|
|
20570
|
-
| "olive"
|
|
20570
|
+
| "olive"/*;橄榄*/
|
|
20571
20571
|
| "olivedrab"
|
|
20572
|
-
| "orange"
|
|
20572
|
+
| "orange"/*;橙*/
|
|
20573
20573
|
| "orangered"
|
|
20574
20574
|
| "orchid"
|
|
20575
20575
|
| "palegoldenrod"
|
|
@@ -20582,9 +20582,9 @@ export namespace DataType {
|
|
|
20582
20582
|
| "pink"
|
|
20583
20583
|
| "plum"
|
|
20584
20584
|
| "powderblue"
|
|
20585
|
-
| "purple"
|
|
20585
|
+
| "purple"/*;紫*/
|
|
20586
20586
|
| "rebeccapurple"
|
|
20587
|
-
| "red"
|
|
20587
|
+
| "red"/*;红*/
|
|
20588
20588
|
| "rosybrown"
|
|
20589
20589
|
| "royalblue"
|
|
20590
20590
|
| "saddlebrown"
|
|
@@ -20593,7 +20593,7 @@ export namespace DataType {
|
|
|
20593
20593
|
| "seagreen"
|
|
20594
20594
|
| "seashell"
|
|
20595
20595
|
| "sienna"
|
|
20596
|
-
| "silver"
|
|
20596
|
+
| "silver"/*;银*/
|
|
20597
20597
|
| "skyblue"
|
|
20598
20598
|
| "slateblue"
|
|
20599
20599
|
| "slategray"
|
|
@@ -20602,29 +20602,29 @@ export namespace DataType {
|
|
|
20602
20602
|
| "springgreen"
|
|
20603
20603
|
| "steelblue"
|
|
20604
20604
|
| "tan"
|
|
20605
|
-
| "teal"
|
|
20605
|
+
| "teal"/*;蓝绿*/
|
|
20606
20606
|
| "thistle"
|
|
20607
20607
|
| "tomato"
|
|
20608
|
-
| "transparent"
|
|
20608
|
+
| "transparent"/*;透*/
|
|
20609
20609
|
| "turquoise"
|
|
20610
20610
|
| "violet"
|
|
20611
20611
|
| "wheat"
|
|
20612
|
-
| "white"
|
|
20612
|
+
| "white"/*;白*/
|
|
20613
20613
|
| "whitesmoke"
|
|
20614
|
-
| "yellow"
|
|
20614
|
+
| "yellow"/*;黄*/
|
|
20615
20615
|
| "yellowgreen";
|
|
20616
20616
|
|
|
20617
20617
|
type PageSize = "A3" | "A4" | "A5" | "B4" | "B5" | "JIS-B4" | "JIS-B5" | "ledger" | "legal" | "letter";
|
|
20618
20618
|
|
|
20619
20619
|
type Paint = Color | "child" | "context-fill" | "context-stroke" | "none" | (string & {});
|
|
20620
20620
|
|
|
20621
|
-
type Position<TLength> = TLength | "bottom" | "center" | "left" | "right" | "top" | (string & {});
|
|
20621
|
+
type Position<TLength> = TLength | "bottom" | "center"/*;中*/ | "left" | "right" | "top" | (string & {});
|
|
20622
20622
|
|
|
20623
20623
|
type Quote = "close-quote" | "no-close-quote" | "no-open-quote" | "open-quote";
|
|
20624
20624
|
|
|
20625
20625
|
type RepeatStyle = "no-repeat" | "repeat" | "repeat-x" | "repeat-y" | "round" | "space" | (string & {});
|
|
20626
20626
|
|
|
20627
|
-
type SelfPosition = "center" | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "start";
|
|
20627
|
+
type SelfPosition = "center"/*;中*/ | "end" | "flex-end" | "flex-start" | "self-end" | "self-start" | "start";
|
|
20628
20628
|
|
|
20629
20629
|
type SingleAnimation<TTime> =
|
|
20630
20630
|
| EasingFunction
|