From de5b02170dff129b420b6153f0090ca668f5a23a Mon Sep 17 00:00:00 2001 From: Deimos Date: Tue, 1 Oct 2019 18:58:56 -0600 Subject: [PATCH] Organize Settings page into sections/categories --- tildes/scss/modules/_settings.scss | 20 +++- tildes/scss/themes/_theme_base.scss | 9 ++ tildes/tildes/templates/settings.jinja2 | 126 ++++++++++++++---------- 3 files changed, 103 insertions(+), 52 deletions(-) diff --git a/tildes/scss/modules/_settings.scss b/tildes/scss/modules/_settings.scss index 24fa8ad..fb28299 100644 --- a/tildes/scss/modules/_settings.scss +++ b/tildes/scss/modules/_settings.scss @@ -7,7 +7,23 @@ } // Nested settings list - ul li { - margin-bottom: unset; + ul { + margin-top: 0; + + li { + margin-bottom: unset; + margin-top: 0; + } + } +} + +.settings-section { + .settings-list { + margin-left: 1rem; + } + + h2 { + font-size: 1rem; + border-bottom: 1px solid; } } diff --git a/tildes/scss/themes/_theme_base.scss b/tildes/scss/themes/_theme_base.scss index 2065f44..6332ea1 100644 --- a/tildes/scss/themes/_theme_base.scss +++ b/tildes/scss/themes/_theme_base.scss @@ -82,6 +82,15 @@ border-color: map-get($theme, "border"); } + h1, + h2, + h3, + h4, + h5, + h6 { + border-color: map-get($theme, "border"); + } + hr { border-color: map-get($theme, "border"); } diff --git a/tildes/tildes/templates/settings.jinja2 b/tildes/tildes/templates/settings.jinja2 index 2c74390..bfd9d58 100644 --- a/tildes/tildes/templates/settings.jinja2 +++ b/tildes/tildes/templates/settings.jinja2 @@ -8,6 +8,9 @@ {% block main_heading %}User settings{% endblock %} {% block content %} +
+

Display settings

+ +
+ +
+

Site behavior settings

+ -
  • Change your password
  • + +
    + +
    +

    Notification settings

    + + +
    + +
    +

    Account settings

    + + +
    + {% endblock %}