Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
8fa06e7d
Commit
8fa06e7d
authored
May 23, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Markup and CSS for showing unread messages for a room
parent
3e5beaaf
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
136 additions
and
91 deletions
+136
-91
css/converse.css
css/converse.css
+84
-68
sass/_controlbox.scss
sass/_controlbox.scss
+7
-0
sass/_core.scss
sass/_core.scss
+23
-0
sass/_roomslist.scss
sass/_roomslist.scss
+21
-0
sass/_roster.scss
sass/_roster.scss
+0
-22
sass/converse.scss
sass/converse.scss
+1
-0
src/templates/rooms_list_item.html
src/templates/rooms_list_item.html
+0
-1
No files found.
css/converse.css
View file @
8fa06e7d
...
...
@@ -1241,6 +1241,74 @@
-ms-transform
:
rotate
(
359deg
);
-o-transform
:
rotate
(
359deg
);
transform
:
rotate
(
359deg
);
}
}
@-webkit-keyframes
pulse
{
0
%
{
-webkit-transform
:
scale
(
0
);
opacity
:
0.0
;
}
25
%
{
-webkit-transform
:
scale
(
0
);
opacity
:
0.1
;
}
50
%
{
-webkit-transform
:
scale
(
0.1
);
opacity
:
0.3
;
}
75
%
{
-webkit-transform
:
scale
(
0.5
);
opacity
:
0.5
;
}
100
%
{
-webkit-transform
:
scale
(
1
);
opacity
:
0.0
;
}
}
@-moz-keyframes
pulse
{
0
%
{
-moz-transform
:
scale
(
0
);
opacity
:
0.0
;
}
25
%
{
-moz-transform
:
scale
(
0
);
opacity
:
0.1
;
}
50
%
{
-moz-transform
:
scale
(
0.1
);
opacity
:
0.3
;
}
75
%
{
-moz-transform
:
scale
(
0.5
);
opacity
:
0.5
;
}
100
%
{
-moz-transform
:
scale
(
1
);
opacity
:
0.0
;
}
}
@keyframes
pulse
{
0
%
{
-webkit-transform
:
scale
(
0
);
-moz-transform
:
scale
(
0
);
-ms-transform
:
scale
(
0
);
-o-transform
:
scale
(
0
);
transform
:
scale
(
0
);
opacity
:
0.0
;
}
25
%
{
-webkit-transform
:
scale
(
0
);
-moz-transform
:
scale
(
0
);
-ms-transform
:
scale
(
0
);
-o-transform
:
scale
(
0
);
transform
:
scale
(
0
);
opacity
:
0.1
;
}
50
%
{
-webkit-transform
:
scale
(
0.1
);
-moz-transform
:
scale
(
0.1
);
-ms-transform
:
scale
(
0.1
);
-o-transform
:
scale
(
0.1
);
transform
:
scale
(
0.1
);
opacity
:
0.3
;
}
75
%
{
-webkit-transform
:
scale
(
0.5
);
-moz-transform
:
scale
(
0.5
);
-ms-transform
:
scale
(
0.5
);
-o-transform
:
scale
(
0.5
);
transform
:
scale
(
0.5
);
opacity
:
0.5
;
}
100
%
{
-webkit-transform
:
scale
(
1
);
-moz-transform
:
scale
(
1
);
-ms-transform
:
scale
(
1
);
-o-transform
:
scale
(
1
);
transform
:
scale
(
1
);
opacity
:
0.0
;
}
}
#converse-embedded-chat
.spinner
,
#conversejs
.spinner
{
-webkit-animation
:
spin
2s
infinite
,
linear
;
...
...
@@ -1921,6 +1989,10 @@
word-wrap
:
break-word
;
}
#conversejs
#controlbox
#chatrooms
.rooms-list-container
dl
.rooms-list
dd
.available-chatroom
:hover
{
background-color
:
#DCF9F6
;
}
#conversejs
#controlbox
#chatrooms
.rooms-list-container
dl
.rooms-list
dd
.available-chatroom.unread-msgs
.open-room
{
max-width
:
50%
;
width
:
auto
;
font-weight
:
bold
;
}
#conversejs
#controlbox
#chatrooms
.rooms-list-container
dl
.rooms-list
dd
.available-chatroom
a
.room-info
:before
{
font-size
:
15px
;
}
#conversejs
#controlbox
#chatrooms
.rooms-list-container
dl
.rooms-list
dd
.available-chatroom
a
.open-room
{
...
...
@@ -2118,6 +2190,18 @@
#conversejs
.toggle-controlbox
span
{
color
:
white
;
}
#conversejs
#controlbox
.available-chatroom
.pulse
{
padding
:
0
;
margin
:
0
;
}
#conversejs
#controlbox
.available-chatroom.unread-msgs
.msgs-indicactor
{
background-color
:
#D24E2B
;
color
:
white
;
border-radius
:
10%
;
font-size
:
12px
;
font-weight
:
normal
;
padding
:
0
4px
;
text-shadow
:
none
;
}
#conversejs
#converse-roster
{
text-align
:
left
;
width
:
100%
;
...
...
@@ -2244,74 +2328,6 @@
opacity
:
0
;
}
#conversejs
#converse-roster
.roster-contacts
dd
.open-chat.unread-msgs
.avatar.avatar-online
.pulse
{
border
:
0.7em
solid
#2A9D8F
;
}
@-webkit-keyframes
pulse
{
0
%
{
-webkit-transform
:
scale
(
0
);
opacity
:
0.0
;
}
25
%
{
-webkit-transform
:
scale
(
0
);
opacity
:
0.1
;
}
50
%
{
-webkit-transform
:
scale
(
0.1
);
opacity
:
0.3
;
}
75
%
{
-webkit-transform
:
scale
(
0.5
);
opacity
:
0.5
;
}
100
%
{
-webkit-transform
:
scale
(
1
);
opacity
:
0.0
;
}
}
@-moz-keyframes
pulse
{
0
%
{
-moz-transform
:
scale
(
0
);
opacity
:
0.0
;
}
25
%
{
-moz-transform
:
scale
(
0
);
opacity
:
0.1
;
}
50
%
{
-moz-transform
:
scale
(
0.1
);
opacity
:
0.3
;
}
75
%
{
-moz-transform
:
scale
(
0.5
);
opacity
:
0.5
;
}
100
%
{
-moz-transform
:
scale
(
1
);
opacity
:
0.0
;
}
}
@keyframes
pulse
{
0
%
{
-webkit-transform
:
scale
(
0
);
-moz-transform
:
scale
(
0
);
-ms-transform
:
scale
(
0
);
-o-transform
:
scale
(
0
);
transform
:
scale
(
0
);
opacity
:
0.0
;
}
25
%
{
-webkit-transform
:
scale
(
0
);
-moz-transform
:
scale
(
0
);
-ms-transform
:
scale
(
0
);
-o-transform
:
scale
(
0
);
transform
:
scale
(
0
);
opacity
:
0.1
;
}
50
%
{
-webkit-transform
:
scale
(
0.1
);
-moz-transform
:
scale
(
0.1
);
-ms-transform
:
scale
(
0.1
);
-o-transform
:
scale
(
0.1
);
transform
:
scale
(
0.1
);
opacity
:
0.3
;
}
75
%
{
-webkit-transform
:
scale
(
0.5
);
-moz-transform
:
scale
(
0.5
);
-ms-transform
:
scale
(
0.5
);
-o-transform
:
scale
(
0.5
);
transform
:
scale
(
0.5
);
opacity
:
0.5
;
}
100
%
{
-webkit-transform
:
scale
(
1
);
-moz-transform
:
scale
(
1
);
-ms-transform
:
scale
(
1
);
-o-transform
:
scale
(
1
);
transform
:
scale
(
1
);
opacity
:
0.0
;
}
}
#conversejs
#converse-roster
.roster-contacts
dd
.open-chat
.msgs-indicactor
{
background-color
:
#D24E2B
;
color
:
white
;
...
...
sass/_controlbox.scss
View file @
8fa06e7d
...
...
@@ -146,6 +146,13 @@
&
:hover
{
background-color
:
$highlight-color
;
}
&
.unread-msgs
{
.open-room
{
max-width
:
50%
;
width
:
auto
;
font-weight
:
bold
;
}
}
a
{
&
.room-info
{
&
:before
{
...
...
sass/_core.scss
View file @
8fa06e7d
...
...
@@ -78,6 +78,29 @@
}
}
@include
keyframes
(
pulse
)
{
0
%
{
@include
transform
(
scale
(
0
));
opacity
:
0
.0
;
}
25
%
{
@include
transform
(
scale
(
0
));
opacity
:
0
.1
;
}
50
%
{
@include
transform
(
scale
(
0
.1
));
opacity
:
0
.3
;
}
75
%
{
@include
transform
(
scale
(
0
.5
));
opacity
:
0
.5
;
}
100
%
{
@include
transform
(
scale
(
1
));
opacity
:
0
.0
;
}
}
.spinner
{
@include
animation
(
spin
2s
infinite
,
linear
);
display
:
block
;
...
...
sass/_roomslist.scss
0 → 100644
View file @
8fa06e7d
#conversejs
{
#controlbox
{
.available-chatroom
{
.pulse
{
padding
:
0
;
margin
:
0
;
}
&
.unread-msgs
{
.msgs-indicactor
{
background-color
:
$warning-color
;
color
:
white
;
border-radius
:
10%
;
font-size
:
$font-size-small
;
font-weight
:
normal
;
padding
:
0
4px
;
text-shadow
:
none
;
}
}
}
}
}
sass/_roster.scss
View file @
8fa06e7d
...
...
@@ -151,28 +151,6 @@
border
:
0
.7em
solid
$link-color
;
}
}
@include
keyframes
(
pulse
)
{
0
%
{
@include
transform
(
scale
(
0
));
opacity
:
0
.0
;
}
25
%
{
@include
transform
(
scale
(
0
));
opacity
:
0
.1
;
}
50
%
{
@include
transform
(
scale
(
0
.1
));
opacity
:
0
.3
;
}
75
%
{
@include
transform
(
scale
(
0
.5
));
opacity
:
0
.5
;
}
100
%
{
@include
transform
(
scale
(
1
));
opacity
:
0
.0
;
}
}
}
}
...
...
sass/converse.scss
View file @
8fa06e7d
...
...
@@ -13,6 +13,7 @@
@import
"core"
;
@import
"chatbox"
;
@import
"controlbox"
;
@import
"roomslist"
;
@import
"roster"
;
@import
"chatrooms"
;
@import
"headline"
;
...
...
src/templates/rooms_list_item.html
View file @
8fa06e7d
<dd
class=
"available-chatroom {[ if (num_unread) { ]} unread-msgs {[ } ]}"
data-room-jid=
"{{{jid}}}"
>
{[ if (num_unread) { ]}
<span
class=
"pulse"
></span>
<span
class=
"msgs-indicactor"
>
{{{ num_unread }}}
</span>
{[ } ]}
<a
class=
"open-room"
data-room-jid=
"{{{jid}}}"
title=
"{{{open_title}}}"
href=
"#"
>
{{{name}}}
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment