Merge branch 'master' into smart-vstyle-diff
This commit is contained in:
commit
f17e37ac95
1 changed files with 112 additions and 9 deletions
121
src/vstyles.nim
121
src/vstyles.nim
|
|
@ -2,51 +2,112 @@
|
||||||
import kdom, macros
|
import kdom, macros
|
||||||
|
|
||||||
type
|
type
|
||||||
StyleAttr* {.pure.} = enum ## the style attributes supported by the virtual DOM.
|
StyleAttr* {.pure.} = enum
|
||||||
|
## The style attributes supported by the virtual DOM.
|
||||||
|
## Reference: https://www.w3schools.com/jsref/dom_obj_style.asp
|
||||||
|
alignContent
|
||||||
|
alignItems
|
||||||
|
alignSelf
|
||||||
|
animation
|
||||||
|
animationDelay
|
||||||
|
animationDirection
|
||||||
|
animationDuration
|
||||||
|
animationFillMode
|
||||||
|
animationIterationCount
|
||||||
|
animationName
|
||||||
|
animationTimingFunction
|
||||||
|
animationPlayState
|
||||||
background
|
background
|
||||||
backgroundAttachment
|
backgroundAttachment
|
||||||
backgroundColor
|
backgroundColor
|
||||||
backgroundImage
|
backgroundImage
|
||||||
backgroundPosition
|
backgroundPosition
|
||||||
backgroundRepeat
|
backgroundRepeat
|
||||||
|
backgroundClip
|
||||||
|
backgroundOrigin
|
||||||
|
backgroundSize
|
||||||
|
backfaceVisibility
|
||||||
border
|
border
|
||||||
borderBottom
|
borderBottom
|
||||||
borderBottomColor
|
borderBottomColor
|
||||||
|
borderBottomLeftRadius
|
||||||
|
borderBottomRightRadius
|
||||||
borderBottomStyle
|
borderBottomStyle
|
||||||
borderBottomWidth
|
borderBottomWidth
|
||||||
|
borderCollapse
|
||||||
borderColor
|
borderColor
|
||||||
|
borderImage
|
||||||
|
borderImageOutset
|
||||||
|
borderImageRepeat
|
||||||
|
borderImageSlice
|
||||||
|
borderImageSource
|
||||||
|
borderImageWidth
|
||||||
borderLeft
|
borderLeft
|
||||||
borderLeftColor
|
borderLeftColor
|
||||||
borderLeftStyle
|
borderLeftStyle
|
||||||
borderLeftWidth
|
borderLeftWidth
|
||||||
|
borderRadius
|
||||||
borderRight
|
borderRight
|
||||||
borderRightColor
|
borderRightColor
|
||||||
borderRightStyle
|
borderRightStyle
|
||||||
borderRightWidth
|
borderRightWidth
|
||||||
|
borderSpacing
|
||||||
borderStyle
|
borderStyle
|
||||||
borderTop
|
borderTop
|
||||||
borderTopColor
|
borderTopColor
|
||||||
|
borderTopLeftRadius
|
||||||
|
borderTopRightRadius
|
||||||
borderTopStyle
|
borderTopStyle
|
||||||
borderTopWidth
|
borderTopWidth
|
||||||
borderWidth
|
borderWidth
|
||||||
bottom
|
bottom
|
||||||
|
boxDecorationBreak
|
||||||
|
boxShadow
|
||||||
|
boxSizing
|
||||||
captionSide
|
captionSide
|
||||||
clear
|
clear
|
||||||
clip
|
clip
|
||||||
color
|
color
|
||||||
|
columnCount
|
||||||
|
columnFill
|
||||||
|
columnGap
|
||||||
|
columnRule
|
||||||
|
columnRuleColor
|
||||||
|
columnRuleStyle
|
||||||
|
columnRuleWidth
|
||||||
|
columns
|
||||||
|
columnSpan
|
||||||
|
columnWidth
|
||||||
|
content
|
||||||
|
counterIncrement
|
||||||
|
counterReset
|
||||||
cursor
|
cursor
|
||||||
direction
|
direction
|
||||||
display
|
display
|
||||||
emptyCells
|
emptyCells
|
||||||
|
filter
|
||||||
|
flex
|
||||||
|
flexBasis
|
||||||
|
flexDirection
|
||||||
|
flexFlow
|
||||||
|
flexGrow
|
||||||
|
flexShrink
|
||||||
|
flexWrap
|
||||||
cssFloat
|
cssFloat
|
||||||
font
|
font
|
||||||
fontFamily
|
fontFamily
|
||||||
fontSize
|
fontSize
|
||||||
|
fontSizeAdjust
|
||||||
fontStretch
|
fontStretch
|
||||||
fontStyle
|
fontStyle
|
||||||
fontVariant
|
fontVariant
|
||||||
fontWeight
|
fontWeight
|
||||||
|
hangingPunctuation
|
||||||
height
|
height
|
||||||
|
hyphens
|
||||||
|
icon
|
||||||
|
imageOrientation
|
||||||
|
justifyContent
|
||||||
left
|
left
|
||||||
letterSpacing
|
letterSpacing
|
||||||
lineHeight
|
lineHeight
|
||||||
|
|
@ -63,7 +124,22 @@ type
|
||||||
maxWidth
|
maxWidth
|
||||||
minHeight
|
minHeight
|
||||||
minWidth
|
minWidth
|
||||||
|
navDown
|
||||||
|
navIndex
|
||||||
|
navLeft
|
||||||
|
navRight
|
||||||
|
navUp
|
||||||
|
opacity
|
||||||
|
order
|
||||||
|
orphans
|
||||||
|
outline
|
||||||
|
outlineColor
|
||||||
|
outlineOffset
|
||||||
|
outlineStyle
|
||||||
|
outlineWidth
|
||||||
overflow
|
overflow
|
||||||
|
overflowX
|
||||||
|
overflowY
|
||||||
padding
|
padding
|
||||||
paddingBottom
|
paddingBottom
|
||||||
paddingLeft
|
paddingLeft
|
||||||
|
|
@ -71,26 +147,53 @@ type
|
||||||
paddingTop
|
paddingTop
|
||||||
pageBreakAfter
|
pageBreakAfter
|
||||||
pageBreakBefore
|
pageBreakBefore
|
||||||
|
pageBreakInside
|
||||||
|
perspective
|
||||||
|
perspectiveOrigin
|
||||||
position
|
position
|
||||||
|
quotes
|
||||||
|
resize
|
||||||
right
|
right
|
||||||
scrollbar3dLightColor
|
scrollbar3dLightColor # note: missing in w3schools reference
|
||||||
scrollbarArrowColor
|
scrollbarArrowColor # note: missing in w3schools reference
|
||||||
scrollbarBaseColor
|
scrollbarBaseColor # note: missing in w3schools reference
|
||||||
scrollbarDarkshadowColor
|
scrollbarDarkshadowColor # note: missing in w3schools reference
|
||||||
scrollbarFaceColor
|
scrollbarFaceColor # note: missing in w3schools reference
|
||||||
scrollbarHighlightColor
|
scrollbarHighlightColor # note: missing in w3schools reference
|
||||||
scrollbarShadowColor
|
scrollbarShadowColor # note: missing in w3schools reference
|
||||||
scrollbarTrackColor
|
scrollbarTrackColor # note: missing in w3schools reference
|
||||||
tableLayout
|
tableLayout
|
||||||
|
tabSize
|
||||||
textAlign
|
textAlign
|
||||||
|
textAlignLast
|
||||||
textDecoration
|
textDecoration
|
||||||
|
textDecorationColor
|
||||||
|
textDecorationLine
|
||||||
|
textDecorationStyle
|
||||||
textIndent
|
textIndent
|
||||||
|
textJustify
|
||||||
|
textOverflow
|
||||||
|
textShadow
|
||||||
textTransform
|
textTransform
|
||||||
top
|
top
|
||||||
|
transform
|
||||||
|
transformOrigin
|
||||||
|
transformStyle
|
||||||
|
transition
|
||||||
|
transitionDelay
|
||||||
|
transitionDuration
|
||||||
|
transitionProperty
|
||||||
|
transitionTimingFunction
|
||||||
|
unicodeBidi
|
||||||
|
userSelect
|
||||||
verticalAlign
|
verticalAlign
|
||||||
visibility
|
visibility
|
||||||
|
whiteSpace
|
||||||
width
|
width
|
||||||
|
wordBreak
|
||||||
wordSpacing
|
wordSpacing
|
||||||
|
wordWrap
|
||||||
|
widows
|
||||||
zIndex
|
zIndex
|
||||||
|
|
||||||
macro buildLookupTables(): untyped =
|
macro buildLookupTables(): untyped =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue