Border Classes
Use these utility classes to set element borders.
Border
These classes can be applied using the following format u-border-{direction}
The direction designates the side the property applies to:
t
- applies the border totop
.r
- applies the border toright
.b
- applies the border tobottom
.l
- applies the border toleft
.h
- applies the border to both*-left
and*-right
.v
- applies the border to both*-top
and*-bottom
.- If left empty, applies the border in all directions. (Ex:
u-border
)
Border Radius
These classes can be applied using the following format u-br-{direction}-{size}
The direction designates the side, the property applies to:
t
- applies the border radius to bothtop-left
&top-right
.tl
- applies the border radius totop-left
.tr
- applies the border radius totop-left
.b
- applies the border radius to bothbottom-left
&bottom-right
.bl
- applies the border radius tobottom-left
.br
- applies the border radius tobottom-right
.l
- applies the border radius to bothbottom-left
&top-left
.r
- applies the border radius to bothbottom-right
&top-right
.- If left empty/skipped, it sets border-radius of all sides to
4px
. (Ex:u-br
,u-br-xl
)
The size controls the increment of border property:
0
- sets border-radius to0
.sm
- sets border-radius to2px
.- If left empty, sets border-radius to
4px
. (Ex:u-br-t
,u-br
) lg
- sets border-radius to6px
.xl
- sets border-radius to8px
.