New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mint-sass

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mint-sass

Sweet unit library

  • 2.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

mint-sass

Sweet unit library

Legend
Unit Functions
$mint-base
mint()
mint-compress()
mint-strip()

Unit Functions

Shorthands for units based off mint() that assume a base equal to $mint-base

  • px(values, unit, [scale])
  • em(values, unit, [scale])
  • rem(values, unit, [scale])
  • un(values, unit, [scale])

$mint-base

Base font size (16 by default)

mint(values, base, scale, unit)

Converts and scales values

  • values (List) List of values for mint to process
  • base (Number) Base font size
  • scale (Number) Relative font size or scale
  • unit (String) Unit for each number
// in
.foo {
  margin: mint(8 4 8 4, 16, 16, em);
}

// out
.foo {
  margin: 0.5em 0.25em;
}

mint-compress(values)

Compress values to their shortest form

// in
.foo {
  margin: mint-compress(8px 4px 8px 4px);
}

// out
.foo {
  margin: 8px 4px;
}

mint-strip(value)

Strip a unit from a number

// in
.foo {
  line-height: mint-strip(16px);
}

// out
.foo {
  line-height: 16;
}

Keywords

FAQs

Package last updated on 13 Oct 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc