-
Notifications
You must be signed in to change notification settings - Fork 77
/
Styles.fs
2964 lines (2859 loc) · 193 KB
/
Styles.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
namespace Feliz
open System
open Fable.Core
open Feliz.Styles
[<Erase>]
type style =
/// The zIndex property sets or returns the stack order of a positioned element.
///
/// An element with greater stack order (1) is always in front of another element with lower stack order (0).
///
/// **Tip**: A positioned element is an element with the position property set to: relative, absolute, or fixed.
///
/// **Tip**: This property is useful if you want to create overlapping elements.
static member inline zIndex(value: int) = Interop.mkStyle "zIndex" value
/// Sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right,
/// margin-bottom, and margin-left.
static member inline margin(value: int) = Interop.mkStyle "margin" value
/// Sets the margin area on two sides of an element. It is a shorthand for margin-top and margin-right.
static member inline margin(top: int, right: int) =
Interop.mkStyle "margin" (
(unbox<string> top) + "px " +
(unbox<string> right) + "px"
)
/// Sets the margin area on two sides of an element. It is a shorthand for margin-top and margin-right.
static member inline margin(top: ICssUnit, right: int) =
Interop.mkStyle "margin" (
(unbox<string> top) + " " +
(unbox<string>right) + "px"
)
/// Sets the margin area on two sides of an element. It is a shorthand for margin-top and margin-right.
static member inline margin(top: ICssUnit, right: ICssUnit) =
Interop.mkStyle "margin" (
(unbox<string> top) + " " +
(unbox<string>right)
)
/// Sets the margin area on three sides of an element. It is a shorthand for margin-top, margin-right
/// and margin-bottom.
static member inline margin(top: ICssUnit, right: int, bottom: int) =
Interop.mkStyle "margin" (
(unbox<string> top) + " " +
(unbox<string>right) + "px " +
(unbox<string>bottom) + "px"
)
/// Sets the margin area on three sides of an element. It is a shorthand for margin-top, margin-right
/// and margin-bottom.
static member inline margin(top: ICssUnit, right: ICssUnit, bottom: int) =
Interop.mkStyle "margin" (
(unbox<string> top) + " " +
(unbox<string> right) + " " +
(unbox<string>bottom) + "px"
)
/// Sets the margin area on three sides of an element. It is a shorthand for margin-top, margin-right
/// and margin-bottom.
static member inline margin(top: ICssUnit, right: ICssUnit, bottom: ICssUnit) =
Interop.mkStyle "margin" (
(unbox<string> top) + " " +
(unbox<string> right) + " " +
(unbox<string> bottom)
)
/// Sets the margin area on three sides of an element. It is a shorthand for margin-top, margin-right
/// and margin-bottom.
static member inline margin(top: ICssUnit, right: int, bottom: ICssUnit) =
Interop.mkStyle "margin" (
(unbox<string> top) + " " +
(unbox<string> right) + "px " +
(unbox<string> bottom)
)
/// Sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right,
/// margin-bottom, and margin-left.
static member inline margin(top: ICssUnit, right: ICssUnit, bottom: ICssUnit, left: ICssUnit) =
Interop.mkStyle "margin" (
(unbox<string> top) + " " +
(unbox<string> right) + " " +
(unbox<string> bottom) + " " +
(unbox<string> left)
)
/// Sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right,
/// margin-bottom, and margin-left.
static member inline margin(top: ICssUnit, right: int, bottom: int, left: int) =
Interop.mkStyle "margin" (
(unbox<string> top) + " " +
(unbox<string>right) + "px " +
(unbox<string>bottom) + "px " +
(unbox<string>left) + "px"
)
/// Sets the margin area on two sides of an element. It is a shorthand for margin-top and margin-right.
static member inline margin(top: int, right: ICssUnit) =
Interop.mkStyle "margin" (
(unbox<string> top) + "px " +
(unbox<string> right)
)
/// Sets the margin area on three sides of an element. It is a shorthand for margin-top, margin-right
/// and margin-bottom.
static member inline margin(top: int, right: int, bottom: int) =
Interop.mkStyle "margin" (
(unbox<string> top) + "px " +
(unbox<string> right) + "px " +
(unbox<string> bottom) + "px"
)
/// Sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right,
/// margin-bottom, and margin-left.
static member inline margin(top: int, right: int, bottom: int, left: int) =
Interop.mkStyle "margin" (
(unbox<string> top) + "px " +
(unbox<string> right) + "px " +
(unbox<string> bottom) + "px " +
(unbox<string> left) + "px")
/// Sets the margin area on all four sides of an element. It is a shorthand for margin-top, margin-right,
/// margin-bottom, and margin-left.
static member inline margin(value: ICssUnit) = Interop.mkStyle "margin" value
/// Sets the margin area on the left side of an element. A positive value places it farther from its
/// neighbors, while a negative value places it closer.
static member inline marginLeft(value: int) = Interop.mkStyle "marginLeft" value
/// Sets the margin area on the left side of an element. A positive value places it farther from its
/// neighbors, while a negative value places it closer.
static member inline marginLeft(value: ICssUnit) = Interop.mkStyle "marginLeft" value
/// sets the margin area on the right side of an element. A positive value places it farther from its
/// neighbors, while a negative value places it closer.
static member inline marginRight(value: int) = Interop.mkStyle "marginRight" value
/// sets the margin area on the right side of an element. A positive value places it farther from its
/// neighbors, while a negative value places it closer.
static member inline marginRight(value: ICssUnit) = Interop.mkStyle "marginRight" value
/// Sets the margin area on the top of an element. A positive value places it farther from its
/// neighbors, while a negative value places it closer.
static member inline marginTop(value: int) = Interop.mkStyle "marginTop" value
/// Sets the margin area on the top of an element. A positive value places it farther from its
/// neighbors, while a negative value places it closer.
static member inline marginTop(value: ICssUnit) = Interop.mkStyle "marginTop" value
/// Sets the margin area on the bottom of an element. A positive value places it farther from its
/// neighbors, while a negative value places it closer.
static member inline marginBottom(value: int) = Interop.mkStyle "marginBottom" value
/// Sets the margin area on the bottom of an element. A positive value places it farther from its
/// neighbors, while a negative value places it closer.
static member inline marginBottom(value: ICssUnit) = Interop.mkStyle "marginBottom" value
/// Sets the padding area on all four sides of an element. It is a shorthand for padding-top,
/// padding-right, padding-bottom, and padding-left.
static member inline padding(top: ICssUnit, right: int) =
Interop.mkStyle "padding" (
(unbox<string> top) + " " +
(unbox<string>right) + "px"
)
/// Sets the padding area on three sides of an element. It is a shorthand for padding-top,
/// padding-right, and padding-bottom.
static member inline padding(top: ICssUnit, right: int, bottom: int) =
Interop.mkStyle "padding" (
(unbox<string> top) + " " +
(unbox<string> right) + "px " +
(unbox<string> bottom) + "px"
)
/// Sets the padding area on three sides of an element. It is a shorthand for padding-top,
/// padding-right, and padding-bottom.
static member inline padding(top: ICssUnit, right: ICssUnit, bottom: int) =
Interop.mkStyle "padding" (
(unbox<string> top) + " " +
(unbox<string> right) + " " +
(unbox<string>bottom) + "px"
)
/// Sets the padding area on three sides of an element. It is a shorthand for padding-top,
/// padding-right, and padding-bottom.
static member inline padding(top: ICssUnit, right: ICssUnit, bottom: ICssUnit) =
Interop.mkStyle "padding" (
(unbox<string> top) + " " +
(unbox<string> right) + " " +
(unbox<string> bottom)
)
/// Sets the padding area on three sides of an element. It is a shorthand for padding-top,
/// padding-right, and padding-bottom.
static member inline padding(top: ICssUnit, right: int, bottom: ICssUnit) =
Interop.mkStyle "padding" (
(unbox<string> top) + " " +
(unbox<string> right) + "px " +
(unbox<string> bottom)
)
/// Sets the padding area on all four sides of an element. It is a shorthand for padding-top,
/// padding-right, padding-bottom, and padding-left.
static member inline padding(top: ICssUnit, right: ICssUnit, bottom: ICssUnit, left: ICssUnit) =
Interop.mkStyle "padding" (
(unbox<string> top) + " " +
(unbox<string> right) + " " +
(unbox<string> bottom) + " " +
(unbox<string> left)
)
/// Sets the padding area on all four sides of an element. It is a shorthand for padding-top,
/// padding-right, padding-bottom, and padding-left.
static member inline padding(top: ICssUnit, right: int, bottom: int, left: int) =
Interop.mkStyle "padding" (
(unbox<string> top) + " " +
(unbox<string>right) + "px " +
(unbox<string>bottom) + "px " +
(unbox<string>left) + "px"
)
/// Sets the padding area on two sides of an element. It is a shorthand for padding-top and padding-right.
static member inline padding(top: int, right: ICssUnit) =
Interop.mkStyle "padding" (
(unbox<string> top) + "px " +
(unbox<string> right)
)
/// Sets the padding area on all four sides of an element. It is a shorthand for padding-top,
/// padding-right, padding-bottom, and padding-left.
static member inline padding(value: int) = Interop.mkStyle "padding" value
/// Sets the padding area on two sides of an element. It is a shorthand for padding-top and padding-right.
static member inline padding(top: int, right: int) =
Interop.mkStyle "padding" (
(unbox<string> top) + "px " +
(unbox<string> right) + "px"
)
/// Sets the padding area on three sides of an element. It is a shorthand for padding-top,
/// padding-right, and padding-bottom.
static member inline padding(top: int, right: int, bottom: int) =
Interop.mkStyle "padding" (
(unbox<string> top) + "px " +
(unbox<string> right) + "px " +
(unbox<string> bottom) + "px"
)
/// Sets the padding area on all four sides of an element. It is a shorthand for padding-top,
/// padding-right, padding-bottom, and padding-left.
static member inline padding(top: int, right: int, bottom: int, left: int) =
Interop.mkStyle "padding" (
(unbox<string> top) + "px " +
(unbox<string> right) + "px " +
(unbox<string> bottom) + "px " +
(unbox<string> left) + "px"
)
/// Sets the padding area on all four sides of an element. It is a shorthand for padding-top,
/// padding-right, padding-bottom, and padding-left.
static member inline padding(value: ICssUnit) = Interop.mkStyle "padding" value
/// Sets the height of the padding area on the bottom of an element.
static member inline paddingBottom(value: int) = Interop.mkStyle "paddingBottom" value
/// Sets the height of the padding area on the bottom of an element.
static member inline paddingBottom(value: ICssUnit) = Interop.mkStyle "paddingBottom" value
/// Sets the width of the padding area to the left of an element.
static member inline paddingLeft(value: int) = Interop.mkStyle "paddingLeft" value
/// Sets the width of the padding area to the left of an element.
static member inline paddingLeft(value: ICssUnit) = Interop.mkStyle "paddingLeft" value
/// Sets the width of the padding area on the right of an element.
static member inline paddingRight(value: int) = Interop.mkStyle "paddingRight" value
/// Sets the width of the padding area on the right of an element.
static member inline paddingRight(value: ICssUnit) = Interop.mkStyle "paddingRight" value
/// Sets the height of the padding area on the top of an element.
static member inline paddingTop(value: int) = Interop.mkStyle "paddingTop" value
/// Sets the height of the padding area on the top of an element.
static member inline paddingTop(value: ICssUnit) = Interop.mkStyle "paddingTop" value
/// Sets the flex shrink factor of a flex item. If the size of all flex items is larger than
/// the flex container, items shrink to fit according to flex-shrink.
static member inline flexShrink(value: int) = Interop.mkStyle "flexShrink" value
/// Sets the initial main size of a flex item. It sets the size of the content box unless
/// otherwise set with box-sizing.
static member inline flexBasis (value: int) = Interop.mkStyle "flexBasis" value
/// Sets the initial main size of a flex item. It sets the size of the content box unless
/// otherwise set with box-sizing.
static member inline flexBasis (value: float) = Interop.mkStyle "flexBasis" value
/// Sets the initial main size of a flex item. It sets the size of the content box unless
/// otherwise set with box-sizing.
static member inline flexBasis (value: ICssUnit) = Interop.mkStyle "flexBasis" value
/// Sets the flex grow factor of a flex item main size. It specifies how much of the remaining
/// space in the flex container should be assigned to the item (the flex grow factor).
static member inline flexGrow (value: int) = Interop.mkStyle "flexGrow" value
/// Sets the length of time a transition animation should take to complete. By default, the
/// value is 0s, meaning that no animation will occur.
static member inline transitionDuration(timespan: TimeSpan) =
Interop.mkStyle "transitionDuration" (unbox<string> timespan.TotalMilliseconds + "ms")
/// Sets the length of time a transition animation should take to complete. By default, the
/// value is 0s, meaning that no animation will occur.
static member inline transitionDurationSeconds(n: float) =
Interop.mkStyle "transitionDuration" ((unbox<string> n) + "s")
/// Sets the length of time a transition animation should take to complete. By default, the
/// value is 0s, meaning that no animation will occur.
static member inline transitionDurationMilliseconds(n: float) =
Interop.mkStyle "transitionDuration" ((unbox<string> n) + "ms")
/// Sets the length of time a transition animation should take to complete. By default, the
/// value is 0s, meaning that no animation will occur.
static member inline transitionDurationSeconds(n: int) =
Interop.mkStyle "transitionDuration" ((unbox<string> n) + "s")
/// Sets the length of time a transition animation should take to complete. By default, the
/// value is 0s, meaning that no animation will occur.
static member inline transitionDurationMilliseconds(n: int) =
Interop.mkStyle "transitionDuration" ((unbox<string> n) + "ms")
/// Specifies the duration to wait before starting a property's transition effect when its value changes.
static member inline transitionDelay(timespan: TimeSpan) =
Interop.mkStyle "transitionDelay" (unbox<string> timespan.TotalMilliseconds + "ms")
/// Specifies the duration to wait before starting a property's transition effect when its value changes.
static member inline transitionDelaySeconds(n: float) =
Interop.mkStyle "transitionDelay" ((unbox<string> n) + "s")
/// Specifies the duration to wait before starting a property's transition effect when its value changes.
static member inline transitionDelayMilliseconds(n: float) =
Interop.mkStyle "transitionDelay" ((unbox<string> n) + "ms")
/// Specifies the duration to wait before starting a property's transition effect when its value changes.
static member inline transitionDelaySeconds(n: int) =
Interop.mkStyle "transitionDelay" ((unbox<string> n) + "s")
/// Specifies the duration to wait before starting a property's transition effect when its value changes.
static member inline transitionDelayMilliseconds(n: int) =
Interop.mkStyle "transitionDelay" ((unbox<string> n) + "ms")
/// Sets the CSS properties to which a transition effect should be applied.
static member inline transitionProperty ([<ParamArray>] properties: ITransitionProperty[]) =
Interop.mkStyle "transitionProperty" (String.concat "," (unbox<string[]> properties))
/// Sets the CSS properties to which a transition effect should be applied.
static member inline transitionProperty (properties: ITransitionProperty list) =
Interop.mkStyle "transitionProperty" (String.concat "," (unbox<string list> properties))
/// Sets the CSS properties to which a transition effect should be applied.
static member inline transitionProperty (property: ITransitionProperty) =
Interop.mkStyle "transitionProperty" property
/// Sets the CSS properties to which a transition effect should be applied.
static member inline transitionProperty (property: string) =
Interop.mkStyle "transitionProperty" property
static member inline transform(transformation: ITransformProperty) =
Interop.mkStyle "transform" transformation
static member inline transform(transformations: ITransformProperty list) =
Interop.mkStyle "transform" (String.concat " " (unbox transformations))
/// Sets the size of the font.
///
/// This property is also used to compute the size of em, ex, and other relative <length> units.
static member inline fontSize(size: int) = Interop.mkStyle "fontSize" (unbox<string> size + "px")
/// Sets the size of the font.
///
/// This property is also used to compute the size of em, ex, and other relative <length> units.
static member inline fontSize(size: float) = Interop.mkStyle "fontSize" (unbox<string> size + "px")
/// Sets the size of the font.
///
/// This property is also used to compute the size of em, ex, and other relative <length> units.
static member inline fontSize(size: ICssUnit) = Interop.mkStyle "fontSize" size
/// Specifies the height of a text lines.
///
/// This property is also used to compute the size of em, ex, and other relative <length> units.
///
/// Note: Negative values are not allowed.
static member inline lineHeight(size: int) = Interop.mkStyle "lineHeight" (unbox<string> size + "px")
/// Specifies the height of a text lines.
///
/// This property is also used to compute the size of em, ex, and other relative <length> units.
///
/// Note: Negative values are not allowed.
static member inline lineHeight(size: float) = Interop.mkStyle "lineHeight" (unbox<string> size + "px")
/// Specifies the height of a text lines.
///
/// This property is also used to compute the size of em, ex, and other relative <length> units.
///
/// Note: Negative values are not allowed.
static member inline lineHeight(size: ICssUnit) = Interop.mkStyle "lineHeight" size
/// Sets the background color of an element.
static member inline backgroundColor (color: string) = Interop.mkStyle "backgroundColor" color
/// Sets the color of the insertion caret, the visible marker where the next character typed will be inserted.
///
/// This is sometimes referred to as the text input cursor. The caret appears in elements such as <input> or
/// those with the contenteditable attribute. The caret is typically a thin vertical line that flashes to
/// help make it more noticeable. By default, it is black, but its color can be altered with this property.
static member inline caretColor (color: string) = Interop.mkStyle "caretColor" color
/// Sets the foreground color value of an element's text and text decorations, and sets the
/// `currentcolor` value. `currentcolor` may be used as an indirect value on other properties
/// and is the default for other color properties, such as border-color.
static member inline color (color: string) = Interop.mkStyle "color" color
/// Specifies the vertical position of a positioned element. It has no effect on non-positioned elements.
static member inline top(value: int) = Interop.mkStyle "top" value
/// Specifies the vertical position of a positioned element. It has no effect on non-positioned elements.
static member inline top(value: ICssUnit) = Interop.mkStyle "top" value
/// Specifies the vertical position of a positioned element. It has no effect on non-positioned elements.
static member inline bottom(value: int) = Interop.mkStyle "bottom" value
/// Specifies the vertical position of a positioned element. It has no effect on non-positioned elements.
static member inline bottom(value: ICssUnit) = Interop.mkStyle "bottom" value
/// Specifies the horizontal position of a positioned element. It has no effect on non-positioned elements.
static member inline left(value: int) = Interop.mkStyle "left" value
/// Specifies the horizontal position of a positioned element. It has no effect on non-positioned elements.
static member inline left(value: ICssUnit) = Interop.mkStyle "left" value
/// Specifies the horizontal position of a positioned element. It has no effect on non-positioned elements.
static member inline right(value: int) = Interop.mkStyle "right" value
/// Specifies the horizontal position of a positioned element. It has no effect on non-positioned elements.
static member inline right(value: ICssUnit) = Interop.mkStyle "right" value
/// Define a custom attribute of via key value pair
static member inline custom(key: string, value: 't) = Interop.mkStyle key value
/// Sets an element's bottom border. It sets the values of border-bottom-width,
/// border-bottom-style and border-bottom-color.
static member inline borderBottom(width: int, style: IBorderStyle, color: string) =
Interop.mkStyle "borderBottom" (
(unbox<string> width) + "px " +
(unbox<string> style) + " " +
color
)
/// Sets an element's bottom border. It sets the values of border-bottom-width,
/// border-bottom-style and border-bottom-color.
static member inline borderBottom(width: ICssUnit, style: IBorderStyle, color: string) =
Interop.mkStyle "borderBottom" (
(unbox<string> width) + " " +
(unbox<string> style) + " " +
color
)
/// An outline is a line around an element.
/// It is displayed around the margin of the element. However, it is different from the border property.
/// The outline is not a part of the element's dimensions, therefore the element's width and height properties do not contain the width of the outline.
static member inline outlineWidth(width: int) =
Interop.mkStyle "outlineWidth" ((unbox<string> width) + "px")
/// An outline is a line around an element.
/// It is displayed around the margin of the element. However, it is different from the border property.
/// The outline is not a part of the element's dimensions, therefore the element's width and height properties do not contain the width of the outline.
static member inline outlineWidth(width: ICssUnit) =
Interop.mkStyle "outlineWidth" width
/// The outline-offset property adds space between an outline and the edge or border of an element.
///
/// The space between an element and its outline is transparent.
///
/// Outlines differ from borders in three ways:
///
/// - An outline is a line drawn around elements, outside the border edge
/// - An outline does not take up space
/// - An outline may be non-rectangular
///
static member inline outlineOffset (offset:int) =
Interop.mkStyle "outlineWidth" ((unbox<string> offset) + "px")
/// The outline-offset property adds space between an outline and the edge or border of an element.
///
/// The space between an element and its outline is transparent.
///
/// Outlines differ from borders in three ways:
///
/// - An outline is a line drawn around elements, outside the border edge
/// - An outline does not take up space
/// - An outline may be non-rectangular
///
static member inline outlineOffset (offset:ICssUnit) =
Interop.mkStyle "outlineWidth" offset
/// An outline is a line that is drawn around elements (outside the borders) to make the element "stand out".
///
/// The `outline-color` property specifies the color of an outline.
/// **Note**: Always declare the outline-style property before the outline-color property. An element must have an outline before you change the color of it.
static member inline outlineColor (color: string) =
Interop.mkStyle "outlineColor" color
/// Set an element's left border.
static member inline borderLeft(width: int, style: IBorderStyle, color: string) =
Interop.mkStyle "borderLeft" (
(unbox<string> width) + "px " +
(unbox<string> style) + " " +
color
)
/// Set an element's left border.
static member inline borderLeft(width: ICssUnit, style: IBorderStyle, color: string) =
Interop.mkStyle "borderBottom" (
(unbox<string> width) + " " +
(unbox<string> style) + " " +
color
)
/// Set an element's right border.
static member inline borderRight(width: int, style: IBorderStyle, color: string) =
Interop.mkStyle "borderRight" (
(unbox<string> width) + "px " +
(unbox<string> style) + " " +
color
)
/// Set an element's right border.
static member inline borderRight(width: ICssUnit, style: IBorderStyle, color: string) =
Interop.mkStyle "borderRight" (
(unbox<string> width) + " " +
(unbox<string> style) + " " +
color
)
/// Set an element's top border.
static member inline borderTop(width: int, style: IBorderStyle, color: string) =
Interop.mkStyle "borderTop" (
(unbox<string> width) + "px " +
(unbox<string> style) + " " +
color
)
/// Set an element's top border.
static member inline borderTop(width: ICssUnit, style: IBorderStyle, color: string) =
Interop.mkStyle "borderTop" (
(unbox<string> width) + " " +
(unbox<string> style) + " " +
color
)
/// Sets the line style of an element's bottom border.
static member inline borderBottomStyle(style: IBorderStyle) = Interop.mkStyle "borderBottomStyle" (unbox<string> style)
/// Sets the width of the bottom border of an element.
static member inline borderBottomWidth (width: int) = Interop.mkStyle "borderBottomWidth" (unbox<string> width + "px")
/// Sets the width of the bottom border of an element.
static member inline borderBottomWidth (width: ICssUnit) = Interop.mkStyle "borderBottomWidth" (unbox<string> width)
/// Sets the color of an element's bottom border.
///
/// It can also be set with the shorthand CSS properties border-color or border-bottom.
static member inline borderBottomColor (color: string) = Interop.mkStyle "borderBottomColor" color
/// Sets the line style of an element's top border.
static member inline borderTopStyle(style: IBorderStyle) = Interop.mkStyle "borderTopStyle" (unbox<string> style)
/// Sets the width of the top border of an element.
static member inline borderTopWidth (width: int) = Interop.mkStyle "borderTopWidth" (unbox<string> width + "px")
/// Sets the width of the top border of an element.
static member inline borderTopWidth (width: ICssUnit) = Interop.mkStyle "borderTopWidth" (unbox<string> width)
/// Sets the color of an element's top border.
///
/// It can also be set with the shorthand CSS properties border-color or border-bottom.
static member inline borderTopColor (color: string) = Interop.mkStyle "borderTopColor" color
/// /// Sets the line style of an element's right border.
static member inline borderRightStyle(style: IBorderStyle) = Interop.mkStyle "borderRightStyle" (unbox<string> style)
/// Sets the width of the right border of an element.
static member inline borderRightWidth (width: int) = Interop.mkStyle "borderRightWidth" (unbox<string> width + "px")
/// Sets the width of the right border of an element.
static member inline borderRightWidth (width: ICssUnit) = Interop.mkStyle "borderRightWidth" (unbox<string> width)
/// Sets the color of an element's right border.
///
/// It can also be set with the shorthand CSS properties border-color or border-bottom.
static member inline borderRightColor (color: string) = Interop.mkStyle "borderRightColor" color
/// Sets the line style of an element's left border.
static member inline borderLeftStyle(style: IBorderStyle) = Interop.mkStyle "borderLeftStyle" (unbox<string> style)
/// Sets the width of the left border of an element.
static member inline borderLeftWidth (width: int) = Interop.mkStyle "borderLeftWidth" (unbox<string> width + "px")
/// Sets the width of the left border of an element.
static member inline borderLeftWidth (width: ICssUnit) = Interop.mkStyle "borderLeftWidth" (unbox<string> width)
/// Sets the color of an element's left border.
///
/// It can also be set with the shorthand CSS properties border-color or border-bottom.
static member inline borderLeftColor (color: string) = Interop.mkStyle "borderLeftColor" color
/// Sets an element's border.
///
/// It sets the values of border-width, border-style, and border-color.
static member inline border(width: int, style: IBorderStyle, color: string) =
Interop.mkStyle "border" (
(unbox<string> width) + "px " +
(unbox<string> style) + " " +
color
)
/// Sets an element's border.
///
/// It sets the values of border-width, border-style, and border-color.
static member inline border(width: ICssUnit, style: IBorderStyle, color: string) =
Interop.mkStyle "border" (
(unbox<string> width) + " " +
(unbox<string> style) + " " +
color
)
/// Sets an element's border.
///
/// It sets the values of border-width, border-style, and border-color.
static member inline border(width: string, style: IBorderStyle, color: string) =
Interop.mkStyle "border" (
(unbox<string> width) + " " +
(unbox<string> style) + " " +
color
)
/// Sets the line style for all four sides of an element's border.
static member inline borderStyle (style: IBorderStyle) = Interop.mkStyle "borderStyle" style
/// Sets the line style for all four sides of an element's border.
static member inline borderStyle(top: IBorderStyle, right: IBorderStyle) =
Interop.mkStyle "borderStyle" ((unbox<string> top) + " " + (unbox<string> right))
/// Sets the line style for all four sides of an element's border.
static member inline borderStyle(top: IBorderStyle, right: IBorderStyle, bottom: IBorderStyle) =
Interop.mkStyle "borderStyle" ((unbox<string> top) + " " + (unbox<string> right) + " " + (unbox<string> bottom))
/// Sets the line style for all four sides of an element's border.
static member inline borderStyle(top: IBorderStyle, right: IBorderStyle, bottom: IBorderStyle, left: IBorderStyle) =
Interop.mkStyle "borderStyle" ((unbox<string> top) + " " + (unbox<string> right) + " " + (unbox<string> bottom) + " " + (unbox<string> left))
/// Sets the color of an element's border.
static member inline borderColor (color: string) = Interop.mkStyle "borderColor" color
/// Rounds the corners of an element's outer border edge. You can set a single radius to make
/// circular corners, or two radii to make elliptical corners.
static member inline borderRadius (radius: int) = Interop.mkStyle "borderRadius" radius
/// Rounds the corners of an element's outer border edge. You can set a single radius to make
/// circular corners, or two radii to make elliptical corners.
static member inline borderRadius (radius: ICssUnit) = Interop.mkStyle "borderRadius" radius
/// Sets the width of an element's border.
static member inline borderWidth (top: int, right: int) =
Interop.mkStyle "borderWidth" (
(unbox<string> top) + "px " +
(unbox<string> right) + "px"
)
/// Sets the width of an element's border.
static member inline borderWidth (width: int) = Interop.mkStyle "borderWidth" width
/// Sets the width of an element's border.
static member inline borderWidth (top: int, right: int, bottom: int) =
Interop.mkStyle "borderWidth" (
(unbox<string> top) + "px " +
(unbox<string> right) + "px " +
(unbox<string> bottom) + "px"
)
/// Sets the width of an element's border.
static member inline borderWidth (top: int, right: int, bottom: int, left: int) =
Interop.mkStyle "borderWidth" (
(unbox<string> top) + "px " +
(unbox<string> right) + "px " +
(unbox<string> bottom) + "px " +
(unbox<string> left) + "px"
)
/// Sets one or more animations to apply to an element. Each name is an @keyframes at-rule that
/// sets the property values for the animation sequence.
static member inline animationName(keyframeName: string) = Interop.mkStyle "animationName" keyframeName
/// Sets the length of time that an animation takes to complete one cycle.
static member inline animationDuration(timespan: TimeSpan) = Interop.mkStyle "animationDuration" ((unbox<string> timespan.TotalMilliseconds) + "ms")
/// Sets the length of time that an animation takes to complete one cycle.
static member inline animationDuration(seconds: int) = Interop.mkStyle "animationDuration" ((unbox<string> seconds) + "s")
/// Sets when an animation starts.
///
/// The animation can start later, immediately from its beginning, or immediately and partway through the animation.
static member inline animationDelay(timespan: TimeSpan) = Interop.mkStyle "animationDelay" ((unbox<string> timespan.TotalMilliseconds) + "ms")
/// Sets when an animation starts.
///
/// The animation can start later, immediately from its beginning, or immediately and partway through the animation.
static member inline animationDelay(seconds: int) = Interop.mkStyle "animationDelay" ((unbox<string> seconds) + "s")
/// The number of times the animation runs.
static member inline animationDurationCount(count: int) = Interop.mkStyle "animationDurationCount" count
/// Sets the font family for the font specified in a @font-face rule.
static member inline fontFamily (family: string) = Interop.mkStyle "fontFamily" family
/// Defines from thin to thick characters. 400 is the same as normal, and 700 is the same as bold.
/// Possible values are [100, 200, 300, 400, 500, 600, 700, 800, 900]
static member inline fontWeight (weight: int) = Interop.mkStyle "fontWeight" weight
/// Sets the color of decorations added to text by text-decoration-line.
static member inline textDecorationColor(color: string) = Interop.mkStyle "textDecorationColor" color
/// Sets the kind of decoration that is used on text in an element, such as an underline or overline.
static member inline textDecorationLine(line: ITextDecorationLine) = Interop.mkStyle "textDecorationLine" line
/// Sets the appearance of decorative lines on text.
///
/// It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style,
/// and the newer text-decoration-thickness property.
static member inline textDecoration(line: ITextDecorationLine) = Interop.mkStyle "textDecoration" line
/// Sets the appearance of decorative lines on text.
///
/// It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style,
/// and the newer text-decoration-thickness property.
static member inline textDecoration(bottom: ITextDecorationLine, top: ITextDecorationLine) =
Interop.mkStyle "textDecoration" ((unbox<string> bottom) + " " + (unbox<string> top))
/// Sets the appearance of decorative lines on text.
///
/// It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style,
/// and the newer text-decoration-thickness property.
static member inline textDecoration(bottom: ITextDecorationLine, top: ITextDecorationLine, style: ITextDecoration) =
Interop.mkStyle "textDecoration" ((unbox<string> bottom) + " " + (unbox<string> top) + " " + (unbox<string> style))
/// Sets the appearance of decorative lines on text.
///
/// It is a shorthand for text-decoration-line, text-decoration-color, text-decoration-style,
/// and the newer text-decoration-thickness property.
static member inline textDecoration(bottom: ITextDecorationLine, top: ITextDecorationLine, style: ITextDecoration, color: string) =
Interop.mkStyle "textDecoration" ((unbox<string> bottom) + " " + (unbox<string> top) + " " + (unbox<string> style) + " " + color)
/// Sets the length of empty space (indentation) that is put before lines of text in a block.
static member inline textIndent(value: int) = Interop.mkStyle "textIndent" value
/// Sets the length of empty space (indentation) that is put before lines of text in a block.
static member inline textIndent(value: string) = Interop.mkStyle "textIndent" value
/// Sets the opacity of an element.
///
/// Opacity is the degree to which content behind an element is hidden, and is the opposite of transparency.
static member inline opacity(value: double) = Interop.mkStyle "opacity" value
/// Sets the minimum width of an element.
///
/// It prevents the used value of the width property from becoming smaller than the value specified for min-width.
static member inline minWidth (value: int) = Interop.mkStyle "minWidth" value
/// Sets the minimum width of an element.
///
/// It prevents the used value of the width property from becoming smaller than the value specified for min-width.
static member inline minWidth (value: ICssUnit) = Interop.mkStyle "minWidth" value
/// Sets the minimum width of an element.
///
/// It prevents the used value of the width property from becoming smaller than the value specified for min-width.
static member inline minWidth (value: string) = Interop.mkStyle "minWidth" value
/// Sets the initial position for each background image.
///
/// The position is relative to the position layer set by background-origin.
static member inline backgroundPosition (position: string) = Interop.mkStyle "backgroundPosition" position
/// Sets the type of cursor, if any, to show when the mouse pointer is over an element.
static member inline cursor (value: string) = Interop.mkStyle "cursor" value
/// Sets the minimum height of an element.
///
/// It prevents the used value of the height property from becoming smaller than the value specified for min-height.
static member inline minHeight (value: int) = Interop.mkStyle "minHeight" value
/// Sets the minimum height of an element.
///
/// It prevents the used value of the height property from becoming smaller than the value specified for min-height.
static member inline minHeight (value: ICssUnit) = Interop.mkStyle "minHeight" value
/// Sets the maximum width of an element.
///
/// It prevents the used value of the width property from becoming larger than the value specified by max-width.
static member inline maxWidth (value: int) = Interop.mkStyle "maxWidth" value
/// Sets the maximum width of an element.
///
/// It prevents the used value of the width property from becoming larger than the value specified by max-width.
static member inline maxWidth (value: ICssUnit) = Interop.mkStyle "maxWidth" value
/// Sets the maximum height of an element.
///
/// It prevents the used value of the height property from becoming larger than the value specified for max-height.
static member inline maxHeight (value: int) = Interop.mkStyle "maxHeight" value
/// Sets the maximum height of an element.
///
/// It prevents the used value of the height property from becoming larger than the value specified for max-height.
static member inline maxHeight (value: ICssUnit) = Interop.mkStyle "maxHeight" value
/// Set the height of an element.
///
/// By default, the property defines the height of the content area.
static member inline height (value: int) = Interop.mkStyle "height" value
/// Set the height of an element.
///
/// By default, the property defines the height of the content area.
static member inline height (value: ICssUnit) = Interop.mkStyle "height" value
/// Sets the width of an element.
///
/// By default, the property defines the width of the content area.
static member inline width (value: int) = Interop.mkStyle "width" value
/// Sets the width of an element.
///
/// By default, the property defines the width of the content area.
static member inline width (value: ICssUnit) = Interop.mkStyle "width" value
/// Sets the size of the element's background image.
///
/// The image can be left to its natural size, stretched, or constrained to fit the available space.
static member inline backgroundSize (value: string) = Interop.mkStyle "backgroundSize" value
/// Sets the size of the element's background image.
///
/// The image can be left to its natural size, stretched, or constrained to fit the available space.
static member inline backgroundSize (value: ICssUnit) = Interop.mkStyle "backgroundSize" value
/// Sets the size of the element's background image.
///
/// The image can be left to its natural size, stretched, or constrained to fit the available space.
static member inline backgroundSize (width: ICssUnit, height: ICssUnit) =
Interop.mkStyle "backgroundSize" (
unbox<string> width
+ " " +
unbox<string> height
)
/// Sets one or more background images on an element.
static member inline backgroundImage (value: string) = Interop.mkStyle "backgroundImage" value
/// Short-hand for `style.backgroundImage(sprintf "url('%s')" value)` to set the backround image using a url.
static member inline backgroundImageUrl (value: string) = Interop.mkStyle "backgroundImage" ("url('" + value + "')")
/// Sets how background images are repeated.
///
/// A background image can be repeated along the horizontal and vertical axes, or not repeated at all.
static member inline backgroundRepeat (repeat: IBackgroundRepeat) = Interop.mkStyle "backgroundRepeat" repeat
/// Adds shadow effects around an element's frame.
///
/// A box shadow is described by X and Y offsets relative to the element, blur and spread radii, and color.
static member inline boxShadow(horizontalOffset: int, verticalOffset: int, color: string) =
Interop.mkStyle "boxShadow" (
(unbox<string> horizontalOffset) + "px " +
(unbox<string> verticalOffset) + "px " +
color
)
/// Adds shadow effects around an element's frame.
///
/// A box shadow is described by X and Y offsets relative to the element, blur and spread radii, and color.
static member inline boxShadow(horizontalOffset: int, verticalOffset: int, blur: int, color: string) =
Interop.mkStyle "boxShadow" (
(unbox<string> horizontalOffset) + "px " +
(unbox<string> verticalOffset) + "px " +
(unbox<string> blur) + "px " +
color
)
/// Adds shadow effects around an element's frame.
///
/// A box shadow is described by X and Y offsets relative to the element, blur and spread radii, and color.
static member inline boxShadow(horizontalOffset: int, verticalOffset: int, blur: int, spread: int, color: string) =
Interop.mkStyle "boxShadow" (
(unbox<string> horizontalOffset) + "px " +
(unbox<string> verticalOffset) + "px " +
(unbox<string> blur) + "px " +
(unbox<string> spread) + "px " +
color
)
/// Sets the color of an SVG shape.
static member inline fill (color: string) = Interop.mkStyle "fill" color
[<Erase>]
module style =
[<Erase>]
type boxShadow =
static member inline none = Interop.mkStyle "boxShadow" "none"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "boxShadow" "inherit"
[<Erase>]
type height =
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "height" "inherit"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "height" "initial"
/// Resets this property to its inherited value if it inherits from its parent, and to its initial value if not.
static member inline unset = Interop.mkStyle "height" "unset"
/// The larger of either the intrinsic minimum height or the smaller of the intrinsic preferred height and the available height
[<Experimental("This is an experimental API that should not be used in production code.")>]
static member inline fitContent = Interop.mkStyle "height" "fit-content"
/// The intrinsic preferred height.
[<Experimental("This is an experimental API that should not be used in production code.")>]
static member inline maxContent = Interop.mkStyle "height" "max-content"
/// The intrinsic minimum height.
[<Experimental("This is an experimental API that should not be used in production code.")>]
static member inline minContent = Interop.mkStyle "height" "min-content"
[<Erase>]
type minHeight =
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "min-height" "inherit"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "min-height" "initial"
/// Resets this property to its inherited value if it inherits from its parent, and to its initial value if not.
static member inline unset = Interop.mkStyle "min-height" "unset"
/// The larger of either the intrinsic minimum height or the smaller of the intrinsic preferred height and the available height
[<Experimental("This is an experimental API that should not be used in production code.")>]
static member inline fitContent = Interop.mkStyle "min-height" "fit-content"
/// The intrinsic preferred height.
[<Experimental("This is an experimental API that should not be used in production code.")>]
static member inline maxContent = Interop.mkStyle "min-height" "max-content"
/// The intrinsic minimum height.
[<Experimental("This is an experimental API that should not be used in production code.")>]
static member inline minContent = Interop.mkStyle "min-height" "min-content"
[<Erase>]
type maxHeight =
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "max-height" "inherit"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "max-height" "initial"
/// Resets this property to its inherited value if it inherits from its parent, and to its initial value if not.
static member inline unset = Interop.mkStyle "max-height" "unset"
/// The larger of either the intrinsic minimum height or the smaller of the intrinsic preferred height and the available height
[<Experimental("This is an experimental API that should not be used in production code.")>]
static member inline fitContent = Interop.mkStyle "max-height" "fit-content"
/// The intrinsic preferred height.
[<Experimental("This is an experimental API that should not be used in production code.")>]
static member inline maxContent = Interop.mkStyle "max-height" "max-content"
/// The intrinsic minimum height.
[<Experimental("This is an experimental API that should not be used in production code.")>]
static member inline minContent = Interop.mkStyle "max-height" "min-content"
[<Erase>]
type textJustify =
/// The browser determines the justification algorithm
static member inline auto = Interop.mkStyle "textJustify" "auto"
/// Increases/Decreases the space between words
static member inline interWord = Interop.mkStyle "textJustify" "inter-word"
/// Increases/Decreases the space between characters
static member inline interCharacter = Interop.mkStyle "textJustify" "inter-character"
/// Disables justification methods
static member inline none = Interop.mkStyle "textJustify" "none"
static member inline initial = Interop.mkStyle "textJustify" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "textJustify" "inherit"
[<Erase>]
type whitespace =
/// Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary. This is default.
static member inline normal = Interop.mkStyle "whiteSpace" "normal"
/// Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line.
/// The text continues on the same line until a `<br>` tag is encountered.
static member inline nowrap = Interop.mkStyle "whiteSpace" "nowrap"
/// Whitespace is preserved by the browser. Text will only wrap on line breaks. Acts like the <pre> tag in HTML.
static member inline pre = Interop.mkStyle "whiteSpace" "pre"
/// Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary, and on line breaks
static member inline preline = Interop.mkStyle "whiteSpace" "pre-line"
/// Whitespace is preserved by the browser. Text will wrap when necessary, and on line breaks
static member inline prewrap = Interop.mkStyle "whiteSpace" "pre-wrap"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "whiteSpace" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "whiteSpace" "inherit"
[<Erase>]
type wordBreak =
/// Default value. Uses default line break rules.
static member inline normal = Interop.mkStyle "wordBreak" "normal"
/// To prevent overflow, word may be broken at any character
static member inline breakAll = Interop.mkStyle "wordBreak" "break-all"
/// Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as value "normal"
static member inline keepAll = Interop.mkStyle "wordBreak" "keep-all"
/// To prevent overflow, word may be broken at arbitrary points.
static member inline breakWord = Interop.mkStyle "wordBreak" "break-word"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "wordBreak" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "wordBreak" "inherit"
[<Erase>]
type scrollBehavior =
/// Allows a straight jump "scroll effect" between elements within the scrolling box. This is default
static member inline auto = Interop.mkStyle "scrollBehavior" "auto"
/// Allows a smooth animated "scroll effect" between elements within the scrolling box.
static member inline smooth = Interop.mkStyle "scrollBehavior" "smooth"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "scrollBehavior" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "scrollBehavior" "inherit"
[<Erase>]
type overflow =
/// The content is not clipped, and it may be rendered outside the left and right edges. This is default.
static member inline visible = Interop.mkStyle "overflow" "visibile"
/// The content is clipped - and no scrolling mechanism is provided.
static member inline hidden = Interop.mkStyle "overflow" "hidden"
/// The content is clipped and a scrolling mechanism is provided.
static member inline scroll = Interop.mkStyle "overflow" "scroll"
/// Should cause a scrolling mechanism to be provided for overflowing boxes
static member inline auto = Interop.mkStyle "overflow" "auto"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "overflow" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "overflow" "inherit"
[<Erase>]
type overflowX =
/// The content is not clipped, and it may be rendered outside the left and right edges. This is default.
static member inline visible = Interop.mkStyle "overflowX" "visibile"
/// The content is clipped - and no scrolling mechanism is provided.
static member inline hidden = Interop.mkStyle "overflowX" "hidden"
/// The content is clipped and a scrolling mechanism is provided.
static member inline scroll = Interop.mkStyle "overflowX" "scroll"
/// Should cause a scrolling mechanism to be provided for overflowing boxes
static member inline auto = Interop.mkStyle "overflowX" "auto"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "overflowX" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "overflowX" "inherit"
[<Erase>]
type visibility =
/// The element is hidden (but still takes up space).
static member inline hidden = Interop.mkStyle "visibility" "hidden"
/// Default value. The element is visible.
static member inline visible = Interop.mkStyle "visibility" "visible"
/// Only for table rows (`<tr>`), row groups (`<tbody>`), columns (`<col>`), column groups
/// (`<colgroup>`). This value removes a row or column, but it does not affect the table layout.
/// The space taken up by the row or column will be available for other content.
///
/// If collapse is used on other elements, it renders as "hidden"
static member inline collapse = Interop.mkStyle "visibility" "collapse"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "visibility" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "visibility" "inherit"
[<Erase>]
type flexBasis =
/// Default value. The length is equal to the length of the flexible item. If the item has
/// no length specified, the length will be according to its content.
static member inline auto = Interop.mkStyle "flexBasis" "auto"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "flexBasis" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "flexBasis" "inherit"
[<Erase>]
type flexDirection =
/// Default value. The flexible items are displayed horizontally, as a row
static member inline row = Interop.mkStyle "flexDirection" "row"
/// Same as row, but in reverse order.
static member inline rowReverse = Interop.mkStyle "flexDirection" "row-reverse"
/// The flexible items are displayed vertically, as a column
static member inline column = Interop.mkStyle "flexDirection" "column"
/// Same as column, but in reverse order
static member inline columnReverse = Interop.mkStyle "flexDirection" "column-reverse"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "flexBasis" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "flexBasis" "inherit"
[<Erase>]
type flexWrap =
/// Default value. Specifies that the flexible items will not wrap.
static member inline nowrap = Interop.mkStyle "flexWrap" "nowrap"
/// Specifies that the flexible items will wrap if necessary
static member inline wrap = Interop.mkStyle "flexWrap" "wrap"
/// Specifies that the flexible items will wrap, if necessary, in reverse order
static member inline wrapReverse = Interop.mkStyle "flexWrap" "wrap-reverse"
/// Sets this property to its default value.
static member inline initial = Interop.mkStyle "flexWrap" "initial"
/// Inherits this property from its parent element.
static member inline inheritFromParent = Interop.mkStyle "flexWrap" "inherit"
/// Places an element on the left or right side of its container, allowing text and
/// inline elements to wrap around it. The element is removed from the normal flow
/// of the page, though still remaining a part of the flow (in contrast to absolute
/// positioning).
[<Erase>]
type float =
/// The element must float on the left side of its containing block.
static member inline left = Interop.mkStyle "float" "left"
/// The element must float on the right side of its containing block.
static member inline right = Interop.mkStyle "float" "right"
/// The element must not float.
static member inline none = Interop.mkStyle "float" "none"
/// Determines how a font face is displayed based on whether and when it is downloaded and ready to use.
[<Erase>]
type fontDisplay =
/// The font display strategy is defined by the user agent.
///
/// Default value
static member inline auto = Interop.mkStyle "fontDisplay" "auto"
/// Gives the font face a short block period and an infinite swap period.
static member inline block = Interop.mkStyle "fontDisplay" "block"
/// Gives the font face an extremely small block period and an infinite swap period.
static member inline swap = Interop.mkStyle "fontDisplay" "swap"