mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-05-14 15:52: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 {
|
||||
margin: 16px 0;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.header a,
|
||||
.section-header a {
|
||||
/* this is also used i.e. in post-title */
|
||||
.heading-link {
|
||||
color: inherit;
|
||||
font-size: 1.5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.section-header-link svg {
|
||||
.heading-link svg {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
}
|
||||
@ -459,6 +459,9 @@ h1 svg.icon {
|
||||
/* }}} */
|
||||
|
||||
/* Back to top {{{ */
|
||||
#top {
|
||||
font-size: 0;
|
||||
}
|
||||
#back-to-top {
|
||||
position: fixed;
|
||||
float: right;
|
||||
@ -589,12 +592,6 @@ li.disabled > .page-link:hover {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.post-title a,
|
||||
.author-name a {
|
||||
color: inherit;
|
||||
text-decoration: inherit;
|
||||
}
|
||||
|
||||
.post-meta-item,
|
||||
.author-meta-item {
|
||||
margin-right: 10px;
|
||||
|
@ -58,8 +58,8 @@ newer_post:
|
||||
|
||||
|
||||
# ARIA labels
|
||||
aria_header_link:
|
||||
other: "header link"
|
||||
aria_heading_link:
|
||||
other: "heading link"
|
||||
|
||||
aria_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 }}
|
||||
<a href="#{{ .Anchor | safeURL }}">
|
||||
<span class="section-header-link" aria-label="{{ i18n "aria_header_link" }}">
|
||||
<a class="heading-link" href="#{{ .Anchor | safeURL }}">
|
||||
<span aria-label="{{ i18n "aria_heading_link" }}">
|
||||
{{ partial "icon.html" "link" }}
|
||||
</span>
|
||||
</a>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<h2 class="post-title">
|
||||
{{ 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 }}
|
||||
</h2>
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="author">
|
||||
<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 }}
|
||||
</h2>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
<header class="header">
|
||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||
<a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||
{{ .Site.Title | markdownify }}
|
||||
</a>
|
||||
</header>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<h2 class="post-title">
|
||||
{{ 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 }}
|
||||
</h2>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user