MediaWiki talk:Common.css

From RimWorld Wiki
Revision as of 17:11, 31 October 2022 by Ickputzdirwech (talk | contribs) (→‎ul lists with multiple columns: new section)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ul lists with multiple columns

Hey @Harakoni, could you please add the follwing three lines to this page?

.ul-column-width-100 { column-width: 100px; }

.ul-column-width-150 { column-width: 150px; }

.ul-column-width-200 { column-width: 200px; }

I experimented a bit on User:Ickputzdirwech/common.css and I feel like this is the best solution. The advantage over coumn-count is that it's responsive. We need this for pages like Tool cabinet and Wind turbine. With this addition we can simply use a statement like this:

{{#ask:[[Facility::Tool cabinet]][[Category:Production]]|format=ul|class=ul-column-width-150}}

--Ickputzdirwech (talk) 17:11, 31 October 2022 (UTC)