forked from kedacore/keda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
navbar and hero-body improvements (kedacore#792)
- Loading branch information
Showing
4 changed files
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,12 @@ | |
{{ $scalers := where site.RegularPages ".CurrentSection.Title" "Scalers" }} | ||
{{ $versions := site.Params.versions.docs }} | ||
{{ $latest := index $versions 0 }} | ||
<nav class="navbar is-black is-fixed-top" role="navigation" aria-label="main navigation" x-data="{ open: false }"> | ||
<nav id="mainnav" style="padding:10px" class="navbar is-transparent has-background-pattern is-fixed-top" role="navigation" aria-label="main navigation" x-data="{ open: false }"> | ||
<div class="container"> | ||
<div class="navbar-brand"> | ||
<div class="navbar-brand" style="align-items: end;"> | ||
<a class="navbar-item" href="{{ $home }}"> | ||
{{ $url := printf "img/logos/%s" $logo | relURL }} | ||
<img src="{{ $url }}"> | ||
<img src="{{ $url }}" style="transform: scale(2);"> | ||
</a> | ||
|
||
<a role="button" class="navbar-burger" data-target="navbar-menu" aria-label="menu" aria-expanded="false" @click="open = !open" @click.away="open = false" :class="{ 'is-active': open }"> | ||
|
@@ -45,7 +45,7 @@ | |
<span> | ||
{{ .Name }} | ||
</span> | ||
<span class="icon has-text-secondary"> | ||
<span class="icon has-text-white"> | ||
<i class="fas fa-md fa-caret-down"></i> | ||
</span> | ||
</a> | ||
|
@@ -59,7 +59,7 @@ | |
{{ .Name }} | ||
</span> | ||
{{ if $isExternal }} | ||
<span class="icon has-text-secondary"> | ||
<span class="icon has-text-white"> | ||
<i class="fas fa-xs fa-external-link-alt"></i> | ||
</span> | ||
{{ end }} | ||
|
@@ -78,7 +78,7 @@ | |
<span> | ||
{{ .Name }} | ||
</span> | ||
<span class="icon has-text-secondary"> | ||
<span class="icon has-text-white"> | ||
<i class="fas fa-md fa-caret-down"></i> | ||
</span> | ||
</a> | ||
|
@@ -91,7 +91,7 @@ | |
{{ .Name }} | ||
</span> | ||
{{ if $isExternal }} | ||
<span class="icon has-text-secondary"> | ||
<span class="icon has-text-white"> | ||
<i class="fas fa-xs fa-external-link-alt"></i> | ||
</span> | ||
{{ end }} | ||
|
@@ -105,7 +105,7 @@ | |
{{ .Name }} | ||
</span> | ||
{{ if $isExternal }} | ||
<span class="icon has-text-secondary"> | ||
<span class="icon has-text-white"> | ||
<i class="fas fa-xs fa-external-link-alt"></i> | ||
</span> | ||
{{ end }} | ||
|
@@ -122,3 +122,16 @@ | |
</div> | ||
</div> | ||
</nav> | ||
|
||
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> | ||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> | ||
|
||
<script> | ||
$(function () { | ||
$(document).scroll(function () { | ||
var $nav = $("#mainnav"); | ||
$nav.toggleClass("scrolled", $(this).scrollTop() > $nav.height()); | ||
}); | ||
}); | ||
</script> |