Skip to content

Commit

Permalink
Port some message-chat styles to Tailwind
Browse files Browse the repository at this point in the history
refs #222
  • Loading branch information
raucao committed Aug 29, 2021
1 parent c566abf commit 1d4dbc9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
11 changes: 6 additions & 5 deletions app/components/message-chat/template.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<div class="chat-message">
<span class="chat-message__username"
data-username={{@message.nickname}}
onclick={{fn this.usernameClick @message.nickname}}>
<div class="chat-message break-words">
<span data-username={{@message.nickname}}
onclick={{fn this.usernameClick @message.nickname}}
class="mr-1 font-bold" >
{{@message.nickname}}:
</span>

<time class="chat-message__date" datetime={{this.datetime}} title={{this.dateTitle}}>
<time datetime={{this.datetime}} title={{this.dateTitle}}
class="block float-right text-sm text-gray-300" >
{{moment-format @message.date "HH:mm"}}
</time>

Expand Down
25 changes: 0 additions & 25 deletions app/styles/components/message-chat.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,6 @@
font-style: italic;
}

&__date {
display: block;
float: right;
font-size: 12px;
color: #ccc;
}

&__username {
margin-right: 0.2em;
font-weight: bold;

// &[data-username=raucao] {
// background: url(/img/avatar-sk.png) 0 2px no-repeat;
// }
// &[data-username=silverbucket] {
// background: url(/img/avatar-sb.png) 0 2px no-repeat;
// }
// &[data-username=galfert] {
// background: url(/img/avatar-ga.jpeg) 0 2px no-repeat;
// }
}

&__message {
}

a {
text-decoration: underline;
color: #339;
Expand Down

0 comments on commit 1d4dbc9

Please sign in to comment.