# 完整主题

**URL:** https://meta.discourse.org/t/fully-theme/262833
**Category:** Theme
**Tags:** official, fully-theme
**Created:** [2023年四月25日 15:07 UTC](https://meta.discourse.org/t/fully-theme/262833 "2023-04-25T15:07:59Z")
**Posts on this page:** 15
**Page:** 4

<div class="post-metadata">

### Author: ![Renato\_Mendes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato_mendes/32/308464_2.png) [@Renato\_Mendes](https://meta.discourse.org/u/Renato_Mendes)
#### Post date: [2023年十月9日 18:37 UTC](https://meta.discourse.org/t/fully-theme/262833/73 "2023-10-09T18:37:35Z")

</div>

非常感谢，Don！抱歉，我有点糊涂了。我的问题其实是：如何通过 CSS 更改和应用任何一种配色方案的单一颜色？  
我盲目地尝试了以下方法，但没有成功：

```plaintext
@if #{schemeType()} == dark {
    #main-outlet-wrapper .sidebar-container, .sidebar-footer-wrapper .sidebar-footer-container, .sidebar-hamburger-dropdown .sidebar-footer-wrapper .sidebar-footer-container, .sidebar-hamburger-dropdown, .hamburger-panel .revamped.menu-panel.slide-in {
    background-color: #24544D var(--sidebar-color);
        }
      }

```

😳

现在，包装后的文本看起来和包装器颜色一样，如果我通过 CSS 更改它，浅色主题的包装文本也会被更改，但我不想那样：

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/d/9/5d9957223ad53fb2c1bedf34aff3270f57e3526f.png)

