# 关于工作人员颜色的问题

**URL:** <https://meta.discourse.org/t/questions-regarding-staff-color/79169>\
**Category:** Support\
**Created:** [2018年一月27日 21:17 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169 "2018-01-27T21:17:48Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Indominus](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@Indominus](https://meta.discourse.org/u/Indominus)\
**Post date:** [2018年一月27日 21:17 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/1 "2018-01-27T21:17:48Z")

</div>

Two questions regarding Staff Color:

1. Is it possible to add staff color to all admin/moderator posts automatically after posting?

I know there have been a few people that have asked the same question, but I haven’t seen an answer yet. It would be easier for my moderators/admins to have the staff color added automatically, instead of them having to manually add it to each post.

1. The staff color has seemed to change over the last couple of updates… Originally it was the entire post that was colored, now it seems to be just the text. Is there any way to change this back?

Current: [Screenshot by Lightshot](http://prntscr.com/i6hlky)

Original: [Screenshot by Lightshot](http://prntscr.com/i6hmby)

Any help with these would be greatly appreciated 🙂 Thanks!

---

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [2018年一月27日 21:52 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/2 "2018-01-27T21:52:24Z")

</div>

> [@Indominus](#):
>
> Is it possible to add staff color to all admin/moderator posts automatically after posting?

Not that I know of, but you can put the Admin accounts into a group (lets call it Administrators), set it as their Primary Group, and target that with CSS `.topic-post.group-administrators { background-color: whatever_you_want; }`

The above solution, might help with your second concern too.

---

<div class="post-metadata">

**Author:** ![Indominus](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@Indominus](https://meta.discourse.org/u/Indominus)\
**Post date:** [2018年一月27日 22:03 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/3 "2018-01-27T22:03:58Z")

</div>

@cpradio That seems to make the entire post the same color, along with extending it to the edge of the screen (shown below)

 ![oops](https://global.discourse-cdn.com/meta/original/3X/8/b/8b36c9062ff73813b635f7b35c2dc84f8a1db1b0.png)

Would it be possible to have it only highlight the post itself?

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2018年一月27日 22:10 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/4 "2018-01-27T22:10:32Z")

</div>

Try adding `.topic-body` like below. It can work.

```css
.topic-post.group-administrators .topic-body {
  background-color: whatever_you_want;
}

```

---

<div class="post-metadata">

**Author:** ![Indominus](https://avatars.discourse-cdn.com/v4/letter/i/e274bd/32.png) [@Indominus](https://meta.discourse.org/u/Indominus)\
**Post date:** [2018年一月27日 22:12 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/5 "2018-01-27T22:12:52Z")

</div>

😮 Perfect! Thank you 🙂

---

<div class="post-metadata">

**Author:** ![Juvenius\_Drakonius](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/juvenius_drakonius/32/161141_2.png) [@Juvenius\_Drakonius](https://meta.discourse.org/u/Juvenius_Drakonius)\
**Post date:** [2019年十一月21日 00:54 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/6 "2019-11-21T00:54:30Z")

</div>

这段代码还能用吗？

---

<div class="post-metadata">

**Author:** ![aschrijver](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aschrijver/32/92004_2.png) [@aschrijver](https://meta.discourse.org/u/aschrijver)\
**Post date:** [2020年九月6日 07:13 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/7 "2020-09-06T07:13:19Z")

</div>

我目前正在使用以下 CSS 来更改版主帖子的颜色：

```css
.topic-post.moderator .topic-body .cooked {
  background-color: #E6F0E6;
}

```

---

<div class="post-metadata">

**Author:** ![tin.hoang](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tin.hoang/32/263804_2.png) [@tin.hoang](https://meta.discourse.org/u/tin.hoang)\
**Post date:** [2022年六月17日 01:51 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/8 "2022-06-17T01:51:08Z")

</div>

> [@vinothkannans](#):
>
> ```plaintext
> .topic-post.group-administrators .topic-body {
> background-color: whatever_you_want;
> }
> 
> ```

非常不熟悉 discourse。CSS 放在哪里？编辑 CSS/HTML \> CSS 选项卡？

---

<div class="post-metadata">

**Author:** ![ondrej](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ondrej/32/198804_2.png) [@ondrej](https://meta.discourse.org/u/ondrej)\
**Post date:** [2022年六月17日 12:33 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/9 "2022-06-17T12:33:18Z")

</div>

你好 🙂

前往 `your-site-name/admin/customize/themes`，你可以点击一个主题（或主题组件）

接下来，向下滚动直到看到这个

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/0/9/b0918813b0d847a82b865bb9c741bc39b3e44de6.png)

你现在会看到主题自定义选项，你可以在这里更改/添加 CSS

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/d/f/0dfc41c19fae9c493cc8e33f04c9a7712c6a1187.png)

---

<div class="post-metadata">

**Author:** ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)\
**Post date:** [2023年四月16日 05:18 UTC](https://meta.discourse.org/t/questions-regarding-staff-color/79169/10 "2023-04-16T05:18:26Z")

</div>


