Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
A Stylus plugin that makes it easy to create custom, simple, responsive grids
Install:
npm install griddy
stylus src -o css -u griddy
var stylus = require('stylus'),
griddy = require('griddy')
function compile (src) {
return stylus(src).set('filename', path).use(griddy());
}
You can also just add griddy to your stylus files directory and import it
@import './griddy'
Apply the mixin grid-system
to any selector to define a grid system.
grid-system(cols = 12, gutter = 20px, child = '.col', offset = '.off', all-columns = true, separate = '-', breakpoint = 400px)
cols
- Number of total columnsgutter
- Horizontal space between columns and vertical space between rowschild
- Child selector suffix (Or full selector, if all-columns is set to false)offset
- Offset selector suffixall-columns
- Generate selectors for all numbers of spans, using [selector][separate][spans]
conventionseparate
- String separating child
prefix from spans count, used when all-columns
is set to truebreakpoint
- Max-size for responsive media query (Columns will break to full-width under specified size)@import 'griddy'
.row
grid-system(12, 20px, '.col', '.off')
<div class="row">
<div class="col-3">
<!-- 3 columns -->
</div>
<div class="col-8 off-1">
<!-- 8 columns offset by 1 -->
</div>
</div>
@import 'griddy'
.split-3
grid-system(3, 10px, '.thirds', true, ' thirds-')
<div class="split-3">
<div class="thirds thirds-1"> [...] </div>
<div class="thirds thirds-1"> [...] </div>
<div class="thirds thirds-1"> [...] </div>
</div>
Copyright (c) 2014 Tancredi Trugenberger. - Released under the MIT license
FAQs
Grid system plugin for stylus
The npm package griddy receives a total of 0 weekly downloads. As such, griddy popularity was classified as not popular.
We found that griddy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.