Daemonite Material Theme: 十分なレイアウト調整

動機

Daemonite Material Theme の一般的なレイアウトを、より大胆な外観になるよう調整しました。主にフォントサイズや要素の寸法を大きくすることで行っています。一方、モバイルでの表示を最適化するため、一部のフォントサイズは縮小しています。

背景

これは、先日別の Discourse インスタンスで Daemonite Material Theme を実装する作業中に生まれました。CSS の修正はわずかですが、同様の要件を持つ他者を支援するため、これをまとめてパッケージ化しました。また、これを元のテーマにどう、あるいは取り入れるべきかについての議論を喚起するかもしれません。

詳細

  • バニラのフォントサイズ
  • カテゴリタイトルの拡大
  • アバター画像の拡大
  • トピックステータスアイコンのサイズ制限の削除
  • narrow および verbose トピックアイテムの拡大
  • トピックページでのトピック件名のフォントサイズ縮小
  • トピックページでのトピック投稿アイテムの幅拡大

スクリーンショット

以下をご覧ください。

セットアップ

インストール

設定

現在、このテーマコンポーネントに設定オプションはありません。

「いいね!」 7

Some screenshots by example…


Topic item (verbose)

Larger font size, don’t limit avatar size.

Before

image

After

image


Topic item (narrow)

Before

image

After

image


Category item

Removed font size limitation on category title and description.

Before

image

After

image


Title sizes on topic page / in header

Decreased font size here. Especially on mobile, this makes a huge difference.

Topic title on desktop

Before

After

Topic title on mobile, before/after

 

Header/title layout on mobile

Before

image

After

image


Increase topic post item width

Before

After

「いいね!」 1

When combining this with some other tweaks using the Category badge adjustment component, which is basically about making the corners of the category badges less rounded and emphasizing the category label, you will get these results:

Before

image

After

image

「いいね!」 2

I’m guessing there is a bit more to it :stuck_out_tongue:

Using Safari 12.0.2:

「いいね!」 2

That’s probably due to our amendments in Daemonite Material Theme: Ample layout adjustments. We really didn’t know what we were doing actually. Thanks for noticing!

Bummer. This indeed works fine with Safari Version 11.0.3, the only one available to me. Haven’t been able to look at this through Safari 12.x yet.

I would like to avoid spamming the main topic when working on this, so could someone from the Discourse team please divert this discussion (i.e. the last three topic items) to Daemonite Material Theme: Ample layout adjustments? Thanks!

「いいね!」 1

Here we are. Thanks, @Johani!

「いいね!」 1

I will be happy to run further tests and report back if you provide me with instructions.

Thanks @_vincent. I just gave it a try on browserstack.com as there’s no Safari 12.x currently around us.

Results for Safari 11.1 and 12.0

https://www.browserstack.com/screenshots/9438a3becc3af763386c60bd955bf1c91bd78ae2

Thumbnails


OS X High Sierra: Safari 11.1


OS X Mojave: Safari 12


This looks reasonably good to me. Do you have an idea what could have gone wrong? Do you have more details about your devices or setup, if this might actually matter resolving this issue? I feel a bit silly now.

Did you switch back to default theme?

Currently yes, in order to investigate the brand header overlapping issue on the account activation page reported by @LittleLebowsky.

「いいね!」 1


システムのアバターが間違っています