Coder Social home page Coder Social logo

drops's Introduction

DevOps By Rultor.com

Build Status 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":

CSS class Style
bold font-weight: bold;
italic font-style: italic;
underline text-decoration: underline;
monospace font-family: monospace;
serif font-family: serif;
sans-serif font-family: sans-serif;
right text-align: right;
left text-align: left;
center text-align: center;
smaller font-size: .8em;
larger font-size: 1.2em;
invisible display: none;

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

drops's People

Contributors

yegor256 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.