small fixes

This commit is contained in:
teldra 2022-06-24 20:39:21 +02:00
parent 1d2ba0b7d5
commit 28deafc694
8 changed files with 53 additions and 10 deletions

View File

@ -0,0 +1,27 @@
.links {
a:first-child {
font-weight: bold;
}
&:hover {
a:first-child {
text-decoration: none;
}
}
}
.links_wrapper {
display: flex;
flex-direction: column;
.links {
display: flex; flex-direction: column;
margin-bottom: 2em;
&:hover {
.p {
text-decoration: underline;
}
.s, .t {
text-decoration: none;
}
}
}
}

View File

@ -6,6 +6,11 @@
font-size: 120%;
}
.nonselect {
-webkit-user-select: none;
cursor:not-allowed; /*makes it even more obvious*/
}
.main_wrapper {
overflow-x: auto;
width: 98vw;
@ -27,6 +32,13 @@
}
}
.notselectable {
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
@media (min-width: 640px) {

View File

@ -8,7 +8,7 @@
</header>
<div class="main_wrapper">
{{ block "banner" . -}} {{ partial "snippets/banner" . -}}{{- end }}
<main class="main">
<div class="main">
{{ if not .IsHome}}
<button onclick="history.back()" style="align-self: flex-end; margin-top: 1em; padding: 0; background-color: var(--background-body);">{{ if i18n "back" }}{{ i18n "back" }}{{ else }}{{ "back" }}{{ end }}</button>
{{ end }}
@ -18,7 +18,7 @@
{{ block "sidebar" . -}}{{- end }}
</div>
{{ block "inner_footer" . -}}{{- end }}
</main>
</div>
<footer class="footer">
{{- partial "snippets/footer" . -}}
</footer>

View File

@ -8,5 +8,5 @@
{{ define "content" }}
{{ $pages := .Data.Pages }}
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true) }}
{{ partial "snippets/gen_list" (dict "context" . "pages" $pages "content" .Content "type" .Type "paginate" true "title" .Title) }}
{{ end }}

View File

@ -22,7 +22,7 @@
{{ if $p }}
<div class="links_wrapper">
{{ range $p }}
<div class="links" style="display: flex; flex-direction: column;">
<div class="links">
<a href="{{ .Params.Link }}" class="t">
{{ .Title }}
</a>

View File

@ -16,7 +16,7 @@
{{ $small := ($img.Resize "768x q50") }}
{{ $medium := ($img.Resize "10240x q50") }}
{{ $large := ($img.Resize "1366x q50") }}
<div class="ttestt banner b" style="background-image: url({{- $img.Permalink -}});">
<div class="banner b" style="background-image: url({{- $img.Permalink -}});">
{{ if eq hugo.Environment "development" }}
<div class="dev right">
{{ $w := $img.Width }}
@ -67,7 +67,7 @@
{{ $str }}
</div>
{{ end }}
{{ if $title }}<h1 class="title">{{ $title }}</h1> {{ end }}
{{ if $title }}<h1 class="title" style="text-align: left;">{{ $title }}</h1> {{ end }}
</div>
{{ end }}
{{ define "debug" }}

View File

@ -1,4 +1,5 @@
{{ $title := .title }}
{{ $tt := .context.Title }}
{{ $link := .link }}
{{ $pages := .pages }}
{{ if and (.limit) (not .paginate) }}
@ -62,15 +63,17 @@
{{ if $title }}<h3>{{ else }}<h2>{{ end }}
{{ if ne $act_section "about" }}
{{ if .Params.events }}
{{ index .Params.events 0 }}:
{{ if not (in .Params.events $tt) }}
{{ index .Params.events 0 }}:
{{ end }}
{{ else if .Params.recurrent }}
{{ if i18n "recurrent"}}
{{ i18n "recurrent"}}:
{{ else }}
{{ "Recurrent"}}:
{{ end }}
{{ else if .Params.categories }}
{{ if in .Params.categories .Site.Params.ownCategory }}
{{ else if .Params.news }}
{{ if in .Params.news .Site.Params.ownCategory }}
{{ if i18n "own_category" }}{{ i18n "own_category" }}{{ else }}From us{{ end -}}:
{{ end }}
{{ end }}

View File

@ -17,8 +17,9 @@
{{ $footer := resources.Get "scss/footer.scss" | resources.ToCSS }}
{{ $search := resources.Get "scss/search.scss" | resources.ToCSS }}
{{ $generator := resources.Get "scss/generator.scss" | resources.ToCSS }}
{{ $links := resources.Get "scss/links.scss" | resources.ToCSS }}
{{ $visibleIf := resources.Get "css/visibleIf.css" | resources.ToCSS }}
{{ $allcss := slice $water $font $init $container $header $banner $index $gen_list $main $article $pagination $footer $search $generator $visibleIf | resources.Concat "/css/vendor.css" | minify | fingerprint "sha512" }}
{{ $allcss := slice $water $font $init $container $header $banner $index $gen_list $main $article $pagination $footer $search $generator $links $visibleIf | resources.Concat "/css/vendor.css" | minify | fingerprint "sha512" }}
<link rel="stylesheet" href="{{ $allcss.RelPermalink }}" integrity="{{ $allcss.Data.Integrity }}">
{{ $title := print .Site.Title " | " .Title }}