diff --git a/main/static/main/main.css b/main/static/main/main.css index d5a9104..faa74f7 100644 --- a/main/static/main/main.css +++ b/main/static/main/main.css @@ -19,17 +19,54 @@ body { height: 100%; max-width: 1000px; + + font-size: 16px; + color: var(--text-color); + font-family: Helvetica, Arial, sans-serif; } .thought { - color: var(--text-color); - padding: 20px 30px; + line-height: 1.5em; +} + +button.show-more { + background: none; + border: none; + border-radius: 0; + cursor: pointer; + color: var(--accent-color); + margin: 3px 10px; + padding: 0; + border-bottom: 1px solid transparent; + outline: none; + font-size: 14px; } +button.show-more:hover, button.show-more:focus { + border-bottom-color: var(--accent-color); +} + +.extended-text { + margin-top: 1em; +} + +.timestamp { + float: right; + font-size: 14px; + color: var(--accent-color); + + position: relative; + bottom: 4px; + border-bottom: solid 1px var(--accent-color); +} + hr.thought-end { margin: 0 30px; border-color: var(--accent-color); + + border-style: none; + border-bottom-style: inset; } header { diff --git a/main/templates/whispermaphone/index.html b/main/templates/whispermaphone/index.html index 43d9932..5f05693 100644 --- a/main/templates/whispermaphone/index.html +++ b/main/templates/whispermaphone/index.html @@ -15,22 +15,23 @@ {% for thought in thoughts %}
{{thought.text}}
- +
{{thought.extended_text}}
+ {{thought.posted|date:"r"}}

{% endfor %} - - diff --git a/main/views.py b/main/views.py index f2176cf..2684b1a 100644 --- a/main/views.py +++ b/main/views.py @@ -4,7 +4,7 @@ from .models import Thought def index(request): - return render(request, "whispermaphone/index.html", {"thoughts": Thought.objects.all()}) + return render(request, "whispermaphone/index.html", {"thoughts": Thought.objects.order_by("-posted")}) def post(request):