2022-12-17 03:27:00 +00:00
|
|
|
$actionsWidth: 32px * 2;
|
|
|
|
|
2022-11-16 12:25:37 +00:00
|
|
|
.Message {
|
2022-11-21 05:06:53 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
margin: 3.2rem 0;
|
|
|
|
|
2022-11-16 12:25:37 +00:00
|
|
|
.body {
|
2022-11-21 05:06:53 +00:00
|
|
|
position: relative;
|
|
|
|
display: flex;
|
2022-12-17 03:27:00 +00:00
|
|
|
flex-direction: row;
|
2022-11-21 05:06:53 +00:00
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
.text {
|
|
|
|
display: inline-flex;
|
|
|
|
flex-direction: column;
|
|
|
|
max-width: 60%;
|
|
|
|
margin-right: auto;
|
|
|
|
background: #f6f6f6;
|
|
|
|
font-size: 14px;
|
|
|
|
border-radius: 16px;
|
|
|
|
padding: 12px 16px;
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2022-11-21 05:06:53 +00:00
|
|
|
color: inherit;
|
2022-12-17 03:27:00 +00:00
|
|
|
text-decoration: underline;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: inherit;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.actions {
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
width: $actionsWidth;
|
|
|
|
height: 32px;
|
|
|
|
cursor: pointer;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateY(-50%);
|
|
|
|
opacity: 0;
|
|
|
|
right: -$actionsWidth/2;
|
|
|
|
z-index: -1;
|
|
|
|
transition: 0.3s ease-in-out;
|
|
|
|
}
|
2023-02-10 01:19:20 +00:00
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
&.popupVisible {
|
|
|
|
position: relative;
|
|
|
|
z-index: 100;
|
|
|
|
}
|
2023-02-10 01:19:20 +00:00
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
&.popupVisible,
|
|
|
|
&:hover {
|
|
|
|
.actions {
|
|
|
|
z-index: 10000;
|
|
|
|
opacity: 1;
|
|
|
|
right: -$actionsWidth;
|
2022-11-21 05:06:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.time {
|
|
|
|
margin-top: 8px;
|
|
|
|
font-size: 10px;
|
|
|
|
color: #9fa1a7;
|
|
|
|
}
|
|
|
|
|
|
|
|
.author {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
align-items: center;
|
|
|
|
gap: 6px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
|
|
|
.name {
|
|
|
|
color: #141414;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 14px;
|
|
|
|
line-height: 20px;
|
|
|
|
}
|
|
|
|
}
|
2022-12-17 03:27:00 +00:00
|
|
|
|
2022-11-21 05:06:53 +00:00
|
|
|
&.own {
|
|
|
|
.body {
|
|
|
|
justify-content: flex-end;
|
2022-12-17 03:27:00 +00:00
|
|
|
|
|
|
|
.text {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: unset;
|
|
|
|
background: #000;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.actions {
|
|
|
|
right: unset;
|
|
|
|
left: -$actionsWidth/2;
|
|
|
|
flex-direction: row-reverse;
|
2023-02-10 01:19:20 +00:00
|
|
|
|
2022-12-17 03:27:00 +00:00
|
|
|
.reply {
|
|
|
|
transform: scaleX(-1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.popupVisible,
|
|
|
|
&:hover {
|
|
|
|
.actions {
|
|
|
|
left: -$actionsWidth;
|
|
|
|
}
|
|
|
|
}
|
2022-11-21 05:06:53 +00:00
|
|
|
}
|
2022-12-17 03:27:00 +00:00
|
|
|
|
2022-11-21 05:06:53 +00:00
|
|
|
.time {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2022-11-16 12:25:37 +00:00
|
|
|
}
|
|
|
|
}
|