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.
Flexible system to manipulate icons, SVG, PNG, sprites.
Works on top of compass sprite API.
It was designed to easily switch between SVG and PNG while working with icons as background-images.
So you have more granular control over which icons to use as SVG or PNG.
SVG first with PNG sprite fallback, or PNG first with hidpi sprite support.
Also managing several "thematic" sprites a breeze.
Best workflow used in conjunction with grunt-svg2png.
Online preview (test folder).
Online Documentation (generated with SassDoc).
sprite-map-create($name [, $spacing])
icon($map, $sprite [, $offset, $format])
icon-single($map, $sprite [, $format])
icon-generated($map, $sprite [, $pos, $centered, $format])
// Default settings.
$icons-defaults: (
// Space around sprites in generated spritemap.
// Useful with `$offset` parameter.
// This setting is global for all spritemaps.
// Can be set per spritemap with the `$spacing` parameter.
spacing: 0,
// Main icons directory. `sprite-map-create()`, base for sub dirs.
dir: "icons",
// Name of the png sub-folders.
dir-png: "png",
// Name of the hidpi png sub-folders.
dir-hidpi: "png_2x",
// Scale of the hidpi pngs.
hidpi-scale: 2,
// Minimum resolution ratio used in the hidpi media query.
hidpi-ratio: 1.3,
// Whether to embed icons as data URI in the `icon-single()` mixin.
single-embed: true,
// Default file format unless overridden by parameter, svg | png.
format: "svg",
// Whether to support legacy browsers, svg fallback.
legacy: true
);
Override default values in a new $icons-settings
map.
git clone git@github.com:pascalduez/SassyIcons.git
npm install sassyicons --save
bower install SassyIcons --save
Since SassyIcons is dependant on Compass, this is the recommended installation and usage.
gem 'SassyIcons', '~>0.1.0'
to your Gemfile
bundle install --path .
(manage your gems in project dir, not globally)require 'SassyIcons'
to your config.rb
@import 'SassyIcons'
@import 'SassyIcons';
bundle exec compass watch
icon-generated()
and generated()
Don't force absolute positioning.generated()
mixinicon-generated()
configurable calc()
fallbackbackground-size
@content
thing to pass additional rules to .svg
.npm install
grunt test
SassyIcons is available under the MIT license.
FAQs
Unknown package
We found that SassyIcons 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
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.