-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader-appbar.html
56 lines (56 loc) · 2.23 KB
/
header-appbar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<script>
$(document).ready(function () {
$('#expansion-btn').click(function () {
$('.Extend').toggleClass('d-none');
});
$('#collapse-btn').click(function() {
$('.Extend').addClass('d-none');
})
});
</script>
<header class="AppHeader position-sticky top-0 z-2 border-bottom topbar">
<div class="AppHeader-item d-flex flex-justify-between p-2 flex-items-center">
{%- if site.nav %}
<div class="d-flex">
<button id="expansion-btn" class="AppHeader-button d-sm-none" type="button">{% octicon three-bars height:16 %}</button>
</div>
{%- endif %}
<div tabindex="-1" class="d-flex flex-1 ml-3" id="github-logo">
<a href="{{ site.baseurl }}/" class="AppHeader-link d-flex flex-items-center no-underline mr-3">
{% unless site.profile_link %}
<img class="avatar img-cover circle" height="32" width="32" alt="{{ name }}"
src="{{ user_img | relative_url }}">
{% else %}
{% octicon mark-github height:32 %}
{% endunless %}
<span class="h4 text-semibold mx-3">{{ name }}</span>
</a>
</div>
<div class="AppHeader-item d-flex flex-items-center">
{% include toggle.html %}
{%- if site.repo_info %}
<div class="AppHeader-item hide-sm">
{% include mini-repo-info-card.html class="AppHeader-link no-underline" %}
</div>
{% endif %}
{%- if site.profile_link %}
<div class="AppHeader-item mr-0">
<a href="https://github.com/{{ user.login }}" class="AppHeader-link d-flex flex-items-center">
<img class="avatar img-cover circle" height="32" width="32" alt="{{ name }}"
src="{{ user_img | relative_url }}">
</a>
</div>
{%- endif %}
</div>
</div>
{%- if site.nav %}
<div class="d-flex flex-items-center mt-2">
<div class="AppHeader-item width-full hide-sm">
{%- include navbar-underline.html %}
</div>
<div class="Extend Overlay-header d-none">
{%- include nav-overlay.html %}
</div>
</div>
{%- endif %}
</header>