Emoji Autocomplete (#3433)
* Implemented emoji autocomplete. * Changed emoji access url. * Reverted vendor css to default, moved all style changes to _tribute.less * Made no-results overwriteable, added missing autocomplete to edit issue field. Signed-off-by: modmew8 <modmew8@gmail.com>
This commit is contained in:
parent
b62ce2e246
commit
e08b3a592e
6 changed files with 64 additions and 17 deletions
File diff suppressed because one or more lines are too long
|
@ -571,6 +571,7 @@ function initRepository() {
|
|||
$editContentZone.html($('#edit-content-form').html());
|
||||
$textarea = $segment.find('textarea');
|
||||
issuesTribute.attach($textarea.get());
|
||||
emojiTribute.attach($textarea.get());
|
||||
|
||||
// Give new write/preview data-tab name to distinguish from others
|
||||
var $editContentForm = $editContentZone.find('.ui.comment.form');
|
||||
|
|
26
public/less/_tribute.less
Normal file
26
public/less/_tribute.less
Normal file
|
@ -0,0 +1,26 @@
|
|||
.tribute-container {
|
||||
box-shadow: 0px 1px 3px 1px #c7c7c7;
|
||||
ul {
|
||||
background: #ffffff;
|
||||
}
|
||||
li {
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid #dcdcdc;
|
||||
img {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
span.fullname {
|
||||
font-weight: normal;
|
||||
font-size: 0.8rem;
|
||||
margin-left: 3px;
|
||||
}
|
||||
}
|
||||
li.highlight, li:hover {
|
||||
background: #2185D0;
|
||||
color: #ffffff;
|
||||
}
|
||||
}
|
|
@ -1,3 +1,4 @@
|
|||
@import "_tribute";
|
||||
@import "_emojify";
|
||||
@import "_base";
|
||||
@import "_markdown";
|
||||
|
|
19
public/vendor/plugins/tribute/tribute.css
vendored
19
public/vendor/plugins/tribute/tribute.css
vendored
|
@ -7,33 +7,20 @@
|
|||
max-width: 500px;
|
||||
overflow: auto;
|
||||
display: block;
|
||||
box-shadow: 0px 1px 3px 1px #c7c7c7;
|
||||
z-index: 999999; }
|
||||
.tribute-container ul {
|
||||
margin: 0;
|
||||
margin-top: 2px;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
background: #ffffff; }
|
||||
background: #efefef; }
|
||||
.tribute-container li {
|
||||
padding: 8px 12px;
|
||||
border-bottom: 1px solid #dcdcdc;
|
||||
padding: 5px 5px;
|
||||
cursor: pointer; }
|
||||
.tribute-container li.highlight, .tribute-container li:hover {
|
||||
background: #2185D0;
|
||||
color: #ffffff;}
|
||||
.tribute-container li img {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
width: 28px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
background: #ddd; }
|
||||
.tribute-container li span {
|
||||
font-weight: bold; }
|
||||
.tribute-container li span.fullname {
|
||||
font-weight: normal;
|
||||
font-size: 0.8rem;
|
||||
margin-left: 3px;}
|
||||
.tribute-container li.no-match {
|
||||
cursor: default; }
|
||||
.tribute-container .menu-highlighted {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue