style

package
v0.0.0-...-958e9d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2020 License: MIT Imports: 78 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlignItems

func AlignItems(value alignItems.Type) alignItems.Value

func AlignSelf

func AlignSelf(value alignSelf.Type) alignSelf.Value

func AnimationDelay

func AnimationDelay(value interface{}) animationDelay.Value

func AnimationDelays

func AnimationDelays(values ...interface{}) animationDelay.Value

func AnimationDirections

func AnimationDirections(values ...interface{}) animationDirection.Value

func AnimationDuration

func AnimationDuration(value interface{}) animationDuration.Value

func AnimationDurations

func AnimationDurations(values ...interface{}) animationDuration.Value

func AnimationFillMode

func AnimationFillMode(value animationFillMode.Type) animationFillMode.Value

func AnimationFillModes

func AnimationFillModes(values ...interface{}) animationFillMode.Value

func AnimationIterationCount

func AnimationIterationCount(value interface{}) animationIterationCount.Value

func AnimationIterationCounts

func AnimationIterationCounts(values ...interface{}) animationIterationCount.Value

func AnimationName

func AnimationName(value animationName.Type) animationName.Value

func AnimationNames

func AnimationNames(values ...interface{}) animationName.Value

func AnimationPlayStates

func AnimationPlayStates(values ...interface{}) animationPlayState.Value

func AnimationTimingFunctions

func AnimationTimingFunctions(values ...interface{}) animationTimingFunction.Value

func Background

func Background(nonRepeatingBackgroundValues ...interface{}) background.Value

Background is used for weird case not handled by Background. Expects either strings or something that casts to a string. Then basically concatenates the strings. NOTE items are not ordered. Also the size value must be prefixed by "/"

func BackgroundAttachment

func BackgroundAttachment(attaches backgroundAttachment.Type) backgroundAttachment.Value

func BackgroundClip

func BackgroundClip(clipping backgroundClip.Type) backgroundClip.Value

func BackgroundColor

func BackgroundColor(color interface{}) backgroundColor.Value

BackgroundColor can take any string that is a color like: color.Type, color.Value, backgroundColor.Type and backgroundColor.Value.

func BackgroundImage

func BackgroundImage(backgrounds ...backgroundImage.Type) backgroundImage.Value

func BackgroundOrigin

func BackgroundOrigin(origin backgroundOrigin.Type) backgroundOrigin.Value

func BackgroundPosition

func BackgroundPosition(positions ...backgroundPosition.Type) backgroundPosition.Value

func BackgroundRepeat

func BackgroundRepeat(repeats ...backgroundRepeat.Type) backgroundRepeat.Value

func BackgroundSize

func BackgroundSize(sizes ...backgroundSize.Type) backgroundSize.Value

func Backgrounds

func Backgrounds(backgrounds ...background.Value) background.Value

Backgrounds NOTE only the last layer can include background-color

func Border

func Border(width interface{}, style borderStyle.Type, color color.Type) border.Value

func BorderColor

func BorderColor(colors ...interface{}) borderColor.Value

func BorderRadius

func BorderRadius(values ...borderRadius.Type) borderRadius.Value

BorderRadius For the case of ellipses just pass in "/" ex: style.BorderRadius("10px","/","40px") style.BorderRadius("10% / 40em")

func BorderStyle

func BorderStyle(styles ...borderStyle.Type) borderStyle.Value

func BorderWidth

func BorderWidth(widths ...interface{}) borderWidth.Value

func Bottom

func Bottom(value interface{}) bottom.Value

Bottom defaults to pixels if a number is passed in, otherwise it accepts as is

func BoxShadow

func BoxShadow(offsetsBlurSpreadColorAndInset ...interface{}) boxShadow.Value

func BoxShadows

func BoxShadows(boxes ...boxShadow.Value) boxShadow.Value

func Color

func Color(c interface{}) color.Value

func Cursor

func Cursor(value cursor.Type) cursor.Value

Cursor sets mouse cursor for URL() support pass in a string ex: "URL(..), URL(..), auto"

func Display

func Display(value display.Type) display.Value

func FlexDirection

func FlexDirection(dir flexDirection.Type) flexDirection.Value

func FlexGrow

func FlexGrow(number interface{}) flexGrow.Value

func FlexShrink

