css

package
v0.0.0-...-3f75658 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2014 License: Artistic-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package css implements a css level 3 parser as described at http://www.w3.org/TR/css-syntax-3/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AtRule

type AtRule struct {
	AtKeyword   string
	Param       []string
	SimpleBlock *SimpleBlock
}

AtRule is an AtKeyword an optional param and an SimpleBlock. http://www.w3.org/TR/css-syntax-3/#consume-an-at-rule0

type BlockItem

type BlockItem struct {
	DeclarationList
	*Ruleset
	*AtRule
}

BlockItem contains one and only one of DeclarationList, *Ruleset, or *AtRule

type Comment

type Comment string

type Declaration

type Declaration struct {
	Property string
	Value    string
}

Declaration is a Property and Value pair.

type DeclarationList

type DeclarationList []Declaration

DeclarationList is a list of Declarations forming a block.

type HtmlComment

type HtmlComment string

type Ruleset

type Ruleset struct {
	Selector *selector.Chain
	DeclarationList
}

Ruleset is a selector followed by a Declaration Block

type SimpleBlock

type SimpleBlock struct {
	Content []BlockItem
}

SimpleBlock contains a list of BlockItems

type Statement

type Statement struct {
	*Ruleset
	*AtRule
	*Comment
	*HtmlComment
}

Statement is either a Ruleset or an AtRule or a comment.

type Stylesheet

type Stylesheet struct {
	Statements []Statement
}

Stylesheet is a list of Statements

Directories

Path Synopsis
Package selector contains a css3 selector parser.
Package selector contains a css3 selector parser.
package tokenizer tokenizes a css stream.
package tokenizer tokenizes a css stream.

Jump to

Keyboard shortcuts

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