gourami

[UNMAINTAINED] Activitypub server in Rust
Log | Files | Refs | README | LICENSE

commit a52e112248e5a068918de52ab829207871f90ffa
parent b198d0ced216f30b15249444326b50317d97437d
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Wed, 22 Apr 2020 14:31:07 -0500

cleanup css more

Diffstat:
Mstatic/css/style.css | 23++++++++++++++++++-----
Mtemplates/base.html | 4+---
Mtemplates/single_note.html | 18++++++++----------
Mtemplates/timeline.html | 5+++--
4 files changed, 30 insertions(+), 20 deletions(-)

diff --git a/static/css/style.css b/static/css/style.css @@ -13,9 +13,6 @@ .link-button:focus { outline: none; } -.link-button:active { - color:red; -} .monospace { font-family: "courier", monospace @@ -61,12 +58,28 @@ a:link, a:visited { padding: .25em; } -#status-input { - width: 80%; +#note_input { + width: 100%; resize: none; margin: 5px; } +.submit-button-style { + background-color: #001f94; /* Green */ + border: none; + color: white; + padding: 2px 4px; + margin: 5px; + text-align: center; + text-decoration: none; + font-size: 16px; +} + +.input-box { + margin: 0 auto; + width: 70%; +} + .text-right { text-align: right; } diff --git a/templates/base.html b/templates/base.html @@ -17,9 +17,7 @@ <div class="padded navbar"> <div class="title">🐟{{global.title}}/{{page}}</div> <div class="navlinks"> - <a href="/">t</a>,<a href="/test">n</a>{% if global.logged_in %} - <a href="/user/{{global.user.username}}">@{{global.user.username}}</a> - {% else %},<a href="/register">register</a>,<a href="login">login</a>{% endif %},<a href="/server_info">server</a> + <a href="/">t</a>,<a href="/test">n</a>,<a href="/server_info">server</a>,{% if global.logged_in %}<a href="/user/{{global.user.username}}">@{{global.user.username}}</a>,{% else %}<a href="/register">register</a>,<a href="login">login</a>{% endif %} </div> </div> </div> diff --git a/templates/single_note.html b/templates/single_note.html @@ -2,14 +2,10 @@ <div class="note"> <div class="note-meta"> <a href="/note/{{note.id}}">📝{{note.id}}</a> {{note.created_time}} <a class="bold" href="/user/{{note.creator_username}}">@{{note.creator_username}}</a> - </div> - <div class="note-content"> - {{note.content|safe}} - </div> - {% if global.logged_in %} - <div class="text-right note-actions"> - <a href="#" onclick="reply({{note.id}})">↪</a> - {% endif %} +{% if global.logged_in %} + <a href="#" onclick="reply({{note.id}})">↪</a> + {% endif %} + </div> {% if note.creator_id == global.user.id %} <form method="post" action="/{{note.id}}/delete" class="inline"> <input type="hidden" name="extra_submit_param" value="extra_submit_value"> @@ -17,6 +13,8 @@ x </button> </form> - </div> {%endif%} -</div> + <div class="note-content"> + {{note.content|safe}} + </div> + </div> diff --git a/templates/timeline.html b/templates/timeline.html @@ -1,13 +1,14 @@ {% extends "base.html" %} {% block content %} -<div class="container"> {% if global.logged_in %} +<div class="input-box"> <form action="/create_note" method="POST"> <textarea id="note_input" name="note_input" rows=3 placeholder="note"></textarea> <br> -<button id="post">create note</button> +<button id="post" class="submit-button-style">create note</button> </form> +</div> {% endif %} {% include "noteslist.html" %} {% endblock %}