redesign user status, user picture

main
psychobunny 9 years ago
parent 18c0fa3b8a
commit f29f067e4b

@ -6,7 +6,7 @@
.cover { .cover {
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
min-height: 200px; height: 200px;
position: relative; position: relative;
margin-bottom: 1em; margin-bottom: 1em;
background-origin: content-box; background-origin: content-box;
@ -23,6 +23,13 @@
top: 94px; top: 94px;
border: 4px solid white; border: 4px solid white;
border-radius: 50%; border-radius: 50%;
.status {
position: absolute;
font-size: 23px;
top: 17px;
right: -3px;
}
} }
&:hover { &:hover {
@ -33,7 +40,7 @@
.controls { .controls {
text-align: center; text-align: center;
min-height: 200px; height: 200px;
line-height: 200px; line-height: 200px;
.opacity(0); .opacity(0);
.transition(opacity .15s linear); .transition(opacity .15s linear);
@ -107,7 +114,7 @@
margin-top: 200px; margin-top: 200px;
.container { .container {
min-height: 200px; height: 200px;
position: relative; position: relative;
} }
@ -115,10 +122,10 @@
margin-top: 300px; margin-top: 300px;
.cover, .container { .cover, .container {
min-height: 300px; height: 300px;
.controls { .controls {
min-height: 300px; height: 300px;
line-height: 300px; line-height: 300px;
} }
@ -159,10 +166,6 @@
.dropdown-toggle { .dropdown-toggle {
cursor: pointer; cursor: pointer;
} }
.status {
padding-bottom: 5px;
}
} }
.user-profile-picture { .user-profile-picture {

@ -6,18 +6,9 @@
<div class="account-picture-block panel panel-default"> <div class="account-picture-block panel panel-default">
<div class="panel-body"> <div class="panel-body">
<div class="text-center">
<!-- IF picture -->
<img src="{picture}" class="user-profile-picture" />
<!-- ELSE -->
<div class="user-icon user-profile-picture" style="background-color: {icon:bgColor};" title="{username}">{icon:text}</div>
<!-- ENDIF picture -->
</div>
<div> <div>
<div class="text-center"> <div class="text-center">
<span> <span>
<i component="user/status" class="fa fa-circle status {status}" title="[[global:{status}]]"></i>
<span class="account-username"> {username}</span> <span class="account-username"> {username}</span>
</span> </span>

@ -1,24 +1,25 @@
<!-- IMPORT partials/breadcrumbs.tpl --> <!-- IMPORT partials/breadcrumbs.tpl -->
<div class="cover" component="account/cover" style="background-image: url({cover:url}); background-position: {cover:position};"> <div class="cover" component="account/cover" style="background-image: url({cover:url}); background-position: {cover:position};">
<!-- IF isSelf -->
<div class="controls">
<span class="upload"><i class="fa fa-fw fa-4x fa-upload"></i></span>
<span class="resize"><i class="fa fa-fw fa-4x fa-arrows"></i></span>
</div>
<div class="save">[[groups:cover-save]] <i class="fa fa-fw fa-floppy-o"></i></div>
<div class="indicator">[[groups:cover-saving]] <i class="fa fa-fw fa-refresh fa-spin"></i></div>
<!-- ENDIF isSelf -->
<div class="avatar"> <div class="avatar">
<!-- IF picture --> <!-- IF picture -->
<img src="{picture}" class="user-profile-picture" /> <img src="{picture}" class="user-profile-picture" />
<!-- ELSE --> <!-- ELSE -->
<div class="user-icon user-profile-picture" style="background-color: {icon:bgColor};" title="{username}">{icon:text}</div> <div class="user-icon user-profile-picture" style="background-color: {icon:bgColor};" title="{username}">{icon:text}</div>
<!-- ENDIF picture --> <!-- ENDIF picture -->
<i component="user/status" class="fa fa-circle status {status}" title="[[global:{status}]]"></i>
</div> </div>
<div class="container"> <div class="container">
<!-- IMPORT partials/account/menu.tpl --> <!-- IMPORT partials/account/menu.tpl -->
<!-- IF isSelf -->
<div class="controls">
<span class="upload"><i class="fa fa-fw fa-4x fa-upload"></i></span>
<span class="resize"><i class="fa fa-fw fa-4x fa-arrows"></i></span>
</div>
<div class="save">[[groups:cover-save]] <i class="fa fa-fw fa-floppy-o"></i></div>
<div class="indicator">[[groups:cover-saving]] <i class="fa fa-fw fa-refresh fa-spin"></i></div>
<!-- ENDIF isSelf -->
</div> </div>
</div> </div>
Loading…
Cancel
Save