Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 689 Bytes

File metadata and controls

43 lines (28 loc) · 689 Bytes

iotaCSS is now a monorepo and all individual repositories are part of it. Please open issues or PRs here: https://github.com/iotacss/iotacss.

Opacity Utility

The opacity utility contains helper classes for the opacity CSS property.

Installation

npm install --save iotacss-utils-opacity

Options

$iota-utils-opacity-namespace : 'opacity-' !default;

$iota-utils-opacity-sizes     : () !default;

Example

$iota-utils-opacity-sizes: (
  30: 0.3,
  60: 0.6
);

It will generate:

.u-opacity-30 {
  opacity: 0.3 !important;
}

.u-opacity-60 {
  opacity: 0.6 !important;
}