Documentation ¶
Overview ¶
Package css implements the minimal CSS syntax for allowing CSS properties to be defined via the standard flag package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dimension ¶
Dimension represents a CSS number with unit.
type Font ¶
Font represents a CSS font. Only family, size and line height are supported, and they must all be provided. Font family must always be quoted.
type PageMargin ¶
PageMargin represents CSS page margins.
func (*PageMargin) Set ¶
func (p *PageMargin) Set(s string) error
Set implements the Value interface.
func (PageMargin) String ¶
func (p PageMargin) String() string
String implements the Stringer interface.
type PageSize ¶
type PageSize string
PageSize represents a CSS page size. Only A4 and letter page sizes are supported. The page orientation is portrait and can not be changed.
type Unit ¶
type Unit string
Unit represents the unit of a CSS quantity. Only absolute length units are supported, excluding pixels and quarter-millimeters.