mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11552] Change breadcrumbs structure
PHPBB3-11552
This commit is contained in:
parent
284fb30958
commit
b84f0791b2
3 changed files with 11 additions and 11 deletions
|
@ -446,7 +446,7 @@ function insert_single_user(formId, user)
|
|||
$('.breadcrumbs').each(function() {
|
||||
var $this = $(this),
|
||||
$body = $('body'),
|
||||
links = $this.find('a'),
|
||||
links = $this.find('.crumb'),
|
||||
length = links.length,
|
||||
classes = ['wrapped-wide', 'wrapped-medium', 'wrapped-small'],
|
||||
classesLength = classes.length,
|
||||
|
@ -474,7 +474,7 @@ function insert_single_user(formId, user)
|
|||
lastWidth = width;
|
||||
|
||||
if (wrapped) {
|
||||
$this.find('a.wrapped').removeClass('wrapped ' + classes.join(' '));
|
||||
$this.find('.crumb.wrapped').removeClass('wrapped ' + classes.join(' '));
|
||||
wrapped = false;
|
||||
if ($this.height() <= maxHeight) return;
|
||||
}
|
||||
|
|
|
@ -84,9 +84,9 @@
|
|||
|
||||
<ul class="linklist navlinks">
|
||||
<!-- 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>‹</strong> <!-- ENDIF -->
|
||||
<a href="{U_INDEX}" accesskey="h"{$MICRODATA}>{L_INDEX}</a>
|
||||
<!-- BEGIN navlinks --> <strong>‹</strong> <a href="{navlinks.U_VIEW_FORUM}"{$MICRODATA}>{navlinks.FORUM_NAME}</a><!-- END navlinks -->
|
||||
<li class="icon-home breadcrumbs"><!-- IF U_SITE_HOME --><span class="crumb"><a href="{U_SITE_HOME}"{$MICRODATA}>{L_SITE_HOME}</a> <strong>‹</strong></span> <!-- ENDIF -->
|
||||
<span class="crumb"><a href="{U_INDEX}" accesskey="h"{$MICRODATA}>{L_INDEX}</a></span>
|
||||
<!-- BEGIN navlinks --> <span class="crumb"><strong>‹</strong> <a href="{navlinks.U_VIEW_FORUM}"{$MICRODATA}>{navlinks.FORUM_NAME}</a></span><!-- END navlinks -->
|
||||
<!-- EVENT overall_header_breadcrumb_append -->
|
||||
</li>
|
||||
|
||||
|
|
|
@ -380,19 +380,19 @@ ul.linklist.bulletin li.no-bulletin:before {
|
|||
|
||||
/* Responsive breadcrumbs
|
||||
----------------------------------------*/
|
||||
.breadcrumbs a {
|
||||
.breadcrumbs .crumb {
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
.breadcrumbs a.wrapped {
|
||||
.breadcrumbs .crumb.wrapped {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
.breadcrumbs a.wrapped-wide { max-width: 120px; }
|
||||
.breadcrumbs a.wrapped-medium { max-width: 80px; }
|
||||
.breadcrumbs a.wrapped-small { max-width: 30px; }
|
||||
.breadcrumbs .crumb.wrapped-wide { max-width: 120px; }
|
||||
.breadcrumbs .crumb.wrapped-medium { max-width: 80px; }
|
||||
.breadcrumbs .crumb.wrapped-small { max-width: 30px; }
|
||||
|
||||
/* Table styles
|
||||
----------------------------------------*/
|
||||
|
|
Loading…
Add table
Reference in a new issue