mirror of
https://github.com/foo-dogsquared/hugo-theme-contentful.git
synced 2025-01-31 04:58:03 +00:00
Fix various stylings
This commit is contained in:
parent
21be4bd564
commit
2fbf28ba63
@ -28,7 +28,7 @@ other = "Mga pagsasalin"
|
|||||||
|
|
||||||
# General
|
# General
|
||||||
[and]
|
[and]
|
||||||
other = "At"
|
other = "at"
|
||||||
|
|
||||||
[back_to_home]
|
[back_to_home]
|
||||||
other = "Balik sa homepage"
|
other = "Balik sa homepage"
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{{- with .Params.author }}
|
{{- with .Params.author }}
|
||||||
{{- $names := slice }}
|
{{- $names := slice }}
|
||||||
{{- range . }}{{ $names = $names | append .name }}{{ end }}
|
{{- range . }}{{ $names = $names | append .name }}{{ end }}
|
||||||
<p class="author">{{ i18n "published_by" }}: {{ delimit $names ", " (printf ", %s " (i18n "and")) }}</p>
|
<p class="author">{{ i18n "published_by" }}: {{ delimit $names ", " (printf " %s " (i18n "and")) }}</p>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<!-- Only show the creation date if the `date` field is valid. -->
|
<!-- Only show the creation date if the `date` field is valid. -->
|
||||||
@ -24,13 +24,9 @@
|
|||||||
|
|
||||||
<!-- Link the translated versions if the article has at least one translated page. -->
|
<!-- Link the translated versions if the article has at least one translated page. -->
|
||||||
{{- if .IsTranslated }}
|
{{- if .IsTranslated }}
|
||||||
<p>
|
{{ $langs := slice }}
|
||||||
{{- i18n "available_translations" }}:
|
{{ range .Translations }}{{ $langs = $langs | append (printf "<a href=%s>%s</a>" .Permalink (cond (ne .Language.LanguageName nil) .Language.LanguageName .Lang)) }}{{ end }}
|
||||||
|
|
<p>{{ i18n "available_translations" }}: {{ delimit $langs "," (printf " %s " (i18n "and")) }}</p>
|
||||||
{{ range .Translations }}
|
|
||||||
<a href="{{ .Permalink }}">{{ with .Language.LanguageName }}{{ . }}{{ else }}{{ .Lang }}{{ end }}</a> |
|
|
||||||
{{- end }}
|
|
||||||
</p>
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
@ -19,10 +19,10 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
[data-theme="dark"]:root {
|
[data-theme="dark"]:root {
|
||||||
--foreground: #FAFAFA;
|
|
||||||
--foreground-light: #E1E1E1;
|
|
||||||
--background: #000000;
|
--background: #000000;
|
||||||
--background-light: #363537;
|
--background-light: #363537;
|
||||||
|
--foreground: #FAFAFA;
|
||||||
|
--foreground-light: #E1E1E1;
|
||||||
--grey: #919191;
|
--grey: #919191;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -72,6 +72,10 @@ a:visited {
|
|||||||
color: #AC5A82;
|
color: #AC5A82;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
code {
|
||||||
|
font-size: 0.9em;
|
||||||
|
}
|
||||||
|
|
||||||
dd, li, p, td {
|
dd, li, p, td {
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
}
|
}
|
||||||
@ -81,7 +85,7 @@ p {
|
|||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
dd{
|
dd {
|
||||||
margin-top: 0.5rem;
|
margin-top: 0.5rem;
|
||||||
margin-bottom: 1.5rem;
|
margin-bottom: 1.5rem;
|
||||||
}
|
}
|
||||||
@ -182,6 +186,7 @@ aside {
|
|||||||
border: 1px solid var(--grey);
|
border: 1px solid var(--grey);
|
||||||
border-left: 3px solid var(--grey);
|
border-left: 3px solid var(--grey);
|
||||||
font-size: calc(1rem * (1 - var(--vertical-rhythm-reduction)));
|
font-size: calc(1rem * (1 - var(--vertical-rhythm-reduction)));
|
||||||
|
font-family: var(--header-family);
|
||||||
line-height: calc(1rem * (1 + var(--vertical-rhythm-reduction)));
|
line-height: calc(1rem * (1 + var(--vertical-rhythm-reduction)));
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
padding: 0.5rem;
|
padding: 0.5rem;
|
||||||
@ -243,9 +248,9 @@ footer {
|
|||||||
|
|
||||||
|
|
||||||
/* Mobile styles */
|
/* Mobile styles */
|
||||||
@media (max-width: 860px) {
|
@media all and (max-width: 860px) {
|
||||||
html:root {
|
html:root {
|
||||||
--font-size: 18px;
|
--font-size: 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.post {
|
.post {
|
||||||
|
Loading…
Reference in New Issue
Block a user