diff --git a/assets/_main.scss b/assets/_main.scss index eaebb62..853de43 100644 --- a/assets/_main.scss +++ b/assets/_main.scss @@ -87,13 +87,6 @@ ul.pagination { a .book-icon { height: 1em; width: 1em; - - &:first-child { - margin-inline-end: $padding-8; - } - &:last-child { - margin-inline-start: $padding-8; - } } .book-brand { @@ -189,9 +182,19 @@ body[dir="rtl"] .book-menu { margin-inline-end: .5em; } - .book-post-content > :first-child { + .book-post-content { margin-top: $padding-16; } + + .book-post-thumbnail { + flex: 0 0 34%; + + img { + width: 100%; + aspect-ratio: 4 / 3; + object-fit: cover; + } + } } .book-header { @@ -314,6 +317,10 @@ body[dir="rtl"] .book-menu { a { margin: $padding-8 0; } + + a.flex { + gap: $padding-8; + } } .book-comments { @@ -341,11 +348,6 @@ body[dir="rtl"] .book-menu { } @media screen and (max-width: $mobile-breakpoint) { - #menu-control, - #toc-control { - display: inline; - } - .book-menu { visibility: hidden; margin-inline-start: -$menu-width; @@ -360,6 +362,15 @@ body[dir="rtl"] .book-menu { display: block; } + .book-post-container { + flex-direction: column-reverse; + } + + #menu-control, + #toc-control { + display: inline; + } + #menu-control:focus ~ main label[for="menu-control"] { @include outline; } diff --git a/assets/_shortcodes.scss b/assets/_shortcodes.scss index 3a19735..5a09eba 100644 --- a/assets/_shortcodes.scss +++ b/assets/_shortcodes.scss @@ -210,7 +210,7 @@ background: var(--gray-100); } - img { + > img { width: 100%; display: block; aspect-ratio: 4 / 3; diff --git a/assets/_utils.scss b/assets/_utils.scss index 92fad0f..52f97f3 100644 --- a/assets/_utils.scss +++ b/assets/_utils.scss @@ -1,5 +1,9 @@ .flex { display: flex; + + &.gap { + gap: $padding-16; + } } .flex-auto { diff --git a/exampleSite/assets/thumbnail.svg b/exampleSite/assets/thumbnail.svg new file mode 100644 index 0000000..0a9c9e0 --- /dev/null +++ b/exampleSite/assets/thumbnail.svg @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/layouts/_partials/docs/pagination.html b/layouts/_partials/docs/pagination.html new file mode 100644 index 0000000..9e0d154 --- /dev/null +++ b/layouts/_partials/docs/pagination.html @@ -0,0 +1,28 @@ +{{- if .Paginator -}} +