Documentation ¶
Overview ¶
Package css provides CSS Go definitions.
Index ¶
- Constants
- Variables
- type Align
- type BorderStyleKind
- type Color
- type Corner
- type CursorKind
- type DisplayKind
- type FloatKind
- type FontStyleKind
- type FontWeightKind
- type Length
- type PositionKind
- type ResizeKind
- type Side
- type SpaceKind
- type Style
- func AlignText(val Align) Style
- func AlignVertical(val VAlign) Style
- func AlignVerticalL(val uint16, unit Unit) Style
- func BackgroundColor(color Color) Style
- func Border(width uint16, unit Unit, style BorderStyleKind, color Color, sides ...Side) Style
- func BorderCollapse(val bool) Style
- func BorderColor(color Color, sides ...Side) Style
- func BorderRadius(val uint16, unit Unit, corners ...Corner) Style
- func BorderStyle(style BorderStyleKind, sides ...Side) Style
- func BorderWidth(width uint16, unit Unit, sides ...Side) Style
- func Cursor(val CursorKind) Style
- func Display(val DisplayKind) Style
- func Float(val FloatKind) Style
- func Font(name string) Style
- func FontSize(size uint16, unit Unit) Style
- func FontStyle(val FontStyleKind) Style
- func FontWeight(val FontWeightKind) Style
- func Grid(rows []Length, cols []Length) Style
- func GridArea(rowStart, rowSpan, colStart, colSpan uint16) Style
- func GridAreaCol(start, span uint16) Style
- func GridAreaRow(start, span uint16) Style
- func GridCols(cols ...Length) Style
- func GridRows(rows ...Length) Style
- func Height(val uint16, unit Unit) Style
- func HeightMax(val uint16, unit Unit) Style
- func HeightMin(val uint16, unit Unit) Style
- func MakeStyle(src ...Style) Style
- func Margin(val uint16, unit Unit, sides ...Side) Style
- func OutlineStyle(val BorderStyleKind) Style
- func Padding(val uint16, unit Unit, sides ...Side) Style
- func Position(val PositionKind) Style
- func Resize(val ResizeKind) Style
- func TabSize(val uint8) Style
- func TextColor(val Color) Style
- func TextLineHeight(coef float64) Style
- func Translate(x int16, unitX Unit, y int16, unitY Unit) Style
- func WhiteSpace(val SpaceKind) Style
- func Width(val uint16, unit Unit) Style
- func WidthMax(val uint16, unit Unit) Style
- func WidthMin(val uint16, unit Unit) Style
- func X(val uint16, unit Unit) Style
- func Y(val uint16, unit Unit) Style
- type Unit
- type VAlign
Constants ¶
View Source
const ( AlignLeft Align = "left" AlignRight = "right" AlignCenter = "center" AlignJustify = "justify" )
View Source
const ( BorderNone BorderStyleKind = "none" BorderHidden = "hidden" BorderDotted = "dotted" BorderDashed = "dashed" BorderSolid = "solid" BorderDouble = "double" BorderGroove = "groove" BorderRidge = "ridge" BorderInset = "inset" BorderOutset = "outset" )
View Source
const ( Transparent Color = "transparent" Black = "black" CadetBlue = "cadetblue" CornflowerBlue = "cornflowerblue" Cyan = "cyan" DarkSlateGrey = "darkslategrey" Salmon = "salmon" Thistle = "thistle" White = "white" WhiteSmoke = "whitesmoke" )
View Source
const ( BottomLeft Corner = "BottomLeft" BottomRight = "BottomRight" TopLeft = "TopLeft" TopRight = "TopRight" )
View Source
const ( CursorAlias CursorKind = "alias" CursorScroll = "all-scroll" CursorCell = "cell" CursorContext = "context-menu" CursorCopy = "copy" CursorCross = "crosshair" CursorDefault = "default" CursorHelp = "help" CursorMove = "move" CursorNodrop = "no-drop" CursorNone = "none" CursorInvalid = "not-allowed" CursorPointer = "pointer" CursorProgress = "progress" CursorResizeCol = "col-resize" CursorResizeRow = "row-resize" CursorResizeE = "e-resize" CursorResizeEW = "ew-resize" CursorResizeN = "n-resize" CursorResizeNE = "ne-resize" CursorResizeNESW = "nesw-resize" CursorResizeNS = "ns-resize" CursorResizeNW = "nw-resize" CursorResizeNWSE = "nwse-resize" CursorResizeS = "s-resize" CursorResizeSE = "se-resize" CursorResizeSW = "sw-resize" CursorResizeW = "w-resize" CursorText = "text" CursorTextVertical = "vertical-text" CursorWait = "wait" CursorZoomIn = "zoom-in" CursorZoomOut = "zoom-out" )
View Source
const ( DisplayBlock DisplayKind = "block" DisplayFlex = "flex" DisplayGrid = "grid" DisplayInline = "inline" DisplayInlineBlock = "inline-block" DisplayInlineFlex = "inline-flex" DisplayInlineGrid = "inline-grid" DisplayInlineTable = "inline-table" DisplayNone = "none" DisplayTable = "table" DisplayTableCell = "table-cell" DisplayTableRow = "table-row" )
View Source
const ( FloatNone FloatKind = "none" FloatLeft = "left" FloatRight = "right" )
View Source
const ( PositionAbsolute PositionKind = "absolute" PositionFixed = "fixed" PositionRelative = "relative" PositionStatic = "static" PositionSticky = "sticky" )
View Source
const ( ResizeNone ResizeKind = "none" ResizeBoth = "both" ResizeHorizontal = "horizontal" ResizeVertical = "vertical" )
View Source
const ( Bottom Side = "Bottom" Left = "Left" Right = "Right" Top = "Top" )
View Source
const ( SpaceNormal SpaceKind = "normal" SpaceNoWrap = "nowrap" SpacePre = "pre" SpacePreLine = "pre-line" SpacePreWrap = "pre-wrap" )
View Source
const ( // absolute units CM = "cm" MM = "mm" IN = "in" // 1in = 96px = 2.54cm PX = "px" // 1px = 1/96in PT = "pt" // 1pt = 1/72in PC = "pc" // 1pc = 1/6in //relative units EM = "em" // current font-size EX = "ex" // x-height of current font CH = "ch" // width of "0" REM = "rem" // root element font-size VW = "vm" // 1% of window width VH = "vh" // 1% of window height VMIN = "vmin" // min(vm, vh) VMAX = "vmax" // max(vm, vh) PCT = "%" // percentage of parent element )
View Source
const ( VBaseline VAlign = "baseline" VBottom = "bottom" VMiddle = "middle" VTop = "top" VTextBottom = "text-bottom" VTextTop = "text-top" VSub = "sub" VSuper = "super" )
Variables ¶
View Source
var CornerAll []Corner = []Corner{BottomLeft, BottomRight, TopLeft, TopRight}
Functions ¶
This section is empty.
Types ¶
type BorderStyleKind ¶
type BorderStyleKind string
type CursorKind ¶
type CursorKind string
type DisplayKind ¶
type DisplayKind string
type FontStyleKind ¶
type FontStyleKind string
const ( FontStyleItalic FontStyleKind = "italic" FontStyleNormal = "normal" )
type FontWeightKind ¶
type FontWeightKind string
const ( FontWeightBold FontWeightKind = "bold" FontWeightNormal = "normal" )
type PositionKind ¶
type PositionKind string
type ResizeKind ¶
type ResizeKind string
type Style ¶
func AlignVertical ¶
func AlignVerticalL ¶
func BackgroundColor ¶
func BorderCollapse ¶
func BorderColor ¶
func BorderStyle ¶
func BorderStyle(style BorderStyleKind, sides ...Side) Style
func Cursor ¶
func Cursor(val CursorKind) Style
func Display ¶
func Display(val DisplayKind) Style
func FontStyle ¶
func FontStyle(val FontStyleKind) Style
func FontWeight ¶
func FontWeight(val FontWeightKind) Style
func GridAreaCol ¶
func GridAreaRow ¶
func OutlineStyle ¶
func OutlineStyle(val BorderStyleKind) Style
func Position ¶
func Position(val PositionKind) Style
func Resize ¶
func Resize(val ResizeKind) Style
func TextLineHeight ¶
func WhiteSpace ¶
Click to show internal directories.
Click to hide internal directories.