styl

package
v0.13.66 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: BSD-3-Clause, BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CurrentColor_       = "currentcolor"
	Scroll_             = "scroll" // "background-attachment"=scroll | fixed | inherit
	Fixed_              = "fixed"
	Sticky_             = "sticky"
	Inherit_            = "inherit"
	Left_               = "left" // "background-position"=left | center | right | top | bottom | inherit
	Center_             = "center"
	Right_              = "right"
	Top_                = "top"
	Bottom_             = "bottom"
	Repeat_             = "repeat" // "background-repeat"=repeat | repeat-x | repeat-y | no-repeat | inherit
	RepeatX_            = "repeat-x"
	RepeatY_            = "repeat-y"
	NoRepeat_           = "no-repeat"
	Collapse_           = "collapse" // "border-collapse"=collapse | separate | inherit
	Separate_           = "separate"
	Auto_               = "auto"
	Both_               = "both"   // "clear"=none | left | right | both | inherit
	Normal_             = "normal" // "content"=normal | none | <uri> | open-quote | close-quote | no-open-quote | no-close-quote | inherit
	OpenQuote_          = "open-quote"
	CloseQuote_         = "close-quote"
	NoOpenQuote_        = "no-open-quote"
	NoCloseQuote_       = "no-close-quote"
	Default_            = "default" // "cursor"=<uri> | auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize | s-resize | w-resize | text | wait | help | progress | inherit
	Crosshair_          = "crosshair"
	Pointer_            = "pointer"
	Move_               = "move"
	E_Resize_           = "e-resize"
	NE_Resize_          = "ne-resize"
	NW_Resize_          = "nw-resize"
	N_Resize_           = "n-resize"
	SE_Resize_          = "se-resize"
	SW_Resize_          = "sw-resize"
	S_Resize_           = "s-resize"
	W_Resize_           = "w-resize"
	Text_               = "text"
	Wait_               = "wait"
	Help_               = "help"
	Progress_           = "progress"
	Ltr_                = "ltr" // "direction"=ltr | rtl | inherit
	Rtl_                = "rtl"
	Inline_             = "inline" // "display"=inline | block | list-item | inline-block | table | inline-table | table-row-group | table-header-group | table-footer-group | table-row | table-column-group | table-column | table-cell | table-caption | none | inherit
	Block_              = "block"
	Flex_               = "flex"
	ListItem_           = "list-item"
	InlineBlock_        = "inline-block"
	Table_              = "table"
	InlineTable_        = "inline-table"
	TableRowGroup_      = "table-row-group "
	TableHeaderGroup_   = "table-header-group"
	TableFooterGroup_   = "table-footer-group"
	TableRow_           = "table-row"
	TableColumnGroup_   = "table-column-group"
	TableColumn_        = "table-column"
	TableCell_          = "table-cell"
	TableCaption_       = "table-caption"
	Show_               = "show" // "empty-cells"=show | hide | inherit
	Hide_               = "hide"
	Invert_             = "invert"  // "outline-color"=<color> | invert | inherit
	Visible_            = "visible" // "overflow"=visible | hidden | scroll | auto | inherit | overlay
	Overlay_            = "overlay"
	Hidden_             = "hidden"
	Ellipsis_           = "ellipsis"
	Always_             = "always" // "page-break-after"=auto | always | avoid | left | right | inherit
	Avoid_              = "avoid"
	KeepAll_            = "keep-all"
	BreakAll_           = "break-all"
	Static_             = "static" // "position"=static | relative | absolute | fixed | inherit
	Relative_           = "relative"
	Absolute_           = "absolute"
	Justify_            = "justify"   // "text-align"=left | right | center | justify | inherit
	Underline_          = "underline" // "text-decoration"=none | underline | overline | line-through | blink | inherit | none
	Overline_           = "overline"
	LineThrough_        = "line-through"
	Blink_              = "blink"
	Capitalize_         = "capitalize" // "text-transform"=capitalize | uppercase | lowercase | none | inherit
	Uppercase_          = "uppercase"
	Lowercase_          = "lowercase"
	Embed_              = "embed" //"unicode-bidi"=normal | embed | bidi-override | inherit
	BidiOverride_       = "bidi-override"
	Baseline_           = "baseline" //"vertical-align"=baseline | sub | super | top | text-top | middle | bottom | text-bottom | <percentage> | <length> | inherit
	Sub_                = "sub"
	Super_              = "super"
	TextTop_            = "text-top"
	Middle_             = "middle"
	TextBottom_         = "text-bottom"
	Pre_                = "pre" //"white-space"=normal | pre | nowrap | pre-wrap | pre-line | inherit
	Nowrap_             = "nowrap"
	PreWrap_            = "pre-wrap"
	PreLine_            = "pre-line"
	Dashed_             = "dashed" // "border-image-width"=<length> | <percentage> | <number> | auto
	Dotted_             = "dotted"
	Solid_              = "solid"
	Caption_            = "caption" // caption | icon | menu | message-box | small-caption | status-bar
	Icon_               = "icon"
	Menu_               = "menu"
	MessageBox_         = "message-box"
	SmallCaption_       = "small-caption"
	StatusBar_          = "status-bar"
	None_               = "none"
	Italic_             = "italic" // "font-style"=normal | italic | oblique | inherit
	Oblique_            = "oblique"
	Bold_               = "bold" // "font-weight"=normal | bold | bolder | lighter | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | inherit
	Bolder_             = "bolder"
	Lighter_            = "lighter"
	SmallCaps_          = "small-caps" // "font-variant"=normal | small-caps | inherit
	Inside_             = "inside"     // "list-style-position"=inside | outside | inherit
	Outside_            = "outside"
	Disc_               = "disc" // "list-style-type"=disc | circle | square | decimal | decimal-leading-zero | lower-roman | upper-roman | lower-greek | lower-latin | upper-latin | armenian | georgian | lower-alpha | upper-alpha | none | inherit
	Circle_             = "circle"
	Square_             = "square"
	Decimal_            = "decimal"
	DecimalLeadingZero_ = "decimal-leading-zero"
	LowerRoman_         = "lower-roman"
	UpperRoman_         = "upper-roman"
	LowerGreek_         = "lower-greek"
	LowerLatin_         = "lower-latin"
	UpperLatin_         = "upper-latin"
	Armenian_           = "armenian"
	Georgian_           = "georgian"
	LowerAlpha_         = "lower-alpha"
	UpperAlpha_         = "upper-alpha"
	Important_          = "!important"
)

