New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

blank-css-space

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blank-css-space

blank.css space utilities for consistent layouts

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
18
350%
Maintainers
1
Weekly downloads
 
Created
Source

blank.css

blank.css ‣ space

blank.css space utilities for consistent layouts

configure

Like all of blank.css, the spacing utilites are completely configurable using custom properties and custom media queries, like so:

:root {
	--space-n: 0;
	--space-xs: .125rem;
	--space-sm: .25rem;
	--space-md: .5rem;
	--space-lg: 1rem;
	--space-xl: 2rem;
}

@custom-media --xs (min-width: 22rem);
@custom-media --sm (min-width: 29rem);
@custom-media --md (min-width: 36rem);
@custom-media --lg (min-width: 45rem);
@custom-media --xl (min-width: 54rem);

install

npm i -D blank-css-space

use

now you have these classes at your disposal, where

identifieravailable
{type}mg or pd
{Side}T or B or L or R or H or V
{size}n or xs or sm or md or lg
.blank-u-{type}{Side}{size}

for example, if I wanted a small amount of padding on all sides, but large horizontal margins, I'd do this:

<div class="blank-u-pdAs blank-u-mgVlg">My item</div>

If I wanted the small padding to change to large when I hit the md breakpoint, I'd do:

<div class="blank-u-pdAs blank-u-mgVlg blank-u-md-pdAlg">My item</div>

Mix and match in whichever way you choose.

Keywords

css

FAQs

Package last updated on 09 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts