CSSParsers

laika.parse.css.CSSParsers$
object CSSParsers

Parsers for the subset of CSS supported by Laika.

Not supported are attribute selectors, pseudo classes, namespaces and media queries.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
CSSParsers.type

Members list

Type members

Classlikes

case object Child extends Combinator

A combinator for an immediate child.

A combinator for an immediate child.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Combinator
class Object
trait Matchable
class Any
Show all
Self type
Child.type
sealed abstract class Combinator

Represents a combinator between two predicates.

Represents a combinator between two predicates.

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Child.type
object Descendant.type
case object Descendant extends Combinator

A combinator for a descendant on any nesting level.

A combinator for a descendant on any nesting level.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Combinator
class Object
trait Matchable
class Any
Show all
Self type
Descendant.type
case class Style(name: String, value: String)

Represents a single style within a style declaration.

Represents a single style within a style declaration.

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Concrete fields

Parses a combinator between two predicates.

Parses a combinator between two predicates.

Attributes

val comment: Parser[Unit]

Parses a single CSS comment.

Parses a single CSS comment.

Attributes

Parses a single predicate.

Parses a single predicate.

Attributes

Parses a single selector.

Parses a single selector.

Attributes

Parses a sequence of selectors, separated by a comma.

Parses a sequence of selectors, separated by a comma.

Attributes

Parses the sub-part of a selector without any combinators, e.g. Paragraph#title.

Parses the sub-part of a selector without any combinators, e.g. Paragraph#title.

Attributes

Parses a single style within a declaration.

Parses a single style within a declaration.

Attributes

Parses an entire set of style declarations. This is the top level parser of this trait.

Parses an entire set of style declarations. This is the top level parser of this trait.

Attributes

Parses a sequence of style declarations, ignoring any comments.

Parses a sequence of style declarations, ignoring any comments.

Attributes

val styleRefName: Parser[String]

Parses the name of a style. The name must start with a letter, while subsequent characters can be letters, digits or one of the symbols '-' or '_'.

Parses the name of a style. The name must start with a letter, while subsequent characters can be letters, digits or one of the symbols '-' or '_'.

Attributes

val styleValue: Parser[String]

Parses the value of a single style, ignoring any comments..

Parses the value of a single style, ignoring any comments..

Attributes

Parses a single type selector.

Parses a single type selector.

Attributes

val wsOrNl: Parser[String]

Parses horizontal whitespace or newline characters.

Parses horizontal whitespace or newline characters.

Attributes