有办法将回复链接在它们发帖后吗?

我意识到我第一次这样做时,OP 的“回复”按钮会像后续帖子一样显示“回复此评论”。但它不是评论,而是主题。

将类似的 CSS 块定位到 #post_1 可以为第一个按钮提供它自己的文本。

这是我现在使用的完整自定义 CSS 组件,按页面上的使用顺序排列:

/* 为原始帖子(又名主题)的回复按钮添加文本 */
#post_1 nav.post-controls {
  .actions {
    button.reply {
      span.d-button-label:after {
        /* 在回复后添加此内容 */
        content: " to this Topic";
      }
    }
  }
}

/* 为所有后续帖子(我称之为评论)的回复按钮添加文本 */
nav.post-controls {
  .actions {
    button.reply {
      span.d-button-label:after {
        /* 在回复后添加此内容 */
        content: " to this comment";
      }
    }
  }
}

/* 为出现在页面末尾的蓝色回复(回复主题)按钮添加文本 */
#topic-footer-buttons {
  .topic-footer-main-buttons {
    button.btn-primary.create {
      span.d-button-label:after {
        /* 在回复后添加此内容 */
        content: " to main Topic";
      }
    }
  }
}
3 个赞