mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-15 00:02:57 -05:00
WIP
This commit is contained in:
parent
cd105785bf
commit
337a62c7cd
@ -361,20 +361,20 @@ h1 svg.icon {
|
|||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
||||||
/* Header formatting (website title and article section headers) {{{ */
|
/* Heading formatting (website title and article section headers) {{{ */
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
margin: 16px 0;
|
margin: 16px 0;
|
||||||
|
font-size: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.header a,
|
/* this is also used i.e. in post-title */
|
||||||
.section-header a {
|
.heading-link {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font-size: 1.5em;
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-header-link svg {
|
.heading-link svg {
|
||||||
width: 15px;
|
width: 15px;
|
||||||
height: 15px;
|
height: 15px;
|
||||||
}
|
}
|
||||||
@ -459,6 +459,9 @@ h1 svg.icon {
|
|||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
/* Back to top {{{ */
|
/* Back to top {{{ */
|
||||||
|
#top {
|
||||||
|
font-size: 0;
|
||||||
|
}
|
||||||
#back-to-top {
|
#back-to-top {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
float: right;
|
float: right;
|
||||||
@ -589,12 +592,6 @@ li.disabled > .page-link:hover {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post-title a,
|
|
||||||
.author-name a {
|
|
||||||
color: inherit;
|
|
||||||
text-decoration: inherit;
|
|
||||||
}
|
|
||||||
|
|
||||||
.post-meta-item,
|
.post-meta-item,
|
||||||
.author-meta-item {
|
.author-meta-item {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
@ -58,8 +58,8 @@ newer_post:
|
|||||||
|
|
||||||
|
|
||||||
# ARIA labels
|
# ARIA labels
|
||||||
aria_header_link:
|
aria_heading_link:
|
||||||
other: "header link"
|
other: "heading link"
|
||||||
|
|
||||||
aria_back_to_top_button:
|
aria_back_to_top_button:
|
||||||
other: "back to top button"
|
other: "back to top button"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-header">
|
<h{{ .Level }} id="{{ .Anchor | safeURL }}" class="section-heading">
|
||||||
{{ .Text | safeHTML }}
|
{{ .Text | safeHTML }}
|
||||||
<a href="#{{ .Anchor | safeURL }}">
|
<a class="heading-link" href="#{{ .Anchor | safeURL }}">
|
||||||
<span class="section-header-link" aria-label="{{ i18n "aria_header_link" }}">
|
<span aria-label="{{ i18n "aria_heading_link" }}">
|
||||||
{{ partial "icon.html" "link" }}
|
{{ partial "icon.html" "link" }}
|
||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<h2 class="post-title">
|
<h2 class="post-title">
|
||||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<div class="author">
|
<div class="author">
|
||||||
<h2 class="author-name">
|
<h2 class="author-name">
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<header class="header">
|
<header class="header">
|
||||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
<a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||||
{{ .Site.Title | markdownify }}
|
{{ .Site.Title | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
</header>
|
</header>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<h2 class="post-title">
|
<h2 class="post-title">
|
||||||
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
<a class="heading-link" href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
||||||
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user