mirror of
https://github.com/PaiGramTeam/luoxu-api-pub.git
synced 2024-11-25 09:27:40 +00:00
keyword highlight!
This commit is contained in:
parent
297261b733
commit
a62d883a76
@ -50,7 +50,7 @@
|
||||
<img src="{getContext('LUOXU_URL')}/avatar/{msg.from_id}.jpg" height="64" width="64" alt="{msg.from_name} 的头像"/>
|
||||
<div>
|
||||
<div class="name">{msg.from_name || ' '}</div>
|
||||
<pre>{msg.text}</pre>
|
||||
<div class="text">{@html msg.html}</div>
|
||||
<div class="time"><a href="tg://resolve?domain={group}&post={msg.id}"><time datetime={iso_date} title={title}>{relative_dt}</time></a></div>
|
||||
</div>
|
||||
</div>
|
||||
@ -72,10 +72,13 @@
|
||||
white-space: nowrap;
|
||||
color: #1e90ff;
|
||||
}
|
||||
pre {
|
||||
.text {
|
||||
white-space: pre-wrap;
|
||||
margin: 0.2em 0;
|
||||
}
|
||||
.text >:global(.keyword) {
|
||||
background-color: #ffffab;
|
||||
}
|
||||
.time {
|
||||
font-size: 0.75em;
|
||||
float: right;
|
||||
|
Loading…
Reference in New Issue
Block a user