"CSS Checkbox Inspiration"
Bootstrap 3.3.0 Snippet by rasheedbhutto

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<section class="section section--aava">
<h2 class="section__title">
Aava
</h2>
<div class="toggle-button toggle-button--aava">
<input id="toggleButton" type="checkbox">
<label for="toggleButton" data-on-text="On" data-off-text="Off"></label>
<div class="toggle-button__icon"></div>
</div>
<div class="toggle-button toggle-button--aava">
<input id="toggleButton2" type="checkbox">
<label for="toggleButton2" data-on-text="On" data-off-text="Off"></label>
<div class="toggle-button__icon"></div>
</div>
</section>
<section class="section section--tuuli">
<h2 class="section__title">
Tuuli
</h2>
<div class="toggle-button toggle-button--tuuli">
<input id="toggleButton3" type="checkbox">
<label for="toggleButton3"></label>
<div class="toggle-button__icon"></div>
</div>
<div class="toggle-button toggle-button--tuuli">
<input id="toggleButton4" type="checkbox">
<label for="toggleButton4"></label>
<div class="toggle-button__icon"></div>
</div>
</section>
<section class="section section--vesi">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
@import url(http://fonts.googleapis.com/css?family=Raleway:400,500,700);
*, *::after, *::before {
box-sizing: border-box; }
html, body {
height: 100%;
min-height: 100%; }
body {
margin: 0;
background: #3D5A59;
font-family: 'Raleway', Arial, sans-serif; }
.section {
text-align: center;
height: 100%;
margin: 0 auto;
padding: 6em 0; }
.section__title {
font-size: 1.1em;
text-transform: uppercase;
letter-spacing: 4px;
color: #fff;
margin-bottom: 3em; }
.section--aava {
background: #2994B2; }
.section--tuuli {
background: #474744; }
.section--vesi {
background: #54567A; }
.section--sade {
background: #2D4659; }
.section--ilma {
background: #095062; }
.section--tuli {
background: #068B78; }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: