css

package
v0.13.66 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2025 License: BSD-3-Clause, BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ParentSel = SelString("&")

Functions

func Media added in v0.13.50

func Media(prefix string, inner ...*Rule) *media

func Nest

func Nest(xs ...any) (r *nest)

func Super

func Super(sel ...Sel) Sel

Types

type CssStringer

type CssStringer interface {
	Css() string
}

type Import

type Import string

func (Import) String

func (me Import) String() string

type Rule

type Rule struct {
	Comment string
	Sel     Sel
	Styling Styling

	Parent *Rule
	// contains filtered or unexported fields
}

func Css

func Css(xs ...any) *Rule

func NewRule added in v0.13.53

func NewRule(xs ...any) (r *Rule)

func (*Rule) Child added in v0.13.53

func (me *Rule) Child(sel Sel, xs ...any) (i *Rule)

func (*Rule) Compose added in v0.13.53

func (me *Rule) Compose(parents ...*Rule) (newrule *Rule)

returns a copy that is a composition of this rule with the styles of other rules

func (*Rule) Copy added in v0.13.53

func (me *Rule) Copy() (newrule *Rule)

returns a copy

func (*Rule) Descendant added in v0.13.53

func (me *Rule) Descendant(sel Sel, xs ...any) (i *Rule)

func (*Rule) DirectFollows added in v0.13.53

func (me *Rule) DirectFollows(sel Sel, xs ...any) (i *Rule)

func (*Rule) Each added in v0.13.53

func (me *Rule) Each(sel Sel, xs ...any) (i *Rule)

func (*Rule) Embed added in v0.13.53

func (me *Rule) Embed(selector Sel) (newrule *Rule)

returns a copy that is embedded in the selector

func (*Rule) Follows added in v0.13.53

func (me *Rule) Follows(sel Sel, xs ...any) (i *Rule)

func (*Rule) ForEach added in v0.13.53

func (me *Rule) ForEach(c SelAdder, sel ...Sel) *Rule

for each selector, my selectors is prefixed and my rules are applied

func (*Rule) Nest added in v0.13.53

func (me *Rule) Nest(xs ...any) (i *Rule)

func (*Rule) String added in v0.13.53

func (me *Rule) String() string

func (*Rule) Style added in v0.13.53

func (me *Rule) Style(kvpairs ...string) *Rule

adds given styles

func (*Rule) WithComment added in v0.13.53

func (me *Rule) WithComment(comment string) *Rule

type Rules

type Rules []*Rule

func (Rules) Embed added in v0.13.59

func (me Rules) Embed(selector Sel) Rules

returns a copy with all rules embedded with selector

func (Rules) String added in v0.13.59

func (me Rules) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL