|
7 | 7 | {{- $githubUrl := printf "https://github.com/%s" $githubRepo }} |
8 | 8 | {{- $slackChannel := .Site.Params.slackChannel }} |
9 | 9 | {{- $projectPages := where .Site.RegularPages "Section" "" }} |
10 | | -<div class="navbar is-fixed-top{{ if $isHome }} is-dark{{ else }} has-shadow{{ end }}"> |
| 10 | +<div id="mainnav" style="padding:10px" class="navbar is-transparent has-background-pattern is-fixed-top{{ if $isHome }} {{ else }} has-shadow{{ end }}"> |
11 | 11 | <div class="container"> |
12 | 12 | <div class="navbar-brand"> |
13 | 13 | <a class="navbar-item" href="{{ .Site.BaseURL }}"> |
14 | | - <img src="{{ $logo }}" alt="containerd navbar logo"> |
| 14 | + <img src="{{ $logo }}" alt="containerd navbar logo" style="transform: scale(1.7);"> |
15 | 15 | </a> |
16 | 16 |
|
17 | 17 | {{- if not $isHome }} |
18 | | - <div class="navbar-item is-docs-title has-text-weight-bold is-hidden-mobile"> |
| 18 | + <div class="navbar-item is-docs-title has-text-weight-bold has-text-white is-hidden-mobile"> |
19 | 19 | {{ .Title }} |
20 | 20 | </div> |
21 | 21 | {{- end }} |
|
29 | 29 |
|
30 | 30 | <div class="navbar-menu" id="navbarMenu"> |
31 | 31 | <div class="navbar-end"> |
32 | | - <a class="navbar-item has-text-weight-bold" href="/downloads"> |
| 32 | + <a class="navbar-item has-text-weight-bold has-text-white" href="/downloads"> |
33 | 33 | Downloads |
34 | 34 | </a> |
35 | 35 |
|
36 | 36 | <div class="navbar-item is-hoverable has-dropdown has-text-weight-bold" href="/docs"> |
37 | | - <a class="navbar-link"> |
| 37 | + <a class="navbar-link has-text-white"> |
38 | 38 | Docs |
39 | 39 | </a> |
40 | 40 |
|
|
48 | 48 | </div> <!-- .navbar-item --> |
49 | 49 |
|
50 | 50 | <div class="navbar-item is-hoverable has-dropdown has-text-weight-bold"> |
51 | | - <div class="navbar-link"> |
| 51 | + <div class="navbar-link has-text-white"> |
52 | 52 | Project |
53 | 53 | </div> |
54 | 54 |
|
|
64 | 64 | {{- end }} |
65 | 65 |
|
66 | 66 | <a class="navbar-item" href="https://github.com/cncf/artwork/blob/master/examples/graduated.md#containerd-logos"> |
67 | | - containerd branding |
| 67 | + Containerd Branding |
68 | 68 | </a> |
69 | 69 | </div> |
70 | 70 | </div> <!-- .navbar-item --> |
|
96 | 96 | </div> <!-- .navbar-menu --> |
97 | 97 | </div> <!-- .container --> |
98 | 98 | </div> <!-- .navbar --> |
| 99 | + |
| 100 | +<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> |
| 101 | + <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> |
| 102 | + <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> |
| 103 | + |
| 104 | +<script> |
| 105 | + $(function () { |
| 106 | + $(document).scroll(function () { |
| 107 | + var $nav = $("#mainnav"); |
| 108 | + $nav.toggleClass("scrolled", $(this).scrollTop() > $nav.height()); |
| 109 | + }); |
| 110 | + }); |
| 111 | + </script> |
0 commit comments