抱歉又来打扰你了。

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [2023年十月12日 11:54 UTC](https://meta.discourse.org/t/fully-theme/262833/74 "2023-10-12T11:54:01Z")

</div>

[所有通知页面](https://meta.discourse.org/my/notifications)感觉有点“空”，而且最后一个活动指示器使用默认字体大小，我认为有点太小了：

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

不过这更多是吹毛求疵。 🙂

---

<div class="post-metadata">

### Author: ![Alon1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alon1/32/197167_2.png) [@Alon1](https://meta.discourse.org/u/Alon1)
#### Post date: [2023年十月20日 18:46 UTC](https://meta.discourse.org/t/fully-theme/262833/75 "2023-10-20T18:46:16Z")

</div>

我想使用全宽主题，让聊天始终在右侧边栏打开。这个主题可以实现吗？

---

<div class="post-metadata">

### Author: ![jordan.vidrine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan.vidrine/32/515563_2.png) [@jordan.vidrine](https://meta.discourse.org/u/jordan.vidrine)
#### Post date: [2023年十月20日 19:10 UTC](https://meta.discourse.org/t/fully-theme/262833/76 "2023-10-20T19:10:58Z")

</div>

理论上我认为是的。它在技术上不是一个“右侧边栏”，但如果你打开聊天窗口窗格（不是全屏版本），你可以像这样调整它的大小，并能够聊天和浏览论坛：

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/0/1/c01f079a4d8703a2dcbd8acb18953eedf8932e55.jpeg)

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [2023年十一月14日 15:04 UTC](https://meta.discourse.org/t/fully-theme/262833/77 "2023-11-14T15:04:19Z")

</div>

我的网站安装 [搜索横幅组件](https://meta.discourse.org/t/search-banner/122939) 时出现空白本地。

此错误是由于组件还是您的主题引起的？  
谢谢！

 ![Screenshot 2023-11-14 at 21.58.38](https://global.discourse-cdn.com/meta/original/4X/0/1/5/015c6faa2de4577c3b25db3867271ec34009bbd7.png)

---

<div class="post-metadata">

### Author: ![manuel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/manuel/32/468169_2.png) [@manuel](https://meta.discourse.org/u/manuel)
#### Post date: [2023年十一月14日 15:42 UTC](https://meta.discourse.org/t/fully-theme/262833/78 "2023-11-14T15:42:05Z")

</div>

> [@huynhthai824](#):
>
> 此错误是由于组件或您的主题引起的吗？

看起来您在组件设置中使用了 `below-site-header` 作为插件出口？如果您希望搜索横幅显示在侧边栏旁边，则应选择 `above-main-container`。

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [2023年十一月14日 22:40 UTC](https://meta.discourse.org/t/fully-theme/262833/79 "2023-11-14T22:40:56Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/e/9/b/e9ba42ea81266a0d2b971d444343e43743a40f2c.png)  
主题是否已锁定 编辑 CSS/HTML？

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十一月14日 23:04 UTC](https://meta.discourse.org/t/fully-theme/262833/80 "2023-11-14T23:04:06Z")

</div>

对于从 URL 安装的任何主题（或组件），您将看不到编辑 HTML/CSS 的按钮。这是因为在更新时，它会覆盖您的更改。

您可以将您的更改提议给主题 [component] 存储库（或 Discourse 主题），或者将额外的 HTML/CSS 插入到您的主题或新组件中。 👍

---

<div class="post-metadata">

### Author: ![thaidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thaidb/32/68488_2.png) [@thaidb](https://meta.discourse.org/u/thaidb)
#### Post date: [2023年十一月15日 11:57 UTC](https://meta.discourse.org/t/fully-theme/262833/81 "2023-11-15T11:57:46Z")

</div>

![Screenshot_20231115_185323_Chrome](https://global.discourse-cdn.com/meta/original/4X/3/b/7/3b787dd1359231e2d7e625517b549ccc51ffd972.jpeg)

我的 Logo（文本）溢出到了登录 div，这是主题的错误还是我的设置问题？

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [2023年十一月15日 12:42 UTC](https://meta.discourse.org/t/fully-theme/262833/82 "2023-11-15T12:42:47Z")

</div>

试试这个 CSS。

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

```css
.d-header {
    height: auto;
    padding-bottom: 0.5em;
}

.d-header>.wrap .contents {
    flex-wrap: wrap;
    justify-content: center;
}

```

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [2024年一月23日 05:51 UTC](https://meta.discourse.org/t/fully-theme/262833/83 "2024-01-23T05:51:59Z")

</div>

我在我的网站上安装了这个主题，但是左侧边栏没有显示。  
我不知道为什么。你能帮帮我吗？

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [2024年一月23日 07:16 UTC](https://meta.discourse.org/t/fully-theme/262833/84 "2024-01-23T07:16:51Z")

</div>

您的导航栏右侧有汉堡菜单吗？如果有，则表示您已启用汉堡下拉菜单，只需更改一项设置即可将其切换为侧边栏菜单。

在此设置中选择“侧边栏”：

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

这能解决问题吗？如果不能，截图将有所帮助。

---

<div class="post-metadata">

### Author: ![xu2](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xu2/32/539078_2.png) [@xu2](https://meta.discourse.org/u/xu2)
#### Post date: [2024年一月23日 08:22 UTC](https://meta.discourse.org/t/fully-theme/262833/85 "2024-01-23T08:22:24Z")

</div>

非常感谢！

---

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [2024年二月5日 17:04 UTC](https://meta.discourse.org/t/fully-theme/262833/86 "2024-02-05T17:04:41Z")

</div>

侧边栏中的 `DMs` 是一个复数缩写词，不应大写为 `DMS`。

或者，如果你坚持要大写，也可以是 `DIRECT MESSAGES` 🙂

---

<div class="post-metadata">

### Author: ![jordan.vidrine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jordan.vidrine/32/515563_2.png) [@jordan.vidrine](https://meta.discourse.org/u/jordan.vidrine)
#### Post date: [2024年二月5日 17:06 UTC](https://meta.discourse.org/t/fully-theme/262833/87 "2024-02-05T17:06:15Z")

</div>

> [@supermathie](#):
>
> 在侧边栏中，“DMs”是一个复数缩写词，不应大写为“DMS”。

说得有道理！

[上一頁](https://meta.discourse.org/t/fully-theme/262833.md?page=3)
