2021-07-21 22:41:04 +08:00
|
|
|
.archetype-private_message {
|
2023-12-23 03:28:02 +08:00
|
|
|
--pm-border-radius: 2em;
|
|
|
|
--pm-padding: 1.25em;
|
2021-07-21 22:41:04 +08:00
|
|
|
|
|
|
|
@keyframes current-user-background-fade-highlight {
|
|
|
|
0% {
|
|
|
|
background-color: var(--secondary);
|
|
|
|
border-color: var(--primary-low);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
background-color: var(--tertiary-very-low);
|
|
|
|
border-color: transparent;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-23 03:28:02 +08:00
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
.topic-body.topic-body.highlighted .cooked {
|
|
|
|
animation: unset;
|
2021-07-24 01:06:48 +08:00
|
|
|
}
|
2021-07-21 22:41:04 +08:00
|
|
|
|
2023-12-23 03:28:02 +08:00
|
|
|
.topic-body.highlighted .regular.contents {
|
|
|
|
animation: background-fade-highlight 2.5s ease-out;
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-23 03:28:02 +08:00
|
|
|
.topic-post {
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 1.5em;
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-23 03:28:02 +08:00
|
|
|
.regular.contents {
|
|
|
|
border-radius: 0 var(--pm-border-radius) var(--pm-border-radius)
|
|
|
|
var(--pm-border-radius);
|
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
padding-left: var(--pm-padding);
|
|
|
|
.desktop-view & {
|
|
|
|
margin-left: calc(var(--pm-padding) * -1);
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.topic-avatar,
|
|
|
|
.topic-body {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
|
2023-12-23 03:28:02 +08:00
|
|
|
.topic-body .cooked {
|
|
|
|
box-sizing: border-box;
|
|
|
|
margin-top: 0.25em;
|
|
|
|
padding-right: calc(var(--topic-body-width-padding) * 2);
|
|
|
|
}
|
|
|
|
|
2021-07-21 22:41:04 +08:00
|
|
|
.post-menu-area {
|
2023-12-23 03:28:02 +08:00
|
|
|
padding-right: calc(var(--topic-body-width-padding) * 2);
|
|
|
|
margin: 0.5em 0 var(--topic-body-width-padding);
|
|
|
|
}
|
|
|
|
|
|
|
|
.who-liked {
|
|
|
|
box-sizing: border-box;
|
|
|
|
padding-right: var(--topic-body-width-padding);
|
|
|
|
}
|
|
|
|
|
|
|
|
.small-action {
|
|
|
|
margin: 1em 0 0;
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.post-notice {
|
|
|
|
box-sizing: border-box;
|
2023-12-23 03:28:02 +08:00
|
|
|
border-radius: var(--pm-border-radius);
|
|
|
|
background-color: var(--tertiary-very-low);
|
|
|
|
border-color: var(--tertiary-very-low);
|
|
|
|
margin-bottom: 1em;
|
|
|
|
margin-left: 1.65em;
|
|
|
|
padding: var(--pm-padding) 2em;
|
|
|
|
max-width: calc(
|
|
|
|
var(--topic-body-width) + var(--topic-body-width-padding) * 2 +
|
|
|
|
var(--topic-avatar-width) - 1.65em
|
|
|
|
);
|
|
|
|
&.old {
|
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
}
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.topic-map {
|
2023-12-23 03:28:02 +08:00
|
|
|
margin-left: calc(var(--pm-padding) * -1);
|
2021-07-21 22:41:04 +08:00
|
|
|
border: none;
|
2023-12-23 03:28:02 +08:00
|
|
|
border-radius: var(--pm-border-radius);
|
|
|
|
padding: var(--pm-padding);
|
2021-07-21 22:41:04 +08:00
|
|
|
|
|
|
|
section {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
.map:not(.map-collapsed) {
|
|
|
|
.avatars {
|
|
|
|
margin: 0.5em 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.participants {
|
|
|
|
margin-bottom: 1.5em;
|
|
|
|
.user {
|
|
|
|
border: none;
|
|
|
|
background: var(--primary-low);
|
|
|
|
padding: 2px 4px;
|
2023-12-23 03:28:02 +08:00
|
|
|
border-radius: var(--pm-border-radius);
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.map:first-of-type .buttons .btn {
|
|
|
|
border: none;
|
2023-12-23 03:28:02 +08:00
|
|
|
border-radius: var(--pm-border-radius);
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.embedded-posts {
|
|
|
|
border: none;
|
|
|
|
.topic-body {
|
|
|
|
overflow: visible;
|
2023-12-23 03:28:02 +08:00
|
|
|
width: 100%;
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
.topic-avatar {
|
2023-12-23 03:28:02 +08:00
|
|
|
padding-left: 0;
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
.collapse-down,
|
|
|
|
.collapse-up {
|
|
|
|
display: none;
|
|
|
|
}
|
2023-12-23 03:28:02 +08:00
|
|
|
&.bottom {
|
|
|
|
margin-bottom: 0;
|
|
|
|
margin-right: calc(var(--topic-body-width-padding) * 2);
|
|
|
|
}
|
|
|
|
&.top {
|
|
|
|
.cooked {
|
|
|
|
border: 1px solid var(--primary-low);
|
|
|
|
border-radius: var(--pm-border-radius);
|
|
|
|
margin-left: calc(var(--pm-padding) * -1);
|
|
|
|
padding-left: 2.15em;
|
|
|
|
}
|
|
|
|
.row {
|
|
|
|
.topic-body,
|
|
|
|
.topic-avatar {
|
|
|
|
border: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.timeline-replies {
|
|
|
|
display: flex;
|
|
|
|
align-items: baseline;
|
|
|
|
margin-right: 0.15em;
|
|
|
|
}
|
|
|
|
|
2023-12-23 04:16:59 +08:00
|
|
|
// special post type colors
|
2023-12-23 03:28:02 +08:00
|
|
|
|
2023-12-23 04:16:59 +08:00
|
|
|
.current-user-post {
|
|
|
|
&:not(.moderator):not(.whisper.current-user-post) {
|
|
|
|
.regular.contents {
|
|
|
|
background: var(--tertiary-very-low);
|
|
|
|
border-color: var(--tertiary-very-low);
|
|
|
|
}
|
|
|
|
.topic-body.highlighted {
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
.cooked {
|
|
|
|
animation: unset;
|
|
|
|
}
|
|
|
|
.regular.contents {
|
|
|
|
animation: current-user-background-fade-highlight 2.5s ease-out;
|
|
|
|
}
|
2023-12-23 03:28:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.topic-body .cooked {
|
2023-12-23 04:16:59 +08:00
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
|
|
|
.embedded-posts {
|
|
|
|
.topic-body .cooked {
|
|
|
|
background: transparent;
|
|
|
|
}
|
2023-12-23 03:28:02 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-12-23 04:16:59 +08:00
|
|
|
.moderator {
|
|
|
|
.regular.contents {
|
|
|
|
background: var(--highlight-low);
|
|
|
|
border-color: var(--highlight-low);
|
|
|
|
}
|
|
|
|
.regular.contents .cooked {
|
|
|
|
background: transparent;
|
|
|
|
border: 1px solid transparent;
|
|
|
|
}
|
2023-12-23 03:28:02 +08:00
|
|
|
}
|
|
|
|
|
2023-12-23 04:16:59 +08:00
|
|
|
.deleted {
|
|
|
|
.regular.contents {
|
|
|
|
background: var(--danger-low);
|
|
|
|
border-color: var(--danger-low);
|
|
|
|
}
|
|
|
|
.topic-body .regular .cooked {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
.topic-body.highlighted .regular.contents {
|
|
|
|
animation: unset;
|
|
|
|
}
|
2023-12-23 03:28:02 +08:00
|
|
|
}
|
|
|
|
|
2023-12-23 04:16:59 +08:00
|
|
|
.whisper {
|
|
|
|
.topic-body .regular.contents {
|
|
|
|
background: transparent;
|
|
|
|
border: 2px dashed var(--primary-low);
|
|
|
|
}
|
2023-12-23 03:28:02 +08:00
|
|
|
|
2023-12-23 04:16:59 +08:00
|
|
|
&.current-user-post .topic-body .regular.contents {
|
|
|
|
border: 2px dashed var(--tertiary-low);
|
|
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
|
|
animation: background-fade-highlight 2.5s ease-out;
|
|
|
|
}
|
2023-12-23 03:28:02 +08:00
|
|
|
}
|
2021-07-21 22:41:04 +08:00
|
|
|
}
|
|
|
|
}
|