mirror of
https://github.com/BBaoVanC/bobatheme.git
synced 2025-09-06 19:27:35 -05:00
Compare commits
1 Commits
4bc8184593
...
semantic-h
Author | SHA1 | Date | |
---|---|---|---|
0790ed94b9
|
@@ -340,7 +340,7 @@ body {
|
|||||||
* 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 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-brand {
|
.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;
|
||||||
@@ -348,27 +348,27 @@ body {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-brand > a {
|
.brand a {
|
||||||
color: inherit;
|
color: inherit;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-navbar {
|
.navbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-navbar-item {
|
.navbar-item {
|
||||||
padding: 12px var(--page-margin);
|
padding: 12px var(--page-margin);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-navbar-item:hover {
|
.navbar-item:hover {
|
||||||
background-color: var(--background-2);
|
background-color: var(--background-2);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-navbar-item--active {
|
.navbar-item.active {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -446,6 +446,13 @@ body {
|
|||||||
|
|
||||||
/* List layout {{{ */
|
/* List layout {{{ */
|
||||||
|
|
||||||
|
/* flexbox container for sections and main page list */
|
||||||
|
.list-page-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 40px;
|
||||||
|
}
|
||||||
|
|
||||||
.page-list {
|
.page-list {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
@@ -600,7 +607,6 @@ body {
|
|||||||
/* Subsections on list pages {{{ */
|
/* Subsections on list pages {{{ */
|
||||||
|
|
||||||
.sections {
|
.sections {
|
||||||
margin-bottom: 60px;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
@@ -611,9 +617,6 @@ body {
|
|||||||
color: var(--text-1);
|
color: var(--text-1);
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
padding: 1px 25px;
|
padding: 1px 25px;
|
||||||
display: flex;
|
|
||||||
flex-direction: row;
|
|
||||||
justify-content: space-between;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.section:hover {
|
.section:hover {
|
||||||
@@ -637,16 +640,6 @@ body {
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-arrow {
|
|
||||||
margin-block: auto;
|
|
||||||
max-height: fit-content;
|
|
||||||
float: right;
|
|
||||||
}
|
|
||||||
.section-arrow > .icon {
|
|
||||||
height: 48px;
|
|
||||||
width: 48px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* }}} */
|
/* }}} */
|
||||||
|
|
||||||
|
|
||||||
|
@@ -1,13 +1,13 @@
|
|||||||
<header class="top">
|
<header class="top">
|
||||||
<div class="top-brand">
|
<div class="brand">
|
||||||
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
<a href="{{ .Site.Home.Permalink | absLangURL }}">
|
||||||
{{ .Site.Title | markdownify }}
|
{{ .Site.Title | markdownify }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<nav class="top-navbar" aria-label="{{ i18n "aria_navbar" }}">
|
<nav class="navbar" aria-label="{{ i18n "aria_navbar" }}">
|
||||||
{{ with .Site.Home }}
|
{{ with .Site.Home }}
|
||||||
<a class="top-navbar-item{{ if $.IsHome }} top-navbar-item--active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a>
|
<a class="navbar-item{{ if $.IsHome }} active{{ end }}" href="{{ .Permalink | absLangURL }}">{{ .Title | markdownify }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Site.Menus.main }}
|
{{ range .Site.Menus.main }}
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
{{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }}
|
{{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }}
|
||||||
{{ $isActive = true }}
|
{{ $isActive = true }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<a class="top-navbar-item{{ if $isActive }} top-navbar-item--active{{ end }}"
|
<a class="navbar-item{{ if $isActive }} active{{ end }}"
|
||||||
{{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener"{{ end }}
|
{{ if strings.HasPrefix .URL "http" }}target="_blank" rel="noopener"{{ end }}
|
||||||
href="{{ .URL }}">{{ .Name }}</a>
|
href="{{ .URL }}">{{ .Name }}</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,4 +1,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<section>
|
||||||
|
{{ if .Content }}<article>{{ end }}
|
||||||
|
|
||||||
<h1>
|
<h1>
|
||||||
{{ partial "icon.html" "user-circle" }}
|
{{ partial "icon.html" "user-circle" }}
|
||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
@@ -8,7 +11,9 @@
|
|||||||
{{ . }}
|
{{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="page-list">
|
{{ if .Content }}</article>{{ end }}
|
||||||
|
|
||||||
|
<section class="page-list">
|
||||||
{{ with .Paginator.Pages }}
|
{{ with .Paginator.Pages }}
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
<article class="page">
|
<article class="page">
|
||||||
@@ -20,5 +25,6 @@
|
|||||||
{{ i18n "no_posts" }}
|
{{ i18n "no_posts" }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</section>
|
||||||
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
{{ if .Site.Params.homepageLatestPosts }}
|
{{ if .Site.Params.homepageLatestPosts }}
|
||||||
<hr>
|
<hr>
|
||||||
<div class="homepage-latest-posts">
|
<section class="homepage-latest-posts">
|
||||||
<h1>
|
<h1>
|
||||||
{{ i18n "latest_posts" }}
|
{{ i18n "latest_posts" }}
|
||||||
{{ partial "rss-link.html" . }}
|
{{ partial "rss-link.html" . }}
|
||||||
@@ -16,6 +16,6 @@
|
|||||||
{{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }}
|
{{ partial "page-list.html" (.Paginate .Site.RegularPages).Pages }}
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
</div>
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<section>
|
||||||
<h1>
|
<h1>
|
||||||
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
@@ -9,6 +10,7 @@
|
|||||||
{{ . }}
|
{{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
<div class="list-page-container">
|
||||||
{{ with .Sections }}
|
{{ with .Sections }}
|
||||||
<div class="sections">
|
<div class="sections">
|
||||||
{{ range . }}
|
{{ range . }}
|
||||||
@@ -18,6 +20,8 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ partial "page-list.html" .Paginator.Pages }}
|
{{ partial "page-list.html" .Paginator.Pages }}
|
||||||
|
</div>
|
||||||
|
|
||||||
{{ partial "pagination.html" . }}
|
{{ partial "pagination.html" . }}
|
||||||
|
</section>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
<a class="section-anchor" href="{{ .Permalink }}">
|
<a class="section-anchor" href="{{ .Permalink }}">
|
||||||
<div class="section">
|
<div class="section">
|
||||||
<div>
|
|
||||||
<h2 class="section-title">
|
<h2 class="section-title">
|
||||||
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
{{ with .Params.icon }}{{ partial "icon.html" . }}{{ end }}
|
||||||
{{ .Title | markdownify }}
|
{{ .Title | markdownify }}
|
||||||
@@ -12,9 +11,4 @@
|
|||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section-arrow">
|
|
||||||
{{ partial "icon.html" "arrow-right" }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</a>
|
</a>
|
||||||
|
Reference in New Issue
Block a user