From b20bd66d96f6cd1dcd62236cf2337a5f1c12def0 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 31 May 2021 19:41:42 +0200 Subject: [PATCH] Generic styling for inline lists without list elements --- .../install/files/style/layout/layout.scss | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/wcfsetup/install/files/style/layout/layout.scss b/wcfsetup/install/files/style/layout/layout.scss index cd99969393..bcae24a4f3 100644 --- a/wcfsetup/install/files/style/layout/layout.scss +++ b/wcfsetup/install/files/style/layout/layout.scss @@ -164,3 +164,30 @@ html.iOS select { } } } + +.inlineItems { + display: flex; + flex-wrap: wrap; + + .inlineItem { + flex: 0 1 auto; + + &:not(:last-child) { + margin-right: 5px; + } + } + + &.commaSeparated { + .inlineItem:not(:last-child)::after { + content: ","; + padding-left: 1px; + } + } + + &.dotSeparated { + .inlineItem:not(:last-child)::after { + content: "\00b7"; + margin-left: 5px; + } + } +} -- 2.20.1