From eb03fdf940dbb9331a3a36aa9800ff8abbc674d4 Mon Sep 17 00:00:00 2001 From: deing Date: Fri, 6 Sep 2019 16:34:50 +0200 Subject: [PATCH] Indent subgroups on group listing page --- tildes/scss/modules/_group.scss | 6 ++++++ tildes/tildes/templates/groups.jinja2 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/tildes/scss/modules/_group.scss b/tildes/scss/modules/_group.scss index cea0e25..2765678 100644 --- a/tildes/scss/modules/_group.scss +++ b/tildes/scss/modules/_group.scss @@ -14,6 +14,12 @@ .group-subscription-count { margin-bottom: 0.2rem; } + + @for $indent-level from 1 through 4 { + tr.group-level-#{$indent-level} td:first-child { + padding-left: #{$indent-level}rem; + } + } } .group-list-description { diff --git a/tildes/tildes/templates/groups.jinja2 b/tildes/tildes/templates/groups.jinja2 index 102095a..02cca0d 100644 --- a/tildes/tildes/templates/groups.jinja2 +++ b/tildes/tildes/templates/groups.jinja2 @@ -22,7 +22,7 @@ {% for group in groups %} - + {{ group_linked(group.path) }} {% if group.short_description %}