improved readibilit of content

This commit is contained in:
Nuno Coração 2022-10-20 22:03:49 +01:00
parent 4b45ff114f
commit 539cfd6443
6 changed files with 17 additions and 16 deletions

View file

@ -1670,14 +1670,14 @@ select {
width: 3rem;
}
.w-36 {
width: 9rem;
}
.w-full {
width: 100%;
}
.w-36 {
width: 9rem;
}
.w-24 {
width: 6rem;
}
@ -3073,10 +3073,6 @@ body:has(#menu-controller:checked) {
}
}
.max-w-prose {
max-width: 75ch;
}
.first\:mt-8:first-child {
margin-top: 2rem;
}
@ -3523,6 +3519,10 @@ body:has(#menu-controller:checked) {
width: 50%;
}
.sm\:max-w-prose {
max-width: 65ch;
}
.sm\:flex-row {
flex-direction: row;
}
@ -3676,6 +3676,10 @@ body:has(#menu-controller:checked) {
margin-right: 0px;
}
.lg\:ml-auto {
margin-left: auto;
}
.lg\:mt-0 {
margin-top: 0px;
}

View file

@ -395,8 +395,4 @@ body:has(#menu-controller:checked) {
.article {
flex-wrap: nowrap;
}
}
.max-w-prose {
max-width: 75ch;
}

View file

@ -57,7 +57,7 @@ mainSections = ["docs"]
[list]
showBreadcrumbs = false
showSummary = true
showTableOfContents = false
showTableOfContents = true
showCards = true
groupByYear = false

View file

@ -25,7 +25,7 @@
</div>
</section>
{{ if gt .Pages 0 }}
<section class="space-y-10 max-w-prose">
<section class="space-y-10 w-full">
{{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }}
{{ if $.Params.groupByYear | default ($.Site.Params.list.groupByYear | default true) }}
<h2 class="mt-12 text-2xl font-bold text-neutral-700 first:mt-8 dark:text-neutral-300">

View file

@ -21,7 +21,8 @@
</header>
<section class="flex flex-col max-w-full mt-0 prose dark:prose-invert lg:flex-row">
{{ if and (.Params.showTableOfContents | default (.Site.Params.article.showTableOfContents | default false)) (in
.TableOfContents "<ul") }} <div class="order-first px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
.TableOfContents "<ul") }}
<div class="order-first sm:max-w-prose lg:ml-auto px-0 lg:order-last lg:max-w-xs ltr:lg:pl-8 rtl:lg:pr-8">
<div class="toc ltr:pl-5 rtl:pr-5 print:hidden lg:sticky lg:top-10">
{{ partial "toc.html" . }}
</div>

View file

@ -1,6 +1,6 @@
{
"name": "hugo-blowfish-theme",
"version": "2.4.1",
"version": "2.4.2",
"description": "Blowfish theme for Hugo",
"scripts": {
"preinstall": "rimraf assets/vendor",