<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 rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<div class="container">
<div class="row">
<h1>A User Profile Card <br></h1>
<!-- Contend -->
<div id="card" class="card">
<div class="col col_4 user-profile-pic">
<img class="img-responsive user-profile" alt="avatar image" src="http://web-crew.org/img/profile.jpg">
<div class="edit-pic">
<a href="http://web-crew.org" target="_blank" class="fa fa-facebook"></a>
<a href="http://todgmbh.de" target="_blank" class="fa fa-instagram"></a>
<a href="#" target="_blank" class="fa fa-twitter"></a>
<a href="#" target="_blank" class="fa fa-google"></a>
</div>
<div class="username">
<h2>Andy Doe <small><i class="fa fa-map-marker"></i> Germany (Munich)</small></h2>
<p><i class="fa fa-briefcase"></i> Administrator</p>
<a href="#" target="_blank" class="btn-o"> <i class="fa fa-user-plus"></i> Add Friend </a>
<a href="#" target="_blank" class="btn-o"> <i class="fa fa-plus"></i> Follow </a>
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="fa fa-ellipsis-v pull-right"></span></a>
<ul class="dropdown-menu pull-right">
<li><a href="http://web-crew.org">Start Chat <i class="fa fa-commenting"></i></a></li>
<li><a href="http://todgmbh.de">Send P.M. <i class="fa fa-paper-plane"></i></a></li>
<li><a href="#">Report <i class="fa fa-bug"></i></a></li>
<li><a href="#">Block <i class="fa fa-lock"></i></a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</div>
<small><a href="http://bootsnipp.com/Gurdeep Osahan">Thanks Goes To The Original Author: Gurdeep Osahan</a></small>
</div>
@import url(https://fonts.googleapis.com/css?family=Oswald:400,300);
@import url(https://fonts.googleapis.com/css?family=Open+Sans);
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
background: #2d2c41;
font-family: 'Open Sans', Arial, Helvetica, Sans-serif, Verdana, Tahoma;
}
.user-profile-pic {
position: relative;
}
.username {
bottom: 0;
color: #ffffff;
padding: 30px 15px 4px;
position: absolute;
width: 100%;
background: -moz-linear-gradient(top, rgba(0,0,0,0) 0%, #2d2c41 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 0%, #2d2c41 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, #2d2c41 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a64d4d4d',GradientType=0 ); /* IE6-9 */
}
.user-profile {
border-radius: 4px 4px 0 0;
}
.username > h2 {
font-family: oswald;
font-size: 27px;
font-weight: lighter;
margin: 31px 0 4px;
position: relative;
text-shadow: 1px 1px 2px #000000;
text-transform: uppercase;
}
.username > h2 small {
color: #ffffff;
font-family: open sans;
font-size: 13px;
font-weight: 400;
position: relative;
}
.username .fa{
color: #ffffff;
font-size: 14px;
margin: 0 0 0 4px;
position: static;
}
.edit-pic a {
background: rgba(0, 0, 0, 0) none repeat scroll 0 0;
border: 1px solid #ffffff;
border-radius: 50%;
color: #ffffff;
font-size: 21px;
height: 39px;
line-height: 38px;
margin: 8px;
text-align: center;
width: 39px;
-webkit-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
text-decoration: none !important;
display: list-item;
list-style: none;
background-color: rgba(255, 255, 255, 0.1)
}
.edit-pic a:hover {
font-size: 17px;
opacity: 0.9;
}
.edit-pic a:focus {
background:#b63b4d;
color: #fff;
border: 1px solid #b63b4d;
}
a:focus {
outline: none;
outline-offset: 0px;
}
.edit-pic {
position: absolute;
right: 0;
top: 0;
opacity: 0;
-webkit-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
}
#card:hover .edit-pic {
opacity: unset;
-webkit-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.btn-o {
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 2px;
color: #ffffff !important;
display: inline-block;
font-family: open sans;
font-size: 15px !important;
font-weight: normal !important;
margin: 0 0 10px;
padding: 5px 11px;
text-decoration: none !important;
background-color: rgba(255, 255, 255, 0.1);
-webkit-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.btn-o:hover {
background-color: rgba(255, 255, 255, 0.4);
color: #fff !important;
}
.btn-o:focus {
background:#b63b4d;
color: #fff;
border: 1px solid #b63b4d;
}
.submenu .user-profile {
background: rgba(255, 255, 255, 0.1) none repeat scroll 0 0 !important;
border-radius: 50%;
height: 60px;
padding: 2px;
width: 60px;
}
ul {
list-style-type: none;
}
a {
color: #b63b4d;
text-decoration: none;
}
/** =======================
* Contend Principle
===========================*/
h1 {
color: #FFF;
font-size: 24px;
font-weight: 400;
text-align: center;
margin-top: 40px;
}
h1 a {
color: #c12c42;
font-size: 16px;
}
.card {
width: 100%;
max-width: 360px;
margin: 30px auto 20px;
background: #FFF;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
}
.card .link {
cursor: pointer;
display: block;
padding: 15px 15px 15px 42px;
color: #4D4D4D;
font-size: 14px;
font-weight: 700;
border-bottom: 1px solid #CCC;
position: relative;
-webkit-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.card li:last-child .link {
border-bottom: 0;
}
.card li i {
position: absolute;
top: 16px;
left: 12px;
font-size: 18px;
color: #595959;
-webkit-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.card li.open .link {
color: #b63b4d;
}
.card li.open i {
color: #111;
}
/**
* Submenu
-----------------------------*/
.submenu {
display: none;
background: #444359;
font-size: 14px;
}
.submenu li {
border-bottom: 1px solid #4b4a5e;
}
.submenu a {
display: block;
text-decoration: none;
color: #d9d9d9;
padding: 12px;
padding-left: 42px;
-webkit-transition: all 0.25s ease;
-o-transition: all 0.25s ease;
transition: all 0.25s ease;
}
.submenu a:hover {
background: #b63b4d;
color: #FFF;
}
.nav.navbar-nav .dropdown-toggle {
padding: 0 !important;
}
.dropdown-toggle span {
background: rgba(255, 255, 255, 0.1) none repeat scroll 0 0;
border: 1px solid rgba(255, 255, 255, 0.5);
border-radius: 50px;
font-size: 23px !important;
height: 38px;
line-height: 40px;
margin: 0 !important;
padding: 0 !important;
text-align: center;
width: 38px;
text-shadow:none !important;
}
.nav.navbar-nav {
bottom: 10px;
position: absolute;
right: 12px;
transition: all 0.4s ease 0s;
}
.navbar-nav > li > .dropdown-menu {
border-radius: 2px !important;
margin-top: 10px;
min-width: 101px;
padding: 0;
}
.navbar-nav > li > .dropdown-menu li a {
color: #333333 !important;
font-size: 13px !important;
font-weight: 600 !important;
padding: 2px 8px !important;
text-align: right !important;
text-shadow:none !important;
}
.dropdown-toggle {
background: rgba(0, 0, 0, 0) none repeat scroll 0 0 !important;
font-size: 15px !important;
}
.dropdown {
-webkit-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.dropdown-menu>li>a {
color:#428bca;
-webkit-transition: all 0.4s ease;
-o-transition: all 0.4s ease;
transition: all 0.4s ease;
}
.dropdown ul.dropdown-menu {
border-radius:4px;
box-shadow:none;
}
.dropdown ul.dropdown-menu:before {
content: "";
border-bottom: 10px solid #fff;
border-right: 10px solid transparent;
border-left: 10px solid transparent;
position: absolute;
top: -8px;
right: 8px;
z-index: 10;
}
$(function() {
var Accordion = function(el, multiple) {
this.el = el || {};
this.multiple = multiple || false;
// Variables privadas
var links = this.el.find('.link');
// Evento
links.on('click', {el: this.el, multiple: this.multiple}, this.dropdown)
}
Accordion.prototype.dropdown = function(e) {
var $el = e.data.el;
$this = $(this),
$next = $this.next();
$next.slideToggle();
$this.parent().toggleClass('open');
if (!e.data.multiple) {
$el.find('.submenu').not($next).slideUp().parent().removeClass('open');
};
}
var accordion = new Accordion($('#accordion'), false);
});