Mobile Responsive

This commit is contained in:
spikecodes 2020-12-05 20:54:43 -08:00
parent 6def67ddfe
commit 04310c58e0
10 changed files with 82 additions and 67 deletions

View file

@ -4,6 +4,7 @@
{% block head %}
<title>{% block title %}{% endblock %}</title>
<meta name="description" content="View on Libreddit, an alternative private front-end to Reddit.">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="/style.css">
{% block sortstyle %}

View file

@ -13,13 +13,13 @@
<h3 class="post_score">{{ post.score }}</h3>
</div>
<div class="post_right">
<p>
<h4>
<b><a class="post_subreddit" href="/r/{{ post.community }}">r/{{ post.community }}</a></b>
&bull;
Posted by
<a class="post_author" href="/u/{{ post.author }}">u/{{ post.author }}</a>
<span style="float: right;">{{ post.time }}</span>
</p>
<span class="datetime" style="float: right;">{{ post.time }}</span>
</h4>
<h3 class="post_title">
{% if post.flair.0 != "" %}
<small style="color:{{ post.flair.2 }}; background:{{ post.flair.1 }}">{{ post.flair.0 }}</small>

View file

@ -10,13 +10,13 @@
<h3 class="post_score">{{ post.score }}</h3>
</div>
<div class="post_right">
<p>
<h4>
<b><a class="post_subreddit" href="/r/{{ post.community }}">r/{{ post.community }}</a></b>
&bull;
Posted by
<a class="post_author" href="/u/{{ post.author }}">u/{{ post.author }}</a>
<span>{{ post.time }}</span>
</p>
<span class="datetime">{{ post.time }}</span>
</h4>
<h3 class="post_title">
{{ post.title }}
{% if post.flair.0 != "" %}
@ -47,10 +47,10 @@
<h3 class="comment_score">{{ comment.score }}</h3>
</div>
<div class="comment_right">
<p>
<h4>
Posted by <a class="comment_author" href="/u/{{ comment.author }}">u/{{ comment.author }}</a>
<span>{{ comment.time }}</span>
</p>
<span class="datetime">{{ comment.time }}</span>
</h4>
<h4 class="comment_body">{{ comment.body }}</h4>
</div>
</div><br>

View file

@ -31,13 +31,13 @@
<h3 class="post_score">{{ post.score }}</h3>
</div>
<div class="post_right">
<p>
<h4>
<b><a class="post_subreddit" href="/r/{{ post.community }}">r/{{ sub.name }}</a></b>
&bull;
Posted by
<a class="post_author" href="/u/{{ post.author }}">u/{{ post.author }}</a>
<span>{{ post.time }}</span>
</p>
<span class="datetime">{{ post.time }}</span>
</h4>
<h3 class="post_title">
{% if post.flair.0 != "" %}
<small style="color:{{ post.flair.2 }}; background:{{ post.flair.1 }}">{{ post.flair.0 }}</small>

View file

@ -31,13 +31,13 @@
<h3 class="post_score">{{ post.score }}</h3>
</div>
<div class="post_right">
<p>
<h4>
<b><a class="post_subreddit" href="/r/{{ post.community }}">r/{{ post.community }}</a></b>
&bull;
Posted by
<a class="post_author" href="/u/{{ post.author }}">u/{{ post.author }}</a>
<span style="float: right;">{{ post.time }}</span>
</p>
<span class="datetime" style="float: right;">{{ post.time }}</span>
</h4>
<h3 class="post_title">
{% if post.flair.0 == "Comment" %}
{% else if post.flair.0 == "" %}
@ -56,10 +56,10 @@
<h3 class="comment_score">{{ post.score }}</h3>
</div>
<div class="comment_right">
<p>
<h4>
COMMENT
<span>{{ post.time }}</span>
</p>
<span class="datetime">{{ post.time }}</span>
</h4>
<h4 class="comment_body">{{ post.body }}</h4>
</div>
</div><br>