2020-10-12 11:19:10 +00:00
|
|
|
@use "../colors" as c
|
|
|
|
|
2020-11-05 04:32:36 +00:00
|
|
|
.c-event-groups > *
|
2020-10-19 05:37:17 +00:00
|
|
|
overflow-anchor: none
|
|
|
|
|
2020-10-12 12:35:54 +00:00
|
|
|
.c-message-group, .c-message-event
|
2020-10-12 11:19:10 +00:00
|
|
|
margin-top: 12px
|
|
|
|
padding-top: 12px
|
|
|
|
border-top: 1px solid c.$divider
|
|
|
|
|
2020-10-12 12:35:54 +00:00
|
|
|
.c-message-group
|
2020-11-07 12:11:31 +00:00
|
|
|
display: grid
|
|
|
|
grid-template-columns: auto 1fr
|
2020-10-12 12:35:54 +00:00
|
|
|
|
2020-10-12 11:19:10 +00:00
|
|
|
&__avatar
|
|
|
|
flex-shrink: 0
|
|
|
|
margin-right: 16px
|
2020-10-12 12:35:54 +00:00
|
|
|
cursor: pointer
|
2020-10-12 11:19:10 +00:00
|
|
|
|
|
|
|
&__icon
|
2020-10-20 00:37:23 +00:00
|
|
|
$size: 40px
|
2020-10-12 11:19:10 +00:00
|
|
|
width: $size
|
|
|
|
height: $size
|
|
|
|
border-radius: 50%
|
2020-10-20 00:37:23 +00:00
|
|
|
|
|
|
|
&--no-icon
|
2020-10-29 04:28:12 +00:00
|
|
|
background-color: #bbb
|
2020-10-12 11:19:10 +00:00
|
|
|
|
2020-10-12 12:35:54 +00:00
|
|
|
&__intro
|
|
|
|
display: flex
|
|
|
|
align-items: baseline
|
|
|
|
|
2020-10-12 11:19:10 +00:00
|
|
|
&__name
|
|
|
|
color: #5bf
|
|
|
|
margin: -2px 0px -3px
|
|
|
|
font-size: 19px
|
|
|
|
font-weight: 500
|
2020-10-12 12:35:54 +00:00
|
|
|
cursor: pointer
|
|
|
|
|
|
|
|
&:hover
|
|
|
|
text-decoration: underline
|
|
|
|
|
|
|
|
&__date
|
|
|
|
font-size: 14px
|
|
|
|
margin-left: 9px
|
|
|
|
color: c.$muted
|
2020-10-12 11:19:10 +00:00
|
|
|
|
|
|
|
.c-message
|
|
|
|
margin-top: 4px
|
2020-10-26 10:56:40 +00:00
|
|
|
overflow-wrap: anywhere
|
2020-10-19 11:23:10 +00:00
|
|
|
opacity: 1
|
|
|
|
transition: opacity 0.2s ease-out
|
2020-11-07 12:04:42 +00:00
|
|
|
|
|
|
|
&--plain
|
|
|
|
white-space: pre-wrap
|
|
|
|
|
|
|
|
&--media
|
|
|
|
// fix whitespace
|
|
|
|
font-size: 0
|
|
|
|
margin-top: 8px
|
2020-10-19 11:23:10 +00:00
|
|
|
|
|
|
|
&--pending
|
|
|
|
opacity: 0.5
|
2020-10-12 12:35:54 +00:00
|
|
|
|
2020-10-20 12:53:37 +00:00
|
|
|
&__edited
|
|
|
|
margin-left: 4px
|
|
|
|
padding: 1px 3px 1px 2px
|
|
|
|
font-size: 12px
|
|
|
|
font-style: italic
|
|
|
|
line-height: 1
|
|
|
|
color: c.$muted
|
|
|
|
cursor: default
|
|
|
|
border-radius: 4px
|
|
|
|
transition: background-color 0.15s ease-out
|
|
|
|
|
|
|
|
&:hover
|
|
|
|
background-color: c.$darker
|
|
|
|
|
2020-11-07 12:04:42 +00:00
|
|
|
&__image
|
|
|
|
width: auto
|
|
|
|
height: auto
|
|
|
|
max-width: 400px
|
|
|
|
max-height: 300px
|
|
|
|
|
2020-11-05 04:32:36 +00:00
|
|
|
// message formatting rules
|
|
|
|
|
|
|
|
code, pre
|
|
|
|
border-radius: 4px
|
|
|
|
font-size: 0.9em
|
|
|
|
|
|
|
|
pre
|
|
|
|
background-color: c.$darkest
|
|
|
|
padding: 8px
|
|
|
|
border: 1px solid c.$divider
|
2020-11-08 12:11:28 +00:00
|
|
|
white-space: pre-wrap
|
2020-11-05 04:32:36 +00:00
|
|
|
|
|
|
|
code
|
|
|
|
background-color: c.$darker
|
|
|
|
padding: 2px 4px
|
|
|
|
|
|
|
|
a
|
|
|
|
color: c.$link
|
|
|
|
|
2020-11-07 11:11:32 +00:00
|
|
|
blockquote
|
|
|
|
margin-left: 8px
|
|
|
|
border-left: 4px solid c.$muted
|
|
|
|
padding: 2px 0px 2px 12px
|
|
|
|
|
|
|
|
p, pre, blockquote
|
2020-11-05 04:32:36 +00:00
|
|
|
margin: 16px 0px
|
|
|
|
|
|
|
|
&:first-child
|
|
|
|
margin-top: 0px
|
|
|
|
|
|
|
|
&:last-child
|
|
|
|
margin-bottom: 0px
|
|
|
|
|
2020-10-12 12:35:54 +00:00
|
|
|
.c-message-event
|
|
|
|
padding-top: 10px
|
|
|
|
padding-left: 6px
|
|
|
|
|
|
|
|
&__inner
|
|
|
|
display: flex
|
|
|
|
align-items: center
|
|
|
|
|
|
|
|
&__icon
|
|
|
|
margin-right: 8px
|
|
|
|
position: relative
|
|
|
|
top: 1px
|
|
|
|
|
|
|
|
.c-message-notice
|
|
|
|
padding: 12px
|
|
|
|
|
|
|
|
&__inner
|
|
|
|
text-align: center
|
|
|
|
padding: 12px
|
|
|
|
background-color: c.$milder
|
|
|
|
border-radius: 8px
|