css

package
v2.12.2 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2015 License: MIT, MIT Imports: 4 Imported by: 0

README

css

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Nest

func Nest(xs ...interface{}) (r *nest)

func Rules

func Rules() *rules

Types

type Import

type Import string

func (Import) String

func (ø Import) String() string

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) Copy

func (ø *RuleStruct) Copy() (newrule *RuleStruct)

returns a copy

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

Directories

Path Synopsis
c

Jump to

Keyboard shortcuts

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