Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pavel-pi/kiss-em.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnur Bašić <48890281+bashovski@users.noreply.github.com>2019-10-24 20:31:34 +0300
committerAnur Bašić <48890281+bashovski@users.noreply.github.com>2019-10-24 20:31:34 +0300
commitfa45dfcfff2708aa455ca61c1bcdd3c7b8215f84 (patch)
treeb35ef89830642cc85a43f414bc469e0f85f14025 /layouts
parent523282db8c819f0e81c589e87f28d6ae2457f95b (diff)
Added dynamic icon container shifting depending on width of child-containers of navbar.
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/nav.html11
1 files changed, 6 insertions, 5 deletions
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index 96993e4..69f6f8d 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -1,13 +1,13 @@
<section class="section">
<div class="container">
- <nav class="nav">
- <div class="nav-left">
- <a class="nav-item" href="{{ .Site.BaseURL }}">
- <h1 class="title is-4">{{ .Site.Title }}</h1>
+ <nav id="nav-main" class="nav">
+ <div id="nav-name" class="nav-left">
+ <a id="nav-anchor" class="nav-item" href="{{ .Site.BaseURL }}">
+ <h1 id="nav-heading" class="title is-4">{{ .Site.Title }}</h1>
</a>
</div>
<div class="nav-right">
- <nav class="nav-item level is-mobile">
+ <nav id="nav-items" class="nav-item level is-mobile">
{{- $social := ( .Site.Params.social ) -}}
{{- range $platform := $social.config.platforms -}}
{{- with $username := ( index $social $platform ) -}}
@@ -52,4 +52,5 @@
</nav>
</div>
+ <script src="/js/navicon-shift.js"></script>
</section> \ No newline at end of file