mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-31 00:57:33 -05:00
Compare commits
6 Commits
61d5ca29dd
...
3d55a7dabe
Author | SHA1 | Date | |
---|---|---|---|
3d55a7dabe
|
|||
67de113bdf
|
|||
349672bbad
|
|||
ec382b2085
|
|||
21f2a91b54
|
|||
0237c496ed
|
@@ -312,6 +312,20 @@ footer p {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#skip-to-main {
|
||||||
|
position: absolute;
|
||||||
|
padding: 8px;
|
||||||
|
background-color: var(--text-0);
|
||||||
|
color: var(--background-0);
|
||||||
|
transform: translateY(-100%);
|
||||||
|
}
|
||||||
|
#skip-to-main:focus {
|
||||||
|
transform: translateY(0%);
|
||||||
|
}
|
||||||
|
#main-content:target {
|
||||||
|
animation: none; /* prevent it from turning yellow */
|
||||||
|
}
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* Top bar formatting {{{ */
|
/* Top bar formatting {{{ */
|
||||||
@@ -326,7 +340,7 @@ footer p {
|
|||||||
* or it will need its hover background to be chopped off on the left */
|
* or it will need its hover background to be chopped off on the left */
|
||||||
}
|
}
|
||||||
|
|
||||||
.header {
|
.brand {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
margin: 8px var(--page-margin);
|
margin: 8px var(--page-margin);
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
@@ -334,7 +348,7 @@ footer p {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header a {
|
.brand a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@@ -360,22 +374,6 @@ footer p {
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* Skip to main content {{{ */
|
|
||||||
#skip-to-main {
|
|
||||||
position: absolute;
|
|
||||||
padding: 8px;
|
|
||||||
background-color: var(--text-0);
|
|
||||||
color: var(--background-0);
|
|
||||||
transform: translateY(-100%);
|
|
||||||
}
|
|
||||||
#skip-to-main:focus {
|
|
||||||
transform: translateY(0%);
|
|
||||||
}
|
|
||||||
#main-content:target {
|
|
||||||
animation: none; /* prevent it from turning yellow */
|
|
||||||
}
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
/* Breadcrumb navigation {{{ */
|
/* Breadcrumb navigation {{{ */
|
||||||
|
|
||||||
.breadcrumb {
|
.breadcrumb {
|
||||||
@@ -508,6 +506,14 @@ footer p {
|
|||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:is(
|
||||||
|
.page-metadata-section:is(.categories, .tags, .series),
|
||||||
|
.page-metadata-item.authors
|
||||||
|
) > a:not(:last-child):after {
|
||||||
|
color: var(--text-0);
|
||||||
|
content: ",";
|
||||||
|
}
|
||||||
|
|
||||||
.post-media {
|
.post-media {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
}
|
}
|
||||||
@@ -634,10 +640,6 @@ footer p {
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.view-section {
|
|
||||||
margin-top: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
||||||
@@ -705,19 +707,6 @@ footer p {
|
|||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* See also formating */
|
|
||||||
.see-also {
|
|
||||||
background-color: var(--background-1);
|
|
||||||
color: var(--text-1);
|
|
||||||
padding: 8px 12px;
|
|
||||||
border-radius: 8px;
|
|
||||||
margin: 10px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.see-also p {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Previous and next page buttons {{{ */
|
/* Previous and next page buttons {{{ */
|
||||||
|
|
||||||
.prevnext {
|
.prevnext {
|
||||||
@@ -768,6 +757,45 @@ footer p {
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
/* Related posts section {{{ */
|
||||||
|
|
||||||
|
/* set the margins on the contents instead of the parent .related-posts
|
||||||
|
* so that the posts in the list clip off the edge of the screen,
|
||||||
|
* which makes a more obvious indicator that it's scrollable
|
||||||
|
*/
|
||||||
|
|
||||||
|
.related-posts > hr,
|
||||||
|
.related-posts > h1 {
|
||||||
|
margin: var(--page-margin);
|
||||||
|
}
|
||||||
|
|
||||||
|
.related-posts .page {
|
||||||
|
min-width: 300px;
|
||||||
|
max-width: 300px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.related-posts .page:first-child {
|
||||||
|
margin-left: var(--page-margin);
|
||||||
|
}
|
||||||
|
.related-posts .page:last-child {
|
||||||
|
margin-right: var(--page-margin);
|
||||||
|
}
|
||||||
|
|
||||||
|
.related-posts .page-list {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 20px;
|
||||||
|
overflow-x: auto;
|
||||||
|
margin-bottom: var(--page-margin);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* }}} */
|
||||||
|
|
||||||
|
/* }}} */
|
||||||
|
|
||||||
|
/* Content components (can appear both in single and list pages) {{{ */
|
||||||
|
|
||||||
/* Code & code blocks {{{ */
|
/* Code & code blocks {{{ */
|
||||||
.code-block {
|
.code-block {
|
||||||
display: flex;
|
display: flex;
|
||||||
@@ -884,42 +912,21 @@ aside.quote {
|
|||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* Related posts section {{{ */
|
/* See also formating */
|
||||||
|
.see-also {
|
||||||
/* set the margins on the contents instead of the parent .related-posts
|
background-color: var(--background-1);
|
||||||
* so that the posts in the list clip off the edge of the screen,
|
color: var(--text-1);
|
||||||
* which makes a more obvious indicator that it's scrollable
|
padding: 8px 12px;
|
||||||
*/
|
border-radius: 8px;
|
||||||
|
margin: 10px 0;
|
||||||
.related-posts > hr,
|
|
||||||
.related-posts > h1 {
|
|
||||||
margin: var(--page-margin);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.related-posts .page {
|
.see-also p {
|
||||||
min-width: 300px;
|
margin: 0;
|
||||||
max-width: 300px;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.related-posts .page:first-child {
|
|
||||||
margin-left: var(--page-margin);
|
|
||||||
}
|
|
||||||
.related-posts .page:last-child {
|
|
||||||
margin-right: var(--page-margin);
|
|
||||||
}
|
|
||||||
|
|
||||||
.related-posts .page-list {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
gap: 20px;
|
|
||||||
overflow-x: auto;
|
|
||||||
margin-bottom: var(--page-margin);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* }}} */
|
|
||||||
|
|
||||||
|
|
||||||
/* @media specializations {{{ */
|
/* @media specializations {{{ */
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
.page-meta-comments-counter,
|
||||||
.code-copy-button {
|
.code-copy-button {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@@ -1,16 +1,9 @@
|
|||||||
{{ with .Params.authors }}
|
{{ with .GetTerms "authors" }}
|
||||||
<span class="page-metadata-item" data-pagefind-meta="authors" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
<span class="page-metadata-item authors" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
||||||
{{ partial "icon.html" "user-circle" }}
|
{{ partial "icon.html" "user-circle" }}
|
||||||
|
|
||||||
{{ if index $.Site.Taxonomies "authors" }}
|
{{ range . }}
|
||||||
{{ $authors := slice }}
|
<a href="{{ .Permalink }}" data-pagefind-filter="author">{{ .LinkTitle }}</a>
|
||||||
{{ range . }}
|
|
||||||
{{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }}
|
|
||||||
{{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url .) }}
|
|
||||||
{{ end }}
|
|
||||||
{{ delimit $authors ", " | safeHTML }}
|
|
||||||
{{ else }}
|
|
||||||
{{ delimit . ", " }}
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -4,8 +4,10 @@
|
|||||||
{{ $categories = $categories | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
{{ $categories = $categories | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-metadata-section categories" data-pagefind-meta="categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
<div class="page-metadata-section categories" aria-label="{{ i18n "aria_post_meta_categories" }}">
|
||||||
{{ partial "icon.html" "folder" }}
|
{{ partial "icon.html" "folder" }}
|
||||||
{{ delimit $categories ", " | safeHTML }}
|
{{ range . }}
|
||||||
|
<a href="{{ .Permalink }}" data-pagefind-filter="category">{{ .LinkTitle }}</a>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
<span class="page-metadata-item" aria-label="comments counter">
|
<span class="page-metadata-item page-meta-comments-counter" aria-label="comments counter">
|
||||||
{{ partial "icon.html" "message" }}
|
{{ partial "icon.html" "message" }}
|
||||||
{{/* TODO: figure out if there's a nicer way to generate this URL
|
{{/* TODO: figure out if there's a nicer way to generate this URL
|
||||||
* the current issue is that we can't use RelRef, since content view means that we don't
|
* the current issue is that we can't use RelRef, since content view means that we don't
|
||||||
|
@@ -1,11 +1,8 @@
|
|||||||
{{ with (.GetTerms "series") }}
|
{{ with (.GetTerms "series") }}
|
||||||
{{ $series := slice }}
|
<div class="page-metadata-section series" aria-label="{{ i18n "aria_post_meta_series" }}">
|
||||||
{{ range . }}
|
|
||||||
{{ $series = $series | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<div class="page-metadata-section series" data-pagefind-meta="series" aria-label="{{ i18n "aria_post_meta_series" }}">
|
|
||||||
{{ partial "icon.html" "files" }}
|
{{ partial "icon.html" "files" }}
|
||||||
{{ delimit $series ", " | safeHTML }}
|
{{ range . }}
|
||||||
|
<a href="{{ .Permalink }}" data-pagefind-filter="series">{{ .LinkTitle }}</a>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,11 +1,10 @@
|
|||||||
{{ with (.GetTerms "tags") }}
|
{{ with (.GetTerms "tags") }}
|
||||||
{{ $tags := slice }}
|
{{ $tags := slice }}
|
||||||
{{ range . }}
|
|
||||||
{{ $tags = $tags | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<div class="page-metadata-section tags" data-pagefind-meta="tags" aria-label="{{ i18n "aria_post_meta_tags" }}">
|
<div class="page-metadata-section tags" aria-label="{{ i18n "aria_post_meta_tags" }}">
|
||||||
{{ partial "icon.html" "tag" }}
|
{{ partial "icon.html" "tag" }}
|
||||||
{{ delimit $tags ", " | safeHTML }}
|
{{ range . }}
|
||||||
|
<a href="{{ .Permalink }}" data-pagefind-filter="tag">{{ .LinkTitle }}</a>
|
||||||
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
<div class="top">
|
<header class="top">
|
||||||
<header class="header">
|
<div class="brand">
|
||||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||||
{{ .Site.Title | markdownify }}
|
{{ .Site.Title | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
</header>
|
</div>
|
||||||
|
|
||||||
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||||
{{ with .Site.Home }}
|
{{ with .Site.Home }}
|
||||||
@@ -21,4 +21,4 @@
|
|||||||
href="{{ .URL }}">{{ .Name }}</a>
|
href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</header>
|
||||||
|
Reference in New Issue
Block a user