Security News
RubyGems.org Adds New Maintainer Role
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.
@littlemissrobot/sass-mixins
Advanced tools
Little Miss Robot sass mixins library that helps execute reusable and complex tasks
This repository contains SASS mixins 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 mixins that execute a simple task and provide functionality based on certain variables.
$ npm install --save-dev @littlemissrobot/sass-mixins
@import "~@littlemissrobot/sass-mixins/lib/mixins";
Apply styling to every element above the given minimum width. This mixin can wrap CSS selectors with their respective properties or wrap properties within selectors.
Parameters:
div {
margin: 1rem;
@include respond-at(720px) {
margin: 3rem;
}
}
@include respond-at(720px) {
div {
margin: 3rem;
}
}
Apply styling to every element below the given maximum width. This mixin can wrap CSS selectors with their respective properties or wrap properties within selectors.
Parameters:
div {
margin: 1rem;
@include respond-to(720px) {
margin: 3rem;
}
}
@include respond-to(720px) {
div {
margin: 3rem;
}
}
Apply styling to every element between a minimum and maximum width. This mixin can wrap CSS selectors with their respective properties or wrap properties within selectors.
Parameters:
div {
margin: 1rem;
@include respond-between(720px, 960px) {
margin: 3rem;
}
}
@include respond-between(720px, 960px) {
div {
margin: 3rem;
}
}
Load a font file. Every version of the font should have the same name.
Parameters:
@include get-font("Roboto", "/fonts/roboto/roboto", 300, normal);
This mixin assume you have defined $font-styles and $breakpoints map. Apply a font style defined within the $font-styles map. This also makes use of the $breakpoints variable to change the style based off viewport.
Parameters:
$breakpoints: (
viewport-9: (
width: 960px
),
viewport-12: (
width: 1200px
)
);
$font-styles: (
paragraph: (
base: (
font-family: "Roboto",
font-size: 1.6rem,
viewport-9: (
font-size: 2rem
)
),
small: (
font-family: "Roboto",
font-size: 1.2rem,
viewport-12: (
font-size: 1.4rem
)
)
),
);
p {
@include set-typo("paragraph" "base");
}
small {
@include set-typo("paragraph" "small");
}
Create CSS properties that are responsive by defining a minimum and maximum value. For example: responsive font-sizes.
p {
@include responsive-prop("font-size", 2vw, 2rem, 4rem);
}
p {
@include responsive-prop("font-size" "line-height", 2vw, 2rem, 4rem);
}
FAQs
Little Miss Robot sass mixins library that helps execute reusable and complex tasks.
The npm package @littlemissrobot/sass-mixins receives a total of 27 weekly downloads. As such, @littlemissrobot/sass-mixins popularity was classified as not popular.
We found that @littlemissrobot/sass-mixins 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
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.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.