framework/front/css
Types
pub type BorderEdge {
AllEdges
BottomEdge
}
Constructors
-
AllEdges -
BottomEdge
pub type BorderStyle {
Solid
Dashed
Dotted
}
Constructors
-
Solid -
Dashed -
Dotted
pub type Breakpoint {
SP
PC
Tablet
}
Constructors
-
SP -
PC -
Tablet
pub type Flow {
Stack(gap: Length)
Row(gap: Length, wrap: Bool)
Grid(cols: Int, gap: Length)
GridTracks(cols: List(track.Track), gap: Length)
Scroller
}
Constructors
-
Stack(gap: Length) -
Row(gap: Length, wrap: Bool) -
Grid(cols: Int, gap: Length) -
GridTracks(cols: List(track.Track), gap: Length) -
Scroller
pub type FontFamily {
System
SansSerif
Serif
Monospace
Named(String)
}
Constructors
-
System -
SansSerif -
Serif -
Monospace -
Named(String)
pub type FontWeight {
Normal
Medium
SemiBold
Bold
}
Constructors
-
Normal -
Medium -
SemiBold -
Bold
pub type Img(blob, media) {
Img(blob: blob, media: media)
}
Constructors
-
Img(blob: blob, media: media)
pub type Interaction {
Hover
Focus
Disabled
}
Constructors
-
Hover -
Focus -
Disabled
pub type ObjectFit {
Cover
Contain
Fill
ScaleDown
FitNone
}
Constructors
-
Cover -
Contain -
Fill -
ScaleDown -
FitNone
pub type Ratio {
Ratio(width: Float, height: Float)
}
Constructors
-
Ratio(width: Float, height: Float)
pub type SpaceProperty {
Margin
Padding
Gap
Width
Height
Radius
MinWidth
MinHeight
MaxWidth
}
Constructors
-
Margin -
Padding -
Gap -
Width -
Height -
Radius -
MinWidth -
MinHeight -
MaxWidth
pub type Style {
Color(value: String)
Background(value: String)
Border(
edge: BorderEdge,
width: Length,
style: BorderStyle,
color: String,
)
Outline(width: Length, offset: Length, color: String)
Crop(fit: ObjectFit, ratio: Ratio)
Space(property: SpaceProperty, value: Length)
Text(
family: FontFamily,
size: Length,
weight: FontWeight,
line_height: Length,
)
Flow(flow: Flow)
State(state: Interaction, styles: List(Style))
Responsive(at: Breakpoint, styles: List(Style))
Animation(animation: Animation)
}
Constructors
-
Color(value: String) -
Background(value: String) -
Border( edge: BorderEdge, width: Length, style: BorderStyle, color: String, ) -
-
-
Space(property: SpaceProperty, value: Length) -
Text( family: FontFamily, size: Length, weight: FontWeight, line_height: Length, ) -
Flow(flow: Flow) -
State(state: Interaction, styles: List(Style)) -
Responsive(at: Breakpoint, styles: List(Style)) -
Animation(animation: Animation)