From cba07e961d50100059a89a24c2d8b321df80dc65 Mon Sep 17 00:00:00 2001 From: Niko Abeler Date: Thu, 9 May 2024 16:11:13 +0200 Subject: [PATCH] actions and forms --- render/templates/base.tmpl | 61 +++-------------------- web/static/style.css | 99 +++++++++++++++++++++++++++++++++++++- 2 files changed, 106 insertions(+), 54 deletions(-) diff --git a/render/templates/base.tmpl b/render/templates/base.tmpl index bdde27d..5bbf31d 100644 --- a/render/templates/base.tmpl +++ b/render/templates/base.tmpl @@ -24,58 +24,6 @@ --background-light: color-mix(in srgb,var(--background),#fff 50%); } - - [data-theme="light"], - :root:not([data-theme="dark"]) { - --pico-primary: {{.SiteConfig.PrimaryColor}}; - --pico-primary-background: {{.SiteConfig.PrimaryColor}}; - --pico-primary-hover: color-mix(in srgb,var(--primary),#000 20%); - --pico-primary-hover-background: color-mix(in srgb,var(--primary),#000 20%); - --pico-primary-focus: color-mix(in srgb,var(--primary),#fff 40%); - --pico-primary-underline: color-mix(in srgb,var(--primary),#fff 40%); - --pico-primary-inverse: #FFF; - --pico-background: {{.SiteConfig.HeaderColor}}; - --pico-background-dark: color-mix(in srgb,var(--background),#000 50%); - --pico-background-light: color-mix(in srgb,var(--background),#fff 50%); - } - - - footer { - border-top: dashed 2px; - border-color: #ccc; - } - - .avatar { - float: left; - margin-right: 1rem; - border-radius: 50%; - } - - .photo-grid { - display: flex; - flex-wrap: wrap; - padding: 0 4px; - } - - .photo-grid-item { - flex: 1 0 25%; - padding: 4px; - } - - .photo-grid-item img { - width: 100%; - height: 100%; - aspect-ratio: 1 / 1 ; - object-fit: cover; - } - - main img { - max-width: 100%; - margin: auto; - text-align: center; - display: block; - } - {{ .SiteConfig.HtmlHeadExtra }} @@ -90,8 +38,15 @@

{{ .SiteConfig.Title }}

-

{{ .SiteConfig.SubTitle }}

+
{{ .SiteConfig.SubTitle }}
+ +