Socket
Socket
Sign inDemoInstall

polythene-core-css

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

polythene-core-css

* `styler`: Wrapper around j2c to add styles to the head * `mixin`: CSS mixins * `flex`: CSS flex mixins


Version published
Weekly downloads
17
decreased by-66%
Maintainers
1
Weekly downloads
 
Created
Source

CSS tools

  • styler: Wrapper around j2c to add styles to the head
  • mixin: CSS mixins
  • flex: CSS flex mixins

Styler

import { styler } from "polythene-core-css";

const styles = [
  {
    ".info": {
      "background-color": "#FF1744"
    }
  }
];

styler.add("app", styles);

Styler functions

  • add
  • addToDocument
  • remove
  • styleComponent

Mixins

import { mixin } from "polythene-core-css";

const styles = [{
  ".title": [
    mixin.ellipsis(1)
  ]
}];

Mixin functions

  • clearfix
  • createStyles
  • defaultTransition
  • ellipsis
  • fit
  • fontSmoothing
  • sticky
  • vendorize

Flexbox mixins

import { flex } from "polythene-core-css";

const styles = [{
  ".horizontal-blocks": [
    flex.layoutHorizontal
  ]
}];

Flexbox mixin functions

  • flex
  • flexAuto
  • flexAutoVertical
  • flexIndex
  • flexGrow
  • layout
  • layoutAroundJustified
  • layoutCenter
  • layoutCenterCenter
  • layoutCenterJustified
  • layoutEnd
  • layoutEndJustified
  • layoutHorizontal
  • layoutHorizontalReverse
  • layoutInline
  • layoutJustified
  • layoutStart
  • layoutStartJustified
  • layoutVertical
  • layoutVerticalReverse
  • layoutWrap
  • layoutWrapReverse
  • selfCenter
  • selfEnd
  • selfStart
  • selfStretch

FAQs

Package last updated on 05 Jun 2017

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