<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-fluid">
<div class="row">
<div class="btn-group btn-group-justified">
<div class="btn-group">
<a href="#" class="btn btn-nav">
<h4>Nutrição</h4>
</a>
</div>
<div class="btn-group">
<button type="button" class="btn btn-nav">
<h4>Pacientes</h4>
</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-nav">
<h4>Agendamentos</h4>
</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-nav">
<h4>Sair</h4>
</button>
</div>
</div>
</div>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div>
<li>
<a href="#" />">Sair <span class="glyphicon glyphicon-off"></span></a>
</li>
<nav class="navbar navbar-default" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span> <span
class="icon-bar"></span> <span class="icon-bar"></span> <span
class="icon-bar"></span>
</button>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<div class="btn-group">
<button type="button" class="btn btn-nav">
<h4>Calendar</h4>
</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-nav">
<h4>Statistics</h4>
</button>
</div>
<div class="btn-group">
<button type="button" class="btn btn-nav">
<h4>Events</h4>
</button>
</div>
<li>
<a href="#" />">Sair <span class="glyphicon glyphicon-off"></span></a>
</li>
<li>
<a href="#" />">Sair <span class="glyphicon glyphicon-off"></span></a>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li>
<a style="font-weight: bold;">Bem-vindo(a),Priscila!</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
/*
Inspired by http://dribbble.com/shots/890759-Ui-Kit-Metro/attachments/97174
*/
*, *:before, *:after {
/* Chrome 9-, Safari 5-, iOS 4.2-, Android 3-, Blackberry 7- */
-webkit-box-sizing: border-box;
/* Firefox (desktop or Android) 28- */
-moz-box-sizing: border-box;
/* Firefox 29+, IE 8+, Chrome 10+, Safari 5.1+, Opera 9.5+, iOS 5+, Opera Mini Anything, Blackberry 10+, Android 4+ */
box-sizing: border-box;
}
body {
background: url(http://habrastorage.org/files/90a/010/3e8/90a0103e8ec749c4843ffdd8697b10e2.jpg);
text-align: center;
padding-top: 40px;
}
.btn-nav {
background-color: #fff;
border: 1px solid #e0e1db;
-webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
-moz-box-sizing: border-box; /* Firefox, other Gecko */
box-sizing: border-box; /* Opera/IE 8+ */
}
.btn-nav:hover {
color: #1fa67b;
cursor: pointer;
-webkit-transition: color 1s; /* For Safari 3.1 to 6.0 */
transition: color 1s;
}
.btn-nav.active {
color: #1fa67b;
padding: 2px;
border-top: 6px solid #1fa67b;
border-bottom: 6px solid #1fa67b;
border-left: 0;
border-right: 0;
box-sizing:border-box;
-moz-box-sizing:border-box;
-webkit-box-sizing:border-box;
-webkit-transition: border 0.3s ease-out, color 0.3s ease 0.5s;
-moz-transition: border 0.3s ease-out, color 0.3s ease 0.5s;
-ms-transition: border 0.3s ease-out, color 0.3s ease 0.5s; /* IE10 is actually unprefixed */
-o-transition: border 0.3s ease-out, color 0.3s ease 0.5s;
transition: border 0.3s ease-out, color 0.3s ease 0.5s;
-webkit-animation: pulsate 1.2s linear infinite;
animation: pulsate 1.2s linear infinite;
}
.btn-nav.active:before {
content: '';
position: absolute;
border-style: solid;
border-width: 6px 6px 0;
border-color: #1fa67b transparent;
display: block;
width: 0;
z-index: 1;
margin-left: -6px;
top: 0;
left: 50%;
}
.btn-nav .glyphicon {
padding-top: 16px;
font-size: 40px;
}
.btn-nav.active p {
margin-bottom: 8px;
}
@-webkit-keyframes pulsate {
50% { color: #000; }
}
@keyframes pulsate {
50% { color: #000; }
}
@media (max-width: 480px) {
.btn-group {
display: block !important;
float: none !important;
width: 100% !important;
max-width: 100% !important;
}
}
@media (max-width: 600px) {
.btn-nav .glyphicon {
padding-top: 12px;
font-size: 26px;
}
}
var activeEl = 2;
$(function() {
var items = $('.btn-nav');
$( items[activeEl] ).addClass('active');
$( ".btn-nav" ).click(function() {
$( items[activeEl] ).removeClass('active');
$( this ).addClass('active');
activeEl = $( ".btn-nav" ).index( this );
});
});