From: Alexander Ebert Date: Sat, 23 Jul 2016 17:37:31 +0000 (+0200) Subject: Added styling for structured lists X-Git-Tag: 3.0.0_Beta_1~987 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1beaf80e41eb3375cb7905e1782d04d6b5bcb292;p=GitHub%2FWoltLab%2FWCF.git Added styling for structured lists --- diff --git a/wcfsetup/install/files/acp/templates/labelGroupAdd.tpl b/wcfsetup/install/files/acp/templates/labelGroupAdd.tpl index 07db3c77a6..dd181bb92d 100644 --- a/wcfsetup/install/files/acp/templates/labelGroupAdd.tpl +++ b/wcfsetup/install/files/acp/templates/labelGroupAdd.tpl @@ -103,23 +103,19 @@
{foreach from=$labelObjectTypeContainers item=container} - {if $container->isBooleanOption()} - - {else} -
-
{lang}wcf.acp.label.container.{$container->getObjectTypeName()}{/lang}
-
-
    - {foreach from=$container item=objectType} -
  • getDepth()} style="padding-left: {21 * $objectType->getDepth()}px"{/if} data-depth="{@$objectType->getDepth()}"> - {$objectType->getLabel()} - -
  • - {/foreach} -
-
-
- {/if} +
+
{lang}wcf.acp.label.container.{$container->getObjectTypeName()}{/lang}
+
+
    + {foreach from=$container item=objectType} +
  • getDepth()} style="padding-left: {$objectType->getDepth() * 20}px"{/if} data-depth="{@$objectType->getDepth()}"> + {$objectType->getLabel()} + +
  • + {/foreach} +
+
+
{/foreach}
diff --git a/wcfsetup/install/files/style/ui/listStructured.scss b/wcfsetup/install/files/style/ui/listStructured.scss new file mode 100644 index 0000000000..028c1104d7 --- /dev/null +++ b/wcfsetup/install/files/style/ui/listStructured.scss @@ -0,0 +1,32 @@ +/* element list with checkboxes */ +.structuredList { + border: 1px solid rgb(79, 129, 189); + border-width: 1px 0; + + li { + display: flex; + padding: 10px 0; + + &:not(:first-child) { + border-top: 1px solid rgb(238, 238, 238); + } + + &:hover { + background-color: $wcfTabularBoxBackgroundActive + } + + > span { + flex: 1 1 auto; + } + + > label { + cursor: pointer; + flex: 0 0 auto; + } + + > span, + > label { + padding: 0 5px; + } + } +}