Giter Site home page Giter Site logo

checked-ui's Introduction

checked

A collection of styles for checkbox and radio inputs made purely with CSS.

How to use?

Add checked.min.css to your project.

Add relevant classes based on the checkbox style you want.

Classic

<div class=“checked-boxes”>
  <input name="desserts" id="dessert1" type=“checkbox” value=“yes”>
  <label for="dessert1">Ice Cream</label>
</div>

Boxes

<div class=“checked-boxes”>
  <input name="awesome" id="awesomeY" type=“radio” value=“yes”>
  <label for="awesomeY">Yes!</label>
</div>

Circle

<div class=“checked-circle”>
  <input name="theme" id="theme-dark" type=“radio” value=“dark”>
  <label for="theme-dark"><i class="fa fa-moon"><i></label>
</div>

Tiles

<div class=“checked-tiles”>
  <input name="awesome" id="awesomeY" type=“radio” value=“yes”>
  <label for="awesomeY">Yes!</label>
</div>

Bubbles

Use checked-bubble to display options as bubbles with the sizes calculated either automatically (by adding wrapper-bubbles--auto to wrapper div) or defined (by adding md or lg to bubble div).

Bubbles have a default filled style, to get unselected bubbles to appear as outlines use checked-bubble--outline.

<div class=“wrapper-bubbles wrapper-bubbles--auto”> 
  <div class=“checked-bubble”> 
    <input name="icecream" id="d-icecream" type=“checkbox” value="icecream">
    <label for="d-icecream">Ice cream</label>
  </div>
  ...
</div>

Rating

Add checked-rating--scale to get a scale of colours

<div class=“checked-rating”> 
  <input name="L" id="size-large" type=“radio” value=“L”> 
  <label for="size-large">L</label> 

  <input name="M" id="size-medium" type=“radio” value=“M”> 
  <label for="size-medium">L</label> 

  <input name="S" id="size-small" type=“radio” value="S"> 
  <label for="size-small">L</label> 
</div>

How to contribute?

Run npm build to watch scss file changes

checked-ui's People

Contributors

shivanarrthine avatar

Stargazers

RTG™ 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.