# 山姆的简单主题

**URL:** https://meta.discourse.org/t/sams-simple-theme/23552
**Category:** Theme
**Tags:** official, sams-simple-theme
**Created:** [2014年十二月31日 03:20 UTC](https://meta.discourse.org/t/sams-simple-theme/23552 "2014-12-31T03:20:14Z")
**Posts on this page:** 20
**Page:** 17

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2021年一月6日 13:55 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/334 "2021-01-06T13:55:11Z")

</div>

分类徽章现在也应该修复了。

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [2021年一月6日 14:09 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/335 "2021-01-06T14:09:51Z")

</div>

未读主题的颜色有点难以阅读：

默认主题：

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

此主题：

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/c/4c1b3762cbdd35d25137b865fb0bc3a7bba6a701.png)

可能需要取消对此的硬编码：

> <https://github.com/discourse/discourse-simple-theme/blob/ce745784e99f57d19cdff7411f102260f3add303/desktop/desktop.scss#L10>

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [2021年五月13日 17:13 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/336 "2021-05-13T17:13:15Z")

</div>

嗯，看起来最近的更新后有些问题。

现在从列表中打开话题会导致完全加载一个新页面，而不是仅加载话题并显示加载指示器等。这有点令人困惑，因为在一瞬间不清楚点击是否生效，而且编辑器窗口也会丢失，因此很难从其他话题中添加引用等内容。

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2021年五月13日 17:19 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/337 "2021-05-13T17:19:02Z")

</div>

几天前曾引入与此相关的错误，但现已修复。

能否请您检查您的站点是否已更新至最新版本？

`/admin/upgrade`

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [2021年五月13日 17:21 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/338 "2021-05-13T17:21:03Z")

</div>

哦，不错 🙂

