Add row-reverse and col-reverse to styled
This commit is contained in:
@@ -245,6 +245,13 @@ pub trait Styled: Sized {
|
||||
self
|
||||
}
|
||||
|
||||
/// Sets the flex direction of the element to `column-reverse`.
|
||||
/// [Docs](https://tailwindcss.com/docs/flex-direction#column-reverse)
|
||||
fn flex_col_reverse(mut self) -> Self {
|
||||
self.style().flex_direction = Some(FlexDirection::ColumnReverse);
|
||||
self
|
||||
}
|
||||
|
||||
/// Sets the flex direction of the element to `row`.
|
||||
/// [Docs](https://tailwindcss.com/docs/flex-direction#row)
|
||||
fn flex_row(mut self) -> Self {
|
||||
@@ -252,6 +259,13 @@ pub trait Styled: Sized {
|
||||
self
|
||||
}
|
||||
|
||||
/// Sets the flex direction of the element to `row-reverse`.
|
||||
/// [Docs](https://tailwindcss.com/docs/flex-direction#row-reverse)
|
||||
fn flex_row_reverse(mut self) -> Self {
|
||||
self.style().flex_direction = Some(FlexDirection::RowReverse);
|
||||
self
|
||||
}
|
||||
|
||||
/// Sets the element to allow a flex item to grow and shrink as needed, ignoring its initial size.
|
||||
/// [Docs](https://tailwindcss.com/docs/flex#flex-1)
|
||||
fn flex_1(mut self) -> Self {
|
||||
|
||||
Reference in New Issue
Block a user