From 5e67c41629c2234820b9355b06a9846d7698e313 Mon Sep 17 00:00:00 2001 From: Vjacheslav Trushkin Date: Tue, 22 Oct 2013 11:16:25 +0300 Subject: [PATCH] [ticket/11956] Better responsive breadcrumbs PHPBB3-11956 --- phpBB/styles/prosilver/template/forum_fn.js | 20 ++++++++++---------- phpBB/styles/prosilver/theme/common.css | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/phpBB/styles/prosilver/template/forum_fn.js b/phpBB/styles/prosilver/template/forum_fn.js index cb8ee2f9df..8cd4880914 100644 --- a/phpBB/styles/prosilver/template/forum_fn.js +++ b/phpBB/styles/prosilver/template/forum_fn.js @@ -471,12 +471,12 @@ function parse_document(container) /** * Makes breadcrumbs responsive */ - container.find('.breadcrumbs:not(.skip-responsive, .linklist.leftside .breadcrumbs)').each(function() { + container.find('.breadcrumbs:not(.skip-responsive)').each(function() { var $this = $(this), $body = $('body'), links = $this.find('.crumb'), length = links.length, - classes = ['wrapped-wide', 'wrapped-medium', 'wrapped-small'], + classes = ['wrapped-max', 'wrapped-wide', 'wrapped-medium', 'wrapped-small', 'wrapped-tiny'], classesLength = classes.length, maxHeight = 0, lastWidth = false, @@ -726,11 +726,11 @@ function parse_document(container) container.find('.linklist:not(.navlinks, .skip-responsive), .postbody ul.profile-icons:not(.skip-responsive)').each(function() { var $this = $(this), $body = $('body'), - links = $this.children().not('.skip-responsive'), + filterSkip = '.breadcrumbs, .skip-responsive', + filterLast = '.pagination, .icon-notifications, .icon-pm, .icon-logout, .icon-login, .mark-read, .edit-icon, .quote-icon', + links = $this.children().not(filterSkip), html = '