幽灵主题

:discourse2: 摘要 Ghost 灵感源自赛博朋克流派。
:eyeglasses: 预览 在 Discourse 主题创建器中预览
:hammer_and_wrench: 仓库链接 https://github.com/discourse/ghost
:open_book: 初次接触 Discourse 主题? Discourse 主题使用入门指南

安装此主题

功能特性

本主题灵感源自赛博朋克流派,通过引入霓虹色彩和界面中微妙的故障效果,捕捉反叛精神与反乌托邦城市景观的意境。


致谢

@melhosseiny 创建,感谢 @awesomerobot 和 Discourse 团队对此工作的支持。


来源Corporations on Behance


:discourse2: 由我们托管? 主题可在我们的标准版、商务版和企业版计划中使用。

63 个赞

I like it! :slight_smile:

3 个赞

How do I make it not change my primary logo color?
It’s currently red, when naturally it’s blue.

2 个赞

If you add this css your logo will remain unchanged.

.d-header .logo-big, .d-header #site-logo {
  filter: unset;
}
6 个赞

Hello,

How do I remove the glow from the buttons, and change to color of the topic editor (from blues).

Thank you in advance!

To remove the glow, you can set box-shadow to none for default, primary and danger buttons on hover

.btn.btn-default, .btn.btn-primary, .btn.btn-danger {
  .discourse-no-touch & {
    &:hover, &.btn-hover {
      box-shadow: none;
    }
  }
}

To also remove it from navigation bars (including the main one)

.nav-pills, .admin-controls .nav-pills {
  >li>a:hover, >li.active>a, >li>a.active {
    box-shadow: none;
  }
}

// On mobile only
.nav-pills > li.navigation-toggle {
  box-shadow: none;
}

To change the background color of the topic editor, I suggest you look at the theme’s source code and search for where the $bios sass variable is used. For example, to change the background color of the composer to a red color

#reply-control {
  background: red;
}

If you do that, you probably also want to change the composer popup’s background as well (it pops up when you start typing and doesn’t show up on mobile)

// On desktop only
#composer-popup {
  background: red;
}
4 个赞

Thank you! I’ll give it a try!

Ghost 修改了一些主题模板,并使大量内容采用弹性布局,因此它与任何期望标准 Discourse 主题模板的其他插件或主题都不兼容。让 Ghost 与其他插件协同工作不在本主题的规划范围内,也不属于其工作范围。

11 个赞

只是代一位用户提交一个关于该主题的 bug 报告:

我尝试通过 Discourse 偏好设置(偏好设置 > 界面)调整字体大小,但更改并未生效。由于“大号字体”主题不符合我的需求,因此无法将其作为替代方案。

MacBook 2015
Mojave 10.14
Firefox 63.0.1
Ghost 主题
截图:


设置为“最大”字体:

以及…

设置为“较小”字体:

特此转达我用户的反馈!

3 个赞

字体大小已硬编码在主题中,因此无法通过文本大小选择器进行覆盖。若要更新主题,使其根据文本大小选择器添加到 Discourse 的类来设置字体大小,只需进行相对较小的修改。我测试过将字体设置为 14px 的情况,看起来主题在此字号下仍然显示良好。不过,这可能会在我尚未检查到的某些地方破坏布局。

6 个赞

已更新主题,以修复由于以下原因导致的移动端主题列表中头像显示异常的问题:

8 个赞

已提交拉取请求,以修复我在 Meta(分类页面、用户菜单、管理员/设置页面、通知等)中发现的各种问题 :rabbit2:

11 个赞

高级搜索过滤器似乎只有在手动输入时才能生效。
我注意到在获取文件之前,文件名前会被添加下划线,从而导致 403/4 错误。

3 个赞

感谢报告。Ghost 重构了 full-page-search 模板,原始模板似乎此后已发生偏离。@Falco @awesomerobot 我已提交一个拉取请求,以使用原始模板,因为现在不再需要覆盖它。

6 个赞

太棒了 :heart: ~~~~~~~~~~

2 个赞

这个主题在移动设备上设计精良且充满趣味!

感谢所有为让它更出色而做出贡献的人!

2 个赞

收到一位用户的反馈:

锚点在分类描述框中渲染不正确(但在描述所在的置顶主题中渲染正常)

1 个赞

很棒的主题!

但是,当我在我的网站上安装它时,我看到每个帖子的底部都有“相关”和“推荐”链接重叠。请看截图:

我喜欢这个主题!我唯一抱怨的是图片预览组件无法与它一起使用。出于某种原因,预览图片不会显示。

1 个赞

您是否已在您链接的主题组件中报告了此问题?

我看到了。

这个 Theme component 也许可以作为替代方案: