diff --git a/themes/buha/assets/scss/links.scss b/themes/buha/assets/scss/links.scss new file mode 100644 index 0000000..95f376b --- /dev/null +++ b/themes/buha/assets/scss/links.scss @@ -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; + } + } + } +} diff --git a/themes/buha/assets/scss/main.scss b/themes/buha/assets/scss/main.scss index b5cda00..0898e5b 100644 --- a/themes/buha/assets/scss/main.scss +++ b/themes/buha/assets/scss/main.scss @@ -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) { diff --git a/themes/buha/layouts/_default/baseof.html b/themes/buha/layouts/_default/baseof.html index 1fff8fe..a67c693 100644 --- a/themes/buha/layouts/_default/baseof.html +++ b/themes/buha/layouts/_default/baseof.html @@ -8,7 +8,7 @@
{{ block "banner" . -}} {{ partial "snippets/banner" . -}}{{- end }} -
+
{{ if not .IsHome}} {{ end }} @@ -18,7 +18,7 @@ {{ block "sidebar" . -}}{{- end }}
{{ block "inner_footer" . -}}{{- end }} -
+
diff --git a/themes/buha/layouts/_default/term.html b/themes/buha/layouts/_default/term.html index 90f9511..3043701 100644 --- a/themes/buha/layouts/_default/term.html +++ b/themes/buha/layouts/_default/term.html @@ -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 }} diff --git a/themes/buha/layouts/links/list.html b/themes/buha/layouts/links/list.html index 1b85e69..5fc6b6a 100644 --- a/themes/buha/layouts/links/list.html +++ b/themes/buha/layouts/links/list.html @@ -22,7 +22,7 @@ {{ if $p }}