Skip to content

Commit

Permalink
Add Style Functions
Browse files Browse the repository at this point in the history
Add additional style functions:
Positiion
Top
Buttom
Left
Right
  • Loading branch information
cwarden committed Apr 11, 2024
1 parent a634514 commit 385bbbe
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions style/style.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,26 @@ func Margin(size Size) masc.Applyer {
return masc.Style("margin", string(size))
}

func Position(pos string) masc.Applyer {
return masc.Style("position", pos)
}

func Bottom(size Size) masc.Applyer {
return masc.Style("bottom", string(size))
}

func Top(size Size) masc.Applyer {
return masc.Style("top", string(size))
}

func Left(size Size) masc.Applyer {
return masc.Style("left", string(size))
}

func Right(size Size) masc.Applyer {
return masc.Style("right", string(size))
}

type OverflowOption string

const (
Expand Down

0 comments on commit 385bbbe

Please sign in to comment.