[OCaml] Mobile-friendly clone of cgit.
style left-align root navbar title, link logo to git-scm.com
On the root page only, the git logo now links to https://git-scm.com instead of back to itself. Remove justify-content: space-between from nav#top so the logo and title stay left-aligned on the root page (the ul margin-left: auto already handles right-alignment on repo pages).
Changed files
lib/static/styles.css
@@ -77,7 +77,6 @@
77
77
z-index: 10;
78
78
display: flex;
79
79
align-items: center;
80
Removed:
justify-content: space-between;
81
80
}
82
81
83
82
.nav-toggle {
lib/views/layout.ml
@@ -25,9 +25,9 @@
25
25
nav
26
26
[ id "top"; Aria.label "Site navigation" ]
27
27
[
28
Removed:
Routes.link_to Root
29
Removed:
~other_attrs:[ class_ "nav-logo" ]
30
Removed:
(img [ src "/static/git_icon.svg"; alt "Home"; class_ "site-logo" ]);
28
Added:
a
29
Added:
[ href "https://git-scm.com"; class_ "nav-logo" ]
30
Added:
[ img [ src "/static/git_icon.svg"; alt "Git"; class_ "site-logo" ] ];
31
31
span [ class_ "nav-home" ] [ txt "%s" nav_title ];
32
32
])
33
33