空气主题

:discourse2: Summary Air Theme is a clean & modern theme with a handful of theme components included to enhance your forum!
:eyeglasses: Preview Preview on Discourse Theme Creator
:hammer_and_wrench: Repository Link https://github.com/discourse/discourse-air
:open_book: New to Discourse Themes? Beginner’s guide to using Discourse Themes

Install this theme

Features

Light Mode

Dark Mode

Categories Page

This theme includes a handful of components to enhance your forum as well.

  • Dark Light Scheme Toggle
  • Clickable Topics
  • Discourse Search Banner
  • Modern Category + Group Boxes

:exclamation: Please read through these tips upon installation, as there are a couple of settings that NEED TO BE ENABLED for this to theme to render properly.


Tips

Dark Light Scheme Toggle

For this to work properly, at least 2 color scheme choices need to be enabled in your https://discourse.jordanvidrine.com/admin/customize/colors area. At least two colors need to have color scheme can be selected by users enabled.

Once this is done, users should be able to choose between two color schemes as their light and dark preferences in their user preferences interface menu.


Discourse Search Banner

In the options for the discourse-search-banner theme component, the plugin-outlet options needs to be set to BELOW-SITE-HEADER for this theme to render properly.


Modern Category + Group Boxes

This theme component requires your categories to use the CATEGORY BOXES WITH SUBCATEGORIES setting in your /admin/site_settings/category/all_results?filter=categories area.

This theme component also allows the forum admin to organize their category page with header titles, and choose which categories appear under each header. To keep things simple, I have only allowed up to 5 headings to be used. If no categories + heading settings are chosen, all categories will render as they do above, this is the default rendering option.

:discourse2: Hosted by us? Themes are available to use on our Standard, Business, and Enterprise plans.

Last edited by @JammyDodger 2024-06-17T20:44:16Z

Check documentPerform check on document:
136 个赞

That is just amazing Jordan! :heart_eyes: I love it!

17 个赞

It will be helpful if the welcome message can be hide when left locale field empty :+1:

7 个赞

Oh wow, this looks really nice! Thank you for the share. :slight_smile:

9 个赞

This theme gives discourse the modern look it deserves. Very well done @jordan.vidrine

13 个赞

Theme looks amazing. Awesome work :heart_eyes:

5 个赞

This theme looks so amazing. Hope we can get this category page design as a separate component as well. It is looking way better this way. :heart:

8 个赞

Thanks it is nice…

First time I install a new theme. I really like this one!!

8 个赞

Hi @jordan-vidrine regarding the # of views column, what kind of code shall i add in the component to override that column being hidden ?

3 个赞

I believe this should work:

.full-width .contents .topic-list thead th.posts {
width: 10%;
}

.full-width .contents .topic-list thead th.activity {
width: 10%;
order: 4;
}

th.num.views {
width: 10%;
order: 3;
display: block;
}

.full-width .contents .topic-list tbody tr:not(.topic-list-item-separator) td.posts {
width: 10%;
order: 2;
}

.topic-list .views {
width: 10%;
order: 3;
}

.full-width .contents .topic-list tbody tr:not(.topic-list-item-separator) td.age {
width: 10%;
order: 4;
}
6 个赞

Refreshingly beautiful. Great work @jordan.vidrine!

4 个赞

是否可以更改标题文本“欢迎来到论坛”

4 个赞

是的,可以在 Discourse Search Banner 组件中编辑 :+1:

3 个赞

不久前,我发布了一个关于在移动视图中看不到分类的问题(Air Theme - #172 @jordan.vidrine 聊过,但我们未能找到问题的根源。希望其他人能提供一些想法。

详情
在 Kubernetes 上使用 Bitnami 的 Helm 图表,干净地安装了 Discourse 2.7.11,并安装和配置了主题的最新版本(如开篇帖子所述),我们在移动视图中看不到任何分类,并且最新页面的样式也有些问题。

我们尝试过的方法
除了干净安装之外,我们还尝试使用了一些旧版本的主题。但问题依然存在,尽管我们没有详尽地尝试所有版本。
我们还将我们的实例上的 HTML 与 discourse.jordanvidrine.com 上的 HTML 进行了比较,并注意到它们有显著差异。

直觉
由于我们不能使用“测试版”,我的直觉告诉我这是主题或其某个插件与 Discourse 2.7 之间的兼容性问题。我很想知道是否有人在 2.7 版本上成功使用了这个主题,以及使用的是哪个版本的主题和相关插件。

问题
有人在 2.7 版本上成功使用了这个主题吗?或者有什么线索可以帮助我们解决这个问题?

2 个赞

您好。首先,感谢您提供这个很棒的主题 :smile:

我想更改字体系列,该怎么做?

我尝试了以下方法 :point_down:

我应该修改哪个文件来修改字体??? :sob:

3 个赞

我相信您应该可以在此处设置自定义字体,而无需组件:admin/site_settings/category/all_results?filter=font

如果您想要更多自定义设置,我认为您链接的 Google Fonts 主题组件会起作用。不过,我认为该主题使用的是 theme-settings 而不是站点设置。

您是否在有关该字体组件的主题中提出了这个问题?

4 个赞

大家好,有人能帮我更改手机背景颜色的尺寸和“固定性质”吗?

我这边的 CSS 在手机上是透明的。我只需要一些关于更改固定背景以实现背景颜色的指导。

如果我没记错的话,有一个页眉背景和一个页面背景,对吗?

3 个赞

这是因为主题及其包含的组件对于站点的设置方式相当挑剔。

在 OP 中,我分享了:

6 个赞

有没有办法让背景变成一张图片?我宁愿用图片也不要颜色。使用

body {
    background-image: url("image url here");
    background-color: #cccccc;
}

会让颜色条的顶部变成图片,但底部不是。

4 个赞

你添加图片做得很好,但你也需要移除创建该叠加效果的剪切路径。

html .background-container {
clip-path: unset;
}
5 个赞