From 56139119e3dd138fc5cc1c2cad8eb2b2012963d2 Mon Sep 17 00:00:00 2001 From: Kyle Mahan Date: Wed, 27 Jan 2016 16:04:54 +0000 Subject: [PATCH 1/2] don't hide micropub response boxes, give more context for syndication toggles --- woodwind/static/feed.js | 9 ++------- woodwind/static/style.css | 15 ++++++++------- woodwind/static/style.scss | 18 +++++++++--------- woodwind/templates/_reply.jinja2 | 2 +- woodwind/templates/base.jinja2 | 2 +- woodwind/templates/feed.jinja2 | 2 +- 6 files changed, 22 insertions(+), 26 deletions(-) diff --git a/woodwind/static/feed.js b/woodwind/static/feed.js index 6babe04..cff565f 100644 --- a/woodwind/static/feed.js +++ b/woodwind/static/feed.js @@ -67,15 +67,10 @@ $(function(){ function attachListeners() { $("#older-link").off('click').click(clickOlderLink); $(".micropub-form button[type='submit']").off('click').click(submitMicropubForm); - $(".reply-area.closed").hide(); - $("article").off('click').click(function(evt) { + $(".micropub-form .content").focus(function () { + $(this).animate({ height: "4em" }, 200); var $target = $(evt.target); - if ($target.closest("form, a, video, audio").length == 0) { - - $(".reply-area", this).toggleClass("closed"); - $(".reply-area", this).slideToggle(200); - } }); } diff --git a/woodwind/static/style.css b/woodwind/static/style.css index de7eb88..c060ded 100644 --- a/woodwind/static/style.css +++ b/woodwind/static/style.css @@ -502,21 +502,24 @@ button { vertical-align: middle; } .syndication-toggle { - display: inline-block; + display: block; margin-top: 0.25em; - height: 32px; - width: 32px; } + overflow: visible; } .syndication-toggle input { display: none; } .syndication-toggle label { display: inline-block; vertical-align: middle; - height: 16px; - width: 16px; padding: 4px; border-radius: 3px; background-color: #eee; margin: 0; + width: 240px; + text-align: left; + font-weight: normal; + font-size: 0.8em; + overflow: visible; + white-space: nowrap; color: #666; cursor: pointer; } .syndication-toggle label img { @@ -529,8 +532,6 @@ button { .reply-area { text-align: center; margin-top: 0.5em; } - .reply-area .content { - height: 4em; } .reply-area .reply-link { display: inline-block; padding: 0.2em; diff --git a/woodwind/static/style.scss b/woodwind/static/style.scss index deef439..ccb78f3 100644 --- a/woodwind/static/style.scss +++ b/woodwind/static/style.scss @@ -210,10 +210,9 @@ button { } .syndication-toggle { - display: inline-block; + display: block; margin-top: 0.25em; - height: 32px; - width: 32px; + overflow: visible; input { display: none; @@ -222,12 +221,17 @@ button { label { display: inline-block; vertical-align: middle; - height: 16px; - width: 16px; padding: 4px; border-radius: 3px; background-color: #eee; margin: 0; + width: 240px; + text-align: left; + + font-weight: normal; + font-size: 0.8em; + overflow: visible; + white-space: nowrap; color: #666; cursor: pointer; @@ -248,10 +252,6 @@ button { .reply-area { text-align: center; margin-top: 0.5em; - - .content { - height: 4em; - } .reply-link { display: inline-block; diff --git a/woodwind/templates/_reply.jinja2 b/woodwind/templates/_reply.jinja2 index 9e8c74a..a2b71e3 100644 --- a/woodwind/templates/_reply.jinja2 +++ b/woodwind/templates/_reply.jinja2 @@ -14,7 +14,7 @@ {% for target in current_user.get_setting('syndicate-to', []) %}
- +
{% endfor %} diff --git a/woodwind/templates/base.jinja2 b/woodwind/templates/base.jinja2 index 60772f8..46ece19 100644 --- a/woodwind/templates/base.jinja2 +++ b/woodwind/templates/base.jinja2 @@ -8,7 +8,7 @@ - + diff --git a/woodwind/templates/feed.jinja2 b/woodwind/templates/feed.jinja2 index e2a9d93..ab9262a 100644 --- a/woodwind/templates/feed.jinja2 +++ b/woodwind/templates/feed.jinja2 @@ -4,7 +4,7 @@ {% if ws_topic %} {% endif %} - + {% if current_user and current_user.settings and current_user.settings.get('reply-method') == 'indie-config' %} From ddcb6136f1653c1ec7705c63e163ac5e99a0ffbe Mon Sep 17 00:00:00 2001 From: Kyle Mahan Date: Wed, 27 Jan 2016 16:09:25 +0000 Subject: [PATCH 2/2] upgrade library versions --- requirements.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 20ab200..8a0bcb0 100644 --- a/requirements.txt +++ b/requirements.txt @@ -10,9 +10,9 @@ Werkzeug==0.10.4 asyncio-redis==0.13.4 beautifulsoup4==4.3.2 bleach==1.4.1 -feedparser>=5.2.0 +feedparser==5.2.1 html5lib==0.99999 -mf2py==0.2.7 +mf2py==1.0.2 mf2util==0.2.6 psycopg2==2.6 pyOpenSSL==0.15.1 @@ -22,3 +22,4 @@ requests==2.7.0 rq==0.5.2 uWSGI==2.0.10 websockets==2.4 +pyquerystring==1.0.2