Documentation
¶
Index ¶
- type AlignItems
- type Appearance
- type BackgroundImage
- type BackgroundPosition
- type BackgroundPositionEdge
- type BackgroundRepeat
- type BackgroundSize
- type Border
- type BorderStyle
- type CaptionSide
- type Color
- type Cursor
- type Display
- type FlexDirection
- type FlexWrap
- type Float
- type FontStyle
- type FontWeight
- type JustifyContent
- type JustifyItems
- type JustifySelf
- type Overflow
- type Position
- type PrintColorAdjust
- type TextAlign
- type TextOverflow
- type Unit
- type UnitType
- type WhiteSpace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlignItems ¶
type AlignItems string
const ( AlignItemsStart AlignItems = "flex-start" AlignItemsEnd AlignItems = "flex-end" AlignItemsCenter AlignItems = "center" AlignItemsBaseline AlignItems = "baseline" AlignItemsStretch AlignItems = "stretch" )
func (AlignItems) String ¶
func (a AlignItems) String() string
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 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 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" JustifyContentFlexStart JustifyContent = "flex-start" JustifyContentFlexEnd JustifyContent = "flex-end" JustifyContentCenter JustifyContent = "center" 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 ( JustifyItemsStretch JustifyItems = "stretch" JustifyItemsCenter JustifyItems = "center" JustifyItemsStart JustifyItems = "start" JustifyItemsEnd JustifyItems = "end" )
func (JustifyItems) String ¶
func (j JustifyItems) String() string
type JustifySelf ¶
type JustifySelf string
const ( JustifySelfStretch JustifySelf = "stretch" JustifySelfCenter JustifySelf = "center" JustifySelfStart JustifySelf = "start" JustifySelfEnd JustifySelf = "end" )
func (JustifySelf) String ¶
func (j JustifySelf) String() string
type PrintColorAdjust ¶
type PrintColorAdjust string
const ( PrintColorAdjustEconomy PrintColorAdjust = "economy" PrintColorAdjustExact PrintColorAdjust = "exact" )
func (PrintColorAdjust) String ¶
func (c PrintColorAdjust) 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 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 UnitTypeAuto UnitTypeInherit UnitTypeInitial )
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_items.go
- appearance.go
- background_image.go
- background_position.go
- background_repeat.go
- background_size.go
- border.go
- border_style.go
- caption_side.go
- colors.go
- cursor.go
- display.go
- flex_direction.go
- flex_wrap.go
- float.go
- font_style.go
- font_weight.go
- justify_content.go
- justify_items.go
- justify_self.go
- overflow.go
- position.go
- print_color_adjust.go
- text_align.go
- text_overflow.go
- unit.go
- white_space.go
Click to show internal directories.
Click to hide internal directories.