Skip to content

Commit

Permalink
fix #links behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav_yudi committed Jan 16, 2023
1 parent d9adb20 commit 6d0db8a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ doks:
image: true
nav:
- item_name: Documentation
item_url: /
item_url: https://icons8.com/docs
- item_name: Plugins
item_url: https://icons8.com/app/figma
external_url: true
Expand Down
8 changes: 4 additions & 4 deletions docs/doks-theme/_sass/objects/_content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
margin-top: 0;
}
&__desc {
margin-bottom: 60px;
@media (min-width: $screen-md-min) {
margin-bottom: 80px;
}
margin-bottom: 40px;
// @media (min-width: $screen-md-min) {
// margin-bottom: 80px;
// }
}
video, img, embed {
// border: 1px solid rgba(0,0,0,0.1);
Expand Down
4 changes: 2 additions & 2 deletions docs/doks-theme/assets/js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
headings = reduceLevels( headings );

generateList( headings, true ).appendTo( '.js-sections' );
var ghButtonHtml = "<a href='https://github.com/icons8/lunacy-docs' id='sections-button' class='btn btn--dark btn--rounded btn--w-icon btn--github js-affix'><i class='icon icon--github' style='float: left; margin-left: 0px; margin-right: 16px'></i>Suggest Edits</a>";
var ghButtonHtml = "<a href='https://github.com/icons8/plugins-docs' id='sections-button' class='btn btn--dark btn--rounded btn--w-icon btn--github js-affix'><i class='icon icon--github' style='float: left; margin-left: 0px; margin-right: 16px'></i>Suggest Edits</a>";
var ghButton = $.parseHTML(ghButtonHtml);
$('.js-sections').append(ghButton);
}
Expand Down Expand Up @@ -394,7 +394,7 @@ function getCurrentNavLink() {

for (let index = 0; index < array.length; index++) {
const element = array[index];
if (element.href == document.location.toString().split("/#")[0] || element.href + "/" == document.location) {
if (element.href == document.location.toString().split("/#")[0] || element.href == document.location.toString().split("/#")[0] + "/" || element.href + "/" == document.location) {
return element
}
}
Expand Down

0 comments on commit 6d0db8a

Please sign in to comment.