幽灵主题

: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 changes some topic templates and make a bunch of stuff flex, so it will be incompatible with any other plugin or theme that expects the standard Discourse topic template. Getting it to play with other plugins is not planned and out of scope of this theme.

11 个赞

Just dropping in a bug report from one of my users regarding this theme:

I attempted to resize the text via Discourse preferences, (Preferences > Interface) and the change isn’t taking effect. The Larger Font theme is contrary to my needs, so I can’t use it as a workaround.

MacBook 2015
Mojave 10.14
Firefox 63.0.1
Ghost theme
Screenshots:


Set to “largest” font:

And…

Set to “Smaller” font:

Passing this along on behalf of my users!

3 个赞

The font size is hard coded into the theme, so it can’t be overwritten with the text size selector. It would be a fairly small change to update the theme to set the font size based on the classes that get added to Discourse by the text size selector. I’ve tested it out with the font set to 14px, and it seems to me that the theme still looks good with the font at this size. It is possible that it breaks the layout in places that I haven’t looked at though.

6 个赞

Updated the theme to fix the broken avatars in the topic list on mobile due to

8 个赞

Submitted a pull request to fix various issues I’ve been noticing on Meta (category page, user menu, admin/settings pages, alerts and others) :rabbit2:

11 个赞

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

3 个赞

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

6 个赞

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

2 个赞

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

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

2 个赞

收到一位用户的反馈:

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

1 个赞

很棒的主题!

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

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

1 个赞

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

我看到了。

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