mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-08-30 08:37:34 -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;
|
||||
}
|
||||
|
||||
#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 {{{ */
|
||||
@@ -326,7 +340,7 @@ footer p {
|
||||
* or it will need its hover background to be chopped off on the left */
|
||||
}
|
||||
|
||||
.header {
|
||||
.brand {
|
||||
flex-grow: 1;
|
||||
margin: 8px var(--page-margin);
|
||||
font-size: 1.25em;
|
||||
@@ -334,7 +348,7 @@ footer p {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.header a {
|
||||
.brand a {
|
||||
color: inherit;
|
||||
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 {
|
||||
@@ -508,6 +506,14 @@ footer p {
|
||||
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 {
|
||||
margin-top: 15px;
|
||||
}
|
||||
@@ -634,10 +640,6 @@ footer p {
|
||||
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 {{{ */
|
||||
|
||||
.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-block {
|
||||
display: flex;
|
||||
@@ -884,42 +912,21 @@ aside.quote {
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* 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);
|
||||
/* See also formating */
|
||||
.see-also {
|
||||
background-color: var(--background-1);
|
||||
color: var(--text-1);
|
||||
padding: 8px 12px;
|
||||
border-radius: 8px;
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
.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);
|
||||
.see-also p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* }}} */
|
||||
|
||||
/* }}} */
|
||||
|
||||
|
||||
/* @media specializations {{{ */
|
||||
|
@@ -1,3 +1,4 @@
|
||||
.page-meta-comments-counter,
|
||||
.code-copy-button {
|
||||
display: none;
|
||||
}
|
||||
|
@@ -1,16 +1,9 @@
|
||||
{{ with .Params.authors }}
|
||||
<span class="page-metadata-item" data-pagefind-meta="authors" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
||||
{{ with .GetTerms "authors" }}
|
||||
<span class="page-metadata-item authors" aria-label="{{ i18n "aria_post_meta_authors" }}">
|
||||
{{ partial "icon.html" "user-circle" }}
|
||||
|
||||
{{ if index $.Site.Taxonomies "authors" }}
|
||||
{{ $authors := slice }}
|
||||
{{ range . }}
|
||||
{{ $url := (printf "authors/%s" (. | anchorize)) | absLangURL }}
|
||||
{{ $authors = $authors | append (printf `<a href="%s">%s</a>` $url .) }}
|
||||
{{ end }}
|
||||
{{ delimit $authors ", " | safeHTML }}
|
||||
{{ else }}
|
||||
{{ delimit . ", " }}
|
||||
{{ range . }}
|
||||
<a href="{{ .Permalink }}" data-pagefind-filter="author">{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
|
@@ -4,8 +4,10 @@
|
||||
{{ $categories = $categories | append (printf `<a href="%s">%s</a>` .Permalink .LinkTitle) }}
|
||||
{{ 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" }}
|
||||
{{ delimit $categories ", " | safeHTML }}
|
||||
{{ range . }}
|
||||
<a href="{{ .Permalink }}" data-pagefind-filter="category">{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ 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" }}
|
||||
{{/* 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
|
||||
|
@@ -1,11 +1,8 @@
|
||||
{{ with (.GetTerms "series") }}
|
||||
{{ $series := slice }}
|
||||
{{ 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" }}">
|
||||
<div class="page-metadata-section series" aria-label="{{ i18n "aria_post_meta_series" }}">
|
||||
{{ partial "icon.html" "files" }}
|
||||
{{ delimit $series ", " | safeHTML }}
|
||||
{{ range . }}
|
||||
<a href="{{ .Permalink }}" data-pagefind-filter="series">{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,11 +1,10 @@
|
||||
{{ with (.GetTerms "tags") }}
|
||||
{{ $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" }}
|
||||
{{ delimit $tags ", " | safeHTML }}
|
||||
{{ range . }}
|
||||
<a href="{{ .Permalink }}" data-pagefind-filter="tag">{{ .LinkTitle }}</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@@ -1,9 +1,9 @@
|
||||
<div class="top">
|
||||
<header class="header">
|
||||
<header class="top">
|
||||
<div class="brand">
|
||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||
{{ .Site.Title | markdownify }}
|
||||
</a>
|
||||
</header>
|
||||
</div>
|
||||
|
||||
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||
{{ with .Site.Home }}
|
||||
@@ -21,4 +21,4 @@
|
||||
href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
Reference in New Issue
Block a user