boxShadow

open fun boxShadow(value: Shadows.() -> Property)

This function sets the box-shadow property.

Example call:

box-shadow { flat }

Parameters

value

extension function parameter for small media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.shadows that offer the properties of Shadows

open fun boxShadow(sm: Shadows.() -> Property? = null, md: Shadows.() -> Property? = null, lg: Shadows.() -> Property? = null, xl: Shadows.() -> Property? = null)

This function sets the box-shadow property for each media device independently.

Example call:

box-shadow(
sm = { flat }
lg = { raised }
)

Parameters

lg

extension function parameter for large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.shadows that offer the properties of Shadows

md

extension function parameter for medium sized media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.shadows that offer the properties of Shadows

sm

extension function parameter for small media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.shadows that offer the properties of Shadows

xl

extension function parameter for extra large media devices, recommended to use predefined values via dev.fritz2.styling.theme.Theme.shadows that offer the properties of Shadows