Skip to content
Support Yumma CSS by starring us on GitHub!

Outline Offset

Controls the offset of an element's outline.

Class Properties

oo-0

outline-offset: 0px;

oo-1

outline-offset: 1px;

oo-2

outline-offset: 2px;

oo-3

outline-offset: 3px;

oo-4

outline-offset: 4px;

This example showcases various outline offsets: 1px, 2px, and 3px. The element will have outlines that are offset from the border by these respective distances.

<div class="d-g g-16 gtc-1 sm:gtc-3">
<div class="b-1 b-s bc-gray dim-16 oc-indigo oo-1 os-s rad-1"></div>
<div class="b-1 b-s bc-gray dim-16 oc-indigo oo-2 os-s rad-1"></div>
<div class="b-1 b-s bc-gray dim-16 oc-indigo oo-3 os-s rad-1"></div>
</div>

Utilizing utilities conditionally

Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.

Responsive breakpoints

You can combine responsive breakpoints like sm:oo-*,md:oo-*, lg:oo-*, and xxl:oo-* allows targeting specific utilities in different viewports.

<div class="oo-1 md:oo-2 ..."></div>

Utilizing utilities conditionally

Override existing utilities based on the user's screen size or other factors, such as hover states. Learn more about modifiers in our documentation.

Hover states

Alternatively, you can apply :hover by using h:oo-* utility to override elements and change their values when hovering over them.

<div class="oo-1 h:oo-2 ..."></div>