Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gethugothemes/dot-hugo-documentation-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--assets/css/style.css14
-rw-r--r--layouts/partials/default.html6
2 files changed, 14 insertions, 6 deletions
diff --git a/assets/css/style.css b/assets/css/style.css
index 4311212..bac5382 100644
--- a/assets/css/style.css
+++ b/assets/css/style.css
@@ -719,6 +719,14 @@ tbody {
/* /single page */
/* side list */
+.sidebar{
+ background-color: var(--white-color);
+ position: sticky;
+ top: 50px;
+ margin-bottom: 30px;
+ padding: 40px 10px 20px 10px;
+}
+
.sidelist {
display: block;
}
@@ -865,12 +873,12 @@ code {
content: "\e6bc";
font-size: 25px;
height: 30px;
- width: 50px;
- background: #fff;
+ width: 40px;
+ background-color: var(--white-color);
color: inherit;
text-align: right;
z-index: 1;
- left: -15px;
+ left: -5px;
top: -3px;
}
diff --git a/layouts/partials/default.html b/layouts/partials/default.html
index 8075bed..001555f 100644
--- a/layouts/partials/default.html
+++ b/layouts/partials/default.html
@@ -3,12 +3,12 @@
<div class="container">
<div class="row">
<div class="col-lg-3">
- <div class="bg-white pl-lg-4 py-4 pr-4 mb-5 mb-lg-0 sticky-top top-50 overflow-hidden">
+ <div class="sidebar">
<ul class="list-styled">
{{ $currentNode := . }}
- <a class="d-block h4 back-btn" href="{{ .Site.BaseURL | relLangURL }}">{{ i18n "Back-home"}}</a>
+ <a class="back-btn" href="{{ .Site.BaseURL | relLangURL }}"></a>
{{range .Site.Home.Sections.ByWeight}}
- {{ if eq .FirstSection $currentNode.FirstSection }} {{/* print current section only */}}
+ {{ if eq .FirstSection $currentNode.FirstSection }}
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode}}
{{ end }}
{{ end }}