πŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more β†’
Socket
Sign inDemoInstall
Socket

grilled

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grilled

Responsive grid system 🏁

1.1.1
latest
Source
npm
Version published
Weekly downloads
3
-66.67%
Maintainers
1
Weekly downloads
Β 
Created
Source

grilled

A library for responsive grid system 🏁

Grilled

Demo

πŸ‘‰ Website Demo

OR

GIF Demo

Background

I really love responsive grid systems to create responsive websites!

The libraries I use, namely Bootstrap and Material UI only offers 12 columns, and NG-ZORRO only offers 24 columns.

I sometimes wanted to have 10 columns, sometimes 5 columns, sometimes 9 columns ... 😞

Getting Started

Using CDN

Add this line to HTML file

<link rel="stylesheet" type="text/css" href="https://unpkg.com/grilled@1.1.1/dist/css/grid.min.css">

βœ…

Using NPM

Install the 'grilled' package using npm

npm i grilled

then
add this line to index.js

require('grilled');

OR
add this line to HTML file

<link rel="stylesheet" type="text/css" href="grilled/dist/css/grid.min.css">

βœ…

Usage

Containers: grid1 ~ grid12
Items: xs0 ~ xs12, sm0 ~ sm12, md0 ~ md12, lg0 ~ lg12, xl0 ~ xl12, g0 ~ g12

Screen Width<600px<960px<1280px<1920px>=1920px
Range Keyxssmmdlgxl
Number of Columns0 ~ 120 ~ 120 ~ 120 ~ 120 ~ 12

e.g.

<div class="grid10">
	<div class="xs10 g7">Big Item</div>
	<div class="xs10 g3">Small Item</div>
	<div class="xs10 sm5 g0">Item only on xs and sm</div>
</div>
<div class="grid12">
	<div class="box sm0 lg8 g12">sm0 lg8 g12</div>

	<div class="box md12 g8">xs12 sm12 g8</div>
	<div class="box md12 g4">xs12 sm12 g4</div>

	<div class="box xs12 sm6 g3">xs12 sm6 g3</div>
	<div class="box xs12 sm6 g3">xs12 sm6 g3</div>
	<div class="box xs12 sm6 g3">xs12 sm6 g3</div>
	<div class="box xs12 sm6 g3">xs12 sm6 g3</div>
	<div class="box g0">0</div>

	<div class="box xs4 sm2 g1">xs4 sm2 g1</div>
	<div class="box xs8 sm4 g2">xs8 sm4 g2</div>
	<div class="box xs12 sm6 g3">xs12 sm6 g3</div>
	<div class="box xs12 sm6 g3">xs12 sm6 g3</div>
	<div class="box xs8 sm4 g2">xs8 sm4 g2</div>
	<div class="box xs4 sm2 g1">xs4 sm2 g1</div>
</div>

Grilled Grilled Grilled

Package Structure

.
|-- LICENSE
|-- README.md
|-- dist
|   |-- grid.html
|   `-- css
|       `-- grid.min.css
|-- gulpfile.js
|-- index.js
|-- package-lock.json
|-- package.json
`-- src
    |-- grid.html
    `-- scss
        |-- grid
        |   |-- _breakpoints.css
        |   |-- _breakpoints.css.map
        |   |-- _breakpoints.scss
        |   |-- _grid.css
        |   |-- _grid.css.map
        |   `-- _grid.scss
        |-- grid.css
        |-- grid.css.map
        `-- grid.scss

Authors

  • Yifan Ai - Initial work

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License

Keywords

grid

FAQs

Package last updated on 29 Nov 2020

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