"Check!"
Bootstrap 3.3.0 Snippet by cojahmetov

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
<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 ---------->
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
<div class="container">
<h1 class="text-center">Check!</h1>
</div>
<div class="container">
<div class="well well-sm text-center">
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-default btn-lg active">
<span class="">
<i class="fa fa-check"></i> Pago
</span>
<input type="checkbox" autocomplete="off" checked>
<span class="">
<i class="fa fa-warning"></i> Não pago
</span>
</label>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
.btn span:nth-of-type(1) {
display: none;
}
.btn span:last-child {
display: block;
}
.btn.active span:nth-of-type(1) {
display: block;
}
.btn.active span:last-child {
display: none;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: