Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Gridgraphy is a highly configurable, and incredibly flexible Compass extension that enables you to quickly and easily build semantic CSS grids. Whether you're developing a small single page site or architecting a large scale responsive grid system, Gridgraphy will help you get the job done faster.
Install Gridgraphy by running the following from the command line:
$ gem install gridgraphy
Once Gridgraphy is installed you can either create a new Compass project based on Gridgraphy by running the following from the command line:
$ compass create <project_name> -r gridgraphy -u gridgraphy
Or you can add Gridgraphy to an existing Compass project by adding the following to your projects config.rb:
require 'gridgraphy'
You can import the Gridgraphy extension by adding the following line to one of your Sass/SCSS stylesheet(s):
@import gridgraphy
You can mix and match different configurations to acheive the exact type of grid you need.
true
to highlight the grid row & columns.That's it! You now have access to all of the mixins and functions that Gridgraphy provides.
Scaffolding is a quick way to generate classes for a grid. If you plan on adding your grid classes directly to your markup or want to export a pre-made grid as part of an external library, scaffolding can save you a ton of time.
You can create a new compass project using scaffolding by running:
$ compass create <project_name> -r gridgraphy -u gridgraphy/scaffolding
Or you can add scaffolding to an existing project by adding the following line to any of your Sass/SCSS stylesheet(s):
@import gridgraphy/scaffolding
Gridgraphy ships with 4 different types of layouts. By default grids are created using the value you've set for the $grid-type
configuration variable, but can be set manually on each grid-*
mixin or function.
Sets an element as the container for your columns.
.grid-row
@include grid-row(960px)
Sets an element as the container for your columns inside another column.
.grid-row
@include grid-row-nested(left)
Sets all the properties of a column.
.grid-column
@include grid-column(6)
Set only the width of a column.
Note: This mixin is called automatically when using the grid-column()
mixin. You'll probably only want to use this directly if you need to keep your selectors very DRY.
.grid-column
@include grid-column-width(6)
Set only the base properties of a column.
Note: This mixin is called automatically when using the grid-column()
mixin. You'll probably only want to use this directly if you need to keep your selectors very DRY.
[class^="grid-column-"]
@include grid-column-base()
.grid-column-1
@include grid-column-gutter(4)
.grid-column-2
@include grid-column-gutter(8)
Set only the gutter properties of a column.
Note: This mixin is called automatically when using the grid-column()
mixin. You'll probably only want to use this directly if you need to keep your selectors very DRY.
.grid-column
@include grid-column-gutter(6)
Sets all the properties to offset the column from the right. (prepends empty columns)
.grid-column
@include grid-column-offest-right(6)
Sets all the properties to offset the column from the left. (appends empty columns)
.grid-column
@include grid-column-offest-left(6)
Sets all the properties to push the column from the left. (moves the column without affecting surrounding elements)
.grid-column
@include grid-column-push(6)
Sets all the properties to pull the column towards the left. (moves the column without affecting surrounding elements)
.grid-column
@include grid-column-pull(6)
Returns the unitless (percentage based) width of a column.
.grid-column
width: #{grid-column-width(12)}%
Returns the unitless (percentage based) offset width of a column.
.grid-column
left: #{grid-column-offset(12)}%
Returns the unitless (percentage based) gutter width of a column.
.grid-column
margin-left: #{grid-column-gutter(12)}%
Run the following from the command line to build a demo project of the different types of grids provided.
$ compass create <project_name> -r gridgraphy -u gridgraphy/example
FAQs
Unknown package
We found that gridgraphy 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.