Page MenuHomeFreeBSD

D60037.id187729.diff
No OneTemporary

D60037.id187729.diff

diff --git a/documentation/themes/beastie/assets/styles/documentation.scss b/documentation/themes/beastie/assets/styles/documentation.scss
--- a/documentation/themes/beastie/assets/styles/documentation.scss
+++ b/documentation/themes/beastie/assets/styles/documentation.scss
@@ -254,9 +254,14 @@
overflow-y: auto;
transition: .2s ease-in-out;
- h3 {
+ .toc-title {
border-bottom: none;
margin: 1rem 0;
+ font-size: var(--size-550);
+ font-weight: bold;
+ padding-top: .8rem;
+ padding-bottom: .3rem;
+ line-height: 1.3;
}
#TableOfContents {
@@ -290,8 +295,13 @@
}
.resources {
- h3 {
+ .resources-title {
margin: 1rem 0;
+ font-size: var(--size-550);
+ font-weight: bold;
+ padding-top: .8rem;
+ padding-bottom: .3rem;
+ line-height: 1.3;
}
ul {
@@ -319,11 +329,16 @@
}
.toc-mobile {
- h3 {
+ .toc-title {
border-bottom: none;
+ font-size: var(--size-550);
+ font-weight: bold;
+ padding-top: .8rem;
+ padding-bottom: .3rem;
+ line-height: 1.3;
}
- #TableOfContents, .resources {
+ #TableOfContentsMobile, .resources {
ul {
list-style: none;
margin: 0;
diff --git a/documentation/themes/beastie/layouts/articles/list.html b/documentation/themes/beastie/layouts/articles/list.html
--- a/documentation/themes/beastie/layouts/articles/list.html
+++ b/documentation/themes/beastie/layouts/articles/list.html
@@ -23,8 +23,8 @@
{{ partial "trademarks" .Params.trademarks }}
{{ end }}
<div class="toc-mobile">
- <h3>{{ i18n "toc" }}</h3>
- {{ .TableOfContents }}
+ <p class="toc-title" id="toc-mobile-title">{{ i18n "toc" }}</p>
+ {{ .TableOfContents | replaceRE "id=\"TableOfContents\"" "id=\"TableOfContentsMobile\"" | safeHTML }}
</div>
{{ .Content }}
{{ if .GitInfo }}
@@ -36,11 +36,11 @@
</div>
<aside class="toc">
<div class="toc-content">
- <h3>{{ i18n "toc" }}</h3>
+ <p class="toc-title" id="toc-sidebar-title">{{ i18n "toc" }}</p>
{{ .TableOfContents }}
<hr />
<div class="resources">
- <h3>{{ i18n "resources" }}</h3>
+ <p class="resources-title" id="toc-resources-title">{{ i18n "resources" }}</p>
<ul class="contents">
{{ $pathSections := split .Page.Path "/" }}
{{ $docLang := $.Site.Home.Language.Lang }}
diff --git a/documentation/themes/beastie/layouts/articles/single.html b/documentation/themes/beastie/layouts/articles/single.html
--- a/documentation/themes/beastie/layouts/articles/single.html
+++ b/documentation/themes/beastie/layouts/articles/single.html
@@ -23,8 +23,8 @@
{{ partial "trademarks" .Params.trademarks }}
{{ end }}
<div class="toc-mobile">
- <h3>{{ i18n "toc" }}</h3>
- {{ .TableOfContents }}
+ <p class="toc-title" id="toc-mobile-title">{{ i18n "toc" }}</p>
+ {{ .TableOfContents | replaceRE "id=\"TableOfContents\"" "id=\"TableOfContentsMobile\"" | safeHTML }}
</div>
{{ .Content }}
{{ if .GitInfo }}
@@ -36,11 +36,11 @@
</div>
<aside class="toc">
<div class="toc-content">
- <h3>{{ i18n "toc" }}</h3>
+ <p class="toc-title" id="toc-sidebar-title">{{ i18n "toc" }}</p>
{{ .TableOfContents }}
<hr />
<div class="resources">
- <h3>{{ i18n "resources" }}</h3>
+ <p class="resources-title" id="toc-resources-title">{{ i18n "resources" }}</p>
<ul class="contents">
{{ $pathSections := split .Page.Path "/" }}
{{ $docLang := $.Site.Home.Language.Lang }}
diff --git a/documentation/themes/beastie/layouts/books/list.html b/documentation/themes/beastie/layouts/books/list.html
--- a/documentation/themes/beastie/layouts/books/list.html
+++ b/documentation/themes/beastie/layouts/books/list.html
@@ -42,8 +42,8 @@
{{ partial "trademarks" .Params.trademarks }}
{{ end }}
<div class="toc-mobile">
- <h3>{{ i18n "toc" }}</h3>
- {{ .TableOfContents }}
+ <p class="toc-title" id="toc-mobile-title">{{ i18n "toc" }}</p>
+ {{ .TableOfContents | replaceRE "id=\"TableOfContents\"" "id=\"TableOfContentsMobile\"" | safeHTML }}
</div>
{{ if $.Site.Params.isOnline }}
{{ if .Params.add_split_page_link }}
@@ -123,11 +123,11 @@
</div>
<aside class="toc">
<div class="toc-content">
- <h3>{{ i18n "toc" }}</h3>
+ <p class="toc-title" id="toc-sidebar-title">{{ i18n "toc" }}</p>
{{ .TableOfContents }}
<hr />
<div class="resources">
- <h3>{{ i18n "resources" }}</h3>
+ <p class="resources-title" id="toc-resources-title">{{ i18n "resources" }}</p>
<ul class="contents">
{{ $pathSections := split .Page.Path "/" }}
{{ $docLang := $.Site.Home.Language.Lang }}
diff --git a/documentation/themes/beastie/layouts/books/single.html b/documentation/themes/beastie/layouts/books/single.html
--- a/documentation/themes/beastie/layouts/books/single.html
+++ b/documentation/themes/beastie/layouts/books/single.html
@@ -42,8 +42,8 @@
{{ partial "trademarks" .Params.trademarks }}
{{ end }}
<div class="toc-mobile">
- <h3>{{ i18n "toc" }}</h3>
- {{ .TableOfContents }}
+ <p class="toc-title" id="toc-mobile-title">{{ i18n "toc" }}</p>
+ {{ .TableOfContents | replaceRE "id=\"TableOfContents\"" "id=\"TableOfContentsMobile\"" | safeHTML }}
</div>
{{ if $.Site.Params.isOnline }}
{{ if .Params.add_split_page_link }}
@@ -123,11 +123,11 @@
</div>
<aside class="toc">
<div class="toc-content">
- <h3>{{ i18n "toc" }}</h3>
+ <p class="toc-title" id="toc-sidebar-title">{{ i18n "toc" }}</p>
{{ .TableOfContents }}
<hr />
<div class="resources">
- <h3>{{ i18n "resources" }}</h3>
+ <p class="resources-title" id="toc-resources-title">{{ i18n "resources" }}</p>
<ul class="contents">
{{ $pathSections := split .Page.Path "/" }}
{{ $docLang := $.Site.Home.Language.Lang }}

File Metadata

Mime Type
text/plain
Expires
Sun, Sep 27, 11:45 AM (13 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39733018
Default Alt Text
D60037.id187729.diff (6 KB)

Event Timeline