Documentation ¶
Index ¶
- func Nest(xs ...interface{}) (r *nest)
- func Rules() *rules
- type Import
- type RuleStruct
- func (ø *RuleStruct) Child(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
- func (ø *RuleStruct) Compose(parents ...*RuleStruct) (newrule *RuleStruct)
- func (ø *RuleStruct) Copy() (newrule *RuleStruct)
- func (ø *RuleStruct) Descendant(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
- func (ø *RuleStruct) DirectFollows(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
- func (ø *RuleStruct) Each(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
- func (ø *RuleStruct) Embed(selector Selector) (newrule *RuleStruct)
- func (ø *RuleStruct) Follows(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
- func (ø *RuleStruct) ForEach(c SelectorAdder, sel ...Selector) (*RuleStruct, error)
- func (ø *RuleStruct) Nest(xs ...interface{}) (i *RuleStruct, err error)
- func (ø *RuleStruct) String() string
- func (ø *RuleStruct) Style(styles ...Style) *RuleStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RuleStruct ¶
type RuleStruct struct { Comment string Selector Selector Styles []Styler Parent *RuleStruct // contains filtered or unexported fields }
func Css ¶
func Css(xs ...interface{}) *RuleStruct
func Rule ¶
func Rule(xs ...interface{}) (r *RuleStruct, err error)
func (*RuleStruct) Child ¶
func (ø *RuleStruct) Child(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) Compose ¶
func (ø *RuleStruct) Compose(parents ...*RuleStruct) (newrule *RuleStruct)
returns a copy that is a composition of this rule with the styles of other rules
func (*RuleStruct) Descendant ¶
func (ø *RuleStruct) Descendant(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) DirectFollows ¶
func (ø *RuleStruct) DirectFollows(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) Each ¶
func (ø *RuleStruct) Each(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) Embed ¶
func (ø *RuleStruct) Embed(selector Selector) (newrule *RuleStruct)
returns a copy that is embedded in the selector
func (*RuleStruct) Follows ¶
func (ø *RuleStruct) Follows(sel Selector, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) ForEach ¶
func (ø *RuleStruct) ForEach(c SelectorAdder, sel ...Selector) (*RuleStruct, error)
for each selector, my selectors is prefixed and my rules are applied
func (*RuleStruct) Nest ¶
func (ø *RuleStruct) Nest(xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) String ¶
func (ø *RuleStruct) String() string
func (*RuleStruct) Style ¶
func (ø *RuleStruct) Style(styles ...Style) *RuleStruct
adds given styles
Click to show internal directories.
Click to hide internal directories.