0.1.3 • Published 7 years ago

tvcss v0.1.3

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

tvcss

A flexible layout tool for television. Heavily inspired in HotCss.

Installation

$ npm install --save tvcss

Usage

  <!DOCTYPE html>
  <html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="tvcss" content="design-width=750"/>
    <script src="/path/to/tvcss.min.js"></script>
  </head>
  <body>
  </body>
  </html>

OR

  <meta name="tvcss" content="initial-dpr=1.0,min-width=320,max-width=1920,design-width=1920"/>
  <script src="//unpkg.com/tvcss/lib/tvcss.min.js"></script>

Config

Properties

  • dpr
  • minWidth
  • maxWidth
  • designWidth

Methods

License

MIT