Documentation
¶
Index ¶
- Variables
- func Nest(xs ...interface{}) (r *nest)
- func Rules() *rules
- func Super(sel ...Selecter) Selecter
- type CssStringer
- type Import
- type RuleStruct
- func (xyyy *RuleStruct) Child(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
- func (xyyy *RuleStruct) Compose(parents ...*RuleStruct) (newrule *RuleStruct)
- func (xyyy *RuleStruct) Copy() (newrule *RuleStruct)
- func (xyyy *RuleStruct) Descendant(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
- func (xyyy *RuleStruct) DirectFollows(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
- func (xyyy *RuleStruct) Each(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
- func (xyyy *RuleStruct) Embed(selector Selecter) (newrule *RuleStruct)
- func (xyyy *RuleStruct) Follows(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
- func (xyyy *RuleStruct) ForEach(c SelecterAdder, sel ...Selecter) (*RuleStruct, error)
- func (xyyy *RuleStruct) Nest(xs ...interface{}) (i *RuleStruct, err error)
- func (xyyy *RuleStruct) String() string
- func (xyyy *RuleStruct) Style(styles ...Style) *RuleStruct
- type Styler
Constants ¶
This section is empty.
Variables ¶
View Source
var ParentSelector = SelectorString("&")
Functions ¶
Types ¶
type CssStringer ¶
type CssStringer interface {
Css() string
}
type RuleStruct ¶
type RuleStruct struct { Comment string Selector Selecter 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 (xyyy *RuleStruct) Child(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) Compose ¶
func (xyyy *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 (xyyy *RuleStruct) Descendant(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) DirectFollows ¶
func (xyyy *RuleStruct) DirectFollows(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) Each ¶
func (xyyy *RuleStruct) Each(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) Embed ¶
func (xyyy *RuleStruct) Embed(selector Selecter) (newrule *RuleStruct)
returns a copy that is embedded in the selector
func (*RuleStruct) Follows ¶
func (xyyy *RuleStruct) Follows(sel Selecter, xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) ForEach ¶
func (xyyy *RuleStruct) ForEach(c SelecterAdder, sel ...Selecter) (*RuleStruct, error)
for each selector, my selectors is prefixed and my rules are applied
func (*RuleStruct) Nest ¶
func (xyyy *RuleStruct) Nest(xs ...interface{}) (i *RuleStruct, err error)
func (*RuleStruct) String ¶
func (xyyy *RuleStruct) String() string
func (*RuleStruct) Style ¶
func (xyyy *RuleStruct) Style(styles ...Style) *RuleStruct
adds given styles
Click to show internal directories.
Click to hide internal directories.