<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">
<div class="row">
<div class="col-md-12">
<div class="update-nag">
<div class="update-split"><i class="glyphicon glyphicon-refresh"></i></div>
<div class="update-text">Cms v0.2.5 is available! <a href="#" class="doaction">Update Now</a> <label>X</label> </div>
</div>
</div>
<div class="col-md-12">
<div class="update-nag">
<div class="update-split update-info"><i class="glyphicon glyphicon-folder-open"></i></div>
<div class="update-text">Plugin <a href="#" class="doaction">Donatirino</a> v0.2 is available! <a href="#">Update Now</a> <label>X</label> </div>
</div>
</div>
<div class="col-md-12">
<div class="update-nag">
<div class="update-split update-success"><i class="glyphicon glyphicon-leaf"></i></div>
<div class="update-text">Theme <a href="#" class="doaction">WooStyliz</a> v1.4 is available! <a href="#">Update Now</a> <label>X</label> </div>
</div>
</div>
<div class="col-md-12">
<div class="update-nag">
<div class="update-split update-danger"><i class="glyphicon glyphicon-warning-sign"></i></div>
<div class="update-text"> <strong>Warning</strong> Some type of problem, fix it! <label id="3">X</label> </div>
</div>
</div>
</div>
</div>
body{
margin-top:10px;
background: #e0e0e0;
}
.update-nag{
display: inline-block;
font-size: 14px;
text-align: left;
background-color: #fff;
height: 40px;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.2);
-moz-box-shadow: 0 1px 1px 0 rgba(0,0,0,.2);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
margin-bottom: 10px;
}
.update-nag:hover{
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.4);
-moz-box-shadow: 0 1px 1px 0 rgba(0,0,0,.4);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.3);
}
.update-nag > .update-split{
background: #337ab7;
width: 33px;
float: left;
color: #fff!important;
height: 100%;
text-align: center;
}
.update-nag > .update-split > .glyphicon{
position:relative;
top: calc(50% - 9px)!important; /* 50% - 3/4 of icon height */
}
.update-nag > .update-split.update-success{
background: #5cb85c!important;
}
.update-nag > .update-split.update-danger{
background: #d9534f!important;
}
.update-nag > .update-split.update-info{
background: #5bc0de!important;
}
.update-nag > .update-text{
line-height: 19px;
padding-top: 11px;
padding-left: 45px;
padding-right: 10px;
}
.update-nag > .update-text label{
float:right;
margin-left: 20px;
cursor: pointer;
color:#d9534f;
}
.update-nag > .update-text label:hover{
color:#ce3c39;
}
$(document).ready(function(){
/**
* DissMiss StatusBar
*/
$( ".update-nag > .update-text label" ).click(function() {
$(this).parent().parent().fadeOut(300);
});
/**
* Do something on click
*/
$( ".update-nag .doaction" ).click(function() {
console.log('Do something');
});
});