You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

fluent-css

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fluent-css

write fluent css

1.2.1
Source
npmnpm
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

Create css files

npm run build

Customize output folder

npm run build -- --output='../css'

Start sass watch (not active by default)

npm run build -- --watch

Deactivate sourcemaps default is true

npm run build -- --sourcemaps=false

Deactivate compression

npm run build -- --compress=false

Build with gzip

npm run build -- --gzip

change output filename

npm run build -- --filename=main.css

Combine them!

npm run build -- --gzip --compress=false --souremap=false --ouput=../ filename=main.css

Usage of fluent-css

to import fluent-css, simply copy this line in your scss stylesheet

@import 'fluent-css'; // absolute path from your stylesheet e.g. -> ./sass/fluent-styles/fluent-styles;

or import only the package you need

@import 'fluent-css/display';

padding and margin

<div class="padding-px pb-14 pl-14">
	...
</div>

<div class="margin-percent mb-14 ml-14-important">
	...
</div>

Style behind

.padding-px { 
   &.pb-1 {
      padding-bottom: 1px;
   }

   &.pb-1-important {
      padding-bottom: 1px !important;
   }

   // also with minus for margin (invalid for padding!)
   &.mb-neg-1 {
      margin-bottom: -1px;
   }
}

Available units:

px, percent, em, rem

everything else is fluent

<div class="display-inline-block">
	<!-- easy! right? -->
</div>

Packages

- margin-padding.scss,
- position.scss,
- z-index.scss,
- display.scss

Too much?

limit to the packages you need

npm run build -- --packages='display, position'

Example for margin

alt text

Example for padding

alt text

Keywords

scss

FAQs

Package last updated on 24 Sep 2018

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