decioferreira / elm-zen-css / CSS.Properties.AlignSelf

The align-self CSS property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area. In Flexbox, it aligns the item on the cross axis.

Ref.: https://developer.mozilla.org/en-US/docs/Web/CSS/align-self

Keyword values

auto : CSS.Internal.Property

Computes to the parent's align-items value.

normal : CSS.Internal.Property

The effect of this keyword is dependent of the layout mode we are in:

Positional alignment

center : Maybe OverflowPosition -> CSS.Internal.Property

The flex item's margin box is centered within the line on the cross-axis. If the cross-size of the item is larger than the flex container, it will overflow equally in both directions.

start : Maybe OverflowPosition -> CSS.Internal.Property

Put the item at the start.

end : Maybe OverflowPosition -> CSS.Internal.Property

Put the item at the end.

selfStart : Maybe OverflowPosition -> CSS.Internal.Property

Aligns the items to be flush with the edge of the alignment container corresponding to the item's start side in the cross axis.

selfEnd : Maybe OverflowPosition -> CSS.Internal.Property

Aligns the items to be flush with the edge of the alignment container corresponding to the item's end side in the cross axis.

flexStart : Maybe OverflowPosition -> CSS.Internal.Property

The cross-start margin edge of the flex item is flushed with the cross-start edge of the line.

flexEnd : Maybe OverflowPosition -> CSS.Internal.Property

The cross-end margin edge of the flex item is flushed with the cross-end edge of the line.

Baseline alignment

baseline : CSS.Internal.Property

Specifies participation in first- or last-baseline alignment: aligns the alignment baseline of the box's first or last baseline set with the corresponding baseline in the shared first or last baseline set of all the boxes in its baseline-sharing group. The fallback alignment for first baseline is start, the one for last baseline is end.

firstBaseline : CSS.Internal.Property

Specifies participation in first- or last-baseline alignment: aligns the alignment baseline of the box's first or last baseline set with the corresponding baseline in the shared first or last baseline set of all the boxes in its baseline-sharing group. The fallback alignment for first baseline is start, the one for last baseline is end.

lastBaseline : CSS.Internal.Property

Specifies participation in first- or last-baseline alignment: aligns the alignment baseline of the box's first or last baseline set with the corresponding baseline in the shared first or last baseline set of all the boxes in its baseline-sharing group. The fallback alignment for first baseline is start, the one for last baseline is end.

stretch : CSS.Internal.Property

If the combined size of the items along the cross axis is less than the size of the alignment container and the item is auto-sized, its size is increased equally (not proportionally), while still respecting the constraints imposed by max-height/max-width (or equivalent functionality), so that the combined size of all auto-sized items exactly fills the alignment container along the cross axis.

Overflow alignment


type OverflowPosition
    = Safe
    | Unsafe

Used alongside an alignment keyword.

Global values

inherit : CSS.Internal.Property

The inherit CSS keyword causes the element to take the computed value of the property from its parent element.

Ref.: https://developer.mozilla.org/en-US/docs/Web/CSS/inherit

initial : CSS.Internal.Property

The initial CSS keyword applies the initial (or default) value of a property to an element.

Ref.: https://developer.mozilla.org/en-US/docs/Web/CSS/initial

revert : CSS.Internal.Property

The revert CSS keyword reverts the cascaded value of the property from its current value to the value the property would have had if no changes had been made by the current style origin to the current element.

Ref.: https://developer.mozilla.org/en-US/docs/Web/CSS/revert

revertLayer : CSS.Internal.Property

The revert-layer CSS keyword rolls back the value of a property in a cascade layer to the value of the property in a CSS rule matching the element in a previous cascade layer.

Ref.: https://developer.mozilla.org/en-US/docs/Web/CSS/revert-layer

unset : CSS.Internal.Property

The unset CSS keyword resets a property to its inherited value if the property naturally inherits from its parent, and to its initial value if not.

Ref.: https://developer.mozilla.org/en-US/docs/Web/CSS/unset