1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 20:24:08 +02:00

[ticket/13713] Make mentions globally available

PHPBB3-13713
This commit is contained in:
lavigor
2018-06-06 12:39:51 +03:00
committed by Marc Alexander
parent ac8adcb9a6
commit 8817e23474
5 changed files with 58 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
<script>
// <![CDATA[
var mention_url = '{UA_MENTION_URL}';
var mention_topic_id = '{S_TOPIC_ID}';
// Define the bbCode tags
var bbcode = new Array();
@@ -8,6 +10,9 @@
// ]]>
</script>
<!-- INCLUDECSS {T_ASSETS_PATH}/css/jquery.atwho.min.css -->
<!-- INCLUDEJS {T_ASSETS_PATH}/javascript/jquery.caret.min.js -->
<!-- INCLUDEJS {T_ASSETS_PATH}/javascript/jquery.atwho.min.js -->
<!-- INCLUDEJS {T_ASSETS_PATH}/javascript/editor.js -->
<!-- EVENT acp_posting_buttons_before -->

View File

@@ -1670,6 +1670,52 @@ fieldset.submit-buttons legend {
}
}
/* Mentions and mention dropdown
---------------------------------------- */
.mention {
font-weight: bold;
}
.atwho-container .atwho-view {
font-size: 12px;
min-width: 260px;
}
.atwho-container .atwho-view ul li {
position: relative;
padding: 15px 5px 15px 45px;
}
.atwho-container .atwho-view ul li:hover,
.atwho-container .atwho-view ul li.cur {
background-color: #0077b3;
color: #ffffff;
}
.mention-avatar {
font-size: 14px;
line-height: 30px;
text-align: center;
vertical-align: middle;
background-color: #0077b3;
border: 1px solid #ffffff;
border-radius: 100%;
color: #ffffff;
position: absolute;
top: 50%;
left: 7px;
display: inline-block;
width: 30px;
height: 30px;
margin-top: -16px;
}
.mention-rank {
font-size: 10px;
display: block;
margin-top: 2px;
}
/* Input field styles
---------------------------------------- */
input.radio,