1.0.3 • Published 6 years ago

@citizensadvice/line-limit v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

Line-limit npm (scoped)

Line limit width is 592px. This is based on the ideal words per line for readability.

Classes

.line-limit-width {
  max-width: $line-limit-width;
}

Responsive line-limit classes

To apply specific classes at set screen widths, use the following classes:

AbbrValue
ns$breakpoint-ns (min-width: 48rem)
m$breakpoint-m (min-width: 48rem, max-width: 64rem)
l$breakpoint-l (min-width: 64rem)
<p class="line-limit-width-ns">Lorem ipsum</p>

// This will give a line limit of `592px` on devices with a screen width of `48rem +`.

Installation

$ npm install @citizensadvice/line-limit

now import into your stylesheet...

@import '@citizensadvice/line-limit/index.scss';

You can make use of the unpkg service, try adding the link below to the head of your HTML file.

<link src="https://unpkg.com/@citizensadvice/line-limit@latest/build/line-limit.css" />