Skip to content

Commit

Permalink
PR-50 Fixed the moreLinks element and its children
Browse files Browse the repository at this point in the history
* fixed classes
* gave it an arrow cursor instead of the text cursor

Related #50
  • Loading branch information
martin-hofer authored and Sieg committed Aug 1, 2019
1 parent dd95638 commit 6818e23
Show file tree
Hide file tree
Showing 5 changed files with 11,179 additions and 34 deletions.
8 changes: 5 additions & 3 deletions build/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ $(function () {
oMoreLinkAElem = document.createElement('a'),
oMoreLinkUlElem = document.createElement('ul');

oMoreLinkElem.className = 'dropdown moreLinks';
oMoreLinkElem.className = 'dropdown moreLinks nav-item';

oMoreLinkAElem.className = 'dropdown-toggle';
oMoreLinkAElem.innerHTML = 'Mehr <span class="caret"></span>';
oMoreLinkAElem.className = 'dropdown-toggle nav-link';
oMoreLinkAElem.innerHTML = 'Mehr <i class="fa fa-angle-down"></i>';
oMoreLinkAElem.setAttribute('data-toggle', 'dropdown');

oMoreLinkUlElem.className = 'dropdown-menu';
Expand All @@ -299,6 +299,8 @@ $(function () {
iNavItemsWidth += $this.outerWidth();

if (iNavItemsWidth > iMainNavWidth) {
$this.attr('class', 'dropdown-item');
$this.find('.nav-link').attr('class', 'dropdown-link');
aMoreLinkElems.push($this);
}
}
Expand Down
8 changes: 8 additions & 0 deletions build/scss/layout/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,14 @@
&-link {
color: $brand-primary;
}

.moreLinks > .nav-link {
cursor: default;
}

.moreLinks > .nav-link::after {
display: none;
}
}
}
}
Expand Down
Loading

0 comments on commit 6818e23

Please sign in to comment.