Minima 主题

:discourse2: 摘要 Minima - 本主题的目标是精简用户界面,专注于文本内容。
:eyeglasses: 预览 在 Discourse 主题创建器中预览
:hammer_and_wrench: 仓库链接 https://github.com/discourse/minima
:open_book: 初次接触 Discourse 主题? Discourse 主题使用入门指南

安装此主题

功能

我已逐一检查并增大了字体,移除了几乎所有冗余内容(以及我平时不常用的功能)。例如,我知道“推荐话题”就是推荐话题,因此我移除了其标题。我在主题列表中批量选择的功能可能只用过两次,所以也移除了。主题列表中的浏览量?移除了。汉堡菜单中的分类?移除了。

您应该明白我的意思了,这就是该主题。

若追求极致的简洁,我建议在分类页面使用“仅分类”布局。


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

39 个赞

Glorious serifs! I love it.

The desktop :hamburger: menu listing all the other themes seems odd to me, though.

5 个赞

I’m LOVING this theme, especially the topic list, amazing work :heart:


A couple of tiny issues in PM’s, a missing icon:

and I feel like the small size of the assigned text makes it hard to read, because the text has been made larger for just about everything else (Header, Suggested messages etc.)

Screenshot%20from%202019-02-08%2013-14-13

11 个赞

I love it, although losing the theme switcher from the nav on mobile did cause a brief moment of panic!

4 个赞

One of my users is reporting the Minima theme (which I love very much) does not show the “Dismiss” button when there are unread messages. He verified that Dismiss wasn’t just disappearing because there were no unreads - he said he switched to Minima and back from another theme while showing unreads and the button did not show up.

Is there a setting I might be missing on this, or anything else I should check? Thanks!

I managed to finally reproduce it:

Screenshots

Default board theme

Minima

5 个赞

I’ve added the dismiss button back, you’ll just need to update the theme.

10 个赞

Thanks so much! I will check it out!

1 个赞

Where can I find the Minima Dark theme?

1 个赞

Mínima Dark is a copy of Minima but using the color scheme from Material Dark.

7 个赞

Hi, wondering if it’s possible to show the name in the topic list instead of username, when the option Prioritizing full name vs username in the UX is active.

2 个赞

It would be wonderful if we could separate the list of categories as per the white lines I added to demonstrate

2 个赞

I am following the guide on creating Themes (Developer’s guide to Discourse Themes) and it says that to change the templates (like removing the avatars in the listing), you need to touch the .hbr files in Discourse core.

Did you have to do this to remove the avatars? I am a bit confused as to how this theme works and how to use it.

As an example, in the Minima theme, how would I change the look and feel of the Profile page of each user?

Sorry if this is off-topic.

3 个赞

It depends on what you’d like to change. If you want to remove or restyle content, it’s likely you can do it with some additional CSS. If you’d like to add information or change the layout dramatically, then you’d need to edit template files.

In the Minima theme, I did edit the template for the topic list to reposition/remove some avatars. You can see that here: https://github.com/discourse/minima/blob/master/desktop/header.html

If you’d like to use the Minima theme and add additional customizations, I’d recommend installing Minima and adding your customizations to it by creating a new theme component. This way you can still get updates to Minima without worrying about your changes being overridden.

3 个赞

Thanks, @awesomerobot - I will give this a try.

I have a follow-up on the same topic. When Discourse is updated and I need to update the software (assuming I am self-hosting), will this cause problems with themes where the templates have been modified? Or are they not dependent?

Have you experienced anything like this in the past?

1 个赞

Using minima theme I can not archive direct messages (checkbox have disappeared).

3 个赞

I’ve just made an update to the theme that adds that functionality back in. Thanks for reporting it!

5 个赞

我正在以 Minima 为基础构建我的主题,但有一件事让我百思不得其解:这段代码是从哪里来的?

<div class="byline">
    <a href="" data-user-card="joffreyjaffeux"><img alt="" width="20" height="20" src="https://sjc5.discourse-cdn.com/themecreator/user_avatar/theme-creator.discourse.org/joffreyjaffeux/40/2250_2.png" class="avatar" title="joffreyjaffeux" aria-label="joffreyjaffeux">joffreyjaffeux</a>
  </div>

当我切换到浅色主题时,它就消失了。Minima 没有任何可能操作 HTML 的 JavaScript。太令人困惑了!

2 个赞

我认为这是主题标题上方的头像

2 个赞

是的,我理解这一点。我是通过检查头像找到了我引用的代码。让我困惑的是这段代码的来源。它存在于 Minima 主题中,但在 Light 主题中却不存在(不仅仅是隐藏在 CSS 中)。是什么在生成这些 HTML?

1 个赞

哦,好的,我现在明白了。

它来自这个头文件:https://github.com/discourse/minima/blob/master/desktop/header.html

它重写了主题列表模板。

原始模板:https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/templates/list/topic-list-item.hbr

5 个赞