func FlexShrink(number interface{}) flexShrink.Value

func FlexWrap

func FlexWrap(wrap flexWrap.Type) flexWrap.Value

func Float

func Float(fl float.Type) float.Value

func FontFamily

func FontFamily(fontNames ...fontFamily.Type) fontFamily.Value

func FontSize

func FontSize(size interface{}) fontSize.Value

FontSize defaults to pixels if a numbers are passed in, otherwise it accepts as is

func FontWeight

func FontWeight(value fontWeight.Type) fontWeight.Value

func GridTemplateColumns

func GridTemplateColumns(values ...interface{}) gridTemplateColumns.Value

func Height

func Height(length interface{}) height.Value

Height defaults to pixels if a numbers are passed in, otherwise it accepts as is

func JustifyContent

func JustifyContent(value justifyContent.Type) justifyContent.Value

func Left

func Left(value interface{}) left.Value

Left defaults to pixels if a number is passed in, otherwise it accepts as is

func LineHeight

func LineHeight(value interface{}) lineHeight.Value

LineHeight defaults to pixels if a numbers are passed in, otherwise it accepts as is

func Margin

func Margin(lengths ...interface{}) margin.Value

func MarginBottom

func MarginBottom(length interface{}) marginBottom.Value

func MarginLeft

func MarginLeft(length interface{}) marginLeft.Value

func MarginRight

func MarginRight(length interface{}) marginRight.Value

MarginRight defaults to pixels if a numbers are passed in, otherwise it accepts as is

func MarginTop

func MarginTop(length interface{}) marginTop.Value

MarginTop defaults to pixels if a numbers are passed in, otherwise it accepts as is

func MaxHeight

func MaxHeight(value interface{}) maxHeight.Value

func MaxWidth

func MaxWidth(value interface{}) maxWidth.Value

func MinHeight

func MinHeight(value interface{}) minHeight.Value

func MinWidth

func MinWidth(value interface{}) minWidth.Value

func Opacity

func Opacity(value interface{}) opacity.Value

func OutlineColor

func OutlineColor(outColor interface{}) outlineColor.Value

func OutlineStyle

func OutlineStyle(value outlineStyle.Type) outlineStyle.Value

func Overflow

func Overflow(p overflow.Type) overflow.Value

func Padding

func Padding(lengths ...interface{}) padding.Value

Padding defaults to pixels if a numbers are passed in, otherwise it accepts as is

func PaddingBottom

func PaddingBottom(length interface{}) paddingBottom.Value

func PaddingLeft

func PaddingLeft(length interface{}) paddingLeft.Value

func PaddingRight

func PaddingRight(length interface{}) paddingRight.Value

func PaddingTop

func PaddingTop(length interface{}) paddingTop.Value

func Position

func Position(pos position.Type) position.Value
func Right(length interface{}) right.Value

Right defaults to pixels if a numbers are passed in, otherwise it accepts as is

func TextAlign

func TextAlign(value textAlign.Type) textAlign.Value

func Top

func Top(length interface{}) top.Value

func Transform

func Transform(trans interface{}) transform.Value

func Transforms

func Transforms(transforms ...transform.Value) transform.Value

func Transition

func Transition(nonRepeatingTransitionValues ...interface{}) transition.Value

Background is used for weird case not handled by Background. Expects either strings or something that casts to a string. Then basically concatenates the strings.

func TransitionDelay

func TransitionDelay(value interface{}) transitionDelay.Value

func TransitionDelays

func TransitionDelays(delays ...interface{}) transitionDelay.Value

func TransitionDuration

func TransitionDuration(value interface{}) transitionDuration.Value

func TransitionDurations

func TransitionDurations(delays ...interface{}) transitionDuration.Value

func TransitionProperties

func TransitionProperties(delays ...transitionProperty.Type) transitionProperty.Value

func Transitions

func Transitions(transitions ...transition.Value) transition.Value

Transitions is used when specifying multiple transitions

func UserSelect

func UserSelect(value userSelect.Type) userSelect.Value

func VerticalAlign

func VerticalAlign(value verticalAlign.Type) verticalAlign.Value

func Visibility

func Visibility(value visibility.Type) visibility.Value

func Width

func Width(length interface{}) width.Value

func ZIndex

func ZIndex(typeOrNumber interface{}) zIndex.Value

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL