New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

accoutrement-layout

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accoutrement-layout

Layout helpers

  • 3.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
74
increased by29.82%
Maintainers
2
Weekly downloads
 
Created
Source

Accoutrement-Layout

Sass layout utilities by OddBird. Provides layout utilities such as media-query helpers, a float clearfix, global box-sizing, positioning shortcuts, and fluid aspect ratios.

More Accoutrement Tools

  • Init provides light-weight browser-normalization.
  • Color provides color-palette management and contrast-ratio utilities.
  • Scale helps manage scale patterns like font-sizes, margins, and gutters.
  • Type provides webfont management tools, and other typography helpers.

Quick Start

Install the package with npm or yarn

npm install accoutrement-layout
yarn add accoutrement-layout

Import the library:

@import '<path-to>/accoutrement-layout/sass/layout';

Establish your media-query breakpoints, or use sizes from Accoutrement-Scale directly:

$sizes: (
  'page': 36rem,
);

$breakpoints: (
  'banner-text': 24em,
);

Access your breakpoints with above(), below(), and between() mixins. When possible em and rem units will be converted to browser-default relative em sizes:

.banner-text {
  display: none;

  @include above('banner-text') {
    display: block;
  }
}

.container {
  @include below('page') {
    padding: .5em;
  }
}

We remove .09em or 1px from max-width queries, to account for media-query overlap issues.

Keywords

FAQs

Package last updated on 13 Dec 2017

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc