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

@vcl/grid

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vcl/grid

Float based fluid grid system

  • 0.3.0
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

VCL grid

Classical float based fluid grid system.

Features

The grid system is used to create page layouts with inherent visual harmony through consistent vertical gaps – think newspaper. It has 15 columns (grid units) with a percentage based division. The subdivision spans are offered based on grid units and percentage. The columns are separated by so-called gutters which are marginal columns which should not contain any content unless the content spans multiple columns.

A grid is usually used in the content area of the page but it can be used in any other container. A container with the class vclGridRow opens it and is filled with column spans like vclGridSpan-3 (three grid units) or alternatively percentage based ones like vclGridSpan-25p (a quarter). See the example for the whole variety.

Nesting is only supported through percentage based spans as shown in the demo.

Usage

basic example

Classes

  • vclGridRow
  • vclGridSpan-1..15: Column unit based grid spans.
  • vclGridSpan-5p, 10p, 15p ... 100p: Percentage based grid spans.
  • vclGridSpan-gca: Golden cut a.
  • vclGridSpan-gcb: Golden cut b.
  • vclGutterMargin: margin at half gutter width, applicable to any element.
  • vclGutterMarginTB: Top/ bottom margin at half gutter width, applicable to any element.
  • vclGutterMarginLR: Left/ right margin at half gutter width, applicable to any element.

Modifiers

  • vclGridSpanCentered: Vertically center a grid column if it is the only column.

Variables

  • --grid-half-gutter-width

Demo

example.html on GH-pages.

Keywords

FAQs

Package last updated on 15 Feb 2019

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