Skip to content

Commit f08d41e

Browse files
authored
Css updates (#273)
* Update icon.svg * Update css to make navbar more responsive Updates to make the navigation bar more responsive to the browser window size. Change 1: Drop the title, The Medley Interlisp Project, when the size of the screen shrinks to a point where there is no space between the icons and the title. Change 2: On the home page, when the icons and search bar have taken up all the horizontal space, drop the search bar to a second line. Change 3: On all other pages, drop the search bar, we have the left search bar available.
1 parent 62ae813 commit f08d41e

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

Diff for: layouts/partials/navbar.html

+17-6
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
-}}
55
{{ $baseURL := urls.Parse $.Site.Params.Baseurl -}}
66

7-
<nav class="td-navbar js-navbar-scroll
7+
<nav class="td-navbar js-navbar-scroll flex-wrap
88
{{- if $cover }} td-navbar-cover {{- end }}" data-bs-theme="dark">
99
<div class="container-fluid flex-column flex-md-row">
1010
<a class="navbar-brand" href="{{ .Site.Home.RelPermalink }}">
@@ -16,14 +16,13 @@
1616
{{ end -}}
1717
{{ end -}}
1818
</span>
19-
{{- /**/ -}}
20-
<span class="navbar-brand__name">
19+
<span class="navbar-brand__name d-none d-lg-inline">
2120
<!-- Place the site title on every page header, except the home page -->
2221
{{ if not .IsHome }}
2322
{{ .Site.Title }}
2423
{{ end }}
25-
2624
</span>
25+
2726
{{- /**/ -}}
2827
</a>
2928
<div class="td-navbar-nav-scroll ms-md-auto" id="main_navbar">
@@ -68,8 +67,20 @@
6867
{{ end -}}
6968
</ul>
7069
</div>
71-
<div class="d-none d-lg-block">
72-
{{ partial "search-input.html" . }}
70+
<!-- Show the search bar inline at XL and larger -->
71+
<div class="d-none d-xl-block">
72+
{{ partial "search-input.html" . }}
7373
</div>
74+
75+
{{ if .IsHome }}
76+
<!-- If home page, drop the search bar to a second row at smaller screens -->
77+
<div class="d-block d-xl-none w-100 mt-2 text-end">
78+
<div class="row justify-content-end">
79+
<div class="col-auto">
80+
{{ partial "search-input.html" . }}
81+
</div>
82+
</div>
83+
</div>
84+
{{ end }}
7485
</div>
7586
</nav>

0 commit comments

Comments
 (0)