Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
@littlemissrobot/sass-functions
Advanced tools
Little Miss Robot sass functions library that helps execute reusable and complex tasks
This repository contains SASS functions that we, at Little Miss Robot, like to use to make our wonderful lives in the world of SASS easier and more managable.
This package contains no styling but simply provides a couple of functions that execute a simple task.
$ npm install --save-dev @littlemissrobot/sass-functions
@import "~@littlemissrobot/sass-functions/lib/functions";
Convert a rem value to a pixel value. Do note that we assume here that on the html tag you have defined that the font-size is 62.5%, to make sure that the 1rem is equal to 10px. If you want to overwrite this than you can simply pass a second parameter that indicates how much 1rem is in pixels.
Parameters:
margin: rem-to-px(5rem);
Convert a pixel value to a rem value. Do note that we assume here that on the html tag you have defined that the font-size is 62.5%, to make sure that the 1rem is equal to 10px. If you want to overwrite this than you can simply pass a second parameter that indicates how much 1rem is in pixels.
Parameters:
margin: px-to-rem(5rem);
Removes the unit from a value. For example: 10px becomes 10.
Parameters:
strip-unit(10px);
The standard map-merge function only lets you merge 2 maps together. This function makes use of map-merge but merges as much maps together as you want.
Parameters
map-collect($map1, $map2, $map3);
Reverses the order of the keys in a map
Parameters
Trims a map to a certain target key. Returns a new map that is trimmed down until the key is met.
Parameters:
trim-map-to($breakpoints, "viewport-9");
Trims a map to a certain target key. Reverses the map to start from the top and goes down to the bottom. It trims the keys until the target is met.
Parameters:
trim-reverse-map-to($breakpoints, "viewport-9");
This function assumes you have a $breakpoints map defined and retrieves the width defined within the breakpoint key.
Parameters:
$breakpoints: (
viewport-9: (
width: 960px
),
viewport-12: (
width: 1200px
)
);
get-breakpoint("viewport-9");
FAQs
Little Miss Robot sass functions library that helps execute reusable and complex tasks.
We found that @littlemissrobot/sass-functions 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
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.