nix

  • Docs
Docs Menu
  • nix
    • Display
    • Flexbox
    • Float
    • Margin
    • Sizing
    • Padding
    • Position
    • Text
    • Others

Others guide

vertical-align

The vertical-align CSS property specifies the vertical alignment of an inline or table-cell box.

CLASSDESCRIPTION
.nix-vertical-align_baselineThe element is aligned with the baseline of the parent
.nix-vertical-align_topThe element is aligned with the top of the tallest element on the line
.nix-vertical-align_middleThe element is placed in the middle of the parent element
.nix-vertical-align_bottomThe element is aligned with the lowest element on the line
.nix-vertical-align_text-topThe element is aligned with the top of the parent element's font
.nix-vertical-align_text-bottomThe element is aligned with the bottom of the parent element's font
<p>
  <img src="icon.jpg" class="nix-vertical-align__middle" /> Lorem ipsum dolor sit ammet
</p>
xxxxxxxxxx
 
1
<p>
2
  <img src="icon.jpg" class="nix-vertical-align__middle" /> Lorem ipsum dolor sit ammet
3
</p>

cursor

CLASSDESCRIPTION
.nix-cursor_defaultIf overflow is clipped, a scroll-bar should be added to see the rest of the content
.nix-cursor_pointerThe overflow is clipped, and the rest of the content will be invisible
.nix-cursor_not-allowedThe overflow is clipped, but a scroll-bar is added to see the rest of the content
<div class="nix-cursor_pointer"></div>
xxxxxxxxxx
 
1
<div class="nix-cursor_pointer"></div>

overflow

CLASSDESCRIPTION
.nix-overflow_autoIf overflow is clipped, a scroll-bar should be added to see the rest of the content
.nix-overflow_hiddenThe overflow is clipped, and the rest of the content will be invisible
.nix-overflow_scrollThe overflow is clipped, but a scroll-bar is added to see the rest of the content
.nix-overflow_visibleThe overflow is not clipped. It renders outside the element's box
<div class="nix-overflow_hidden"></div>
xxxxxxxxxx
 
1
<div class="nix-overflow_hidden"></div>

object-fit

The CSS object-fit property is used to specify how an <img> or <video> should be resized to fit its container.

CLASSDESCRIPTION
.nix-object-fit_fillThis is default. The replaced content is sized to fill the element's content box. If necessary, the object will be stretched or squished to fit
.nix-object-fit_containThe replaced content is scaled to maintain its aspect ratio while fitting within the element's content box
.nix-object-fit_coverThe replaced content is sized to maintain its aspect ratio while filling the element's entire content box. The object will be clipped to fit
.nix-object-fit_scale-downThe content is sized as if none or contain were specified (would result in a smaller concrete object size)
.nix-object-fit_noneThe replaced content is not resized
<img src="http://lorempixel.com/400/200/" class="nix-object-fit_cover" width="50" height="50"/>
xxxxxxxxxx
 
1
<img src="http://lorempixel.com/400/200/" class="nix-object-fit_cover" width="50" height="50"/>

Responsive example

CLASSDESCRIPTION
.nix-white-space_nowrap--xs--xs suffix only affects device widths of 768px and lower.
.nix-overflow_hidden--sm--sm suffix only affects device widths of 1024px and lower.
.nix-cursor_not-allowed--md--md suffix only affects device widths of 1200px and lower.

Contribute on Github! Edit this section.

  • vertical-align30 sec read
  • cursor14 sec read
  • overflow18 sec read
  • object-fit35 sec read
  • Responsive example12 sec read
    Copy