Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jk-grid

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jk-grid

Port of Flexbox Grid to Stylus.

  • 0.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

JK-Grid

This work is an adaptation from the original Flexbox Grid created by @kristoferjoseph.

Grid based on the flex display property. Check the documentation

Install

npm

npm i jk-grid --save

Use

To modify the Flexbox grid, declare the following variables on your layout .styl

Set the number of columns you want to use on your layout.

$gridColumns = 12

Set the gutter between columns.

$gutterWidth = 1rem

Create or remove breakpoints for your project

You can modify, remove or create breakpoints before generate the final CSS.

$breakpoints = {
  sm: {
    size: 48em,
    container: 46rem
  },
  md: {
    size: 62em,
    container: 61rem
  },
  lg: {
    size: 75em,
    container: 71rem
  },
  newBreakPoint: {
    ...
  }
}
$enabledBreakpoints ?= 'sm', 'md', 'lg', 'newBreakPoint'

License

MIT

FAQs

Package last updated on 12 Jul 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