From 052816198ce700742fbe77f48c669687a6c708e9 Mon Sep 17 00:00:00 2001 From: Joakim Hulthe Date: Tue, 4 May 2021 16:21:56 +0200 Subject: [PATCH] web: Remove striped colors from category list --- server/static/styles/common.css | 30 ++++++++++++++--------------- server/templates/category_entry.hbs | 8 ++++---- server/templates/index.hbs | 4 ++-- 3 files changed, 20 insertions(+), 22 deletions(-) diff --git a/server/static/styles/common.css b/server/static/styles/common.css index 2e0ebcc..44f17f4 100644 --- a/server/static/styles/common.css +++ b/server/static/styles/common.css @@ -41,7 +41,14 @@ ul.striped_list > li:nth-child(even) ul li:nth-child(odd) { background-color:#3 ul.striped_list > li:nth-child(odd) ul li:nth-child(even) { background-color:#3f4a53 } ul.striped_list > li:nth-child(odd) ul li:nth-child(odd) { background-color:#302f3b;} +.category_list { + max-width: 40rem; + margin: auto; +} + .category_entry { + margin-top: 1em; + background-color: #3f4a53; } .category_header { @@ -53,13 +60,16 @@ ul.striped_list > li:nth-child(odd) ul li:nth-child(odd) { background-color:#30 display: flex; flex-direction: column; - margin-left: 2.5em !important; + background-color: #302f3b; - border-left: groove 1em; - border-top: groove 1em; - border-bottom: dotted; + margin-left: 2.5em !important; + padding-left: 1em !important; + + border-left: groove 0.5em; + border-top: groove 0.5em; border-color: #696969; font-size: 0.8em; + } .category_name { @@ -67,18 +77,6 @@ ul.striped_list > li:nth-child(odd) ul li:nth-child(odd) { background-color:#30 margin: auto; } -/* -.category_button { - border-radius: 1em; - color: white; - font-size: 2em; - height: 2em; - width: 2em; - margin: 0.1em; - font-family: 'Source Sans Pro', sans-serif; -} -*/ - .category_icon { border-radius: 2em; height: 4em; diff --git a/server/templates/category_entry.hbs b/server/templates/category_entry.hbs index e74a98f..ab813d1 100644 --- a/server/templates/category_entry.hbs +++ b/server/templates/category_entry.hbs @@ -1,4 +1,4 @@ -
  • +
    {{#if this.children}} -
      +
      {{#each this.children}} {{> category_entry}} {{/each}} -
    +
    {{/if}} -
  • + diff --git a/server/templates/index.hbs b/server/templates/index.hbs index 605052a..680a8a0 100644 --- a/server/templates/index.hbs +++ b/server/templates/index.hbs @@ -4,11 +4,11 @@ {{> header}} - +