feat: add Earth theme pack

This commit is contained in:
George Cushen 2020-12-21 15:32:45 +00:00
commit e47738df59
5 changed files with 36 additions and 1 deletions

View file

@ -20,6 +20,7 @@ $sta-primary-dark: darken($sta-primary, $sta-darken-percentage);
$sta-link: {{ $scr.Get "link" }};
$sta-link-hover: {{ $scr.Get "link_hover" }};
$sta-link-decoration: {{ $scr.Get "link_decoration" }};
$sta-dark-link: {{ $scr.Get "dark_link" }};
$sta-dark-link-hover: {{ $scr.Get "dark_link_hover" }};

View file

@ -158,6 +158,11 @@ article .article-metadata {
@include word-wrap();
}
// Underline links if they are a similar color to the body text.
.article-style a {
text-decoration: $sta-link-decoration;
}
.article-style img,
.article-style video {
margin-left: auto;

View file

@ -0,0 +1,25 @@
# Theme metadata
name = "Earth"
# Is theme light or dark?
is_light = true
# Primary
primary = "#707070"
# Menu
menu_primary = "#f6eee9"
menu_text = "#000"
menu_text_active = "#000"
menu_title = "#000"
# Links
link = "#707070"
link_hover = "#000"
link_decoration = "underline"
# Home sections
home_section_odd = "#f9f7f6"
home_section_even = "#ffffff"
font = "rose"

View file

@ -59,6 +59,8 @@
{{- $scr.Set "dark_link" ($theme.dark.link | default $theme.primary) -}}
{{- $scr.Set "dark_link_hover" ($theme.dark.link_hover | default $theme.primary) -}}
{{- $scr.Set "link_decoration" ($theme.link_decoration | default "inherit") -}}
{{- $scr.Set "primary" $theme.primary -}}
{{- $scr.Set "menu_primary" $theme.menu_primary -}}

View file

@ -72,7 +72,9 @@
{{/* Only display widget title in explicit instances of about widget, not in author pages. */}}
{{ if and $page.Params.widget $page.Title }}<h1>{{ $page.Title | markdownify | emojify }}</h1>{{ end }}
{{ $person_page.Content }}
<div class="article-style">
{{ $person_page.Content }}
</div>
<div class="row">