mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12662] Hide quick-links when empty
Also some noJS fixes PHPBB3-12662
This commit is contained in:
parent
04550fcd8c
commit
d8d6e3e943
3 changed files with 18 additions and 6 deletions
|
@ -519,6 +519,14 @@ function parse_document(container)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Unhide the quick-links menu if it has content
|
||||||
|
if (persist) {
|
||||||
|
item.addClass('hidden');
|
||||||
|
if (menu.find('li:not(.separator, .clone)').length || (responsive && menu.find('li.clone').length)) {
|
||||||
|
item.removeClass('hidden');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Reset responsive and compact layout
|
// Reset responsive and compact layout
|
||||||
if (responsive) {
|
if (responsive) {
|
||||||
responsive = false;
|
responsive = false;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
<ul id="nav-main" class="linklist bulletin" role="menubar">
|
<ul id="nav-main" class="linklist bulletin" role="menubar">
|
||||||
|
|
||||||
<li id="quick-links" class="small-icon responsive-menu dropdown-container" data-skip-responsive="true">
|
<li id="quick-links" class="small-icon responsive-menu dropdown-container<!-- IF not S_DISPLAY_QUICK_LINKS and not S_DISPLAY_SEARCH --> hidden<!-- ENDIF -->" data-skip-responsive="true">
|
||||||
<a href="#" class="responsive-menu-link dropdown-trigger">{L_QUICK_LINKS}</a>
|
<a href="#" class="responsive-menu-link dropdown-trigger">{L_QUICK_LINKS}</a>
|
||||||
<div class="dropdown hidden">
|
<div class="dropdown hidden">
|
||||||
<div class="pointer"><div class="pointer-inner"></div></div>
|
<div class="pointer"><div class="pointer-inner"></div></div>
|
||||||
|
|
|
@ -327,14 +327,13 @@ ul.linklist:after {
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.linklist > li {
|
ul.linklist > li {
|
||||||
display: block;
|
|
||||||
list-style-type: none;
|
|
||||||
float: left;
|
float: left;
|
||||||
width: auto;
|
|
||||||
margin-right: 7px;
|
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
line-height: 2.2em;
|
line-height: 2.2em;
|
||||||
|
list-style-type: none;
|
||||||
|
margin-right: 7px;
|
||||||
padding-top: 1px;
|
padding-top: 1px;
|
||||||
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.linklist > li.rightside, p.rightside, a.rightside {
|
ul.linklist > li.rightside, p.rightside, a.rightside {
|
||||||
|
@ -404,12 +403,13 @@ li.responsive-menu.dropdown-left .dropdown {
|
||||||
right: -6px;
|
right: -6px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.linklist .dropdown-down .dropdown {
|
ul.linklist .dropdown {
|
||||||
top: 22px;
|
top: 22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
ul.linklist .dropdown-up .dropdown {
|
ul.linklist .dropdown-up .dropdown {
|
||||||
bottom: 18px;
|
bottom: 18px;
|
||||||
|
top: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Bulletin icons for list items
|
/* Bulletin icons for list items
|
||||||
|
@ -1152,6 +1152,10 @@ form > p.post-notice strong {
|
||||||
width: 340px;
|
width: 340px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nojs .dropdown-extended .dropdown-contents {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown-extended .header {
|
.dropdown-extended .header {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
font-family: Arial, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font-family: Arial, "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
|
|
Loading…
Add table
Reference in a new issue