@citizensadvice/line-limit

1.0.3 • Public • Published

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:

Abbr Value
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" />

Readme

Keywords

none

Package Sidebar

Install

npm i @citizensadvice/line-limit

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

3.28 kB

Total Files

6

Last publish

Collaborators

  • cnorthwoodcita
  • seymourski
  • marianayovcheva
  • mrdaniellewis
  • davidsauntson
  • davidrapson