diff --git a/resources/blog.scss b/resources/blog.scss index 0e616d5..c720ad4 100644 --- a/resources/blog.scss +++ b/resources/blog.scss @@ -259,6 +259,10 @@ @media (max-width: 799px) { + .actionbar-box { + margin: 8px 0; + } + .left-sidebar-header { display: none; } @@ -284,6 +288,7 @@ .blog-box { padding-left: 5%; padding-right: 5%; + margin-bottom: 0; } .post-title { diff --git a/templates/actionbar/list.html b/templates/actionbar/list.html index e5761bb..ea046a4 100644 --- a/templates/actionbar/list.html +++ b/templates/actionbar/list.html @@ -1,54 +1,54 @@ {% set logged_in = request.user.is_authenticated %} {% set profile = request.profile if logged_in else None %} {% if logged_in %} -{% if include_hr %} -
{% endif %} -
- -
+ {% endif %} \ No newline at end of file diff --git a/templates/actionbar/media-css.html b/templates/actionbar/media-css.html deleted file mode 100644 index 0ad2a51..0000000 --- a/templates/actionbar/media-css.html +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/templates/actionbar/media-js.html b/templates/actionbar/media-js.html index c3b7e0d..e775fa3 100644 --- a/templates/actionbar/media-js.html +++ b/templates/actionbar/media-js.html @@ -37,7 +37,8 @@ }); } - window.bookmark = function(id) { + window.bookmark = function(id, e) { + e.stopPropagation(); var $bookmark = $('#bookmark-button-' + id); if ($bookmark.hasClass('bookmarked')) { ajax_bookmark('{{ url('undobookmark') }}', id, function () { @@ -61,7 +62,8 @@ }; }; - window.pagevote_upvote = function (id) { + window.pagevote_upvote = function (id, e) { + e.stopPropagation(); var $votes = get_$votes(id); if ($votes.upvote.hasClass('voted')) { ajax_vote('{{ url('pagevote_downvote') }}', id, -1, function () { @@ -83,7 +85,8 @@ } }; - window.pagevote_downvote = function (id) { + window.pagevote_downvote = function (id, e) { + e.stopPropagation(); var $votes = get_$votes(id); if ($votes.downvote.hasClass('voted')) { ajax_vote('{{ url('pagevote_upvote') }}', id, 1, function () { @@ -104,7 +107,8 @@ } } }; - $(".actionbar-share").click( function() { + $(".actionbar-share").click(function(e) { + e.stopPropagation(); link = $(this).attr("share-url") || window.location.href; navigator.clipboard .writeText(link) diff --git a/templates/blog/blog.html b/templates/blog/blog.html index fa97dac..59d4e3d 100644 --- a/templates/blog/blog.html +++ b/templates/blog/blog.html @@ -7,7 +7,6 @@ {% block media %} {% include "comments/media-css.html" %} - {% include "actionbar/media-css.html" %} {% endblock %} {% block title_row %} diff --git a/templates/blog/list.html b/templates/blog/list.html index 8d18b56..270d532 100644 --- a/templates/blog/list.html +++ b/templates/blog/list.html @@ -1,7 +1,6 @@ {% extends "three-column-content.html" %} {% block three_col_media %} {% include "blog/media-css.html" %} - {% include "actionbar/media-css.html" %} {% endif %} - {% include "actionbar/media-css.html" %} {% endblock %} {% block three_col_js %} diff --git a/templates/problem/problem.html b/templates/problem/problem.html index 97003a0..29c923d 100644 --- a/templates/problem/problem.html +++ b/templates/problem/problem.html @@ -1,7 +1,6 @@ {% extends "common-content.html" %} {% block content_media %} {% include "comments/media-css.html" %} - {% include "actionbar/media-css.html" %}