From d3b9c87b420f0deeeffdb02cec6cd46f9f5a25b2 Mon Sep 17 00:00:00 2001 From: Cesar G Date: Thu, 15 May 2014 13:43:08 -0700 Subject: [PATCH] [ticket/12155] Use the new .button class as the basis for the post buttons. PHPBB3-12155 --- phpBB/styles/prosilver/template/forum_fn.js | 7 +- phpBB/styles/prosilver/template/mcp_post.html | 15 +- .../styles/prosilver/template/mcp_topic.html | 13 +- .../template/posting_topic_review.html | 19 +- .../prosilver/template/ucp_pm_history.html | 8 +- .../template/ucp_pm_viewmessage.html | 18 +- .../prosilver/template/viewtopic_body.html | 38 ++- phpBB/styles/prosilver/theme/bidi.css | 12 +- phpBB/styles/prosilver/theme/buttons.css | 288 +++--------------- phpBB/styles/prosilver/theme/colours.css | 27 +- .../prosilver/theme/images/post_buttons.png | Bin 0 -> 2388 bytes phpBB/styles/prosilver/theme/responsive.css | 4 - 12 files changed, 138 insertions(+), 311 deletions(-) create mode 100755 phpBB/styles/prosilver/theme/images/post_buttons.png diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index 1594d73517..87754269cd 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -681,7 +681,7 @@ function parse_document(container) /** * Responsive link lists */ - container.find('.linklist:not(.navlinks, [data-skip-responsive]), .postbody ul.profile-icons:not([data-skip-responsive])').each(function() { + container.find('.linklist:not(.navlinks, [data-skip-responsive]), .postbody .post-buttons:not([data-skip-responsive])').each(function() { var $this = $(this), $body = $('body'), filterSkip = '.breadcrumbs, [data-skip-responsive]', @@ -769,6 +769,11 @@ function parse_document(container) menu.prepend(clone.not('.rightside')); menu.find('li.leftside, li.rightside').removeClass('leftside rightside'); menu.find('.inputbox').parents('li:first').css('white-space', 'normal'); + + if ($this.hasClass('post-buttons')) { + menu.find('.button').removeClass('button icon-button'); + $('.responsive-menu-link', item).addClass('button icon-button').prepend(''); + } copied = true; } else { diff --git a/phpBB/styles/prosilver/template/mcp_post.html b/phpBB/styles/prosilver/template/mcp_post.html index 2b4ebec5c8..49aa00de1c 100644 --- a/phpBB/styles/prosilver/template/mcp_post.html +++ b/phpBB/styles/prosilver/template/mcp_post.html @@ -50,13 +50,16 @@

{POST_SUBJECT}

- -