Skip to content

Commit c49961d

Browse files
committed
update breadcrumb styles and mobile device library icon
1 parent 5d193fd commit c49961d

File tree

7 files changed

+109
-27
lines changed

7 files changed

+109
-27
lines changed

Makefile.en

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ prepare-antora-mlm-en: copy-branding-en set-html-language-selector-mlm-en
4848
cd $(current_dir)
4949

5050
.PHONY: antora-mlm-en
51-
antora-mlm-en: configure-mlm-branding-dsc-en prepare-antora-mlm-en pdf-all-mlm-en pdf-tar-mlm-en
51+
antora-mlm-en: configure-mlm-branding-dsc-en prepare-antora-mlm-en #pdf-all-mlm-en pdf-tar-mlm-en
5252
$(call antora-mlm-function,translations/en,en)
5353

5454

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,16 @@
11
<nav class="breadcrumbs" aria-label="breadcrumbs">
2-
{{#if page.breadcrumbs}}
32
<ul>
4-
{{!-- Look up book title directly from YAML map --}}
5-
{{#if (lookup site.asciidoc.attributes.book_titles page.module.name)}}
3+
{{#if page.breadcrumbs.[0]}}
64
<li>
7-
<a href="{{{relativize page.componentVersion.url}}}">
8-
{{lookup site.asciidoc.attributes.book_titles page.module.name}}
9-
</a>
5+
{{#if (and page.breadcrumbs.[0].url (eq page.breadcrumbs.[0].urlType 'internal'))}}
6+
<a href="{{{relativize page.breadcrumbs.[0].url}}}">{{{page.breadcrumbs.[0].content}}}</a>
7+
{{else}}
8+
{{{page.breadcrumbs.[0].content}}}
9+
{{/if}}
1010
</li>
1111
{{/if}}
12-
13-
{{!-- Remaining breadcrumbs --}}
14-
{{#each page.breadcrumbs}}
15-
<li>
16-
{{#if (and url (eq urlType 'internal'))}}
17-
<a href="{{{relativize url}}}">{{{content}}}</a>
18-
{{else}}
19-
{{{content}}}
20-
{{/if}}
21-
</li>
22-
{{/each}}
2312
</ul>
24-
{{/if}}
2513
</nav>
14+
15+
16+
Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,24 @@
11
<div class="toolbar" role="navigation">
2-
{{> nav-toggle}}
3-
{{#with site.homeUrl}}
4-
<a href="{{{relativize this}}}" class="home-link{{#if @root.page.home}} is-current{{/if}}"></a>
5-
{{/with}}
2+
{{> nav-toggle}}
3+
4+
<a href="https://documentation.suse.com" class="home-link" title="Documentation.suse.com"></a>
5+
6+
<a href="https://documentation.suse.com/multi-linux-manager/5.1/" class="library-link" title="SUSE Multi-Linux Manager Product Page">
7+
<span class="library-text">SUSE Multi-Linux Manager 5.1 | </span>
8+
<img class="library-icon" src="{{uiRootPath}}/img/library.svg" alt="Library" width="20" height="20">
9+
</a>
10+
11+
{{!-- }} <a href="https://documentation.suse.com/multi-linux-manager/5.1/" class="library-link" title="SUSE Multi-Linux Manager Product Page">
12+
<img src="{{uiRootPath}}/img/library.svg" alt="Library" width="16" height="16">
13+
</a> --}}
14+
615
{{> breadcrumbs}}
716
{{> page-versions}}
17+
818
{{#if (and page.fileUri (not env.CI))}}
9-
<div class="edit-this-page"><a href="{{page.fileUri}}">Edit this Page</a></div>
19+
<div class="edit-this-page"><a href="{{page.fileUri}}">Edit this Page</a></div>
1020
{{else if (and page.editUrl (or env.FORCE_SHOW_EDIT_PAGE_LINK (not page.origin.private)))}}
11-
<div class="edit-this-page"><a href="{{page.editUrl}}">Edit this Page</a></div>
21+
<div class="edit-this-page"><a href="{{page.editUrl}}">Edit this Page</a></div>
1222
{{/if}}
1323
</div>
24+

branding/default-ui/mlm/ui-bundle.zip

26 Bytes
Binary file not shown.

branding/supplemental-ui/mlm/susecom-2025/css/site-extra.css

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,4 +1231,55 @@ nav.pagination a {
12311231
font-weight: 500;
12321232
z-index: 3;
12331233
text-decoration: none;
1234-
}
1234+
}
1235+
1236+
.toolbar .library-link {
1237+
display: inline-flex;
1238+
align-items: center;
1239+
margin-left: 0.3em;
1240+
margin-right: 0.4em;
1241+
text-decoration: none;
1242+
}
1243+
1244+
/* Text shown by default */
1245+
.toolbar .library-text {
1246+
display: inline-flex;
1247+
}
1248+
1249+
/* Icon hidden by default */
1250+
.toolbar .library-icon {
1251+
width: 20px;
1252+
height: 20px;
1253+
display: none;
1254+
margin: .225rem;
1255+
}
1256+
1257+
/* On mobile: hide text, show icon */
1258+
@media (max-width: 768px) {
1259+
.toolbar .library-text {
1260+
display: none;
1261+
}
1262+
1263+
.toolbar .library-icon {
1264+
display: block;
1265+
}
1266+
}
1267+
1268+
.breadcrumbs {
1269+
padding-top: 2px;
1270+
}
1271+
1272+
@media screen and (max-width: 768px) {
1273+
.breadcrumbs {
1274+
display: block !important;
1275+
}
1276+
}
1277+
1278+
.home-link {
1279+
margin: .225rem;
1280+
}
1281+
1282+
/*.breadcrumbs ul {
1283+
flex-wrap: wrap;
1284+
} */
1285+
Lines changed: 29 additions & 0 deletions
Loading

modules/ROOT/pages/index.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= {productname} Index
1+
= Index
22

33
ifeval::[{mlm-content} == true]
44
[.currentrel]**Version: {productnumber}**

0 commit comments

Comments
 (0)