monks/box_shadow

The box-shadow CSS property adds shadow effects around an element’s frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color.

Values

pub const inherit: #(String, String)
pub const initial: #(String, String)
pub const inset: #(String, String)
  • : Changes the shadow from an outer box-shadow to an inner box-shadow (as if the content is pressed into the box). Inset shadows are drawn inside the box’s border (even if the border is transparent), and they appear above the background but below the content. By default, the shadow behaves like a drop shadow, giving the appearance that the box is elevated above its content. This is the default behavior when inset is not specified.
pub fn length(value: monks_of_style.Length) -> #(String, String)

length value of box-shadow

pub const none: #(String, String)

none value of box-shadow

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

Enter a raw string value for box-shadow

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

Search Document