2022-11-02 21:41:30 +08:00
|
|
|
.chat-message-separator {
|
|
|
|
@include unselectable;
|
|
|
|
display: flex;
|
|
|
|
|
2023-03-03 20:09:25 +08:00
|
|
|
&-new {
|
2023-03-09 20:44:02 +08:00
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
padding: 20px 0 20px 1em;
|
2023-03-03 20:09:25 +08:00
|
|
|
position: relative;
|
2022-11-02 21:41:30 +08:00
|
|
|
|
2023-03-03 20:09:25 +08:00
|
|
|
.chat-message-separator__text-container {
|
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
|
|
|
height: 40px;
|
|
|
|
box-sizing: border-box;
|
|
|
|
z-index: 1;
|
|
|
|
top: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2023-03-02 23:34:25 +08:00
|
|
|
|
2023-03-03 20:09:25 +08:00
|
|
|
.chat-message-separator__text {
|
|
|
|
color: var(--danger-medium);
|
|
|
|
background-color: var(--secondary);
|
|
|
|
padding: 0.25rem 0.5rem;
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
}
|
2023-03-03 02:46:03 +08:00
|
|
|
}
|
|
|
|
|
2023-03-03 20:09:25 +08:00
|
|
|
.chat-message-separator__line-container {
|
|
|
|
width: 100%;
|
2023-03-09 20:44:02 +08:00
|
|
|
}
|
2023-03-03 02:46:03 +08:00
|
|
|
|
2023-03-09 20:44:02 +08:00
|
|
|
.chat-message-separator__line {
|
|
|
|
border-top: 1px solid var(--danger-medium);
|
2023-03-03 20:09:25 +08:00
|
|
|
}
|
2023-03-03 03:20:39 +08:00
|
|
|
}
|
2023-03-03 02:46:03 +08:00
|
|
|
|
2023-03-03 20:09:25 +08:00
|
|
|
&-date {
|
2023-03-09 20:44:02 +08:00
|
|
|
box-sizing: border-box;
|
2023-03-03 03:20:39 +08:00
|
|
|
position: absolute;
|
|
|
|
width: 100%;
|
2023-03-03 20:09:25 +08:00
|
|
|
z-index: 2;
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-start;
|
|
|
|
justify-content: center;
|
2023-03-09 20:44:02 +08:00
|
|
|
padding-left: 1rem;
|
2023-03-03 20:09:25 +08:00
|
|
|
pointer-events: none;
|
|
|
|
|
2023-03-06 23:42:11 +08:00
|
|
|
&.with-last-visit {
|
2023-03-03 20:09:25 +08:00
|
|
|
& + .chat-message-separator__line-container {
|
|
|
|
.chat-message-separator__line {
|
|
|
|
border-color: var(--danger-medium);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-message-separator__text-container {
|
2023-03-19 01:03:54 +08:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
height: 40px;
|
2023-03-03 20:09:25 +08:00
|
|
|
position: sticky;
|
|
|
|
top: -1px;
|
|
|
|
|
2023-03-06 23:42:11 +08:00
|
|
|
&.is-pinned,
|
|
|
|
&.is-force-pinned {
|
2023-03-03 20:09:25 +08:00
|
|
|
.chat-message-separator__text {
|
2023-04-19 07:54:02 +08:00
|
|
|
border: 1px solid var(--primary-200);
|
|
|
|
border-radius: 4px;
|
|
|
|
color: var(--primary-800);
|
|
|
|
background: var(--primary-50);
|
2023-06-20 21:58:38 +08:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: 1px solid var(--secondary-high);
|
|
|
|
}
|
2023-03-03 20:09:25 +08:00
|
|
|
}
|
2023-03-06 23:42:11 +08:00
|
|
|
|
|
|
|
.chat-message-separator__last-visit {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-03-03 20:09:25 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-03-09 20:44:02 +08:00
|
|
|
.chat-message-separator__last-visit {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.chat-message-separator__last-visit-separator {
|
|
|
|
margin: 0 0.25rem;
|
|
|
|
}
|
|
|
|
|
2023-03-03 20:09:25 +08:00
|
|
|
.chat-message-separator__text {
|
|
|
|
@include unselectable;
|
|
|
|
background-color: var(--secondary);
|
|
|
|
border: 1px solid transparent;
|
|
|
|
color: var(--secondary-low);
|
|
|
|
font-size: var(--font-down-1);
|
|
|
|
padding: 0.25rem 0.5rem;
|
|
|
|
box-sizing: border-box;
|
2023-03-09 05:23:24 +08:00
|
|
|
display: flex;
|
2023-06-20 21:58:38 +08:00
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: all;
|
|
|
|
|
|
|
|
.no-touch & {
|
|
|
|
&:hover {
|
|
|
|
border: 1px solid var(--secondary-high);
|
|
|
|
border-radius: 4px;
|
|
|
|
color: var(--primary-800);
|
|
|
|
background: var(--primary-50);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.touch & {
|
|
|
|
&:active {
|
|
|
|
border: 1px solid var(--secondary-high);
|
|
|
|
border-radius: 4px;
|
|
|
|
color: var(--primary-800);
|
|
|
|
background: var(--primary-50);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active {
|
|
|
|
transform: scale(0.98);
|
|
|
|
}
|
2023-03-03 20:09:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
& + .chat-message-separator__line-container {
|
2023-04-11 15:03:12 +08:00
|
|
|
padding: 20px 0;
|
2023-03-03 20:09:25 +08:00
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
.chat-message-separator__line {
|
|
|
|
border-top: 1px solid var(--secondary-high);
|
|
|
|
margin: 0 0 -1px;
|
|
|
|
}
|
|
|
|
}
|
2022-11-02 21:41:30 +08:00
|
|
|
}
|
|
|
|
}
|