From a6e6f8be88a93699765f25aee0e6109a3eb0b307 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Tue, 3 May 2022 18:22:43 +0200 Subject: reworked templates based on purecss --- public/style.css | 18 ++++------- public/style2.css | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 11 deletions(-) create mode 100644 public/style2.css (limited to 'public') diff --git a/public/style.css b/public/style.css index 23a7cbf..8e771b0 100644 --- a/public/style.css +++ b/public/style.css @@ -1,14 +1,10 @@ :root { - --color-font: #000000; - --color-background: #DDDDDD; + --color-background: #ddd; + --color-table-row: #eee; + --color-head: #026; --color-table-em: lightblue; - --color-table-em2: #D3DCE3; - --color-table-row: #EEEEEE; - --color-link: blue; - --color-link-visited: purple; - --color-link-hover: red; + --color-table-em2: #d3dce3; --color-warning: orange; - --color-head: #002266; } /* GENERAL */ @@ -19,15 +15,15 @@ body { a:link { text-decoration: none; - color: var(--color-link); + color: blue; } a:visited { text-decoration: none; - color: var(--color-link-visited); + color: purple; } a:hover { text-decoration: underline; - color: var(--color-link-hover); + color: red; } footer { diff --git a/public/style2.css b/public/style2.css new file mode 100644 index 0000000..664771a --- /dev/null +++ b/public/style2.css @@ -0,0 +1,95 @@ +:root { + --jwm-color-back: #eee; + --jwm-color-front: #ddd; +} + +body { + padding: 1rem; +} + +a { + text-decoration-line: none; +} + +a:hover { + text-decoration-line: underline; +} + +footer { + text-align: center; + margin-top: 2rem; +} + +.jwm-base { + background-color: var(--jwm-color-back); + border-radius: 5px; + max-width: 960px; + margin: 0 auto; + padding: 1rem; +} + + .jwm-base > nav { + margin-top: 1rem; + } + +.jwm-warning { + background-color: orange; + padding: 1rem; +} + +.jwm-post { + background-color: var(--jwm-color-front); + border-radius: 5px; + padding: 0.5rem 1rem; +} + +.jwm-nav { + background-color: var(--jwm-color-back); + border-radius: 5px; + padding: 0 1rem; +} + +.jwm-mail-body { + width: 80%; + margin: 0rem auto; +} + + .jwm-mail-body > iframe.html-mail { + width: 100%; + height: 400px; + } + +/* make sure this lines up with pure-md class */ +@media screen and (max-width: 48em) { + .hide-small { + display: none; + } +} + +#displayheaders { + max-width: 1280px; + margin: 0 auto; + padding: 1rem; +} + + #mail-headers { + width: 100%; + } + + #empty-folder { + text-align: center; + } + +#login { + max-width: 640px; +} + + #login > h1 { + text-align: center; + } + + #login > form { + background-color: var(--jwm-color-front); + padding-top: 1rem; + padding-left: 6px; + } -- cgit v1.2.3