Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1067,12 +1067,12 @@ main {
z-index: 2;
}


/* responsive */

.open-menu {
margin-right: 1.2rem;
margin-left: -0.5rem;
user-select: none;
}
.open-menu::before {
font-size: 1.5rem;
Expand Down
10 changes: 6 additions & 4 deletions templates/topbar.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<header class="topbar">
<div class="breadcrumb">
{#- This line removes leading whitespace from copied path -#}

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awkward, one of the alternatives I see is just removing all newlines from contents of the breadcrub div. After some time we will probably forget about it, somebody will reformat the file and the path will again have leading whitespace...

<a href="#menu" class="open-menu icon-menu screenreader" title="Open Menu">Open Menu</a>
{#- This line removes leading whitespace from copied path -#}
<a class="project" href="{{ source_base_url }}">/</a>
{% for name, url in breadcrumb_urls %}
<a href="{{ url }}">{{ name }}</a>
{{ '/' if not loop.last else '' }}
{% endfor %}
{%- for name, url in breadcrumb_urls -%}
<a href="{{ url }}">{{- name -}}</a>
{{- '/' if not loop.last else '' -}}
{%- endfor -%}
</div>
<div class="search">
<form method="GET" action="{{ ident_base_url }}" id="search-form">
Expand Down