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

github.com/darshanbaral/khata.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Baral <darshanbaral@gmail.com>2019-07-07 20:27:51 +0300
committerDarshan Baral <darshanbaral@gmail.com>2019-07-07 20:27:51 +0300
commit43a67cbbc605d7ea8e7a935f4aa0594458f1a60c (patch)
tree6b782166c2af2860877c59c679f896df4f43babd /layouts
parent557ded0910ea267130b54f7fc07ec7be2ee870b8 (diff)
Made TOC wide in small screens
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.html4
-rw-r--r--layouts/partials/toc.html2
2 files changed, 4 insertions, 2 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index f0be58d..70185d6 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -16,7 +16,9 @@
<hr />
{{ if (gt (len (split .Content `</h`)) 2) }}
- {{ partial "toc.html" . }}
+ <div class="TableOfContents rounded p-2 ml-2 mb-2">
+ {{ partial "toc.html" . }}
+ </div>
{{ end }}
{{ .Content }}
</article>
diff --git a/layouts/partials/toc.html b/layouts/partials/toc.html
index 432c382..d36c787 100644
--- a/layouts/partials/toc.html
+++ b/layouts/partials/toc.html
@@ -1,5 +1,5 @@
-<aside class="float-right rounded p-2 ml-2 mb-2" style="background-color: #dbdbdb;">
+<aside>
<h3>Contents</h3>
{{ .TableOfContents }}
</aside> \ No newline at end of file