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

@paulbarre/simple-flex-grid

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@paulbarre/simple-flex-grid

Easy-to-use grid based on Flexbox in pure CSS

  • 2.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Simple Flex Grid

Easy-to-use grid based on Flexbox in pure CSS.

Why will it be useful?

Using Bootstrap or other frameworks can be time loss with unuseful CSS, or make import more that what your app needs.

Simple Flex Grid goals:

  1. It is in pure CSS
  2. It is small
  3. It doesn't change your fonts
  4. It doesn't change your colors
  5. It is simple
  6. It is flex
  7. It is responsive

Notes

Grid breakpoints and container class max-width are based on Bootstrap.

Installation

Via NPM

npm i -D @paulbarre/simple-flex-grid

Then into your main javascript file (ES6 module):

import '@paulbarre/simple-flex-grid/dist/simple-flex-grid.min.css'

Breakpoints

DeviceCodeTypesRangeContainer max-width
Extra smallxssmall to large handset< 600pxnone
Smallsmsmall to medium tablet600px > < 960px540px
Mediummdlarge tablet to laptop960px > < 1264720px
Largelgdesktop1264 > < 1904px960px
Extra largexl4k and ultra-wides> 1904px1140px

Classes

  • row: define responsive layout.
  • column: the tag that has to be responsive.
  • <breakpoint>[1-12]: the tag will covere 1 to 12 columns for the designated breakpoint.
  • <breakpoint>: the tag will be hidden until the breakpoint is triggered.
  • <breakpoint>0: the tag will be hidden when the breakpoint is triggered.
  • container: this class will set margins around the grid layout. Not required if the rows have to covered the full width of the page.

Examples

Check out the examples for a short example. More examples to come.

Keywords

FAQs

Package last updated on 06 Mar 2022

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