monks/counter_reset

The counter-reset CSS property creates named CSS counters and initializes them to a specific value. It supports creating counters that count up from one to the number of elements, as well as those that count down from the number of elements to one.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const none: #(String, String)
  • : Specifies that no counter initialization should occur. This value is useful for overriding counter-reset values in less specific rules.
pub fn raw(value: String) -> #(String, String)

Enter a raw string value for counter-reset

pub const revert: #(String, String)
pub const revert_layer: #(String, String)
pub const unset: #(String, String)
pub fn var(variable: String) -> #(String, String)

Enter a variable name to be used for counter-reset. It will be wrapped in var() and have -- prepended.

Search Document