From 39769a89c0617c47a908076682b9b4c92e7f38a2 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Wed, 13 Feb 2019 12:21:20 +0100 Subject: [PATCH] css in assets --- example/assets/css/main.css | 39 ++++++++++++++++++++++++++ example/templates/index.html | 4 +-- example/templates/mitBild.html | 7 ++--- example/templates/partials/footer.html | 2 +- example/templates/partials/header.html | 6 ++-- example/templates/partials/meta.html | 10 +------ 6 files changed, 49 insertions(+), 19 deletions(-) create mode 100644 example/assets/css/main.css diff --git a/example/assets/css/main.css b/example/assets/css/main.css new file mode 100644 index 0000000..9c8f07a --- /dev/null +++ b/example/assets/css/main.css @@ -0,0 +1,39 @@ +body { + margin: 0; + padding: 0; + color: #333; + background-color: lightgrey; +} + +a { + color: black; +} + +#content { + padding: 20px; + background-color: #fff; + clear: both; +} + +#dataImg { + float: right; + margin-left: 20px; + margin-bottom: 20px; +} + +#logoDiv { + background-color: #444; + padding: 20px; +} + +#logoDiv img { + max-width: 60%; +} + +#mainNavDiv { + padding: 20px; +} + +footer { + padding: 20px; +} \ No newline at end of file diff --git a/example/templates/index.html b/example/templates/index.html index ce536da..f47c1cf 100644 --- a/example/templates/index.html +++ b/example/templates/index.html @@ -1,9 +1,9 @@ {{> meta.html }} - + {{> header.html }} -
+
{{{ Body }}}
diff --git a/example/templates/mitBild.html b/example/templates/mitBild.html index efd85a5..9dda9e6 100644 --- a/example/templates/mitBild.html +++ b/example/templates/mitBild.html @@ -1,16 +1,15 @@ {{> meta.html }} - + {{> header.html }} -
+
{{#if Data.bild }} - + {{/if}} {{{ Body }}} -
diff --git a/example/templates/partials/footer.html b/example/templates/partials/footer.html index 7bdcaf0..525b7a1 100644 --- a/example/templates/partials/footer.html +++ b/example/templates/partials/footer.html @@ -1,4 +1,4 @@ -