0.2.0 • Published 4 months ago

drops v0.2.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 months ago

DevOps By Rultor.com

grunt PDD status License NPM version Hits-of-Code

First, you add it to your HTML:

<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/yegor256/drops@gh-pages/drops.min.css"/>
  </head>
</html>

And then, instead of this:

<p style="color: tomato; font-weight: bold; text-align: right;">Hello</p>

You do this:

<p class="tomato bold right">Hello</p>

Here is a full list of "drops" (excluding the colors):

CSS classStyle
boldfont-weight: bold;
italicfont-style: italic;
underlinetext-decoration: underline;
monospacefont-family: monospace;
seriffont-family: serif;
sans-seriffont-family: sans-serif;
righttext-align: right;
lefttext-align: left;
centertext-align: center;
smallerfont-size: .8em;
largerfont-size: 1.2em;
invisibledisplay: none;
blockdisplay: block;
inlinedisplay: inline;
inline-blockdisplay: inline-block;
position-staticposition: static;
position-relativeposition: relative;
position-absoluteposition: absolute;
position-fixedposition: fixed;
position-stickyposition: sticky;

There is also a set of drops for responsive design, like desktop-only and no-printer for desktop, printer, mobile, and tablet.

Also, all 140 web colors are supported, like tomato or blueviolet.

How to contribute

Fork repository, make changes, send us a pull request. We will review your changes and apply them to the master branch shortly, provided they don't violate our quality standards. To avoid frustration, before sending us your pull request please run full Grunt build:

$ npm install
$ npm test
0.2.0

4 months ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago

0.0.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.1

5 years ago