2016-05-13 17:45:34 +08:00
|
|
|
/* hide the reply border above the time gap notices */
|
2018-06-19 02:10:48 +08:00
|
|
|
.time-gap + .topic-post article {
|
2016-05-13 17:45:34 +08:00
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
|
2018-02-09 06:04:29 +08:00
|
|
|
.time-gap {
|
|
|
|
.topic-avatar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-07 12:40:40 +08:00
|
|
|
.topic-post-visited {
|
2021-07-05 14:17:31 +08:00
|
|
|
+ .topic-post article {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-03-29 02:39:55 +08:00
|
|
|
.topic-post article {
|
2020-08-04 10:57:10 +08:00
|
|
|
border-top: 1px solid var(--primary-low);
|
2018-01-13 06:27:38 +08:00
|
|
|
padding: 15px 0 8px 0;
|
2016-03-29 02:39:55 +08:00
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
span.badge-posts {
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
|
2013-09-14 12:39:08 +08:00
|
|
|
.show-replies {
|
2013-09-06 03:37:07 +08:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2022-01-04 22:44:54 +08:00
|
|
|
nav.post-controls {
|
|
|
|
// for consistency, try to control spacing by editing these variables
|
|
|
|
--control-space: 0.58em;
|
|
|
|
--control-space-small: calc(var(--control-space) / 2);
|
|
|
|
--control-space-large: calc(var(--control-space) * 1.3);
|
2022-02-26 06:03:58 +08:00
|
|
|
// on small devices with many buttons this can overflow
|
|
|
|
overflow-x: scroll;
|
|
|
|
|
2022-01-04 22:44:54 +08:00
|
|
|
.actions {
|
|
|
|
// using an auto margin on first-child instead of justify-content on the parent
|
|
|
|
// because justify-content breaks overflow scrolling
|
|
|
|
:first-child {
|
|
|
|
margin-left: auto;
|
2020-09-26 09:06:17 +08:00
|
|
|
}
|
2022-01-04 22:44:54 +08:00
|
|
|
// Some buttons can be doubled up, like likes or flags
|
|
|
|
.double-button {
|
|
|
|
button {
|
|
|
|
&.button-count {
|
|
|
|
padding: var(--control-space);
|
|
|
|
+ .toggle-like,
|
|
|
|
+ .create-flag {
|
|
|
|
padding: var(--control-space) var(--control-space-large)
|
|
|
|
var(--control-space) var(--control-space-small);
|
2018-04-28 05:15:29 +08:00
|
|
|
}
|
2022-01-04 22:44:54 +08:00
|
|
|
&.regular-likes {
|
|
|
|
padding: var(--control-space) var(--control-space-small)
|
|
|
|
var(--control-space) var(--control-space-large);
|
2018-04-28 05:15:29 +08:00
|
|
|
}
|
|
|
|
}
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2022-01-04 22:44:54 +08:00
|
|
|
}
|
|
|
|
button {
|
|
|
|
padding: var(--control-space) var(--control-space-large);
|
|
|
|
&.expand-post {
|
|
|
|
margin: var(--control-space) 0 var(--control-space) 0;
|
2017-11-16 03:52:33 +08:00
|
|
|
}
|
2022-01-04 22:44:54 +08:00
|
|
|
&.has-like {
|
|
|
|
.d-icon {
|
|
|
|
color: var(--love);
|
2019-02-01 04:13:22 +08:00
|
|
|
}
|
2017-11-16 03:52:33 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
2022-01-04 22:44:54 +08:00
|
|
|
}
|
2024-05-09 00:00:17 +08:00
|
|
|
|
|
|
|
.show-replies {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 9px;
|
|
|
|
border-radius: var(--d-button-border-radius);
|
|
|
|
|
|
|
|
.d-icon {
|
|
|
|
padding-left: var(--control-space);
|
|
|
|
margin-left: 0 !important;
|
|
|
|
}
|
|
|
|
&[aria-expanded="true"] {
|
|
|
|
background: var(--primary-low);
|
|
|
|
color: var(--primary-high);
|
|
|
|
box-shadow: 0px 0px 0px 1px var(--primary-300);
|
|
|
|
z-index: 1;
|
|
|
|
margin-left: 1px;
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary-high);
|
|
|
|
}
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: var(--primary);
|
|
|
|
background: var(--primary-300);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-01-04 22:44:54 +08:00
|
|
|
&.replies-button-visible {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
.show-replies {
|
2020-12-11 01:02:07 +08:00
|
|
|
display: flex;
|
2022-01-04 22:44:54 +08:00
|
|
|
+ .reply {
|
|
|
|
margin-left: 0;
|
2020-12-11 01:02:07 +08:00
|
|
|
}
|
2022-01-04 22:44:54 +08:00
|
|
|
.d-icon {
|
|
|
|
padding-left: var(--control-space);
|
2020-12-11 01:02:07 +08:00
|
|
|
}
|
|
|
|
}
|
2022-01-04 22:44:54 +08:00
|
|
|
.actions {
|
|
|
|
flex-grow: 2;
|
|
|
|
}
|
2014-03-19 22:02:09 +08:00
|
|
|
}
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
2021-07-21 22:41:04 +08:00
|
|
|
nav.post-controls button.reply .d-icon {
|
|
|
|
color: var(--primary-high);
|
|
|
|
}
|
|
|
|
|
2014-05-13 20:53:11 +08:00
|
|
|
.post-admin-menu {
|
2018-06-19 01:01:40 +08:00
|
|
|
bottom: -50px;
|
2014-10-14 04:38:22 +08:00
|
|
|
left: 135px;
|
2018-06-19 01:01:40 +08:00
|
|
|
@media screen and (max-width: 374px) {
|
|
|
|
left: 50px;
|
|
|
|
}
|
2014-05-13 20:53:11 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
|
|
|
.embedded-posts {
|
2024-05-09 00:00:17 +08:00
|
|
|
position: relative;
|
|
|
|
padding: 0.75em 0.5em 0.75em 0;
|
|
|
|
max-width: 100%;
|
|
|
|
margin-left: 0;
|
|
|
|
> div {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
position: relative;
|
|
|
|
margin-bottom: 1.5em;
|
|
|
|
.row {
|
|
|
|
// Main reply line
|
|
|
|
&:before {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
top: calc(-2px - 0.75em);
|
|
|
|
width: 1px;
|
|
|
|
height: calc(100% + 1.5em + 5px);
|
|
|
|
background: var(--primary-300);
|
|
|
|
left: 24px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.topic-avatar {
|
|
|
|
@include sticky;
|
|
|
|
top: calc(var(--header-offset) + 0.5em);
|
|
|
|
margin-right: 15px;
|
|
|
|
}
|
|
|
|
.topic-body {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
max-width: calc(100% - 32px);
|
|
|
|
margin-left: auto;
|
|
|
|
gap: 0.25em 0;
|
|
|
|
padding-bottom: 1.5em;
|
|
|
|
.topic-meta-data.embedded-reply {
|
|
|
|
margin-left: 0;
|
|
|
|
h5 a {
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
.names {
|
|
|
|
margin-bottom: 0.25em;
|
|
|
|
.user-title {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
.second {
|
|
|
|
flex-basis: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.post-link-arrow {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
.post-info.arrow {
|
|
|
|
padding: 0.5em 0;
|
|
|
|
margin-right: 0;
|
|
|
|
color: var(--primary-med-or-secondary-high);
|
|
|
|
line-height: 1;
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: var(--primary-high);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.collapse-up {
|
|
|
|
position: relative;
|
|
|
|
padding: 6px;
|
|
|
|
color: var(--primary-high);
|
|
|
|
background: var(--primary-low);
|
|
|
|
z-index: 1;
|
|
|
|
transform: translate(25%, -30%);
|
|
|
|
box-shadow: 0px 0px 0px 1px var(--primary-300);
|
|
|
|
.archetype-private_message & {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
.d-icon {
|
|
|
|
transform: scale(0.871);
|
|
|
|
}
|
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
background: var(--primary-300);
|
|
|
|
.d-icon {
|
|
|
|
color: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-actions {
|
2015-09-17 15:00:53 +08:00
|
|
|
/* overriding display: here was causing hidden element to take up space */
|
2014-10-20 13:47:34 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.post-action {
|
|
|
|
float: right;
|
|
|
|
margin-right: 10px;
|
|
|
|
clear: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-action .relative-date {
|
|
|
|
margin-left: 5px;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
a.reply-to-tab {
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("base") + 1;
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-med-or-secondary-med);
|
2018-06-21 01:06:20 +08:00
|
|
|
margin-right: 0.5em;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2014-05-14 03:07:05 +08:00
|
|
|
.topic-post .boxed .contents {
|
2014-06-13 14:14:58 +08:00
|
|
|
clear: both;
|
2014-05-14 03:07:05 +08:00
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
#topic-footer-buttons {
|
2020-04-16 07:20:44 +08:00
|
|
|
.d-icon-bookmark.bookmarked,
|
|
|
|
.d-icon-discourse-bookmark-clock.bookmarked {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--tertiary);
|
2018-06-08 17:49:31 +08:00
|
|
|
}
|
2020-05-23 12:56:13 +08:00
|
|
|
|
2021-01-28 05:17:08 +08:00
|
|
|
.topic-footer-main-buttons {
|
|
|
|
display: flex;
|
|
|
|
align-items: stretch;
|
|
|
|
}
|
|
|
|
|
2020-05-23 12:56:13 +08:00
|
|
|
.topic-footer-mobile-dropdown {
|
2021-03-18 10:42:52 +08:00
|
|
|
margin-right: 0.5em;
|
2021-01-28 05:17:08 +08:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.select-kit-header {
|
|
|
|
height: 100%;
|
2015-12-12 04:07:38 +08:00
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
2019-07-29 23:54:23 +08:00
|
|
|
.topic-notifications-button,
|
|
|
|
.pinned-button {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2021-03-18 10:42:52 +08:00
|
|
|
|
|
|
|
.reason {
|
2023-12-18 23:59:03 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-03-18 10:42:52 +08:00
|
|
|
align-items: flex-start;
|
2023-12-18 23:59:03 +08:00
|
|
|
|
|
|
|
.text {
|
|
|
|
margin-left: 0;
|
|
|
|
margin-top: 0.25rem;
|
2021-03-18 10:42:52 +08:00
|
|
|
}
|
|
|
|
}
|
2019-07-29 23:54:23 +08:00
|
|
|
@include breakpoint(mobile-medium) {
|
|
|
|
display: inline-block;
|
|
|
|
.reason {
|
|
|
|
display: block;
|
|
|
|
margin: 0.5em 0 0 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2014-05-06 15:48:44 +08:00
|
|
|
}
|
|
|
|
|
2013-09-06 03:37:07 +08:00
|
|
|
span.post-count {
|
2020-08-04 10:57:10 +08:00
|
|
|
background: var(--primary);
|
|
|
|
color: var(--secondary);
|
2018-06-08 17:49:31 +08:00
|
|
|
opacity: 0.8;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
#topic-title {
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("base") + 1;
|
2021-05-26 17:12:32 +08:00
|
|
|
margin: 0;
|
2021-06-08 01:22:28 +08:00
|
|
|
padding: 0 0 1em;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.quote-button.visible {
|
2018-01-17 08:05:12 +08:00
|
|
|
z-index: z("tooltip");
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.btn-group {
|
2013-10-22 14:56:46 +08:00
|
|
|
margin-top: 25px;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dropdown-toggle {
|
2013-09-14 12:39:08 +08:00
|
|
|
float: left;
|
2013-09-06 03:37:07 +08:00
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2016-04-09 03:25:52 +08:00
|
|
|
.selected-posts {
|
|
|
|
padding: 0.1em 0.7em;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2015-01-21 14:51:15 +08:00
|
|
|
// hide the full set of selection buttons on mobile
|
2018-06-08 17:49:31 +08:00
|
|
|
.select-posts button {
|
|
|
|
display: none;
|
|
|
|
}
|
2015-01-21 14:51:15 +08:00
|
|
|
|
|
|
|
// unhide the simple "select just this post" button
|
|
|
|
button.select-post {
|
|
|
|
display: inline-block;
|
2013-09-06 03:37:07 +08:00
|
|
|
}
|
|
|
|
|
2013-09-06 04:28:16 +08:00
|
|
|
.deleted-user-avatar {
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-up-5);
|
2013-09-06 04:28:16 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
span.btn-text {
|
|
|
|
display: none;
|
|
|
|
}
|
2013-09-06 03:37:07 +08:00
|
|
|
|
2013-09-13 04:00:53 +08:00
|
|
|
blockquote {
|
2018-06-08 17:49:31 +08:00
|
|
|
clear: both;
|
2014-06-30 15:51:17 +08:00
|
|
|
/* leave browser defaults for top and bottom here */
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
2013-09-13 04:00:53 +08:00
|
|
|
}
|
|
|
|
|
2022-03-01 06:37:24 +08:00
|
|
|
pre.codeblock-buttons code {
|
2020-04-21 21:02:13 +08:00
|
|
|
padding-right: 2.75em;
|
|
|
|
}
|
|
|
|
|
2018-02-09 06:04:29 +08:00
|
|
|
.gap {
|
2018-03-30 11:18:15 +08:00
|
|
|
padding: 0.25em 0;
|
2018-02-09 06:04:29 +08:00
|
|
|
}
|
|
|
|
|
2018-06-08 17:49:31 +08:00
|
|
|
.posts-wrapper {
|
|
|
|
position: relative;
|
|
|
|
}
|
2014-03-31 23:29:32 +08:00
|
|
|
|
2014-06-05 00:15:59 +08:00
|
|
|
span.highlighted {
|
2023-02-21 17:15:49 +08:00
|
|
|
background-color: var(--highlight-bg);
|
2014-06-05 00:15:59 +08:00
|
|
|
}
|
|
|
|
|
2014-05-10 14:09:04 +08:00
|
|
|
.topic-avatar {
|
|
|
|
float: left;
|
2018-01-13 06:27:38 +08:00
|
|
|
margin-right: 10px;
|
2018-06-19 01:01:40 +08:00
|
|
|
z-index: z("base") + 1;
|
|
|
|
/* must render on top of topic-body + topic-meta-data, otherwise not tappable */
|
2014-05-10 14:09:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.topic-meta-data {
|
2015-09-30 00:57:54 +08:00
|
|
|
margin-left: 50px;
|
2022-10-12 21:31:59 +08:00
|
|
|
font-size: var(--font-down-1);
|
2014-06-06 00:32:48 +08:00
|
|
|
.names {
|
2022-10-12 22:05:42 +08:00
|
|
|
line-height: var(--line-height-medium);
|
2018-07-09 11:45:00 +08:00
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2018-10-02 10:56:50 +08:00
|
|
|
|
2018-07-09 11:45:00 +08:00
|
|
|
.full-name {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2018-10-02 10:56:50 +08:00
|
|
|
|
|
|
|
.first {
|
|
|
|
order: 1;
|
2018-07-09 11:45:00 +08:00
|
|
|
}
|
2018-10-02 10:56:50 +08:00
|
|
|
|
2018-07-09 11:45:00 +08:00
|
|
|
.poster-icon {
|
|
|
|
order: 2;
|
|
|
|
}
|
2018-10-02 10:56:50 +08:00
|
|
|
|
2022-10-13 00:54:24 +08:00
|
|
|
.user-status-message-wrap {
|
|
|
|
order: 2;
|
|
|
|
}
|
|
|
|
|
2018-10-02 10:56:50 +08:00
|
|
|
.second {
|
2018-07-09 11:45:00 +08:00
|
|
|
order: 3;
|
|
|
|
flex-basis: 100%;
|
|
|
|
}
|
2018-10-02 10:56:50 +08:00
|
|
|
|
2018-07-09 11:45:00 +08:00
|
|
|
.user-title {
|
|
|
|
order: 4;
|
2018-08-13 13:29:46 +08:00
|
|
|
flex-basis: 100%;
|
2018-07-09 11:45:00 +08:00
|
|
|
}
|
|
|
|
span {
|
2024-05-22 01:13:38 +08:00
|
|
|
margin-right: 0.26em;
|
2018-07-09 11:45:00 +08:00
|
|
|
}
|
2014-06-06 00:32:48 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.username.new-user a {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-low-mid);
|
2014-06-06 00:32:48 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.user-title {
|
2020-08-04 10:57:10 +08:00
|
|
|
color: var(--primary-medium);
|
2014-06-06 00:32:48 +08:00
|
|
|
overflow: hidden;
|
|
|
|
margin-right: 50px;
|
2014-03-31 23:29:32 +08:00
|
|
|
}
|
2014-06-03 13:33:00 +08:00
|
|
|
|
|
|
|
.read-state {
|
2024-02-07 00:50:49 +08:00
|
|
|
// contained within the padding to prevent vertical overflow
|
|
|
|
max-width: var(--d-wrap-padding-h);
|
|
|
|
right: calc(var(--d-wrap-padding-h) * -1);
|
2024-02-15 04:52:02 +08:00
|
|
|
font-size: var(--font-down-5);
|
2024-02-07 00:50:49 +08:00
|
|
|
|
|
|
|
svg {
|
2024-06-04 21:40:41 +08:00
|
|
|
right: -0.25em;
|
2024-02-07 00:50:49 +08:00
|
|
|
}
|
2014-06-03 13:33:00 +08:00
|
|
|
}
|
2015-07-30 09:19:30 +08:00
|
|
|
|
2019-03-08 18:23:44 +08:00
|
|
|
.post-notice {
|
2022-07-08 22:31:28 +08:00
|
|
|
box-sizing: border-box;
|
2019-03-08 18:23:44 +08:00
|
|
|
margin-bottom: 1em;
|
2019-04-04 04:10:54 +08:00
|
|
|
&.old {
|
|
|
|
border-top: none;
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
2019-03-08 18:23:44 +08:00
|
|
|
}
|
2020-12-11 01:02:07 +08:00
|
|
|
|
|
|
|
.posts-filtered-notice {
|
2021-10-29 21:23:15 +08:00
|
|
|
padding-right: 8.5em;
|
|
|
|
padding-bottom: unquote("max(1em, env(safe-area-inset-bottom))");
|
2020-12-11 01:02:07 +08:00
|
|
|
flex-wrap: wrap;
|
|
|
|
justify-content: flex-start;
|
|
|
|
margin: 1em -9px;
|
|
|
|
|
|
|
|
z-index: 101;
|
|
|
|
.filtered-replies-show-all {
|
|
|
|
position: absolute;
|
2021-10-29 21:23:15 +08:00
|
|
|
right: 1em;
|
2020-12-11 01:02:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.filtered-replies-viewing {
|
|
|
|
text-align: left;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.filtered-avatar {
|
|
|
|
margin-left: 0;
|
|
|
|
img.avatar {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-26 03:06:28 +08:00
|
|
|
|
|
|
|
.open-popup-link {
|
|
|
|
opacity: 100%;
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
}
|
2022-10-01 02:51:44 +08:00
|
|
|
|
|
|
|
.placeholder .topic-body {
|
|
|
|
width: 100%;
|
|
|
|
}
|