Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .toggle-1 {
- font-family: Helvetica, Arial, sans-serif;
- display: inline-block;
- vertical-align: top;
- margin: 0 15px 0 0;
- }
- .toggle-1__input {
- display: none;
- }
- .toggle-1__button {
- position: relative;
- display: inline-block;
- font-size: 1rem;
- line-height: 20px;
- text-transform: uppercase;
- background-color: #f2395a;
- border: solid 1px #f2395a;
- color: white;
- width: 80px;
- height: 30px;
- transition: all 0.3s ease;
- cursor: pointer;
- }
- .toggle-1__button::before {
- position: absolute;
- top: 5px;
- left: 38px;
- content: "off";
- display: inline-block;
- height: 20px;
- padding: 0 3px;
- background: white;
- color: #f2395a;
- transition: all 0.3s ease;
- }
- .toggle-1__input:checked + .toggle-1__button {
- background: #00b3b4;
- border: solid 1px #00b3b4;
- }
- .toggle-1__input:checked + .toggle-1__button::before {
- left: 5px;
- content: "on";
- color: #00b3b4;
- }
- .toggle-2 {
- font-family: Helvetica, Arial, sans-serif;
- font-size: 0.8rem;
- display: inline-block;
- vertical-align: top;
- margin: 0 15px 0 0;
- }
- .toggle-2__input {
- display: none;
- }
- .toggle-2__button {
- position: relative;
- display: inline-block;
- line-height: 20px;
- text-transform: uppercase;
- background: white;
- color: #aaa;
- border: solid 1px #ccc;
- padding: 5px 10px 5px 30px;
- transition: all 0.3s ease;
- cursor: pointer;
- }
- .toggle-2__button::before {
- position: absolute;
- top: 10px;
- left: 10px;
- display: inline-block;
- width: 10px;
- height: 10px;
- background: #ccc;
- content: "";
- transition: all 0.3s ease;
- border-radius: 100%;
- }
- .toggle-2__input:checked + .toggle-2__button {
- background: #00b3b4;
- border-color: #00b3b4;
- color: white;
- }
- .toggle-2__input:checked + .toggle-2__button::before {
- background-color: white;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement