StyleDeclaration

laika.ast.StyleDeclaration
See theStyleDeclaration companion object
case class StyleDeclaration(selector: StyleSelector, styles: Map[String, String])

Represents a single style declaration.

Value parameters

selector

the selector to determine which elements this declaration applies to

styles

the styles themselves in a map representing the names and values of each style

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def appliesTo(element: Element, parents: Seq[Element]): Boolean

Indicates whether this style declaration applies to the specified target element.

Indicates whether this style declaration applies to the specified target element.

Value parameters

element

the target element to apply the selector of this style declaration to

parents

the parents of the specified target element, which also need to match in case the selector of this declaration has parent selectors.

Attributes

Returns

true if this style declaration applies to the target element

def increaseOrderBy(amount: Int): StyleDeclaration

Returns a new style declaration with the order parameter in its Specificity property increased by the specified amount.

Returns a new style declaration with the order parameter in its Specificity property increased by the specified amount.

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product