Versions in this module Expand all Collapse all v0 v0.1.0 Jun 19, 2018 Changes in this version + func DomRegistry() func() SheetObject + func ToString(rule CSSRule, ts ...Transformer) string + type CSSRule interface + Print func(io.Writer) (int64, error) + String func() string + func CSS(rules ...CSSRule) CSSRule + func Cond(cond string, rules ...CSSRule) CSSRule + func Flattern(rule CSSRule) CSSRule + func FontFace(rules ...CSSRule) CSSRule + func If(cond bool, c CSSRule) CSSRule + func KeyFrame(name string, rules ...CSSRule) CSSRule + func P(key, value string) CSSRule + func Process(rule CSSRule, ts ...Transformer) CSSRule + func S(selector string, rules ...CSSRule) CSSRule + type ClassMap map[string]string + func (c ClassMap) Classes() map[string]bool + type Conditional struct + Key string + Rules RuleList + func (c Conditional) Print(o io.Writer) (int64, error) + func (c Conditional) String() string + type Options struct + NoPretty bool + type Registry interface + Attach func(*Sheet) + Detach func(*Sheet) + NewSheet func() *Sheet + type RuleList []CSSRule + func (r RuleList) Print(o io.Writer) (int64, error) + func (r RuleList) String() string + type Sheet struct + CLasses ClassMap + func NewSheet(idGen func() string) *Sheet + func (s *Sheet) AddRule(rules CSSRule) ClassMap + func (s *Sheet) Attach() + func (s *Sheet) Detach() + func (s *Sheet) ListRules() []string + type SheetObject interface + Detach func() + InsertRule func(rule string) + type SimpleRegistry struct + CreateSheetNode func() SheetObject + func NewSimpleRegistry(fn func() SheetObject) *SimpleRegistry + func (m *SimpleRegistry) Attach(s *Sheet) + func (m *SimpleRegistry) Detach(s *Sheet) + func (m *SimpleRegistry) NewSheet() *Sheet + type SimpleRule struct + Key string + Value string + func (s SimpleRule) Print(o io.Writer) (int64, error) + func (s SimpleRule) String() string + type StyleRule struct + Rules RuleList + Selector string + func (s StyleRule) Print(o io.Writer) (int64, error) + func (s StyleRule) String() string + type Transformer func(CSSRule) CSSRule