design improvements

This commit is contained in:
rimu 2023-11-09 21:32:29 +13:00
parent 62854c95f5
commit 1fb1735faf
14 changed files with 38 additions and 16 deletions

View file

@ -147,11 +147,11 @@
.fe-reply {
position: relative;
top: 2px;
top: 1px;
}
.fe-reply::before {
content: "\e991";
content: "\e990";
}
.fe-report::before {

View file

@ -150,11 +150,11 @@ nav, etc which are used site-wide */
.fe-reply {
position: relative;
top: 2px;
top: 1px;
}
.fe-reply::before {
content: "\e991";
content: "\e990";
}
.fe-report::before {

View file

@ -149,11 +149,11 @@
.fe-reply {
position: relative;
top: 2px;
top: 1px;
}
.fe-reply::before {
content: "\e991";
content: "\e990";
}
.fe-report::before {
@ -309,6 +309,14 @@ nav.navbar {
background-color: #f8d7da;
}
.main_pane {
border: solid 1px #ddd;
border-radius: 5px;
background-color: white;
padding-top: 8px;
padding-bottom: 12px;
}
.community_icon {
width: 30px;
height: auto;

View file

@ -73,6 +73,14 @@ nav.navbar {
background-color: #f8d7da;
}
.main_pane {
border: solid 1px $light-grey;
border-radius: 5px;
background-color: white;
padding-top: 8px;
padding-bottom: 12px;
}
.community_icon {
width: 30px;
height: auto;

View file

@ -80,7 +80,7 @@
{% endblock %}
{% block content %}
<div id="outer_container" class="container-lg flex-shrink-0 mt-4 pt-1">
<div id="outer_container" class="container-lg flex-shrink-0 mt-3 pt-1">
{% with messages = get_flashed_messages(with_categories=True) %}
{% if messages %}
{% for category, message in messages %}

View file

@ -25,7 +25,8 @@
</div>
<div class="row utilities_row">
<div class="col-6">
<a href="{{ url_for('community.show_post', post_id=post.id, _anchor='replies') }}">{{ post.reply_count }}</a> additional tools
<a href="{{ url_for('community.show_post', post_id=post.id, _anchor='replies') }}"><span class="fe fe-reply"></span></a>
<a href="{{ url_for('community.show_post', post_id=post.id, _anchor='replies') }}">{{ post.reply_count }}</a>
</div>
<div class="col-2">...</div>
</div>

View file

@ -3,7 +3,7 @@
{% block app_content %}
<div class="row">
<div class="col-8 position-relative">
<div class="col-8 position-relative main_pane">
<h1>{{ _('Create post') }}</h1>
<form method="post">
{{ form.csrf_token() }}

View file

@ -4,7 +4,7 @@
{% block app_content %}
<script src="/static/js/coolfieldset.js"></script>
<div class="row">
<div class="col-12 col-md-8 position-relative add_reply">
<div class="col-12 col-md-8 position-relative add_reply main_pane">
<fieldset class="coolfieldset mt-4"><legend class="w-auto">Original post</legend>
<h3>{{ post.title }}</h3>
{{ post.body_html | safe }}

View file

@ -3,7 +3,7 @@
{% block app_content %}
<div class="row">
<div class="col-12 col-md-8 position-relative">
<div class="col-12 col-md-8 position-relative main_pane">
{% if community.header_image() != '' %}
<div class="community_header" style="height: 240px; background-image: url({{ community.header_image() }});">
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">

View file

@ -3,7 +3,7 @@
{% block app_content %}
<div class="row">
<div class="col-12 col-md-8 position-relative">
<div class="col-12 col-md-8 position-relative main_pane">
{% include 'community/_post_full.html' %}
<p><a href="{{ url_for('community.show_post', post_id=post.id, _anchor='replies') }}">Back to main discussion</a></p>
<div class="row post_replies">

View file

@ -6,18 +6,21 @@
var toBeHidden = Array(); // this list of comment IDs will be iterated over in setupHideButtons() and the 'hide' button clicked
</script>
<div class="row">
<div class="col-12 col-md-8 position-relative">
<div class="col-12 col-md-8 position-relative main_pane">
{% include 'community/_post_full.html' %}
{% if post.comments_enabled %}
{% if current_user.is_authenticated %}
{% if current_user.verified %}
<div class="row post_reply_form">
<hr class="mt-1" />
<div class="col">
<div class="reply_form_inner">
{{ render_form(form) }}
</div>
</div>
{% if replies %}
<hr class="mt-4" />
{% endif %}
</div>
{% else %}
<p><a href="{{ url_for('auth.validation_required') }}">{{ _('Verify your email address to comment') }}</a></p>
@ -28,6 +31,7 @@
{% else %}
<p>{{ _('Comments are disabled for this post.') }}</p>
{% endif %}
{% if replies %}
<div class="row post_replies">
<div class="col">
{% macro render_comment(comment) %}
@ -93,6 +97,7 @@
</div>
</div>
</div>
{% endif %}
</div>
<div class="col-12 col-md-4">

View file

@ -3,7 +3,7 @@
{% block app_content %}
<div class="row">
<div class="col">
<div class="col main_pane">
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">{{ _('Home') }}</a></li>

View file

@ -3,7 +3,7 @@
{% block app_content %}
<div class="row">
<div class="col">
<div class="col main_pane">
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">{{ _('Home') }}</a></li>

View file

@ -3,7 +3,7 @@
{% block app_content %}
<div class="row">
<div class="col-8 position-relative">
<div class="col-8 position-relative main_pane">
{% if user.cover_image() != '' %}
<div class="community_header" style="height: 240px; background-image: url({{ user.cover_image() }});">
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">