frio: move some more headings to the navbar
This commit is contained in:
parent
be5491e12d
commit
75f838c53b
2 changed files with 45 additions and 1 deletions
|
@ -241,6 +241,10 @@ aside .badge {
|
|||
opacity: 0.7;
|
||||
}
|
||||
|
||||
/* disabled elements */
|
||||
.community-content-wrapper > h3, .network-content-wrapper > .section-title-wrapper {
|
||||
display:none;
|
||||
}
|
||||
|
||||
header #site-location {
|
||||
display: none;
|
||||
|
@ -724,7 +728,20 @@ nav.navbar a {
|
|||
margin: 0;
|
||||
font-weight: 400
|
||||
}
|
||||
|
||||
#topbar-second #nav-short-info .heading {
|
||||
margin-left: -14px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
padding-right: 20px;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
#topbar-second #tabmenu .heading {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: $link_color;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Dropdown Menus */
|
||||
.nav-pills .dropdown-menu,
|
||||
|
|
|
@ -179,6 +179,33 @@ $(document).ready(function(){
|
|||
// there are two elements with this class but we don't want the js template
|
||||
$(".network-content-wrapper > #viewcontact_wrapper-network .contact-wrapper").first().appendTo("#nav-short-info");
|
||||
}
|
||||
|
||||
// move heading from network stream to the second navbar nav-short-info section
|
||||
if( $(".network-content-wrapper > .section-title-wrapper").length) {
|
||||
// get the heading element
|
||||
var heading = $(".network-content-wrapper > .section-title-wrapper > h2");
|
||||
// get the text of the heading
|
||||
var headingContent = heading.text();
|
||||
// create a new element with the content of the heading
|
||||
var newText = '<h4 class="heading" data-toggle="tooltip" title="'+headingContent+'">'+headingContent+'</h4>';
|
||||
// remove the old heading element
|
||||
heading.remove(),
|
||||
// put the new element to the second nav bar
|
||||
$("#topbar-second #nav-short-info").append(newText);
|
||||
}
|
||||
|
||||
if( $(".community-content-wrapper").length) {
|
||||
// get the heading element
|
||||
var heading = $(".community-content-wrapper > h3").first();
|
||||
// get the text of the heading
|
||||
var headingContent = heading.text();
|
||||
// create a new element with the content of the heading
|
||||
var newText = '<h4 class="heading">'+headingContent+'</h4>';
|
||||
// remove the old heading element
|
||||
heading.remove(),
|
||||
// put the new element to the second nav bar
|
||||
$("#topbar-second > .container > #tabmenu").append(newText);
|
||||
}
|
||||
});
|
||||
//function commentOpenUI(obj, id) {
|
||||
// $(document).unbind( "click.commentOpen", handler );
|
||||
|
|
Loading…
Reference in a new issue