1.0.3 • Published 6 years ago

@citizensadvice/display v1.0.3

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

Display npm (scoped)

Sets the display behavior of the element.

Classes

Class nameValue
.hiddennone
.inlineinline
.blockblock
.inline-blockinline-block
.tabletable
.table-celltable-cell
.table-rowtable-row
.table-fixedfixed

Responsive display classes

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

Class nameDescription
[aboveClassName]-nsScreens with a min-width of 48rem
[aboveClassName]-mScreens with widths from 48rem to 64rem
[aboveClassName]-lScreens with a min-width of 64rem

Examples

<div class="hidden inline-block-ns">...</div>
<div class="block  inline-block-l inline-block-ns">...</div>

Installation

$ npm install @citizensadvice/display

now import into your stylesheet...

@import '@citizensadvice/display/index.scss';

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

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