~kungtotte/dtt

dd657b49d3bfbc81ac45d893162a39d8825cd069 — Thomas Landin 4 months ago 0b40142
Update templates
1 files changed, 93 insertions(+), 2 deletions(-)

M src/tmpl.nim
M src/tmpl.nim => src/tmpl.nim +93 -2
@@ 39,9 39,100 @@ email = "your@email.tld"
</footer>
"""
  style* = """
:root {
  --body-bg: #fbf1c7;
  --header-bg: #928374;
  --font-color: #282828;
  --link-color: #504945;
  --visited-color: #af3a03;
  --quote-color: #928374;
  --hover-color: #a89984;
  --monospace-color: #9d0006;
  --codeblock-color: #076678;
  --codeblock-bg: #ebdbb2
}
body {
  font-family: monospace, sans-serif;
  /* font-family: "Cantarell", "Helvetica", "Arial", sans-serif; */
  color: var(--font-color);
  background-color: var(--body-bg);
  font-size: medium;
  line-height: 1.5;
}
body header {
  margin-bottom: 4ch;
}
a {
  color: var(--link-color);
  font-weight: bold;
}
a:visited {
  color: var(--visited-color);
}
a:hover {
  color: var(--hover-color);
}
aside {
  display: grid;
  position: fixed;
  width: 30ch;
  top: 15ch;
  left: 5ch;
  background: #bdae93;
  box-shadow: 0px 0px 3px 3px #a89984;
  padding: 1ch;
}
aside ul {
  margin: 0;
}
aside h4 {
  font-style: italic;
  margin: 0;
  margin-bottom: 1ch;
}
nav {
  display: flex;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background: var(--header-bg);
  font-size: large;
  border-width: 0 0 thin 0; /* top right bottom left */
  border-style: dashed;
}
nav a, nav a:visited, nav a:hover {
  text-decoration-style: double;
}
main {
  max-width: 70ch;
  padding: 2ch;
  padding: 3ch;
  margin: auto;
}
"""
article header time {
  font-size: smaller;
  color: var(--quote-color);
  font-family: monospace;
}
blockquote {
  color: var(--quote-color);
  font-style: italic;
}
code {
  color: var(--monospace-color);
}
pre code {
  display: block;
  color: var(--codeblock-color);
  background: var(--codeblock-bg);
  padding: 1ch;
  padding-left: 4ch;
}
footer {
  max-width: 70ch;
  font-size: smaller;
  margin: auto;
  text-align: right;
  line-height: 0.8;
  padding: 0px;
}"""