Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*checkbox style*/
- /*HTML*/
- <label>Restaurant
- <input type="checkbox">
- <span class="checkmark"></span>
- </label>
- /*css*/
- label {
- font-weight: 400;
- line-height: 20px;
- display: block;
- position: relative;
- padding-left: 30px;
- margin-bottom: 20px;
- font-size: 18px;
- -webkit-user-select: none;
- -moz-user-select: none;
- -ms-user-select: none;
- user-select: none;
- }
- label input {
- position: absolute;
- opacity: 0;
- cursor: pointer;
- }
- label span {
- position: absolute;
- top: 0;
- left: 0;
- height: 18px;
- width: 18px;
- background-color: #b3b2b2;
- transition: all 0.4s;
- }
- label:hover input ~ span,
- label input:checked ~ span {
- background-color: #28aaa9;
- }
- label input:checked + .ic-single-psidebar form label {
- color: #28aaa9;
- }
- label span:after {
- position: absolute;
- content: "";
- display: none;
- }
- label input:checked ~ span:after {
- display: block;
- }
- label span:after {
- left: 7px;
- top: 2px;
- width: 6px;
- height: 11px;
- border: solid white;
- border-width: 0px 2px 2px 0;
- -webkit-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- transform: rotate(45deg);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement