Skip to content

shivanarrthine/checked-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors