From a4d094d60a8444817fe597d6877481040dc4b282 Mon Sep 17 00:00:00 2001 From: zPlus Date: Mon, 23 Jul 2018 09:56:22 +0200 Subject: [PATCH] Improve CSS. --- freepost/static/stylus/freepost.styl | 32 ++------- freepost/static/stylus/reset.styl | 3 + freepost/templates/search.html | 2 +- freepost/templates/submit.html | 2 +- freepost/templates/user_settings.html | 98 ++++++++++++--------------- 5 files changed, 56 insertions(+), 81 deletions(-) diff --git a/freepost/static/stylus/freepost.styl b/freepost/static/stylus/freepost.styl index 196bf47d..e00a71be 100755 --- a/freepost/static/stylus/freepost.styl +++ b/freepost/static/stylus/freepost.styl @@ -169,8 +169,7 @@ body /* New submission page */ > form.submit - margin auto - max-width 30em + width 100% /* Page for a post */ > .post @@ -213,9 +212,6 @@ body /* The "new comment" form for this post page */ .new_comment - > textarea - height 5rem - > input[type=submit] margin 1em 0 @@ -262,26 +258,12 @@ body margin-bottom 3rem /* User home page */ - table.user - /* If one length specified: both horizontal and vertical spacing - * If two length specified: first sets the horizontal spacing, and - * the second sets the vertical spacing - */ - border-spacing 2em 1em - border-collapse separate - margin auto - width 80% - - tr - > td:first-child - font-weight bold - text-align right - vertical-align top - width 30% - - > td:last-child - text-align left - + > form > .user + display grid + grid-column-gap 3rem + grid-row-gap 1rem + grid-template-columns max-content auto + /* User activity */ > .user_activity diff --git a/freepost/static/stylus/reset.styl b/freepost/static/stylus/reset.styl index 83a48d49..cafd0608 100755 --- a/freepost/static/stylus/reset.styl +++ b/freepost/static/stylus/reset.styl @@ -124,6 +124,9 @@ label -o-transition border-color ease-in-out .15s,box-shadow ease-in-out .15s transition border-color ease-in-out .15s,box-shadow ease-in-out .15s +textarea.form-control + height 8rem + /* When users vote, this