small fixes
This commit is contained in:
parent
1d2ba0b7d5
commit
28deafc694
|
@ -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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -6,6 +6,11 @@
|
||||||
font-size: 120%;
|
font-size: 120%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nonselect {
|
||||||
|
-webkit-user-select: none;
|
||||||
|
cursor:not-allowed; /*makes it even more obvious*/
|
||||||
|
}
|
||||||
|
|
||||||
.main_wrapper {
|
.main_wrapper {
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
width: 98vw;
|
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) {
|
@media (min-width: 640px) {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</header>
|
</header>
|
||||||
<div class="main_wrapper">
|
<div class="main_wrapper">
|
||||||
{{ block "banner" . -}} {{ partial "snippets/banner" . -}}{{- end }}
|
{{ block "banner" . -}} {{ partial "snippets/banner" . -}}{{- end }}
|
||||||
<main class="main">
|
<div class="main">
|
||||||
{{ if not .IsHome}}
|
{{ 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>
|
<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 }}
|
{{ end }}
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
{{ block "sidebar" . -}}{{- end }}
|
{{ block "sidebar" . -}}{{- end }}
|
||||||
</div>
|
</div>
|
||||||
{{ block "inner_footer" . -}}{{- end }}
|
{{ block "inner_footer" . -}}{{- end }}
|
||||||
</main>
|
</div>
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
{{- partial "snippets/footer" . -}}
|
{{- partial "snippets/footer" . -}}
|
||||||
</footer>
|
</footer>
|
||||||
|
|
|
@ -8,5 +8,5 @@
|
||||||
|
|
||||||
{{ define "content" }}
|
{{ define "content" }}
|
||||||
{{ $pages := .Data.Pages }}
|
{{ $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 }}
|
{{ end }}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
{{ if $p }}
|
{{ if $p }}
|
||||||
<div class="links_wrapper">
|
<div class="links_wrapper">
|
||||||
{{ range $p }}
|
{{ range $p }}
|
||||||
<div class="links" style="display: flex; flex-direction: column;">
|
<div class="links">
|
||||||
<a href="{{ .Params.Link }}" class="t">
|
<a href="{{ .Params.Link }}" class="t">
|
||||||
{{ .Title }}
|
{{ .Title }}
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
{{ $small := ($img.Resize "768x q50") }}
|
{{ $small := ($img.Resize "768x q50") }}
|
||||||
{{ $medium := ($img.Resize "10240x q50") }}
|
{{ $medium := ($img.Resize "10240x q50") }}
|
||||||
{{ $large := ($img.Resize "1366x 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" }}
|
{{ if eq hugo.Environment "development" }}
|
||||||
<div class="dev right">
|
<div class="dev right">
|
||||||
{{ $w := $img.Width }}
|
{{ $w := $img.Width }}
|
||||||
|
@ -67,7 +67,7 @@
|
||||||
{{ $str }}
|
{{ $str }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if $title }}<h1 class="title">{{ $title }}</h1> {{ end }}
|
{{ if $title }}<h1 class="title" style="text-align: left;">{{ $title }}</h1> {{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ define "debug" }}
|
{{ define "debug" }}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{{ $title := .title }}
|
{{ $title := .title }}
|
||||||
|
{{ $tt := .context.Title }}
|
||||||
{{ $link := .link }}
|
{{ $link := .link }}
|
||||||
{{ $pages := .pages }}
|
{{ $pages := .pages }}
|
||||||
{{ if and (.limit) (not .paginate) }}
|
{{ if and (.limit) (not .paginate) }}
|
||||||
|
@ -62,15 +63,17 @@
|
||||||
{{ if $title }}<h3>{{ else }}<h2>{{ end }}
|
{{ if $title }}<h3>{{ else }}<h2>{{ end }}
|
||||||
{{ if ne $act_section "about" }}
|
{{ if ne $act_section "about" }}
|
||||||
{{ if .Params.events }}
|
{{ if .Params.events }}
|
||||||
{{ index .Params.events 0 }}:
|
{{ if not (in .Params.events $tt) }}
|
||||||
|
{{ index .Params.events 0 }}:
|
||||||
|
{{ end }}
|
||||||
{{ else if .Params.recurrent }}
|
{{ else if .Params.recurrent }}
|
||||||
{{ if i18n "recurrent"}}
|
{{ if i18n "recurrent"}}
|
||||||
{{ i18n "recurrent"}}:
|
{{ i18n "recurrent"}}:
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ "Recurrent"}}:
|
{{ "Recurrent"}}:
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ else if .Params.categories }}
|
{{ else if .Params.news }}
|
||||||
{{ if in .Params.categories .Site.Params.ownCategory }}
|
{{ if in .Params.news .Site.Params.ownCategory }}
|
||||||
{{ if i18n "own_category" }}{{ i18n "own_category" }}{{ else }}From us{{ end -}}:
|
{{ if i18n "own_category" }}{{ i18n "own_category" }}{{ else }}From us{{ end -}}:
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -17,8 +17,9 @@
|
||||||
{{ $footer := resources.Get "scss/footer.scss" | resources.ToCSS }}
|
{{ $footer := resources.Get "scss/footer.scss" | resources.ToCSS }}
|
||||||
{{ $search := resources.Get "scss/search.scss" | resources.ToCSS }}
|
{{ $search := resources.Get "scss/search.scss" | resources.ToCSS }}
|
||||||
{{ $generator := resources.Get "scss/generator.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 }}
|
{{ $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 }}">
|
<link rel="stylesheet" href="{{ $allcss.RelPermalink }}" integrity="{{ $allcss.Data.Integrity }}">
|
||||||
|
|
||||||
{{ $title := print .Site.Title " | " .Title }}
|
{{ $title := print .Site.Title " | " .Title }}
|
||||||
|
|
Loading…
Reference in New Issue