LiveStyle.Manifest.PositionTryEntry (LiveStyle v0.13.0)

View Source

Entry structure for @position-try rules.

Summary

Functions

Gets the declarations from a position-try entry.

Gets the ident from a position-try entry.

Creates a new position-try entry.

Types

t()

@type t() :: [ident: String.t(), declarations: keyword()]

Functions

declarations(entry)

@spec declarations(t()) :: keyword()

Gets the declarations from a position-try entry.

ident(entry)

@spec ident(t()) :: String.t()

Gets the ident from a position-try entry.

new(ident, declarations)

@spec new(
  String.t(),
  keyword()
) :: t()

Creates a new position-try entry.

Parameters

  • ident - The CSS dashed-ident name (e.g., "--x1abc123")
  • declarations - The position-try declarations

Examples

PositionTryEntry.new("--x1abc123", [top: "anchor(bottom)", left: "anchor(left)"])