Skip to content

Commit

Permalink
Merge pull request #17503 from Revert "[BEAM-13229] [Website] bug sid…
Browse files Browse the repository at this point in the history
…e nav"

Revert "[BEAM-13229] [Website] bug side nav"
  • Loading branch information
pabloem committed Apr 29, 2022
2 parents 4e14885 + ac6909b commit e6aae70
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 25 deletions.
3 changes: 0 additions & 3 deletions website/www/site/assets/js/language-switch-v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ $(document).ready(function() {
// make sure that runner and shell snippets are still visible after changing language
$("code"+this.selector).show();
$("." + pref).show();

// Fix nav-menu bug with jumping between links when switching tabs
$('[data-spy="scroll"]').scrollspy('refresh');
},
"render": function(wrapper) {
this.addTabs();
Expand Down
3 changes: 1 addition & 2 deletions website/www/site/layouts/community/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand Down
3 changes: 1 addition & 2 deletions website/www/site/layouts/contribute/arrow_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand Down
3 changes: 1 addition & 2 deletions website/www/site/layouts/contribute/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand Down
3 changes: 1 addition & 2 deletions website/www/site/layouts/documentation/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand Down
3 changes: 1 addition & 2 deletions website/www/site/layouts/get-started/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand Down
4 changes: 2 additions & 2 deletions website/www/site/layouts/languages/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand All @@ -39,3 +38,4 @@
{{ partial "footer.html" . }}
</body>
</html>

3 changes: 1 addition & 2 deletions website/www/site/layouts/roadmap/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand Down
3 changes: 1 addition & 2 deletions website/www/site/layouts/runners/arrow_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand Down
3 changes: 1 addition & 2 deletions website/www/site/layouts/runners/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand Down
3 changes: 1 addition & 2 deletions website/www/site/layouts/runners/capability-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
{{ .Content }}
Expand Down
3 changes: 1 addition & 2 deletions website/www/site/layouts/security/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
<head>
{{ partial "head.html" . }}
</head>
<!--to activate an element via bootstrap's scrollspy library in the visible area, you need to scroll it by 10px relative to the browser window, so data-offset="10"-->
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="10">
<body class="body" data-spy="scroll" data-target=".page-nav" data-offset="0">
{{ partial "header.html" . }}
<div class="clearfix container-main-content">
<div class="section-nav closed" data-offset-top="90" data-offset-bottom="500">
Expand Down

0 comments on commit e6aae70

Please sign in to comment.