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
e4ebcc8f
Commit
e4ebcc8f
authored
Jul 16, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
emoji: various css and html changes to improve ui/ux in converse and inverse
parent
ffdd4e25
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
92 additions
and
62 deletions
+92
-62
css/converse.css
css/converse.css
+35
-22
css/inverse.css
css/inverse.css
+26
-19
sass/_chatbox.scss
sass/_chatbox.scss
+20
-16
sass/converse/_chatbox.scss
sass/converse/_chatbox.scss
+5
-1
sass/inverse/_variables.scss
sass/inverse/_variables.scss
+1
-1
src/converse-chatview.js
src/converse-chatview.js
+3
-3
src/templates/emojis.html
src/templates/emojis.html
+2
-0
No files found.
css/converse.css
View file @
e4ebcc8f
...
...
@@ -1755,23 +1755,40 @@
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-picker
{
height
:
100px
;
overflow
:
scroll
;
}
overflow
:
scroll
;
padding
:
0.5em
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
{
box-shadow
:
-1px
-1px
2px
0
rgba
(
0
,
0
,
0
,
0.4
);
overflow-x
:
scroll
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.picked
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.picked
{
/* offset-x | offset-y | blur-radius | spread-radius | color */
box-shadow
:
0
-1px
2px
0
rgba
(
0
,
0
,
0
,
0.4
);
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
{
overflow
:
hidden
;
left
:
0
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.picked
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
.picked
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.picked
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
.picked
{
background-color
:
#DCF9F6
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.emoji-skintone
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.emoji-skintone
{
float
:
right
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
{
height
:
30px
;
padding
:
5px
;
z-index
:
98
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
.emoji
a
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
.emoji
a
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
.emoji
a
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
.emoji
a
{
font-size
:
20px
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
{
margin-left
:
0
;
cursor
:
pointer
;
list-style
:
none
;
position
:
relative
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
.insert-emoji
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
.insert-emoji
{
padding
:
0.3em
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
a
:hover
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
a
:hover
{
color
:
#8f2831
;
}
...
...
@@ -1784,16 +1801,6 @@
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
{
padding-left
:
5px
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
{
left
:
0
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
{
padding
:
5px
;
z-index
:
98
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
.emoji
a
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
.emoji
a
{
font-size
:
20px
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-otr
ul
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-otr
ul
{
z-index
:
99
;
}
...
...
@@ -1845,12 +1852,18 @@
#conversejs
.chat-head
{
border-top-left-radius
:
0
;
border-top-right-radius
:
0
;
}
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
{
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
{
width
:
100%
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.emoji-category
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.emoji-category
{
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.emoji-category
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
.emoji-category
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.emoji-category
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
.emoji-category
{
float
:
left
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
{
padding
:
2px
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
{
padding
:
2px
;
}
...
...
css/inverse.css
View file @
e4ebcc8f
...
...
@@ -1800,24 +1800,41 @@ body {
color
:
#578EA9
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-picker
{
height
:
250px
;
overflow
:
scroll
;
}
height
:
150px
;
overflow
:
scroll
;
padding
:
0.5em
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
{
box-shadow
:
-1px
-1px
2px
0
rgba
(
0
,
0
,
0
,
0.4
);
overflow-x
:
scroll
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.picked
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.picked
{
/* offset-x | offset-y | blur-radius | spread-radius | color */
box-shadow
:
0
-1px
2px
0
rgba
(
0
,
0
,
0
,
0.4
);
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
{
overflow
:
hidden
;
left
:
0
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.picked
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
.picked
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.picked
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
.picked
{
background-color
:
#DCF9F6
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.emoji-skintone
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
.emoji-skintone
{
float
:
right
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
{
height
:
34px
;
padding
:
5px
;
z-index
:
98
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
.emoji
a
,
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
.emoji
a
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-category-picker
li
.emoji
a
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
.emoji-skintone-picker
li
.emoji
a
{
font-size
:
26px
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
{
margin-left
:
0
;
cursor
:
pointer
;
list-style
:
none
;
position
:
relative
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
.insert-emoji
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
.insert-emoji
{
padding
:
0.3em
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
a
:hover
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toolbar-menu
ul
li
a
:hover
{
color
:
#8f2831
;
}
...
...
@@ -1830,16 +1847,6 @@ body {
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
{
padding-left
:
5px
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
{
left
:
0
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
{
padding
:
5px
;
z-index
:
98
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
.emoji
a
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-smiley
ul
li
.emoji
a
{
font-size
:
26px
;
}
#converse-embedded-chat
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-otr
ul
,
#conversejs
.chatbox
form
.sendXMPPMessage
.chat-toolbar
li
.toggle-otr
ul
{
z-index
:
99
;
}
...
...
sass/_chatbox.scss
View file @
e4ebcc8f
...
...
@@ -324,18 +324,34 @@
&
.emoji-picker
{
height
:
$emoji-picker-height
;
overflow
:
scroll
;
padding
:
0
.5em
;
}
&
.emoji-category-picker
{
box-shadow
:
-1px
-1px
2px
0
rgba
(
0
,
0
,
0
,
0
.4
);
overflow-x
:
scroll
;
/* offset-x | offset-y | blur-radius | spread-radius | color */
box-shadow
:
0
-1px
2px
0
rgba
(
0
,
0
,
0
,
0
.4
);
}
&
.emoji-category-picker
,
&
.emoji-skintone-picker
{
overflow
:
hidden
;
left
:
0
;
.picked
{
background-color
:
$highlight-color
;
}
.emoji-skintone
{
float
:
right
;
li
{
height
:
$emoji_height
+
2
*
5px
;
padding
:
5px
;
z-index
:
98
;
&
.emoji
{
a
{
font-size
:
$font-size-huge
;
}
}
}
}
li
{
&
.insert-emoji
{
padding
:
0
.3em
;
}
margin-left
:
0
;
cursor
:
pointer
;
list-style
:
none
;
...
...
@@ -358,18 +374,6 @@
}
&
.toggle-smiley
{
padding-left
:
5px
;
ul
{
left
:
0
;
li
{
padding
:
5px
;
z-index
:
98
;
&
.emoji
{
a
{
font-size
:
$font-size-huge
;
}
}
}
}
}
&
.toggle-otr
{
ul
{
...
...
sass/converse/_chatbox.scss
View file @
e4ebcc8f
...
...
@@ -18,11 +18,15 @@
li
{
.toolbar-menu
{
ul
{
&
.emoji-category-picker
{
&
.emoji-category-picker
,
&
.emoji-skintone-picker
{
width
:
100%
;
.emoji-category
{
float
:
left
;
}
li
{
padding
:
2px
;
}
}
}
}
...
...
sass/inverse/_variables.scss
View file @
e4ebcc8f
...
...
@@ -103,7 +103,7 @@ $legend-font-size: 18px !default;
$toolbar-height
:
29px
!
default
;
$toolbar-color
:
$greenish-white
!
default
;
$emoji-picker-height
:
2
50px
!
default
;
$emoji-picker-height
:
1
50px
!
default
;
$line-height-small
:
20px
!
default
;
$line-height
:
22px
!
default
;
...
...
src/converse-chatview.js
View file @
e4ebcc8f
...
...
@@ -131,7 +131,7 @@
className
:
'
emoji-picker-container toolbar-menu collapsed
'
,
events
:
{
'
click .emoji-category-picker li.emoji-category
'
:
'
chooseCategory
'
,
'
click .emoji-
category
-picker li.emoji-skintone
'
:
'
chooseSkinTone
'
'
click .emoji-
skintone
-picker li.emoji-skintone
'
:
'
chooseSkinTone
'
},
initialize
()
{
...
...
@@ -152,7 +152,6 @@
}
));
this
.
el
.
innerHTML
=
emojis_html
;
this
.
el
.
querySelectorAll
(
'
.emoji-picker
'
).
forEach
((
el
)
=>
{
el
.
addEventListener
(
'
scroll
'
,
this
.
setScrollPosition
.
bind
(
this
)
...
...
@@ -778,6 +777,7 @@
if
(
!
_
.
isUndefined
(
ev
))
{
ev
.
stopPropagation
();
if
(
ev
.
target
.
classList
.
contains
(
'
emoji-category-picker
'
)
||
ev
.
target
.
classList
.
contains
(
'
emoji-skintone-picker
'
)
||
ev
.
target
.
classList
.
contains
(
'
emoji-category
'
))
{
return
;
}
...
...
src/templates/emojis.html
View file @
e4ebcc8f
...
...
@@ -14,7 +14,9 @@
<a
class=
"pick-category"
href=
"#"
data-category=
"{{{category}}}"
>
{{ transform(emojis_by_category[category][0]._shortname) }}
</a>
</li>
{[ }); ]}
</ul>
<ul
class=
"emoji-skintone-picker"
>
{[ _.forEach(skintones, function (skintone) { ]}
<li
data-skintone=
"{{{skintone}}}"
class=
"emoji-skintone {[ if (current_skintone === skintone) { ]} picked {[ } ]}"
>
<a
class=
"pick-skintone"
href=
"#"
data-skintone=
"{{{skintone}}}"
>
{{ transform(':'+skintone+':') }}
</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