Sizes

class Sizes(    val normal: Property,     val small: Property = normal,     val smaller: Property = small,     val tiny: Property = smaller,     val large: Property = normal,     val larger: Property = large,     val huge: Property = larger,     val giant: Property = huge,     val full: Property = giant,     val wide: ScaledValue) : ScaledValue

Defines a value that has different expressions for different sizes.

There is a special sub-range for "bigger" sizes called `wide`. "Bigger" really means sizes that reach dimensions up to the whole screen and have to scale much different (much wider steps obviously) than the basic ones.

We believe that in most of the cases one would like to define rather small sizes, ranging between a fraction of an `rem` and at most `2rem`. This is why those are intentionally the basic properties of this type and the more wider scaled ones need the `wide` "prefix"!

Constructors

Link copied to clipboard
fun Sizes(    normal: Property,     small: Property = normal,     smaller: Property = small,     tiny: Property = smaller,     large: Property = normal,     larger: Property = large,     huge: Property = larger,     giant: Property = huge,     full: Property = giant,     wide: ScaledValue)

Functions

Link copied to clipboard
fun fitContent(value: Property): Property

Properties

Link copied to clipboard
val auto: Property
Link copied to clipboard
val available: Property
Link copied to clipboard
val borderBox: Property
Link copied to clipboard
val contentBox: Property
Link copied to clipboard
val full: Property
Link copied to clipboard
val giant: Property
Link copied to clipboard
val huge: Property
Link copied to clipboard
val inherit: Property
Link copied to clipboard
val initial: Property
Link copied to clipboard
val large: Property
Link copied to clipboard
val larger: Property
Link copied to clipboard
val maxContent: Property
Link copied to clipboard
val minContent: Property
Link copied to clipboard
open val none: Property
Link copied to clipboard
val normal: Property
Link copied to clipboard
val small: Property
Link copied to clipboard
val smaller: Property
Link copied to clipboard
val tiny: Property
Link copied to clipboard
val unset: Property
Link copied to clipboard
val wide: ScaledValue