Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
compass-scalablegs-plugin
Advanced tools
Scalable.gs is a cross screen size and device CSS framework. Check out the Scalable.gs website for more information and use cases.
This plugin adds the Scalable Grid System framework to Compass.
The plugin is build upon the great work done by Christopher M. Eppstein and Matt Sanders with the 960 Grid System framework compass plugin. The framework follows some of the name convention from the 960.gs by Nathan Smith.
#Install
gem install compass-scalablegs-plugin
##Create a Scalablegs-based Compass Project
compass create -r scalable my_project --using scalable
Or, If you prefer to use Sass's indentation based syntax:
compass create -r scalable my_project --using scalable --syntax sass
Then edit your scalable.sass
accordingly.
This plugin uses the following configuration variables:
$scalable-columns
(default: 20) controls the default number of grid columns$scalable-grid-min-width
(default: 26em - with the assumption of a 12px body font size) controls the default minimum site width$scalable-grid-max-width
(default: 82em - with the assumption of a 12px body font size) controls the default maximum site width$scalable-gutter-width
(default: 2%) controls the default gutter widthAll of the mixins included with this plugin use these configuration variables as defaults if the corresponding argument is omitted from a mixin call.
To create a grid system that works like the original Scalable.gs framework
use the +grid-system
mixin to generate the corresponding classes. You can
also customize the number of columns as demonstrated in the following example.
Example:
#wrap
+grid-system(24)
To create a grid system using only CSS, use the following semantic grid mixins:
+grid-container
mixin to declare your container element.+grid(N, columns, gutter-width)
mixin to declare a grid element.+first
and +last
mixins to declare the first and last grid elements for a row.+grid-prefix(N, columns)
and +grid-suffix(N, columns)
mixins to add empty grid columns before or after a grid element.+grid-push(N, columns)
and +grid-pull(N, columns)
mixins to move a grid element from its default position.N
is the number of grid columns to span as in grid_N
or push_N
with the original 960 Grid System framework.
Example:
$scalable-columns: 24
#wrap
+grid-container
#left-nav
+first
+grid(5)
#main-content
+grid-prefix(1)
+grid(10)
+last
Chris Eppstein is the creator of Compass, a core contributor to Sass and the father of this plugin.
Nathan Smith is the author of 960.gs, the grid system this plugin is based on. He's also kind enough to let us pester him with questions from time to time.
Matt Sanders is probably the best go to person if you want more information about the original compass-960-plugin.
Kenneth Nordahl forked and then converted the original plugin over to the Scalable Grid System.
Other contributors have worked on original fork of this plugin.
FAQs
Unknown package
We found that compass-scalablegs-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.