package h import ( "html/template" ) const styleTmplStr = `<style> body { max-width:800px; margin:0 auto; padding:8px; color: {{.Config.PersonStyleTextColor}}; background-color: {{.Config.PersonStyleBackgroundColor}}; } h1 { text-align: center; } form { width: 400px; margin: 0 auto; } form div{ display: flex; padding-bottom: 20px; } form div:last-child{ padding-bottom: 0; } form label{ padding-right: 20px; width: 73px; flex-shrink: 0; } form input, form textarea { width: 100%; } form textarea { min-height: 40px; } input[type="submit"], button { border-radius: 3px; background-color: navy; color: white; } @media(prefers-color-scheme:dark){ body{ color: {{.Config.PersonStyleTextDarkColor}}; background-color: {{.Config.PersonStyleBackgroundDarkColor}}; } a{color:#6d6dff}a:visited:{color:#c573ff;} } </style>` var templateBaseStylesheet = template.Must(template.New("base_styles").Parse(styleTmplStr))