Syntax
Border Radius
Setting radius of an element’s corners.
🚧This page is still under construction and some content may not be complete.
Overview
Class | Declarations |
---|---|
r:radius | border-radius: radius; |
rt:radius | border-top-left-radius: radius;
border-top-right-radius: radius; |
rb:radius | border-bottom-left-radius: radius;
border-bottom-right-radius: radius; |
rl:radius | border-top-left-radius: radius;
border-bottom-left-radius: radius; |
rr:radius | border-top-right-radius: radius;
border-bottom-right-radius: radius; |
rtl:radius / rlt:radius | border-top-left-radius: radius; |
rtr:radius / rrt:radius | border-top-right-radius: radius; |
rbl:radius / rlb:radius | border-bottom-left-radius: radius; |
rbr:radius / rrb:radius | border-bottom-right-radius: radius; |
rounded | border-radius: 1e9em; |
round | border-radius: 50%;
aspect-ratio: 1/1; |
Conditionally apply
Apply styles based on different states using selectors and applying conditionally.
<div class="border-radius:10:hover border-radius:10@sm border-radius:10@dark border-radius:10@print">…</div>