[ticket/11552] Change breadcrumbs structure

PHPBB3-11552
This commit is contained in:
Vjacheslav Trushkin 2013-09-15 00:40:37 +03:00
parent 284fb30958
commit b84f0791b2
3 changed files with 11 additions and 11 deletions

View file

@ -446,7 +446,7 @@ function insert_single_user(formId, user)
$('.breadcrumbs').each(function() { $('.breadcrumbs').each(function() {
var $this = $(this), var $this = $(this),
$body = $('body'), $body = $('body'),
links = $this.find('a'), links = $this.find('.crumb'),
length = links.length, length = links.length,
classes = ['wrapped-wide', 'wrapped-medium', 'wrapped-small'], classes = ['wrapped-wide', 'wrapped-medium', 'wrapped-small'],
classesLength = classes.length, classesLength = classes.length,
@ -474,7 +474,7 @@ function insert_single_user(formId, user)
lastWidth = width; lastWidth = width;
if (wrapped) { if (wrapped) {
$this.find('a.wrapped').removeClass('wrapped ' + classes.join(' ')); $this.find('.crumb.wrapped').removeClass('wrapped ' + classes.join(' '));
wrapped = false; wrapped = false;
if ($this.height() <= maxHeight) return; if ($this.height() <= maxHeight) return;
} }

View file

@ -84,9 +84,9 @@
<ul class="linklist navlinks"> <ul class="linklist navlinks">
<!-- DEFINE $MICRODATA = ' itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""' --> <!-- DEFINE $MICRODATA = ' itemtype="http://data-vocabulary.org/Breadcrumb" itemscope=""' -->
<li class="icon-home breadcrumbs"><!-- IF U_SITE_HOME --><a href="{U_SITE_HOME}"{$MICRODATA}>{L_SITE_HOME}</a> <strong>&#8249;</strong> <!-- ENDIF --> <li class="icon-home breadcrumbs"><!-- IF U_SITE_HOME --><span class="crumb"><a href="{U_SITE_HOME}"{$MICRODATA}>{L_SITE_HOME}</a> <strong>&#8249;</strong></span> <!-- ENDIF -->
<a href="{U_INDEX}" accesskey="h"{$MICRODATA}>{L_INDEX}</a> <span class="crumb"><a href="{U_INDEX}" accesskey="h"{$MICRODATA}>{L_INDEX}</a></span>
<!-- BEGIN navlinks --> <strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}"{$MICRODATA}>{navlinks.FORUM_NAME}</a><!-- END navlinks --> <!-- BEGIN navlinks --> <span class="crumb"><strong>&#8249;</strong> <a href="{navlinks.U_VIEW_FORUM}"{$MICRODATA}>{navlinks.FORUM_NAME}</a></span><!-- END navlinks -->
<!-- EVENT overall_header_breadcrumb_append --> <!-- EVENT overall_header_breadcrumb_append -->
</li> </li>

View file

@ -380,19 +380,19 @@ ul.linklist.bulletin li.no-bulletin:before {
/* Responsive breadcrumbs /* Responsive breadcrumbs
----------------------------------------*/ ----------------------------------------*/
.breadcrumbs a { .breadcrumbs .crumb {
display: inline-block; display: inline-block;
vertical-align: bottom;
} }
.breadcrumbs a.wrapped { .breadcrumbs .crumb.wrapped {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
vertical-align: bottom;
} }
.breadcrumbs a.wrapped-wide { max-width: 120px; } .breadcrumbs .crumb.wrapped-wide { max-width: 120px; }
.breadcrumbs a.wrapped-medium { max-width: 80px; } .breadcrumbs .crumb.wrapped-medium { max-width: 80px; }
.breadcrumbs a.wrapped-small { max-width: 30px; } .breadcrumbs .crumb.wrapped-small { max-width: 30px; }
/* Table styles /* Table styles
----------------------------------------*/ ----------------------------------------*/