values

View Source
const Zero_ = "0"

Variables

This section is empty.

Functions

func Background

func Background(s ...string) Styling

func BackgroundAttachment

func BackgroundAttachment(s string) Styling

func BackgroundClip

func BackgroundClip(s string) Styling

func BackgroundColor

func BackgroundColor(s string) Styling

func BackgroundImage

func BackgroundImage(s string) Styling

func BackgroundOrigin

func BackgroundOrigin(s string) Styling

func BackgroundPosition

func BackgroundPosition(s ...string) Styling

func BackgroundRepeat

func BackgroundRepeat(s string) Styling

func BackgroundSize

func BackgroundSize(s string) Styling

func Border

func Border(s ...string) Styling

func BorderBottom

func BorderBottom(s ...string) Styling

func BorderBottomColor

func BorderBottomColor(s string) Styling

func BorderBottomStyle

func BorderBottomStyle(s string) Styling

func BorderBottomWidth

func BorderBottomWidth(s string) Styling

func BorderCollapse

func BorderCollapse(s string) Styling

func BorderColor

func BorderColor(s string) Styling

func BorderImage

func BorderImage(s ...string) Styling

func BorderImageOutset

func BorderImageOutset(s string) Styling

func BorderImageRepeat

func BorderImageRepeat(s string) Styling

func BorderImageSlice

func BorderImageSlice(s string) Styling

func BorderImageSource

func BorderImageSource(s string) Styling

func BorderImageWidth

func BorderImageWidth(s string) Styling

func BorderLeft

func BorderLeft(s ...string) Styling

func BorderLeftColor

func BorderLeftColor(s string) Styling

func BorderLeftStyle

func BorderLeftStyle(s string) Styling

func BorderLeftWidth

func BorderLeftWidth(s string) Styling

func BorderRadius

func BorderRadius(s string) Styling

func BorderRight

func BorderRight(s ...string) Styling

func BorderRightColor

func BorderRightColor(s string) Styling

func BorderRightStyle

func BorderRightStyle(s string) Styling

func BorderRightWidth

func BorderRightWidth(s string) Styling

func BorderSpacing

func BorderSpacing(s string) Styling

func BorderStyle

func BorderStyle(s string) Styling

func BorderTop

func BorderTop(s ...string) Styling

func BorderTopColor

func BorderTopColor(s string) Styling

func BorderTopLeftRadius

func BorderTopLeftRadius(s string) Styling

func BorderTopStyle

func BorderTopStyle(s string) Styling

func BorderTopWidth

func BorderTopWidth(s string) Styling

func BorderWidth

func BorderWidth(s string) Styling

func Bottom

func Bottom(s string) Styling

func BoxDecorationBreak

func BoxDecorationBreak(s string) Styling

func BoxShadow

func BoxShadow(s ...string) Styling

func CaptionSide

func CaptionSide(s string) Styling

func Clear

func Clear(s string) Styling

func Clip

func Clip(s string) Styling

func Color

func Color(s string) Styling

func Content

func Content(s string) Styling

func CounterIncrement

func CounterIncrement(s string) Styling

func CounterReset

func CounterReset(s string) Styling

func Cursor

func Cursor(s string) Styling

func Direction

func Direction(s string) Styling

func Display

