jlelse
/
Indiego
Archived
1
Fork 0

Fix mentions, change some CSS things

This commit is contained in:
Jan-Lukas Else 2020-06-06 20:55:03 +02:00
parent db3dca686d
commit 5c05539f41
10 changed files with 23 additions and 21 deletions

View File

@ -44,7 +44,7 @@ body {
@include color(background, background); @include color(background, background);
line-height: 1.5; line-height: 1.5;
margin: 0 auto; margin: 0 auto;
max-width: 750px; max-width: 700px;
padding: 10px; padding: 10px;
word-break: break-word; word-break: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
@ -83,10 +83,10 @@ input, textarea, button, .button {
font-size: 1rem; font-size: 1rem;
} }
.full-width-form { .fw-form {
@extend .full-width; @extend .fw;
input[type="text"], input[type="email"], textarea { input[type="text"], input[type="email"], textarea {
@extend .full-width; @extend .fw;
} }
} }
@ -133,7 +133,7 @@ footer {
@include color(background, primary); @include color(background, primary);
} }
.fake-p { .p {
display: block; display: block;
margin-top: 1em; margin-top: 1em;
margin-bottom: 1em; margin-bottom: 1em;
@ -147,10 +147,14 @@ footer {
display: none; display: none;
} }
.full-width { .fw {
width: 100%; width: 100%;
} }
.ct {
text-align: center;
}
/* Twemoji */ /* Twemoji */
img.emoji { img.emoji {
height: 1em; height: 1em;

View File

@ -12,7 +12,7 @@
{{ partial "oldcontentwarning" . }} {{ partial "oldcontentwarning" . }}
<div class="e-content"> <div class="e-content">
{{ with .Params.audio }} {{ with .Params.audio }}
<audio controls preload="metadata" class="full-width"><source src="{{ . }}"/></audio> <audio controls preload="metadata" class="fw"><source src="{{ . }}"/></audio>
{{ end }} {{ end }}
{{ .Content }} {{ .Content }}
{{ with .Params.externalUrl }} {{ with .Params.externalUrl }}

View File

@ -1,5 +1,5 @@
{{ if .IsTranslated }} {{ if .IsTranslated }}
<div class="fake-p"> <div class="p">
{{ i18n "translations" }}: {{ $delimiter := "" }}{{ range .Translations }}{{ $delimiter }}<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>{{ $delimiter = ", " }}{{ end }} {{ i18n "translations" }}: {{ $delimiter := "" }}{{ range .Translations }}{{ $delimiter }}<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>{{ $delimiter = ", " }}{{ end }}
</div> </div>
{{ end }} {{ end }}

View File

@ -4,7 +4,7 @@
{{ $md5pl := md5 (replace .Permalink "/" "") }} {{ $md5pl := md5 (replace .Permalink "/" "") }}
{{ $mentions := index .Site.Data.mentions $md5pl }} {{ $mentions := index .Site.Data.mentions $md5pl }}
{{ $dateFormat := ( .Site.Params.dateformat | default "January 02, 2006") }} {{ $dateFormat := ( .Site.Params.dateformat | default "January 02, 2006") }}
<details class="fake-p"> <details class="p">
<summary><b>{{ T "interactions" }}</b></summary> <summary><b>{{ T "interactions" }}</b></summary>
{{ with $mentions }} {{ with $mentions }}
<ul> <ul>
@ -14,14 +14,12 @@
</ul> </ul>
{{ end }} {{ end }}
<form method="post" action="{{ .Param "indieweb.endpoints.webmention" }}"> <form method="post" action="{{ .Param "indieweb.endpoints.webmention" }}">
<label for="wm-source" class="fake-p">{{ T "wmform_label" }}</label> <label for="wm-source" class="p">{{ T "wmform_label" }}</label>
<input id="wm-source" class="full-width" type="url" name="source" placeholder="URL" style="margin-bottom: 5px;"> <input id="wm-source" class="fw" type="url" name="source" placeholder="URL" style="margin-bottom: 5px;">
<input type="hidden" name="target" value="{{ .Permalink }}"> <input type="hidden" name="target" value="{{ .Permalink }}">
<input class="full-width" type="submit" value="{{ T "wmform_btn" }}" style="margin-bottom: 5px;"> <input class="fw" type="submit" value="{{ T "wmform_btn" }}" style="margin-bottom: 5px;">
</form>
<form action="https://quill.p3k.io/?dontask=1&me=https://commentpara.de&reply={{ .Permalink }}">
<button class="full-width" type="submit">{{ T "anon_comment" }}</button>
</form> </form>
<a class="p button fw ct" href="https://quill.p3k.io/?dontask=1&me=https://commentpara.de&reply={{ .Permalink }}">{{ T "anon_comment" }}</a>
</details> </details>
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -1,7 +1,7 @@
{{ if .Param "oldcontentwarning" }} {{ if .Param "oldcontentwarning" }}
{{ if .Date }} {{ if .Date }}
{{ if (.Date.AddDate 1 0 0).Before now }} {{ if (.Date.AddDate 1 0 0).Before now }}
<strong class="fake-p border-top border-bottom">{{ ":warning:" | emojify }} {{ T "oldcontent" }}</strong> <strong class="p border-top border-bottom">{{ ":warning:" | emojify }} {{ T "oldcontent" }}</strong>
{{ end }} {{ end }}
{{ end }} {{ end }}
{{ end }} {{ end }}

View File

@ -1,5 +1,5 @@
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }} {{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
<nav class="fake-p flex"> <nav class="p flex">
{{ with .Paginator.Prev }} {{ with .Paginator.Prev }}
<a class="button invert" href="{{ .URL }}">{{ .PageNumber }}</a>&nbsp; <a class="button invert" href="{{ .URL }}">{{ .PageNumber }}</a>&nbsp;
{{ end }} {{ end }}

View File

@ -1,5 +1,5 @@
{{ if or (.Param "shareLink") (and (.Param "subscribeBtn") (.Param "subscribeLink")) (.Param "speak") }} {{ if or (.Param "shareLink") (and (.Param "subscribeBtn") (.Param "subscribeLink")) (.Param "speak") }}
<div class="fake-p flex"> <div class="p flex">
{{ if (.Param "shareLink") }} {{ if (.Param "shareLink") }}
<a href="https://www.addtoany.com/share#url={{ .Permalink }}{{ with .Title }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener noreferrer" class="button invert">{{ T "share" }}</a>&nbsp; <a href="https://www.addtoany.com/share#url={{ .Permalink }}{{ with .Title }}&title={{ . }}{{ end }}" target="_blank" rel="nofollow noopener noreferrer" class="button invert">{{ T "share" }}</a>&nbsp;
{{ end }} {{ end }}

View File

@ -1,4 +1,4 @@
<div class="fake-p"> <div class="p">
{{ if not .Date.IsZero }} {{ if not .Date.IsZero }}
<div><time class="dt-published" datetime="{{.Date.Format "2006-01-02T15:04:05Z07:00"}}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>{{ if not (eq .FirstSection.RelPermalink .RelPermalink) }} in <a href="{{ .FirstSection.RelPermalink }}">{{ .FirstSection.Title }}</a>{{ end }}</div> <div><time class="dt-published" datetime="{{.Date.Format "2006-01-02T15:04:05Z07:00"}}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>{{ if not (eq .FirstSection.RelPermalink .RelPermalink) }} in <a href="{{ .FirstSection.RelPermalink }}">{{ .FirstSection.Title }}</a>{{ end }}</div>
{{ end }} {{ end }}

View File

@ -1,6 +1,6 @@
{{ $related := .Site.RegularPages.Related . | first 5 }} {{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }} {{ with $related }}
<details class="fake-p"> <details class="p">
<summary><b>{{ T "related" }}</b></summary> <summary><b>{{ T "related" }}</b></summary>
<ul> <ul>
{{ range . }} {{ range . }}

View File

@ -1,4 +1,4 @@
<div class="fake-p"> <div class="p">
{{ if not .Date.IsZero }} {{ if not .Date.IsZero }}
<div><time class="dt-published" datetime="{{.Date.Format "2006-01-02T15:04:05Z07:00"}}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>{{ if not (eq .FirstSection.RelPermalink .RelPermalink) }} in <a href="{{ .FirstSection.RelPermalink }}">{{ .FirstSection.Title }}</a>{{ end }}</div> <div><time class="dt-published" datetime="{{.Date.Format "2006-01-02T15:04:05Z07:00"}}">{{.Date.Format ( .Site.Params.dateformat | default "January 02, 2006")}}</time>{{ if not (eq .FirstSection.RelPermalink .RelPermalink) }} in <a href="{{ .FirstSection.RelPermalink }}">{{ .FirstSection.Title }}</a>{{ end }}</div>
{{ end }} {{ end }}