style changes
This commit is contained in:
parent
cf49cfea2c
commit
48ba226148
7 changed files with 24 additions and 10 deletions
|
@ -17,7 +17,7 @@ blinker==1.3
|
|||
cffi==0.9.2
|
||||
click==4.0
|
||||
cryptography==0.8.2
|
||||
feedparser==5.2.0
|
||||
feedparser>=5.2.0
|
||||
html5lib==0.99999
|
||||
itsdangerous==0.24
|
||||
mf2py==0.2.6
|
||||
|
|
|
@ -370,6 +370,11 @@ a {
|
|||
a:hover {
|
||||
color: #993366; }
|
||||
|
||||
p:first-child {
|
||||
margin-top: 0; }
|
||||
p:last-child {
|
||||
margin-bottom: 0; }
|
||||
|
||||
header, main {
|
||||
max-width: 600px;
|
||||
margin: 0 auto; }
|
||||
|
@ -386,10 +391,10 @@ ul#navigation {
|
|||
display: inline-block;
|
||||
padding: 3px; }
|
||||
|
||||
.pager {
|
||||
.button-link {
|
||||
text-align: center;
|
||||
margin: 1em 0; }
|
||||
.pager a {
|
||||
.button-link a {
|
||||
padding: 0.5em;
|
||||
background-color: #353129;
|
||||
color: #ecebf0;
|
||||
|
|
|
@ -32,6 +32,15 @@ a:hover {
|
|||
}
|
||||
|
||||
|
||||
p {
|
||||
&:first-child {
|
||||
margin-top:0;
|
||||
}
|
||||
&:last-child {
|
||||
margin-bottom:0;
|
||||
}
|
||||
}
|
||||
|
||||
header, main {
|
||||
max-width: 600px;
|
||||
margin: 0 auto;
|
||||
|
@ -53,7 +62,7 @@ ul#navigation {
|
|||
}
|
||||
}
|
||||
|
||||
.pager {
|
||||
.button-link {
|
||||
text-align: center;
|
||||
margin: 1em 0;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<link rel="shortcut icon" href="{{ url_for('static', filename='logo.png') }}"/>
|
||||
<link rel="apple-touch-icon" href="{{ url_for('static', filename='logo.png') }}"/>
|
||||
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css', version='2015-05-12') }}"/>
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css', version='2015-06-17') }}"/>
|
||||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"/>
|
||||
<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
|
||||
<script src="{{ url_for('static', filename='moment.min.js') }}"></script>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
{% if ws_topic %}
|
||||
<script>var WS_TOPIC = "{{ ws_topic }}";</script>
|
||||
{% endif %}
|
||||
<script src="{{url_for('static', filename='feed.js', version='2015-05-12_1')}}"></script>
|
||||
<script src="{{url_for('static', filename='feed.js', version='2015-05-28')}}"></script>
|
||||
|
||||
{% if current_user and current_user.settings
|
||||
and current_user.settings.get('reply-method') == 'indie-config' %}
|
||||
|
@ -32,7 +32,7 @@
|
|||
|
||||
{% block body %}
|
||||
|
||||
<div class="pager">
|
||||
<div class="button-link">
|
||||
<a id="unfold-link" href="#">n New Entries</a>
|
||||
</div>
|
||||
|
||||
|
@ -44,7 +44,7 @@
|
|||
{% endfor %}
|
||||
|
||||
{% if entries and not solo %}
|
||||
<div class="pager">
|
||||
<div class="pager button-link">
|
||||
<a id="older-link" href="{{ url_for_other_page(page=page+1) }}">Older</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -4,7 +4,7 @@ import re
|
|||
bleach.ALLOWED_TAGS += [
|
||||
'a', 'img', 'p', 'br', 'marquee', 'blink',
|
||||
'audio', 'video', 'table', 'tbody', 'td', 'tr', 'div', 'span',
|
||||
'pre',
|
||||
'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
|
||||
]
|
||||
|
||||
bleach.ALLOWED_ATTRIBUTES.update({
|
||||
|
|
|
@ -336,7 +336,7 @@ def add_subscription(origin, feed_url, type, tags=None):
|
|||
if not name:
|
||||
p = urllib.parse.urlparse(origin)
|
||||
name = p.netloc + p.path
|
||||
feed = Feed(name=name, origin=origin, feed=feed_url, type=type)
|
||||
feed = Feed(name=name[:140], origin=origin, feed=feed_url, type=type)
|
||||
|
||||
if feed:
|
||||
db.session.add(feed)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue