nix

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

Text guide

text-align

CLASSDESCRIPTION
.nix-text-align_leftAligns the text to the left
.nix-text-align_rightAligns the text to the right
.nix-text-align_centerCenters the text
.nix-text-align_justifyStretches the lines so that each line has equal width
<div class="nix-text-align_left"></div>
xxxxxxxxxx
 
1
<div class="nix-text-align_left"></div>

text-transform

CLASSDESCRIPTION
.nix-text-transform_noneNo capitalization. The text renders as it is. This is default
.nix-text-transform_lowercaseTransforms all characters to lowercase
.nix-text-transform_uppercaseTransforms all characters to uppercase
.nix-text-transform_capitalizeTransforms the first character of each word to uppercase
<div class="nix-text-transform_uppercase"></div>
xxxxxxxxxx
 
1
<div class="nix-text-transform_uppercase"></div>

font-weight

CLASSDESCRIPTION
.nix-font-weight_normalDefines normal characters. This is default
.nix-font-weight_boldDefines thick characters
.nix-font-weight_bolderDefines thicker characters
.nix-font-weight_lighterDefines lighter characters
<div class="nix-font-weight_lighter"></div>
xxxxxxxxxx
 
1
<div class="nix-font-weight_lighter"></div>

font-style

CLASSDESCRIPTION
.nix-font-style_normalThe browser displays a normal font style. This is default
.nix-font-style_italicThe browser displays an italic font style
.nix-font-style_obliqueThe browser displays an oblique font style
<div class="nix-font-weight_lighter"></div>
xxxxxxxxxx
 
1
<div class="nix-font-weight_lighter"></div>

white-space

CLASSDESCRIPTION
.nix-white-space_normalSequences of whitespace will collapse into a single whitespace. Text will wrap when necessary
.nix-white-space_nowrapSequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a <br> tag is encountered
.nix-white-space_preWhitespace is preserved by the browser. Text will only wrap on line breaks. Acts like the <pre> tag in HTML
<div class="nix-white-space_nowrap"></div>
xxxxxxxxxx
 
1
<div class="nix-white-space_nowrap"></div>

text-overflow

CLASSDESCRIPTION
.nix-text-overflow_clipDefault value. The text is clipped and not accessible
.nix-text-overflow_ellipsisRender an ellipsis ("...") to represent the clipped text
.nix-text-overflow_initialSets this property to its default value
.nix-text-overflow_inheritInherits this property from its parent element
<div class="nix-white-space_nowrap nix-overflow_hidden nix-text-overflow_ellipsis"></div>
xxxxxxxxxx
 
1
<div class="nix-white-space_nowrap nix-overflow_hidden nix-text-overflow_ellipsis"></div>

Responsive examples

CLASSDESCRIPTION
.nix-text-align_center--xs--xs suffix only affects device widths of 768px and lower.
.nix-text-transform_uppercase--sm--sm suffix only affects device widths of 1024px and lower.
.nix-font-style_italic--md--md suffix only affects device widths of 1200px and lower.

Contribute on Github! Edit this section.

  • text-align11 sec read
  • text-transform15 sec read
  • font-weight11 sec read
  • font-style11 sec read
  • white-space20 sec read
  • text-overflow17 sec read
  • Responsive examples12 sec read
    Copy