BsTextExtension extension
Extension on Text to provide Bootstrap-like text utilities.
- on
Methods
-
display1(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the typography style to display-1 (80px, w300, line-height 1.2). -
display2(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the typography style to display-2 (72px, w300, line-height 1.2). -
display3(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the typography style to display-3 (64px, w300, line-height 1.2). -
display4(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the typography style to display-4 (56px, w300, line-height 1.2). -
display5(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the typography style to display-5 (48px, w300, line-height 1.2). -
display6(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the typography style to display-6 (40px, w300, line-height 1.2). -
fs1(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font size to fs-1 (40px, equivalent to h1). -
fs2(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font size to fs-2 (32px, equivalent to h2). -
fs3(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font size to fs-3 (28px, equivalent to h3). -
fs4(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font size to fs-4 (24px, equivalent to h4). -
fs5(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font size to fs-5 (20px, equivalent to h5). -
fs6(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font size to fs-6 (16px, equivalent to h6). -
fstItalic(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font style to italic (equivalent to fst-italic). -
fstNormal(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font style to normal (equivalent to fst-normal). -
fwBold(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font weight to bold (w700, equivalent to fw-bold). -
fwBolder(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font weight to bolder (w800, equivalent to fw-bolder). -
fwLight(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font weight to light (w300, equivalent to fw-light). -
fwLighter(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font weight to lighter (w200, equivalent to fw-lighter). -
fwMedium(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font weight to medium (w500, equivalent to fw-medium). -
fwNormal(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font weight to normal (w400, equivalent to fw-normal). -
fwSemibold(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the font weight to semibold (w600, equivalent to fw-semibold). -
lh1(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the line height to 1.0 (equivalent to lh-1). -
lhBase(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the line height to base (1.5, equivalent to lh-base). -
lhLg(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the line height to large (2.0, equivalent to lh-lg). -
lhSm(
) → Text -
Available on Text, provided by the BsTextExtension extension
Sets the line height to small (1.25, equivalent to lh-sm). -
textCapitalize(
) → Text -
Available on Text, provided by the BsTextExtension extension
Capitalizes the first letter of each word in the text. -
textCenter(
) → Text -
Available on Text, provided by the BsTextExtension extension
Aligns the text to the center (equivalent to text-center). -
textDecorationLineThrough(
) → Text -
Available on Text, provided by the BsTextExtension extension
Applies line-through decoration (equivalent to text-decoration-line-through). -
textDecorationNone(
) → Text -
Available on Text, provided by the BsTextExtension extension
Removes text decoration (equivalent to text-decoration-none). -
textDecorationUnderline(
) → Text -
Available on Text, provided by the BsTextExtension extension
Applies underline decoration (equivalent to text-decoration-underline). -
textEnd(
) → Text -
Available on Text, provided by the BsTextExtension extension
Aligns the text to the end (right, equivalent to text-end). -
textLowercase(
) → Text -
Available on Text, provided by the BsTextExtension extension
Transforms text to lowercase. -
textNowrap(
) → Text -
Available on Text, provided by the BsTextExtension extension
Prevents text wrapping. -
textStart(
) → Text -
Available on Text, provided by the BsTextExtension extension
Aligns the text to the start (left, equivalent to text-start). -
textUppercase(
) → Text -
Available on Text, provided by the BsTextExtension extension
Transforms text to uppercase. -
textWrap(
) → Text -
Available on Text, provided by the BsTextExtension extension
Wraps text automatically. -
truncate(
) → Text -
Available on Text, provided by the BsTextExtension extension
Truncates the text with an ellipsis if it exceeds one line.