more chat styling

main
psychobunny 10 years ago
parent 147343028b
commit 4ecd12c6ef

@ -8,10 +8,11 @@
clear: both; clear: both;
list-style-type: none; list-style-type: none;
padding: 0.5em; padding: 0.5em;
height: 70px;
.pointer; .pointer;
&.typing { &.typing {
span:after { .username:after {
visibility: visible; visibility: visible;
} }
} }
@ -20,7 +21,9 @@
.bg-variant(@state-warning-bg); .bg-variant(@state-warning-bg);
} }
span { .username {
font-size: 18px;
&:after { &:after {
display: inline-block; display: inline-block;
font-family: "FontAwesome"; font-family: "FontAwesome";
@ -30,6 +33,13 @@
} }
} }
.teaser-timestamp {
font-size: 10px;
position: absolute;
top: 8px;
right: 24px;
}
a { a {
display: block; display: block;
.text-ellipsis; .text-ellipsis;
@ -40,11 +50,21 @@
} }
.user-img { .user-img {
width:24px; width: 50px;
height:24px; height: 50px;
float: left;
margin-top: 4px;
margin-right: 13px;
margin-left: 0.5em; margin-left: 0.5em;
border-radius: 50%; border-radius: 50%;
} }
.status {
position: absolute;
left: 65px;
font-size: 20px;
top: 11px;
}
} }
} }

@ -1,5 +1,5 @@
<div class="row"> <div class="row">
<div class="col-sm-3"> <div class="col-sm-4">
<!-- <!--
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading"> <div class="panel-heading">
@ -22,18 +22,18 @@
<ul class="chats-list recent-chats" data-nextstart="{nextStart}"> <ul class="chats-list recent-chats" data-nextstart="{nextStart}">
<!-- BEGIN chats --> <!-- BEGIN chats -->
<li data-username="{chats.username}" data-uid="{chats.uid}" class="<!-- IF chats.unread -->unread<!-- ENDIF chats.unread -->"> <li data-username="{chats.username}" data-uid="{chats.uid}" class="<!-- IF chats.unread -->unread<!-- ENDIF chats.unread -->">
<i component="user/status" title="[[global:{chats.status}]]" class="fa fa-circle status {chats.status}"></i>
<img class="user-img" src="{chats.picture}"> <img class="user-img" src="{chats.picture}">
<span>{chats.username}</span> <i component="user/status" title="[[global:{chats.status}]]" class="fa fa-circle status {chats.status}"></i>
<span class="username">{chats.username}</span>
<span class="teaser-content">{chats.teaser.content}</span> <span class="teaser-content">{chats.teaser.content}</span>
<span class="teaser-time timeago" title="{messages.timestampISO}"></span> <span class="teaser-timestamp timeago" title="{chats.teaser.timestampISO}"></span>
</li> </li>
<!-- END chats --> <!-- END chats -->
</ul> </ul>
</div> </div>
<div class="col-sm-9"> <div class="col-sm-8">
<!-- IF !allowed --> <!-- IF !allowed -->
<div class="alert alert-warning"> <div class="alert alert-warning">
[[error:chat-restricted]] [[error:chat-restricted]]

Loading…
Cancel
Save