mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-12-18 02:51:17 +00:00
Prevent individual tabbers from line-breaking
This commit is contained in:
parent
0d5f1cd25f
commit
82379c9619
|
@ -18,6 +18,7 @@ ul.tabbernav li a {
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
background: #F2F7FF;
|
background: #F2F7FF;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
white-space: pre;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.tabbernav li a:link {
|
ul.tabbernav li a:link {
|
||||||
|
|
|
@ -8,6 +8,9 @@
|
||||||
tabContent.each(function() {
|
tabContent.each(function() {
|
||||||
var anchor = $('<a>').text(this.title).attr('title', this.title).attr('href', 'javascript:void(0);');
|
var anchor = $('<a>').text(this.title).attr('title', this.title).attr('href', 'javascript:void(0);');
|
||||||
$('<li>').append(anchor).appendTo(nav);
|
$('<li>').append(anchor).appendTo(nav);
|
||||||
|
|
||||||
|
// Append a manual word break point after each tab
|
||||||
|
nav.append($('<wbr>'));
|
||||||
});
|
});
|
||||||
$this.prepend(nav);
|
$this.prepend(nav);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue