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 (Dart Sass) based mixins that we, at Little Miss Robot, like to use to make our wonderful lives in the world of SASS more wondeful.
This package does not contain or generate any CSS by itself, only if a mixin is
inlucded. It simply provides a couple of @mixin
statements for you to make use
of.
This library makes use of Dart Sass, which is the primary implementation of Sass. Make sure that your Sass compiler is making use of Dart Sass.
This means that if you are using a task manager (like Gulp) or a module bundler (like Webpack), you must indicate which compiler it should use for compiling Sass to CSS.
Furthermore, this library makes heavy use of Sass modules:
@use
. Therefore we
recommend importing and using this library with the @use
statement.
# As a dependency
$ npm install @littlemissrobot/sass-mixins
# As a dev-dependency
$ npm install --save-dev @littlemissrobot/sass-mixins
@use "YOUR-PATH-TO-NODE_MODULES/@littlemissrobot/sass-mixins" as _m;
_m
namespace:ul {
@include _m.reset_list();
}
reset
category are namespaced with
_m.reset_[MIXIN-NAME]
or typography
would be
_f.typography_[MIXIN-NAME]
.@use "YOUR-PATH-TO-NODE_MODULES/@littlemissrobot/sass-mixins/reset" as _reset;
_reset
namespace.h1 {
@include _reset.list();
}
That's (mind-blowingly) it! There are a number of partials to use the mixins from:
"sass-mixins/font" as _font;
"sass-mixins/other" as _other;
"sass-mixins/prop" as _prop;
"sass-mixins/reset" as _reset;
"sass-mixins/screen-reader" as _screen-reader;
"sass-mixins/typography" as _typography;
These mixins are namespace with font_:
@use "@littlemissrobot/sass-mixins" as _m;
@include _m.font_load("Open Sans", "./open-sans");
Or can be included through the partial:
@use "@littlemissrobot/sass-mixins/font" as _font;
@include _font.load("Open Sans", "./open-sans");
Load font files with the extensions .woff and .woff2. Every version of the font should have the same name.
Parameters:
@use "@littlemissrobot/sass-mixins/font" as _font;
@include _font.load("Open Sans", "./assets/fonts/open-sans", "300", normal);
These mixins are namespace with other_:
@use "@littlemissrobot/sass-mixins" as _m;
@include _m.other_clearfix();
Or can be included through the partial:
@use "@littlemissrobot/sass-mixins/other" as _other;
@include _other.clearfix();
Used in float layouts where elements are floated to be stacked horizontally. Automatically clear its child elements, so that you don't need to add additional markup.
@use "@littlemissrobot/sass-mixins/other" as _other;
@include _other.clearfix();
These mixins are namespace with prop_:
@use "@littlemissrobot/sass-mixins" as _m;
@include _m.prop_responsive(margin-top, 5vw, 3rem, 7rem);
Or can be included through the partial:
@use "@littlemissrobot/sass-mixins/prop" as _prop;
@include _prop.responsive(margin-top, 5vw, 3rem, 7rem);
Create a CSS property that is responsive by defining a minimum and maximum value. For example: responsive font-sizes.
Parameters:
@use "@littlemissrobot/sass-mixins/prop" as _prop;
@include _prop.responsive(margin-top, 5rem, 3vw, 7vw);
These mixins are namespace with reset_:
@use "@littlemissrobot/sass-mixins" as _m;
@include _m.reset_list();
Or can be included through the partial:
@use "@littlemissrobot/sass-mixins/reset" as _reset;
@include _reset.list();
Reset a button by removing the default styling properties.
Parameters:
@use "@littlemissrobot/sass-mixins/reset" as _reset;
@include _reset.button();
@include _reset.button(!important);
Reset a list by removing the default styling properties.
Parameters:
@use "@littlemissrobot/sass-mixins/reset" as _reset;
@include _reset.list();
@include _reset.list(!important);
These mixins are namespace with screen-reader_:
@use "@littlemissrobot/sass-mixins" as _m;
@include _m.screen-reader_visually-hidden();
Or can be included through the partial:
@use "@littlemissrobot/sass-mixins/screen-reader" as _screen-reader;
@include _screen-reader.visually-hidden();
Only display content to screen readers, hide the element offscreen to keep its functionality and behaviour. DO NOT COMPROMISE ACCESSIBILITY.
Parameters:
@use "@littlemissrobot/sass-mixins/screen-reader" as _screen-reader;
@include _screen-reader.visually-hidden();
@include _screen-reader.visually-hidden(!important);
These mixins are namespace with typography_:
@use "@littlemissrobot/sass-mixins" as _m;
@include _m.typography_truncate();
Or can be included through the partial:
@use "@littlemissrobot/sass-mixins/typography" as _typography;
@include _typography.truncate();
Add 3 dots to a text element that goes out of its bounds. This is always limited to one straight line.
@use "@littlemissrobot/sass-mixins/typography" as _typography;
@include _typography.truncate();
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.