func Display(s string) Styling

func Em

func Em(f float64) string

func EmptyCells

func EmptyCells(s string) Styling

func Float

func Float(s string) Styling

func Font

func Font(s ...string) Styling

func FontFamily

func FontFamily(s string) Styling

func FontSize

func FontSize(s string) Styling

func FontStyle

func FontStyle(s string) Styling

func FontVariant

func FontVariant(s string) Styling

func FontWeight

func FontWeight(s string) Styling

func Height

func Height(s string) Styling

func Left

func Left(s string) Styling

func LetterSpacing

func LetterSpacing(s string) Styling

func LineHeight

func LineHeight(s string) Styling

func ListStyle

func ListStyle(s string) Styling

func ListStyleImage

func ListStyleImage(s string) Styling

func ListStylePosition

func ListStylePosition(s string) Styling

func ListStyleType

func ListStyleType(s string) Styling

func Margin

func Margin(s ...string) Styling

func MarginBlock added in v0.13.59

func MarginBlock(s ...string) Styling

func MarginBottom

func MarginBottom(s string) Styling

func MarginLeft

func MarginLeft(s string) Styling

func MarginRight

func MarginRight(s string) Styling

func MarginTop

func MarginTop(s string) Styling

func MaxHeight

func MaxHeight(s string) Styling

func MaxWidth

func MaxWidth(s string) Styling

func MinHeight

func MinHeight(s string) Styling

func MinWidth

func MinWidth(s string) Styling

func Opacity

func Opacity(s string) Styling

func Orphans

func Orphans(s string) Styling

func Outline

func Outline(s string) Styling

func OutlineColor

func OutlineColor(s string) Styling

func OutlineStyle

func OutlineStyle(s string) Styling

func OutlineWidth

func OutlineWidth(s string) Styling

func Overflow

func Overflow(s string) Styling

func OverflowX added in v0.13.56

func OverflowX(s string) Styling

func OverflowY added in v0.13.56

func OverflowY(s string) Styling

func Padding

func Padding(s ...string) Styling

func PaddingBottom

func PaddingBottom(s string) Styling

func PaddingLeft

func PaddingLeft(s string) Styling

func PaddingRight

func PaddingRight(s string) Styling

func PaddingTop

func PaddingTop(s string) Styling

func PageBreakAfter

func PageBreakAfter(s string) Styling

func PageBreakBefore

func PageBreakBefore(s string) Styling

func PageBreakInside

func PageBreakInside(s string) Styling

func Pc

func Pc(f float64) string

func Percent

func Percent(f float64) string

func Position

func Position(s string) Styling

func Pt

func Pt(f float64) string

func Px

func Px(f float64) string

func Quotes

func Quotes(s string) Styling

func RGB added in v0.13.59

func RGB(red, green, blue uint8) string

func Rem added in v0.13.59

func Rem(f float64) string

func Resize

func Resize(s string) Styling
func Right(s string) Styling

func TableLayout

func TableLayout(s string) Styling

func TextAlign

func TextAlign(s string) Styling

func TextDecoration

func TextDecoration(s string) Styling

func TextDecorationStyle added in v0.13.57

func TextDecorationStyle(s string) Styling

func TextDecorationThickness added in v0.13.57

func TextDecorationThickness(s string) Styling

func TextIndent

func TextIndent(s string) Styling

func TextOverflow added in v0.13.59

func TextOverflow(s string) Styling

func TextTransform

func TextTransform(s string) Styling

func Top

func Top(s string) Styling

func TopHorizontalBottom added in v0.13.59

func TopHorizontalBottom(top, horizontal, bottom string) string

func TopRightBottomLeft added in v0.13.59

func TopRightBottomLeft(top, right, bottom, left string) string

func Uint8 added in v0.13.59

func Uint8(f uint8) string

func UnicodeBidi

func UnicodeBidi(s string) Styling

func Url

func Url(url string) string

func VerticalAlign

func VerticalAlign(s string) Styling

func VerticalHorizontal added in v0.13.59

func VerticalHorizontal(vertical, horizontal string) string

func Vh added in v0.13.59

func Vh(f float64) string

func Visibility

func Visibility(s string) Styling

func Vw added in v0.13.59

func Vw(f float64) string

func WhiteSpace

func WhiteSpace(s string) Styling

func Widows

func Widows(s string) Styling

func Width

func Width(s string) Styling

func WordBreak added in v0.13.55

func WordBreak(s string) Styling

func WordSpacing

func WordSpacing(s string) Styling

func WritingMode added in v0.13.59

func WritingMode(s string) Styling

func ZIndex

func ZIndex(s string) Styling

Types

type Var added in v0.13.42

type Var string

func (Var) Name added in v0.13.42

func (v Var) Name() string

func (Var) Set added in v0.13.54

func (v Var) Set(val string) Styling

func (Var) Val added in v0.13.54

func (v Var) Val() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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