Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sebsebmc/add-remove
A Toggle Add/Remove and Remove/Add buttons for the web
https://github.com/sebsebmc/add-remove
Last synced: 13 days ago
JSON representation
A Toggle Add/Remove and Remove/Add buttons for the web
- Host: GitHub
- URL: https://github.com/sebsebmc/add-remove
- Owner: sebsebmc
- License: apache-2.0
- Created: 2015-05-18T22:45:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-08-23T01:13:31.000Z (over 2 years ago)
- Last Synced: 2023-03-28T00:14:54.569Z (over 1 year ago)
- Language: CSS
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Add/Remove
This is a simple combination of css rules for adding a toggleable button that represents add and remove without the need of JavaScript. Since this is all
Though I have not done much extensive testing, all of the features should work in IE9+ and vendor prefixes are added for Safari and IE support.To use make a checkbox plus label combo and then add the class you want to use
```
```
**Don't forget to use an id in the input and match it with the ```for``` attribute in the label**
### Remove-Add vs Add-Remove
I have included 2 separate classes for styling checkboxes because I wanted to allow for easy handling of making the default to either be add or remove instead of requiring that the inputs be checked in order to get the desired result.
If you only want one, then you can simply and safely delete all the rules that begin as ```input.add-remove``` or ```input.remove-add```.### Further Styling
The elements themselves scale very well based on the width and height in the label and changing colors is very easy as well.----------
An example and overview can be found here: http://theshrouded.com/wp/?p=16
Inspired by [cdflynn's Android crossview](https://github.com/cdflynn/crossview)