是的，这不是最新版本  
2.7.0.beta8 ( [f002c58a30](https://github.com/discourse/discourse/commits/f002c58a30efece0b517e07f28b9c37223167d8f) )

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [2021年五月13日 17:29 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/339 "2021-05-13T17:29:21Z")

</div>

您提到的那个 bug 的修复是在您最近一次升级的几天后添加的。能否请您再次尝试升级，并告知该问题是否仍然存在？

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [2021年五月14日 05:16 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/340 "2021-05-14T05:16:27Z")

</div>

是的，升级后似乎运行正常。

不过我很好奇，为什么这个问题只出现在这个主题中？其他主题也有这个 [自动路由](https://github.com/discourse/discourse/pull/12999/files) 功能，但不知为何却能正常工作。🤔

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [2021年五月25日 15:52 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/341 "2021-05-25T15:52:01Z")

</div>

> [@Alex\_P](#):
>
> 未读主题的颜色有点难以阅读：

已提交一个拉取请求来修复此问题

> <https://github.com/discourse/discourse-simple-theme/pull/4>
>
> As shown \[here\](https://meta.discourse.org/t/sams-personal-minimal-topic-list-de…sign/23552/335?u=alex\_p), dark blue link color is not very readable on dark background.
> 
> So this PR adds a custom property in \`color\_definitions\` switching to the color scheme primary color when in dark mode.
> 
> We should keep the original color in light mode because it was one of the features of this theme.

---

<div class="post-metadata">

### Author: ![jlzy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jlzy/32/118594_2.png) [@jlzy](https://meta.discourse.org/u/jlzy)
#### Post date: [2021年八月12日 17:08 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/342 "2021-08-12T17:08:39Z")

</div>

主题视图在更新后在内容方面差异显著……请帮忙！！！

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2021年八月12日 17:29 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/343 "2021-08-12T17:29:11Z")

</div>

你能具体说明一下有哪些变化吗？你有截图吗？

---

<div class="post-metadata">

### Author: ![jlzy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jlzy/32/118594_2.png) [@jlzy](https://meta.discourse.org/u/jlzy)
#### Post date: [2021年八月12日 22:07 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/344 "2021-08-12T22:07:07Z")

</div>

是的，这是更新前的样子：

 ![2021-08-12](https://global.discourse-cdn.com/meta/original/3X/a/6/a6af1be3087aaaf549f6b7bed0a03c3744c92907.png)

现在看起来是这样的：

 ![2021-08-12 (2)](https://global.discourse-cdn.com/meta/original/3X/2/2/221095e3c09abdd1d0b4d62cbb7be2127e20d65e.png)

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2021年八月13日 14:12 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/345 "2021-08-13T14:12:55Z")

</div>

嗯，这有点奇怪……这个主题在 Meta 上运行正常……

 ![Screen Shot 2021-08-13 at 10.13.33 AM](https://global.discourse-cdn.com/meta/original/3X/e/b/eb179d903d1cf6d8e3cf6d010aeff5fdf78abe0a.png)

我在你的网站上没有看到任何控制台错误……你修改过主题吗？如果你安装另一个副本，是否也会出现同样的问题？

---

<div class="post-metadata">

### Author: ![thisnthat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thisnthat/32/164804_2.png) [@thisnthat](https://meta.discourse.org/u/thisnthat)
#### Post date: [2021年八月13日 15:06 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/346 "2021-08-13T15:06:22Z")

</div>

快速查看显示，[REFACTOR: Update structure, fix for ember-cli (#5) · discourse/discourse-simple-theme@0482a6c · GitHub](https://github.com/discourse/discourse-simple-theme/commit/0482a6c24d49e5d35f338038f6fb1ac443e15709) 可能在 8 月 10 日更改了该页面的格式方式。

---

<div class="post-metadata">

### Author: ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)
#### Post date: [2021年八月13日 15:12 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/347 "2021-08-13T15:12:34Z")

</div>

该更新重构了主题结构，并修复了与我们的 ember-cli 更新相关的问题，但不应改变任何布局（在我们的主题创建器网站上也能按预期工作：[https://theme-creator.discourse.org/theme/awesomerobot/simple）。](https://theme-creator.discourse.org/theme/awesomerobot/simple%EF%BC%89%E3%80%82)

---

<div class="post-metadata">

### Author: ![thisnthat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thisnthat/32/164804_2.png) [@thisnthat](https://meta.discourse.org/u/thisnthat)
#### Post date: [2021年八月13日 15:28 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/348 "2021-08-13T15:28:25Z")

</div>

我找到了问题所在，看起来这些更改与现有的某个组件发生了冲突，从而导致显示格式发生了变化。

谢谢

---

<div class="post-metadata">

### Author: ![Frully](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frully/32/235059_2.png) [@Frully](https://meta.discourse.org/u/Frully)
#### Post date: [2021年十一月21日 23:56 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/349 "2021-11-21T23:56:04Z")

</div>

我遇到了与最近更新类似的问题 - 一次性更新了所有内容，所以不确定是主题、另一个组件还是 Discourse 本身的问题：  
Discourse 2.8.0.beta8  
10a57825c8

主题于 11 月 21 日更新（找不到版本号），显示“最新”。

现在，已读和未读在桌面上都显示为“未读”的次蓝色，但在移动设备上工作正常：  
桌面：

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/9/598affe5e9d58c996e71caad03137580d654d1b5.jpeg)

移动设备：

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/6/b694e39fd8c5fea905d1c71cb2d1a60641a4fabe.jpeg)

在我们制作的各种浅色、中色、深色主题方案上也是如此……“类别+最新”主页的 2 列布局似乎是正确的，未读主题更亮更粗体，已读主题更柔和不粗体；但“最新”列表一直都是粗体三级。

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

在其他主题（默认和其他主题）上使用预览似乎显示了正确的行为。

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/d/cdb9c17f4c54e43b0b510c95e150740a1a4fcf40.png)

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [2021年十二月25日 22:30 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/350 "2021-12-25T22:30:11Z")

</div>

您解决了这个问题吗？  
对我来说也是一样，所有内容都显示为未读，其他主题都可以正常工作。

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [2021年十二月26日 10:38 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/351 "2021-12-26T10:38:47Z")

</div>

在 DevTools 中查看，似乎当我使用此主题时，来自 `app/assets/stylesheets/common/base/_topic-list.scss` 的这条规则不知何故消失了

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/9/69f643c4311d30a7b2f2e45e0e1dbaa01fb4678a.png)

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [2021年十二月26日 15:01 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/352 "2021-12-26T15:01:38Z")

</div>

ah, looks like `topic-list-data` is missing here.

> <https://github.com/discourse/discourse-simple-theme/blob/0482a6c24d49e5d35f338038f6fb1ac443e15709/javascripts/discourse/templates/list/topic-list-item.hbr#L11>

Submitted PR.

> <https://github.com/discourse/discourse-simple-theme/pull/7>
>
> without it the CSS rule for visited topics is not applied
> https://meta.discours…e.org/t/sams-personal-minimal-topic-list-design/23552/351?u=alex\_p

---

<div class="post-metadata">

### Author: ![Frully](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/frully/32/235059_2.png) [@Frully](https://meta.discourse.org/u/Frully)
#### Post date: [2021年十二月27日 14:49 UTC](https://meta.discourse.org/t/sams-simple-theme/23552/353 "2021-12-27T14:49:38Z")

</div>

我没有——非常感谢你对此进行调查 🙂

[上一頁](https://meta.discourse.org/t/sams-simple-theme/23552.md?page=16)

[下一頁](https://meta.discourse.org/t/sams-simple-theme/23552.md?page=18)
