Documentation
¶
Index ¶
- Variables
- func Media(prefix string, inner ...*Rule) *media
- func Nest(xs ...any) (r *nest)
- func Super(sel ...Sel) Sel
- type CssStringer
- type Import
- type Rule
- func (me *Rule) Child(sel Sel, xs ...any) (i *Rule)
- func (me *Rule) Compose(parents ...*Rule) (newrule *Rule)
- func (me *Rule) Copy() (newrule *Rule)
- func (me *Rule) Descendant(sel Sel, xs ...any) (i *Rule)
- func (me *Rule) DirectFollows(sel Sel, xs ...any) (i *Rule)
- func (me *Rule) Each(sel Sel, xs ...any) (i *Rule)
- func (me *Rule) Embed(selector Sel) (newrule *Rule)
- func (me *Rule) Follows(sel Sel, xs ...any) (i *Rule)
- func (me *Rule) ForEach(c SelAdder, sel ...Sel) *Rule
- func (me *Rule) Nest(xs ...any) (i *Rule)
- func (me *Rule) String() string
- func (me *Rule) Style(kvpairs ...string) *Rule
- func (me *Rule) WithComment(comment string) *Rule
- type Rules
Constants ¶
This section is empty.
Variables ¶
View Source
var ParentSel = SelString("&")
Functions ¶
Types ¶
type CssStringer ¶
type CssStringer interface {
Css() string
}
type Rule ¶
type Rule struct { Comment string Sel Sel Styling Styling Parent *Rule // contains filtered or unexported fields }
func (*Rule) Compose ¶ added in v0.13.53
returns a copy that is a composition of this rule with the styles of other rules
func (*Rule) Descendant ¶ added in v0.13.53
func (*Rule) DirectFollows ¶ added in v0.13.53
func (*Rule) ForEach ¶ added in v0.13.53
for each selector, my selectors is prefixed and my rules are applied
func (*Rule) WithComment ¶ added in v0.13.53
Click to show internal directories.
Click to hide internal directories.