Documentation ¶
Index ¶
- func AddDeclarationInSelectorIfNotPresentAlready(cssString string, selector string, declaration Declaration) (newCSS string, added bool, err error)
- func CheckDeclarationInSelector(cssString string, selector string, declarationProperty string) (bool, error)
- func MigrateMediaQueryToClassBased(r io.Reader) (result []byte, err error)
- type Declaration
- type Indentation
- type Ruleset
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDeclarationInSelectorIfNotPresentAlready ¶
func AddDeclarationInSelectorIfNotPresentAlready(cssString string, selector string, declaration Declaration) (newCSS string, added bool, err error)
Add declaration in selector if not present already. If added, then added is true.
Types ¶
type Declaration ¶
func (*Declaration) Stringify ¶
func (d *Declaration) Stringify(buf *bytes.Buffer, indent Indentation)
type Indentation ¶
type Indentation string
func (Indentation) Next ¶
func (i Indentation) Next() Indentation
type Ruleset ¶
type Ruleset struct { Selector string Declarations []*Declaration }
Click to show internal directories.
Click to hide internal directories.