/
Css.purs
487 lines (248 loc) · 10.8 KB
/
Css.purs
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
-- | The Oak.Css module can be used to add style attributes to html various
-- | elements.
-- |
-- | ```purescript
-- | import Oak.Html.Attribute
-- | import Oak.Css
-- |
-- | view _ =
-- | div [ style [ backgroundColor "red" ] ]
-- | [ text "hi" ]
-- | ```
module Oak.Css where
data StyleAttribute
= StyleAttribute String String
azimuth :: String -> StyleAttribute
azimuth val = StyleAttribute "azimuth" val
backgroundAttachment :: String -> StyleAttribute
backgroundAttachment val = StyleAttribute "background-attachment" val
backgroundColor :: String -> StyleAttribute
backgroundColor val = StyleAttribute "background-color" val
backgroundImage :: String -> StyleAttribute
backgroundImage val = StyleAttribute "background-image" val
backgroundPosition :: String -> StyleAttribute
backgroundPosition val = StyleAttribute "background-position" val
backgroundRepeat :: String -> StyleAttribute
backgroundRepeat val = StyleAttribute "background-repeat" val
backgroundSize :: String -> StyleAttribute
backgroundSize val = StyleAttribute "background-size" val
background :: String -> StyleAttribute
background val = StyleAttribute "background" val
borderCollapse :: String -> StyleAttribute
borderCollapse val = StyleAttribute "border-collapse" val
borderColor :: String -> StyleAttribute
borderColor val = StyleAttribute "border-color" val
borderSpacing :: String -> StyleAttribute
borderSpacing val = StyleAttribute "border-spacing" val
borderStyle :: String -> StyleAttribute
borderStyle val = StyleAttribute "border-style" val
borderTop :: String -> StyleAttribute
borderTop val = StyleAttribute "border-top" val
borderRight :: String -> StyleAttribute
borderRight val = StyleAttribute "border-right" val
borderBottom :: String -> StyleAttribute
borderBottom val = StyleAttribute "border-bottom" val
borderLeft :: String -> StyleAttribute
borderLeft val = StyleAttribute "border-left" val
borderTopColor :: String -> StyleAttribute
borderTopColor val = StyleAttribute "border-top-color" val
borderRightColor :: String -> StyleAttribute
borderRightColor val = StyleAttribute "border-right-color" val
borderBottomColor :: String -> StyleAttribute
borderBottomColor val = StyleAttribute "border-bottom-color" val
borderLeftColor :: String -> StyleAttribute
borderLeftColor val = StyleAttribute "border-left-color" val
borderTopStyle :: String -> StyleAttribute
borderTopStyle val = StyleAttribute "border-top-style" val
borderRightStyle :: String -> StyleAttribute
borderRightStyle val = StyleAttribute "border-right-style" val
borderBottomStyle :: String -> StyleAttribute
borderBottomStyle val = StyleAttribute "border-bottom-style" val
borderLeftStyle :: String -> StyleAttribute
borderLeftStyle val = StyleAttribute "border-left-style" val
borderTopWidth :: String -> StyleAttribute
borderTopWidth val = StyleAttribute "border-top-width" val
borderRightWidth :: String -> StyleAttribute
borderRightWidth val = StyleAttribute "border-right-width" val
borderBottomWidth :: String -> StyleAttribute
borderBottomWidth val = StyleAttribute "border-bottom-width" val
borderLeftWidth :: String -> StyleAttribute
borderLeftWidth val = StyleAttribute "border-left-width" val
borderWidth :: String -> StyleAttribute
borderWidth val = StyleAttribute "border-width" val
border :: String -> StyleAttribute
border val = StyleAttribute "border" val
bottom :: String -> StyleAttribute
bottom val = StyleAttribute "bottom" val
captionSide :: String -> StyleAttribute
captionSide val = StyleAttribute "caption-side" val
clear :: String -> StyleAttribute
clear val = StyleAttribute "clear" val
clip :: String -> StyleAttribute
clip val = StyleAttribute "clip" val
color :: String -> StyleAttribute
color val = StyleAttribute "color" val
content :: String -> StyleAttribute
content val = StyleAttribute "content" val
counterIncrement :: String -> StyleAttribute
counterIncrement val = StyleAttribute "counter-increment" val
counterReset :: String -> StyleAttribute
counterReset val = StyleAttribute "counter-reset" val
cueAfter :: String -> StyleAttribute
cueAfter val = StyleAttribute "cue-after" val
cueBefore :: String -> StyleAttribute
cueBefore val = StyleAttribute "cue-before" val
cue :: String -> StyleAttribute
cue val = StyleAttribute "cue" val
cursor :: String -> StyleAttribute
cursor val = StyleAttribute "cursor" val
direction :: String -> StyleAttribute
direction val = StyleAttribute "direction" val
display :: String -> StyleAttribute
display val = StyleAttribute "display" val
elevation :: String -> StyleAttribute
elevation val = StyleAttribute "elevation" val
emptyCells :: String -> StyleAttribute
emptyCells val = StyleAttribute "empty-cells" val
flex :: String -> StyleAttribute
flex val = StyleAttribute "flex" val
float :: String -> StyleAttribute
float val = StyleAttribute "float" val
fontFamily :: String -> StyleAttribute
fontFamily val = StyleAttribute "font-family" val
fontSize :: String -> StyleAttribute
fontSize val = StyleAttribute "font-size" val
fontStyle :: String -> StyleAttribute
fontStyle val = StyleAttribute "font-style" val
fontVariant :: String -> StyleAttribute
fontVariant val = StyleAttribute "font-variant" val
fontWeight :: String -> StyleAttribute
fontWeight val = StyleAttribute "font-weight" val
font :: String -> StyleAttribute
font val = StyleAttribute "font" val
height :: String -> StyleAttribute
height val = StyleAttribute "height" val
left :: String -> StyleAttribute
left val = StyleAttribute "left" val
letterSpacing :: String -> StyleAttribute
letterSpacing val = StyleAttribute "letter-spacing" val
lineHeight :: String -> StyleAttribute
lineHeight val = StyleAttribute "line-height" val
listStyleImage :: String -> StyleAttribute
listStyleImage val = StyleAttribute "list-style-image" val
listStylePosition :: String -> StyleAttribute
listStylePosition val = StyleAttribute "list-style-position" val
listStyleType :: String -> StyleAttribute
listStyleType val = StyleAttribute "list-style-type" val
listStyle :: String -> StyleAttribute
listStyle val = StyleAttribute "list-style" val
marginRight :: String -> StyleAttribute
marginRight val = StyleAttribute "margin-right" val
marginLeft :: String -> StyleAttribute
marginLeft val = StyleAttribute "margin-left" val
marginTop :: String -> StyleAttribute
marginTop val = StyleAttribute "margin-top" val
marginBottom :: String -> StyleAttribute
marginBottom val = StyleAttribute "margin-bottom" val
margin :: String -> StyleAttribute
margin val = StyleAttribute "margin" val
maxHeight :: String -> StyleAttribute
maxHeight val = StyleAttribute "max-height" val
maxWidth :: String -> StyleAttribute
maxWidth val = StyleAttribute "max-width" val
minHeight :: String -> StyleAttribute
minHeight val = StyleAttribute "min-height" val
minWidth :: String -> StyleAttribute
minWidth val = StyleAttribute "min-width" val
orphans :: String -> StyleAttribute
orphans val = StyleAttribute "orphans" val
outlineColor :: String -> StyleAttribute
outlineColor val = StyleAttribute "outline-color" val
outlineStyle :: String -> StyleAttribute
outlineStyle val = StyleAttribute "outline-style" val
outlineWidth :: String -> StyleAttribute
outlineWidth val = StyleAttribute "outline-width" val
outline :: String -> StyleAttribute
outline val = StyleAttribute "outline" val
overflow :: String -> StyleAttribute
overflow val = StyleAttribute "overflow" val
paddingTop :: String -> StyleAttribute
paddingTop val = StyleAttribute "padding-top" val
paddingRight :: String -> StyleAttribute
paddingRight val = StyleAttribute "padding-right" val
paddingBottom :: String -> StyleAttribute
paddingBottom val = StyleAttribute "padding-bottom" val
paddingLeft :: String -> StyleAttribute
paddingLeft val = StyleAttribute "padding-left" val
padding :: String -> StyleAttribute
padding val = StyleAttribute "padding" val
pageBreakAfter :: String -> StyleAttribute
pageBreakAfter val = StyleAttribute "page-break-after" val
pageBreakBefore :: String -> StyleAttribute
pageBreakBefore val = StyleAttribute "page-break-before" val
pageBreakInside :: String -> StyleAttribute
pageBreakInside val = StyleAttribute "page-break-inside" val
pauseAfter :: String -> StyleAttribute
pauseAfter val = StyleAttribute "pause-after" val
pauseBefore :: String -> StyleAttribute
pauseBefore val = StyleAttribute "pause-before" val
pause :: String -> StyleAttribute
pause val = StyleAttribute "pause" val
pitchRange :: String -> StyleAttribute
pitchRange val = StyleAttribute "pitch-range" val
pitch :: String -> StyleAttribute
pitch val = StyleAttribute "pitch" val
playDuring :: String -> StyleAttribute
playDuring val = StyleAttribute "play-during" val
position :: String -> StyleAttribute
position val = StyleAttribute "position" val
quotes :: String -> StyleAttribute
quotes val = StyleAttribute "quotes" val
richness :: String -> StyleAttribute
richness val = StyleAttribute "richness" val
right :: String -> StyleAttribute
right val = StyleAttribute "right" val
speakHeader :: String -> StyleAttribute
speakHeader val = StyleAttribute "speak-header" val
speakNumeral :: String -> StyleAttribute
speakNumeral val = StyleAttribute "speak-numeral" val
speakPunctuation :: String -> StyleAttribute
speakPunctuation val = StyleAttribute "speak-punctuation" val
speak :: String -> StyleAttribute
speak val = StyleAttribute "speak" val
speechRate :: String -> StyleAttribute
speechRate val = StyleAttribute "speech-rate" val
stress :: String -> StyleAttribute
stress val = StyleAttribute "stress" val
tableLayout :: String -> StyleAttribute
tableLayout val = StyleAttribute "table-layout" val
textAlign :: String -> StyleAttribute
textAlign val = StyleAttribute "text-align" val
textDecoration :: String -> StyleAttribute
textDecoration val = StyleAttribute "text-decoration" val
textIndent :: String -> StyleAttribute
textIndent val = StyleAttribute "text-indent" val
textTransform :: String -> StyleAttribute
textTransform val = StyleAttribute "text-transform" val
top :: String -> StyleAttribute
top val = StyleAttribute "top" val
unicodeBidi :: String -> StyleAttribute
unicodeBidi val = StyleAttribute "unicode-bidi" val
verticalAlign :: String -> StyleAttribute
verticalAlign val = StyleAttribute "vertical-align" val
visibility :: String -> StyleAttribute
visibility val = StyleAttribute "visibility" val
voiceFamily :: String -> StyleAttribute
voiceFamily val = StyleAttribute "voice-family" val
volume :: String -> StyleAttribute
volume val = StyleAttribute "volume" val
whiteSpace :: String -> StyleAttribute
whiteSpace val = StyleAttribute "white-space" val
widows :: String -> StyleAttribute
widows val = StyleAttribute "widows" val
width :: String -> StyleAttribute
width val = StyleAttribute "width" val
wordSpacing :: String -> StyleAttribute
wordSpacing val = StyleAttribute "word-spacing" val
zIndex :: String -> StyleAttribute
zIndex val = StyleAttribute "z-index" val