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

everycss-mixin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

everycss-mixin

Add mixin, include and extend support

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

#EveryCSS-mixin

Add mixin, include and extend support

##@include

@mixin demo {
  border: 1px solid red;
  color: red;
  font-weight: bold;
}

.demo1 {
  @include demo;
}
.demo2 {
  background: black;
  @include demo;
}
.demo3 {
  background: white;
  @include demo;
}

output:

.demo1 {
  border: 1px solid red;
  color: red;
  font-weight: bold;
}
.demo2 {
  background: black;
  border: 1px solid red;
  color: red;
  font-weight: bold;
}
.demo3 {
  background: white;
  border: 1px solid red;
  color: red;
  font-weight: bold;
}

##@extend

@mixin demo {
  border: 1px solid red;
  color: red;
  font-weight: bold;
}

.demo1 {
  @include demo;
}
.demo2 {
  background: black;
  @extend demo;
}
.demo3 {
  background: white;
  @extend demo;
}

output:

.demo2, .demo3 {
  border: 1px solid red;
  color: red;
  font-weight: bold;
}
.demo1 {
  border: 1px solid red;
  color: red;
  font-weight: bold;
}
.demo2 {
  background: black;
}
.demo3 {
  background: white;
}

Keywords

everycss

FAQs

Package last updated on 01 Jun 2014

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