clean <article>
This commit is contained in:
parent
02f7687948
commit
fccd469477
|
@ -49,15 +49,6 @@ main h1 {
|
||||||
color: var(--text-header);
|
color: var(--text-header);
|
||||||
}
|
}
|
||||||
|
|
||||||
#articledata {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column-reverse;
|
|
||||||
}
|
|
||||||
|
|
||||||
article h2 {
|
|
||||||
margin-top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
@ -73,16 +64,6 @@ p a {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
article {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
background-color: var(--background);
|
|
||||||
padding: 1rem;
|
|
||||||
border-radius: 18px;
|
|
||||||
/*box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);*/
|
|
||||||
}
|
|
||||||
|
|
||||||
article a:hover {
|
article a:hover {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
@ -91,25 +72,6 @@ article p:first-child {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
article img {
|
|
||||||
width: 100%;
|
|
||||||
margin-top: 1rem;
|
|
||||||
margin-bottom: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*.button {
|
|
||||||
background-color: var(--background);
|
|
||||||
margin-top: 0.1rem;
|
|
||||||
margin-bottom: 0.1rem;
|
|
||||||
padding-left: 0.6rem;
|
|
||||||
padding-right: 0.6rem;
|
|
||||||
border-radius: 25px;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
#readmore {
|
|
||||||
margin-top: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
#nav-posts {
|
#nav-posts {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -120,8 +82,17 @@ article img {
|
||||||
margin-left: .5rem;
|
margin-left: .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Extra small devices (phones, 600px and down) */
|
#articlecontent {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#articledata {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Extra small devices (phones, 600px and down) */
|
||||||
@media only screen and (max-width: 600px) {...}
|
@media only screen and (max-width: 600px) {...}
|
||||||
|
|
||||||
/* Small devices (portrait tablets and large phones, 600px and up) */
|
/* Small devices (portrait tablets and large phones, 600px and up) */
|
||||||
|
@ -129,11 +100,6 @@ article img {
|
||||||
#headerinner {
|
#headerinner {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
header {
|
|
||||||
border: 0px solid var(--background-alt);
|
|
||||||
}
|
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
@ -163,24 +129,17 @@ article img {
|
||||||
#articledata {
|
#articledata {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
margin-top: 1rem;
|
}
|
||||||
|
|
||||||
|
#articletext {
|
||||||
|
margin-top: -1.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
#articleimage {
|
#articleimage {
|
||||||
flex-shrink: 0;
|
|
||||||
margin-right: 1rem;
|
margin-right: 1rem;
|
||||||
margin-top: .4rem;
|
width: 30rem;
|
||||||
width: 30%;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#articletext-single {
|
|
||||||
margin-top: -1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
article img {
|
|
||||||
width: auto;
|
|
||||||
margin-top: 0px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Medium devices (landscape tablets, 768px and up) */
|
/* Medium devices (landscape tablets, 768px and up) */
|
||||||
|
|
|
@ -6,25 +6,31 @@
|
||||||
{{ partial "orga.html" . }}
|
{{ partial "orga.html" . }}
|
||||||
|
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<h1>{{- .Title -}}</h1>
|
<div id="articletitle">
|
||||||
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
|
<h1>{{- .Title -}}</h1>
|
||||||
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div>
|
</div>
|
||||||
{{ end }}
|
<div id="articlecontent">
|
||||||
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
|
<div id="articlemeta">
|
||||||
{{ if eq .Params.price "free" }}
|
{{ if and (ne .Params.when "") (ne .Params.when nil) }}
|
||||||
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
|
<div style="margin-bottom: .4em;"><b>{{ .Params.when }}</b></div>
|
||||||
{{ else }}
|
{{ end }}
|
||||||
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
|
{{ if and (ne .Params.price "") (ne .Params.price nil) }}
|
||||||
{{ end }}
|
{{ if eq .Params.price "free" }}
|
||||||
{{ end }}
|
<div style="margin-bottom: .4em;">Der Eintritt ist frei.</div>
|
||||||
{{ if and (ne .Params.register "") (ne .Params.register nil) }}
|
{{ else }}
|
||||||
<div>Anmeldung unter {{ .Params.register | markdownify }} erwünscht</div>
|
<div style="margin-bottom: .4em;">Eintritt: {{ .Params.price }}</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if and (ne .Params.covid "") (ne .Params.covid nil) }}
|
{{ end }}
|
||||||
<div>Es gilt die {{ .Params.covid }} Regel</div>
|
{{ if and (ne .Params.register "") (ne .Params.register nil) }}
|
||||||
{{ end }}
|
<div>Anmeldung unter {{ .Params.register | markdownify }} erwünscht</div>
|
||||||
<div id="articledata">
|
{{ end }}
|
||||||
{{- if .Resources.ByType "image" -}}
|
{{ if and (ne .Params.covid "") (ne .Params.covid nil) }}
|
||||||
|
<div>Es gilt die {{ .Params.covid }} Regel</div>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
<div id="articleinner">
|
||||||
|
<div id="articledata">
|
||||||
|
{{- if .Resources.ByType "image" -}}
|
||||||
<div id="articleimage">
|
<div id="articleimage">
|
||||||
{{ range .Resources.ByType "image" }}
|
{{ range .Resources.ByType "image" }}
|
||||||
{{- $pic := . -}}
|
{{- $pic := . -}}
|
||||||
|
@ -32,10 +38,12 @@
|
||||||
<a href="{{ . }}"><img src="{{- $thumb.Permalink -}}"/></a>
|
<a href="{{ . }}"><img src="{{- $thumb.Permalink -}}"/></a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<div id="articletext-single">
|
<div id="articletext">
|
||||||
{{- .Content -}}
|
{{- .Content -}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue