Compare commits

..

No commits in common. "0ddf0bdf42c5c14c64bc7f0800d4615da3509eef" and "c0426f191a8c54f7af27ae042df069ca491b848a" have entirely different histories.

3 changed files with 64 additions and 92 deletions

View File

@ -173,17 +173,13 @@ html {
body {
background-color: var(--background-0);
color: var(--text-0);
overflow-wrap: break-word;
margin: 0;
}
.center-body {
margin: 20px;
max-width: 720px;
overflow-wrap: break-word;
}
@media (min-width: 760px) {
.center-body {
body {
margin: 20px auto;
}
}
@ -312,7 +308,12 @@ h1 svg.icon {
/* }}} */
/* Heading formatting (article section titles) {{{ */
/* Heading formatting (website title and article section headers) {{{ */
.header {
margin: 16px 0;
font-size: 1.5em;
}
/* this is also used i.e. in page-title */
.heading-link {
@ -327,36 +328,26 @@ h1 svg.icon {
/* }}} */
/* Top bar formatting {{{ */
.top {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
background-color: var(--background-1);
}
.header {
flex-grow: 1;
margin: 8px 16px;
font-size: 1.25em;
display: flex;
align-items: center;
}
/* Navbar formatting {{{ */
.navbar {
display: flex;
flex-wrap: wrap;
flex-grow: 1;
overflow: auto;
background-color: var(--background-1);
border-radius: 8px;
margin-top: 5px;
padding: 4px;
}
.navbar-item {
padding: 12px 16px;
padding: 8px 12px;
border-radius: 12px;
white-space: nowrap;
}
.navbar-item:hover {
background-color: var(--background-2);
background-color: var(--background-3);
text-decoration: none;
}
@ -955,7 +946,7 @@ aside.quote {
/* Print compatibility {{{ */
@media print {
.top > .navbar,
.top,
.section-header-link,
.post-meta-edit-history,
.prevnext,
@ -970,20 +961,8 @@ aside.quote {
color-adjust: exact !important;
}
.top {
background-color: unset;
}
.top > .header {
margin-left: 0;
margin-right: 0;
}
.center-body {
body {
max-width: 100%;
margin: 8px 0;
}
.breadcrumb {
margin: 8px 0;
}
table,

View File

@ -8,8 +8,6 @@
{{ partial "top.html" . }}
<div class="center-body">
{{ if not .IsHome }}
{{ partial "breadcrumb.html" . }}
{{ end }}
@ -42,8 +40,6 @@
}
</style>
</noscript>
</div>
</body>
</html>

View File

@ -1,4 +1,3 @@
<div class="top">
<header class="header">
<a class="heading-link" href="{{ .Site.Home.Permalink | absLangURL }}">
{{ .Site.Title | markdownify }}
@ -12,8 +11,7 @@
{{ range .Site.Menus.main }}
{{ $isActive := false }}
{{/* https://discourse.gohugo.io/t/ismenucurrent-not-working-with-using-sectionpagesmenu/46687/2?u=bbaovanc */}}
{{ if or ($.HasMenuCurrent .Menu .) (eq .Page $) }}
{{ if or ($.HasMenuCurrent .Menu .) ($.IsMenuCurrent .Menu .) }}
{{ $isActive = true }}
{{ end }}
<a class="navbar-item{{ if $isActive }} active{{ end }}"
@ -21,4 +19,3 @@
href="{{ .URL }}">{{ .Name }}</a>
{{ end }}
</nav>
</div>