monks/scroll_margin

The scroll-margin shorthand property sets all of the scroll margins of an element at once, assigning values much like the margin property does for margins of an element.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of scroll-margin

pub fn raw(value: String) -> #(String, String)

Enter a raw string value for scroll-margin

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 scroll-margin. It will be wrapped in var() and have -- prepended.

Search Document