From 6481e8d9bc03f0ec11a9ac387c5ecc951d918399 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Sat, 11 Nov 2017 17:07:40 +1100 Subject: [PATCH] Tweak the cards' layout, there's more room for extra stuff this way --- home/static/home/css/index.styl | 7 ++++ home/templates/home/index.html | 38 ++++++++++++-------- lemoncurry/static/lemoncurry/css/layout.styl | 6 ++++ 3 files changed, 36 insertions(+), 15 deletions(-) diff --git a/home/static/home/css/index.styl b/home/static/home/css/index.styl index 32cc983..d00601e 100644 --- a/home/static/home/css/index.styl +++ b/home/static/home/css/index.styl @@ -10,6 +10,13 @@ main margin-bottom 1rem .p-note > :last-child margin-bottom 0 + li.list-group-item + background-color $base01 + text-align center + > a + margin-right 1rem + &:last-child + margin-right 0 @media (min-width $md) flex-direction row-reverse align-items unset diff --git a/home/templates/home/index.html b/home/templates/home/index.html index 8794276..38d9c95 100644 --- a/home/templates/home/index.html +++ b/home/templates/home/index.html @@ -13,36 +13,44 @@
{% if user.avatar %}{{ user.first_name }} {{ user.last_name }}{% endif %} +

{{ user.first_name }} {{ user.last_name }}

- {% for key in user.keys.all %} -
- - - {{ key.pretty_print }} - -
- {% endfor %} {% if user.note %}
{{ user.note | markdown }}
{% endif %}
+ + + + +
diff --git a/lemoncurry/static/lemoncurry/css/layout.styl b/lemoncurry/static/lemoncurry/css/layout.styl index 81eec56..9a764b6 100644 --- a/lemoncurry/static/lemoncurry/css/layout.styl +++ b/lemoncurry/static/lemoncurry/css/layout.styl @@ -64,6 +64,12 @@ body .card background-color $base02 + + .card-footer + background-color $base01 + &:nth-of-type(odd) + background-color $base02 + &.h-card max-width 25rem position sticky