From 90d65b3d9d1b603b848128a92ebeed99d37b8788 Mon Sep 17 00:00:00 2001 From: nntrn <17685332+nntrn@users.noreply.github.com> Date: Mon, 30 Sep 2024 04:58:47 -0500 Subject: [PATCH] Update layouts --- _includes/docs.css | 4 +++- _includes/theme.css | 12 ++++++------ _layouts/book.html | 6 +++--- _layouts/default.html | 32 +++++++++++++++----------------- _layouts/genre.html | 6 +++--- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/_includes/docs.css b/_includes/docs.css index 9e9272f..a69d187 100644 --- a/_includes/docs.css +++ b/_includes/docs.css @@ -1,4 +1,4 @@ -body{--bs-heading-color:var(--bs-gray-dark);color:#222;text-size-adjust:none} +body{--bs-heading-color:var(--bs-gray-dark);color:#222;} aside{border-top:dotted 2px gray;padding-top:2rem;font-size:var(--aside-font-size)} h3,h4,h5{margin:0 0} h1 a{text-decoration-skip-ink:all} @@ -10,6 +10,7 @@ a:hover{color:#222} .bookmark q{white-space:pre-line} .clamp{display:-webkit-box!important;-webkit-line-clamp:var(--clamp-lines,1);-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis} .gap{gap:var(--gap)} +.h6{font-size:1.1rem} .site-title a{font-size:1.5rem;text-decoration-thickness:calc(1em / 10);text-underline-offset:.15rem;font-family:var(--bs-font-sans-serif)} .toc{max-height:min(300px,40vh);position:sticky;top:1rem;font-size:.9rem;z-index:1;width:20px;max-width:20px} .toc a{display:block;text-decoration:none;font-weight:400;white-space:pre;padding:0 4px;line-height:1;color:#222} @@ -19,6 +20,7 @@ a:hover{color:#222} .smaller{font-size:var(--smaller-font-size,.85rem)} .muted{color:var(--bs-gray-500)} .red{color:var(--bs-red)} +.g6{color:var(--bs-gray-500)} .sans-serif{font-family:var(--bs-font-sans-serif)} .serif{font-family:var(--bs-font-serif)} .pre{white-space:pre} diff --git a/_includes/theme.css b/_includes/theme.css index a3d7778..8309ff0 100644 --- a/_includes/theme.css +++ b/_includes/theme.css @@ -8,8 +8,7 @@ --aside-font-size: 0.95rem; --list-gap: 1.4rem; font-family: courier, monospace; - font-size: 15px; - line-height: 1.1; + font-size: 1rem; tab-size: 4; } [data-layout="serif"] { @@ -17,8 +16,7 @@ --smaller-font-size: 0.95em; --list-gap: 1.4rem; font-family: times, serif; - font-size: 16px; - line-height: 1.2; + font-size: 1rem; tab-size: 8; } [data-layout="sans-serif"] { @@ -26,8 +24,7 @@ --smaller-font-size: 0.95em; --list-gap: 1.6rem; font-family: Helvetica Neue, Helvetica, Arial, sans-serif; - font-size: 14px; - line-height: 1.2; + font-size: 1rem; tab-size: 6; } @media (min-width: 900px) { @@ -36,3 +33,6 @@ margin: 0 auto; } } +@media (max-width:767.98px){ + .breadcrumb{display:none} +} diff --git a/_layouts/book.html b/_layouts/book.html index 0528c63..c6fcaf7 100644 --- a/_layouts/book.html +++ b/_layouts/book.html @@ -5,7 +5,7 @@ --- {%- assign pagecreated = page.created | date: "%b %Y" -%} {%- assign pagemodified = page.modified | date: "%b %Y" -%} -{%- assign annotations = site.data.activity | where: 'assetid', page.assetid | sort: "cfi" -%} +{%- assign annotations = site.data.activity | where: 'assetid', page.assetid | sort: "rangestart" | sort: "cfi" -%} {%- assign chapters = annotations| sort: "rangestart" | group_by: "chapter" -%}
@@ -17,14 +17,14 @@

{{page.author}}

{{pagecreated}}{%- if pagemodified != pagecreated -%} – {{pagemodified}}{%- endif %}
-
+
{%- for chapter in chapters %} {%- assign sortedchapteritems = chapter.items | sort: "cfi" %}

{{chapter.name|replace:'#',''|strip}}

    {%- for annotation in sortedchapteritems %} -
  • +
  • {{ annotation.text }}
- {%- if page.title -%}
{%- include breadcrumb.html -%}
{%- endif -%} + {%- if page.title -%}{%- endif -%}
{{ content }} - +
-
-
-
- Created by @{{site.github_username}}. - Copyright {{ site.time | date: '%Y' }} -
-
- -
+
+
+
+ Created by @{{site.github_username}}. + Copyright {{ site.time | date: '%Y' }} +
+
+
- +
-