Compare commits
1 commit
main
...
feature/cu
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a09cec7e5f |
5 changed files with 39 additions and 1 deletions
11
module/documents/chatMessage/CryptRollMessage.mjs
Normal file
11
module/documents/chatMessage/CryptRollMessage.mjs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { filePath } from "../../consts.mjs";
|
||||
|
||||
export class CryptRollMessage extends ChatMessage {
|
||||
static get template() {
|
||||
switch (this.type) {
|
||||
case `roll`:
|
||||
return filePath(`templates/chat/roll.hbs`);
|
||||
}
|
||||
return super.template;
|
||||
};
|
||||
};
|
||||
7
templates/chat/frame.hbs
Normal file
7
templates/chat/frame.hbs
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<li
|
||||
class="chat-message message ripcrypt {{cssClass}}"
|
||||
data-message-id="{{message._id}}"
|
||||
{{#if borderColor}}style="border-color: {{borderColor}}"{{/if}}
|
||||
>
|
||||
<span class="author">{{ alias }}</span>
|
||||
</li>
|
||||
15
templates/css/chatmessage.css
Normal file
15
templates/css/chatmessage.css
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
.ripcrypt.chat-message {
|
||||
position: relative;
|
||||
background: var(--base-background);
|
||||
color: var(--base-text);
|
||||
|
||||
.author {
|
||||
position: absolute;
|
||||
text-align: center;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
transform: translateY(-50%) translateX(-50%);
|
||||
background: var(--title-background);
|
||||
color: var(--title-text);
|
||||
}
|
||||
}
|
||||
|
|
@ -24,3 +24,5 @@
|
|||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
|
||||
@import url("./chatmessage.css");
|
||||
|
|
|
|||
|
|
@ -7,6 +7,9 @@
|
|||
--base-text: white;
|
||||
--base-background: black;
|
||||
|
||||
--title-text: white;
|
||||
--title-background: var(--accent-3);
|
||||
|
||||
--section-header-text: white;
|
||||
--section-header-background: var(--accent-1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue