Documentation
¶
Index ¶
- type AlignContent
- type AlignItems
- type AlignSelf
- type Appearance
- type BackgroundImage
- type BackgroundPosition
- type BackgroundPositionEdge
- type BackgroundRepeat
- type BackgroundSize
- type Border
- type BorderCollapse
- type BorderStyle
- type BoxSizing
- type CaptionSide
- type Color
- type Cursor
- type Display
- type FlexDirection
- type FlexWrap
- type Float
- type FontFamily
- type FontStyle
- type FontWeight
- type JustifyContent
- type JustifyItems
- type JustifySelf
- type ListStylePosition
- type ListStyleType
- type Overflow
- type Position
- type PrintColorAdjust
- type TextAlign
- type TextDecorationLine
- type TextDecorationStyle
- type TextOverflow
- type TextTransform
- type TextWrap
- type Unit
- type UnitType
- type VerticalAlign
- type Visibility
- type WhiteSpace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlignContent ¶ added in v0.1.1
type AlignContent string
const ( AlignContentNormal AlignContent = "normal" AlignContentStart AlignContent = "start" AlignContentCenter AlignContent = "center" AlignContentEnd AlignContent = "end" AlignContentFlexStart AlignContent = "flex-start" AlignContentFlexEnd AlignContent = "flex-end" AlignContentBaseline AlignContent = "baseline" AlignContentFirstBaseline AlignContent = "first baseline" AlignContentLastBaseline AlignContent = "last baseline" AlignContentSpaceBetween AlignContent = "space-between" AlignContentSpaceAround AlignContent = "space-around" AlignContentSpaceEvenly AlignContent = "space-evenly" AlignContentStretch AlignContent = "stretch" )
func (AlignContent) String ¶ added in v0.1.1
func (a AlignContent) String() string
type AlignItems ¶
type AlignItems string
const ( AlignItemsNormal AlignItems = "normal" AlignItemsStretch AlignItems = "stretch" AlignItemsStart AlignItems = "start" AlignItemsCenter AlignItems = "center" AlignItemsEnd AlignItems = "end" AlignItemsFlexStart AlignItems = "flex-start" AlignItemsFlexEnd AlignItems = "flex-end" AlignItemsSelfStart AlignItems = "self-start" AlignItemsSelfEnd AlignItems = "self-end" AlignItemsBaseline AlignItems = "baseline" )
func (AlignItems) String ¶
func (a AlignItems) String() string
type AlignSelf ¶ added in v0.1.1
type AlignSelf string
const ( AlignSelfAuto AlignSelf = "auto" AlignSelfNormal AlignSelf = "normal" AlignSelfStretch AlignSelf = "stretch" AlignSelfCenter AlignSelf = "center" AlignSelfStart AlignSelf = "start" AlignSelfEnd AlignSelf = "end" AlignSelfFlexStart AlignSelf = "flex-start" AlignSelfFlexEnd AlignSelf = "flex-end" AlignSelfSelfStart AlignSelf = "self-start" AlignSelfSelfEnd AlignSelf = "self-end" AlignSelfBaseline AlignSelf = "baseline" )
type Appearance ¶
type Appearance string
const ( AppearanceNone Appearance = "none" AppearanceAuto Appearance = "auto" AppearanceMenuListButton Appearance = "menulist-button" AppearanceTextField Appearance = "textfield" AppearanceInherit Appearance = "inherit" AppearanceInitial Appearance = "initial" AppearanceRevert Appearance = "revert" AppearanceRevertLater Appearance = "revert-later" AppearanceUnset Appearance = "unset" AppearanceButton Appearance = "button" AppearanceCheckbox Appearance = "checkbox" )
func (Appearance) String ¶
func (a Appearance) String() string
type BackgroundImage ¶
type BackgroundImage string
func BackgroundImageLinearGradient ¶
func BackgroundImageLinearGradient(segments ...string) BackgroundImage
func BackgroundImageURL ¶
func BackgroundImageURL(url string) BackgroundImage
func BackgroundImages ¶
func BackgroundImages(images ...BackgroundImage) BackgroundImage
func (BackgroundImage) String ¶
func (b BackgroundImage) String() string
type BackgroundPosition ¶
type BackgroundPosition string
const ( BackgroundPositionTop BackgroundPosition = "top" BackgroundPositionBottom BackgroundPosition = "bottom" BackgroundPositionLeft BackgroundPosition = "left" BackgroundPositionRight BackgroundPosition = "right" BackgroundPositionCenter BackgroundPosition = "center" BackgroundPositionTopLeft BackgroundPosition = "top left" BackgroundPositionTopRight BackgroundPosition = "top right" BackgroundPositionBottomLeft BackgroundPosition = "bottom left" BackgroundPositionBottomRight BackgroundPosition = "bottom right" )
func BackgroundPositionEdges ¶
func BackgroundPositionEdges(edges ...BackgroundPositionEdge) BackgroundPosition
func BackgroundPositionXY ¶
func BackgroundPositionXY(x, y Unit) BackgroundPosition
func BackgroundPositions ¶
func BackgroundPositions(positions ...BackgroundPosition) BackgroundPosition
func (BackgroundPosition) String ¶
func (b BackgroundPosition) String() string
type BackgroundPositionEdge ¶
type BackgroundPositionEdge struct { Position BackgroundPosition Unit Unit }
func (BackgroundPositionEdge) String ¶
func (b BackgroundPositionEdge) String() string
type BackgroundRepeat ¶
type BackgroundRepeat string
const ( BackgroundRepeatRepeatX BackgroundRepeat = "repeat-x" BackgroundRepeatRepeatY BackgroundRepeat = "repeat-y" BackgroundRepeatRepeat BackgroundRepeat = "repeat" BackgroundRepeatSpace BackgroundRepeat = "space" BackgroundRepeatRound BackgroundRepeat = "round" BackgroundRepeatNoRepeat BackgroundRepeat = "no-repeat" )
func BackgroundRepeats ¶
func BackgroundRepeats(repeats ...BackgroundRepeat) BackgroundRepeat
func (BackgroundRepeat) String ¶
func (b BackgroundRepeat) String() string
type BackgroundSize ¶
type BackgroundSize string
func BackgroundSizeContain ¶
func BackgroundSizeContain() BackgroundSize
func BackgroundSizeCover ¶
func BackgroundSizeCover() BackgroundSize
func BackgroundSizeDimension ¶
func BackgroundSizeDimension(width, height Unit) BackgroundSize
func BackgroundSizeWidth ¶
func BackgroundSizeWidth(unit Unit) BackgroundSize
func BackgroundSizes ¶
func BackgroundSizes(sizes ...BackgroundSize) BackgroundSize
func (BackgroundSize) String ¶
func (b BackgroundSize) String() string
type Border ¶
type Border struct { Width Unit Style BorderStyle Color Color }
type BorderCollapse ¶ added in v0.1.1
type BorderCollapse string
const ( BorderCollapseCollapse BorderCollapse = "collapse" BorderCollapseSeparate BorderCollapse = "separate" )
func (BorderCollapse) String ¶ added in v0.1.1
func (b BorderCollapse) String() string
type BorderStyle ¶
type BorderStyle string
const ( BorderStyleSolid BorderStyle = "solid" BorderStyleDashed BorderStyle = "dashed" BorderStyleDotted BorderStyle = "dotted" BorderStyleDouble BorderStyle = "double" BorderStyleHidden BorderStyle = "hidden" BorderStyleNone BorderStyle = "none" )
func (BorderStyle) String ¶
func (b BorderStyle) String() string
type CaptionSide ¶
type CaptionSide string
const ( CaptionSideTop CaptionSide = "top" CaptionSideBottom CaptionSide = "bottom" )
func (CaptionSide) String ¶
func (c CaptionSide) String() string
type Color ¶
func ColorCurrentColor ¶
func ColorCurrentColor() Color
func ColorInherit ¶
func ColorInherit() Color
func ColorTransparent ¶
func ColorTransparent() Color
type Display ¶
type Display string
const ( DisplayBlock Display = "block" DisplayInlineBlock Display = "inline-block" DisplayInline Display = "inline" DisplayFlex Display = "flex" DisplayInlineFlex Display = "inline-flex" DisplayTable Display = "table" DisplayInlineTable Display = "inline-table" DisplayTableCaption Display = "table-caption" DisplayTableCell Display = "table-cell" DisplayTableColumn Display = "table-column" DisplayTableColumnGroup Display = "table-column-group" DisplayTableHeaderGroup Display = "table-header-group" DisplayTableRowGroup Display = "table-row-group" DisplayTableRow Display = "table-row" DisplayFlowRoot Display = "flow-root" DisplayGrid Display = "grid" DisplayInlineGrid Display = "inline-grid" DisplayContents Display = "contents" DisplayListItem Display = "list-item" DisplayNone Display = "none" )
type FlexDirection ¶
type FlexDirection string
const ( FlexDirectionColumn FlexDirection = "column" FlexDirectionColumnReverse FlexDirection = "column-reverse" FlexDirectionRow FlexDirection = "row" FlexDirectionRowReverse FlexDirection = "row-reverse" )
func (FlexDirection) String ¶
func (f FlexDirection) String() string
type FontFamily ¶ added in v0.0.7
type FontFamily string
const ( FontFamilySans FontFamily = "ui-sans-serif, system-ui, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"" FontFamilySerif FontFamily = "ui-serif, Georgia, Cambria, \"Times New Roman\", Times, serif" FontFamilyMono FontFamily = "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace" )
func (FontFamily) String ¶ added in v0.0.7
func (f FontFamily) String() string
type FontWeight ¶
type FontWeight string
const ( FontWeightThin FontWeight = "100" FontWeightExtraLight FontWeight = "200" FontWeightLight FontWeight = "300" FontWeightNormal FontWeight = "400" FontWeightMedium FontWeight = "500" FontWeightSemiBold FontWeight = "600" FontWeightBold FontWeight = "700" FontWeightExtraBold FontWeight = "800" FontWeightBlack FontWeight = "900" )
func (FontWeight) String ¶
func (f FontWeight) String() string
type JustifyContent ¶
type JustifyContent string
const ( JustifyContentNormal JustifyContent = "normal" JustifyContentCenter JustifyContent = "center" JustifyContentStart JustifyContent = "start" JustifyContentEnd JustifyContent = "end" JustifyContentFlexStart JustifyContent = "flex-start" JustifyContentFlexEnd JustifyContent = "flex-end" JustifyContentLeft JustifyContent = "left" JustifyContentRight JustifyContent = "right" JustifyContentSpaceBetween JustifyContent = "space-between" JustifyContentSpaceAround JustifyContent = "space-around" JustifyContentSpaceEvenly JustifyContent = "space-evenly" JustifyContentStretch JustifyContent = "stretch" )
func (JustifyContent) String ¶
func (j JustifyContent) String() string
type JustifyItems ¶
type JustifyItems string
const ( JustifyItemsNormal JustifyItems = "normal" JustifyItemsStretch JustifyItems = "stretch" JustifyItemsCenter JustifyItems = "center" JustifyItemsStart JustifyItems = "start" JustifyItemsEnd JustifyItems = "end" JustifyItemsFlexStart JustifyItems = "flex-start" JustifyItemsFlexEnd JustifyItems = "flex-end" JustifyItemsSelfStart JustifyItems = "self-start" JustifyItemsSelfEnd JustifyItems = "self-end" JustifyItemsLeft JustifyItems = "left" JustifyItemsRight JustifyItems = "right" JustifyItemsBaseline JustifyItems = "baseline" )
func (JustifyItems) String ¶
func (j JustifyItems) String() string
type JustifySelf ¶
type JustifySelf string
const ( JustifySelfAuto JustifySelf = "auto" JustifySelfNormal JustifySelf = "normal" JustifySelfStretch JustifySelf = "stretch" JustifySelfCenter JustifySelf = "center" JustifySelfStart JustifySelf = "start" JustifySelfEnd JustifySelf = "end" JustifySelfFlexStart JustifySelf = "flex-start" JustifySelfFlexEnd JustifySelf = "flex-end" JustifySelfSelfStart JustifySelf = "self-start" JustifySelfSelfEnd JustifySelf = "self-end" JustifySelfLeft JustifySelf = "left" JustifySelfRight JustifySelf = "right" JustifySelfBaseline JustifySelf = "baseline" )
func (JustifySelf) String ¶
func (j JustifySelf) String() string
type ListStylePosition ¶ added in v0.0.6
type ListStylePosition string
const ( ListStylePositionInside ListStylePosition = "inside" ListStylePositionOutside ListStylePosition = "outside" )
func (ListStylePosition) String ¶ added in v0.0.6
func (l ListStylePosition) String() string
type ListStyleType ¶ added in v0.0.6
type ListStyleType string
const ( ListStyleTypeNone ListStyleType = "none" ListStyleTypeDisc ListStyleType = "disc" ListStyleTypeDecimal ListStyleType = "decimal" )
func (ListStyleType) String ¶ added in v0.0.6
func (l ListStyleType) String() string
type PrintColorAdjust ¶
type PrintColorAdjust string
const ( PrintColorAdjustEconomy PrintColorAdjust = "economy" PrintColorAdjustExact PrintColorAdjust = "exact" )
func (PrintColorAdjust) String ¶
func (c PrintColorAdjust) String() string
type TextDecorationLine ¶ added in v0.0.7
type TextDecorationLine string
const ( TextDecorationLineNone TextDecorationLine = "none" TextDecorationLineUnderline TextDecorationLine = "underline" TextDecorationLineOverline TextDecorationLine = "overline" TextDecorationLineLineThrough TextDecorationLine = "line-through" )
func (TextDecorationLine) String ¶ added in v0.0.7
func (t TextDecorationLine) String() string
type TextDecorationStyle ¶ added in v0.0.7
type TextDecorationStyle string
const ( TextDecorationStyleSolid TextDecorationStyle = "solid" TextDecorationStyleDouble TextDecorationStyle = "double" TextDecorationStyleDotted TextDecorationStyle = "dotted" TextDecorationStyleDashed TextDecorationStyle = "dashed" TextDecorationStyleWavy TextDecorationStyle = "wavy" )
func (TextDecorationStyle) String ¶ added in v0.0.7
func (t TextDecorationStyle) String() string
type TextOverflow ¶ added in v0.0.3
type TextOverflow string
const ( TextOverflowClip TextOverflow = "clip" TextOverflowEllipsis TextOverflow = "ellipsis" )
func (TextOverflow) String ¶ added in v0.0.3
func (t TextOverflow) String() string
type TextTransform ¶ added in v0.0.7
type TextTransform string
const ( TextTransformNone TextTransform = "none" TextTransformCapitalize TextTransform = "capitalize" TextTransformUppercase TextTransform = "uppercase" TextTransformLowercase TextTransform = "lowercase" )
func (TextTransform) String ¶ added in v0.0.7
func (t TextTransform) String() string
type Unit ¶
type Unit struct { Size interface{} Type UnitType }
func UnitInherit ¶
func UnitInherit() Unit
func UnitInitial ¶
func UnitInitial() Unit
func UnitPercent ¶
type UnitType ¶
type UnitType int
const ( UnitTypeRaw UnitType UnitTypePx UnitTypePercent UnitTypeRem UnitTypeEm UnitTypeVh UnitTypeVw UnitTypeAuto UnitTypeInherit UnitTypeInitial )
type VerticalAlign ¶ added in v0.0.6
type VerticalAlign string
const ( VerticalAlignBaseline VerticalAlign = "baseline" VerticalAlignSub VerticalAlign = "sub" VerticalAlignSuper VerticalAlign = "super" VerticalAlignTextTop VerticalAlign = "text-top" VerticalAlignTextBottom VerticalAlign = "text-bottom" VerticalAlignMiddle VerticalAlign = "middle" VerticalAlignTop VerticalAlign = "top" VerticalAlignBottom VerticalAlign = "bottom" )
func (VerticalAlign) String ¶ added in v0.0.6
func (v VerticalAlign) String() string
type Visibility ¶ added in v0.0.6
type Visibility string
const ( VisibilityVisible Visibility = "visible" VisibilityHidden Visibility = "hidden" VisibilityCollapse Visibility = "collapse" )
func (Visibility) String ¶ added in v0.0.6
func (v Visibility) String() string
type WhiteSpace ¶ added in v0.0.3
type WhiteSpace string
const ( WhiteSpaceNormal WhiteSpace = "normal" WhiteSpaceNowrap WhiteSpace = "nowrap" WhiteSpacePre WhiteSpace = "pre" WhiteSpacePreLine WhiteSpace = "pre-line" WhiteSpacePreWrap WhiteSpace = "pre-wrap" )
func (WhiteSpace) String ¶ added in v0.0.3
func (w WhiteSpace) String() string
Source Files
¶
- align_content.go
- align_items.go
- align_self.go
- appearance.go
- background_image.go
- background_position.go
- background_repeat.go
- background_size.go
- border.go
- border_collapse.go
- border_style.go
- box_sizing.go
- caption_side.go
- colors.go
- cursor.go
- display.go
- flex_direction.go
- flex_wrap.go
- float.go
- font_family.go
- font_style.go
- font_weight.go
- justify_content.go
- justify_items.go
- justify_self.go
- list_style_position.go
- list_style_type.go
- overflow.go
- position.go
- print_color_adjust.go
- text_align.go
- text_decoration_line.go
- text_decoration_style.go
- text_overflow.go
- text_transform.go
- text_wrap.go
- unit.go
- verticle_align.go
- visibility.go
- white_space.go
Click to show internal directories.
Click to hide internal directories.