From 25a674121ff69ca86ea5b33a27cd04ff6252c0a3 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Sat, 27 Oct 2018 16:24:43 -0700 Subject: [PATCH] Add new css and page skeleton --- src/resources/lexicon.css | 39 ++++++++++++++++++++++++++------ src/resources/page-skeleton.html | 29 ++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 7 deletions(-) create mode 100644 src/resources/page-skeleton.html diff --git a/src/resources/lexicon.css b/src/resources/lexicon.css index 2babead..dee13b1 100644 --- a/src/resources/lexicon.css +++ b/src/resources/lexicon.css @@ -1,10 +1,35 @@ -body { background-color: #eeeeee; margin: 10px; } -div#header { background-color: #ffffff; margin: 10px 0; box-shadow: 2px 2px 10px #888888; overflow: hidden; } -img#logo { float:left; margin:8px; max-width: 140px; } -div#header p { margin:10px; } -div.content { margin-top: 10px; background-color: #ffffff; padding: 10px; box-shadow: 2px 2px 10px #888888; overflow: hidden; } +body { background-color: #eeeeee; line-height: 1.4; font-size: 16px; } +div#wrapper { max-width: 800px; position: absolute; left: 0; right: 0; + margin: 0 auto; } +div#header { padding: 5px; margin: 5px; background-color: #ffffff; + box-shadow: 2px 2px 10px #888888; border-radius: 5px; } +div#header p, div#header h2 { margin: 5px; } +div#sidebar { width: 200px; float:left; margin:5px; padding: 8px; + text-align: center; background-color: #ffffff; + box-shadow: 2px 2px 10px #888888; border-radius: 5px; } +img#logo { max-width: 200px; } +table { table-layout: fixed; width: 100%; } +div#sidebar table { border-collapse: collapse; } +div.citeblock table td:first-child + td a { justify-content: flex-end; } +table a { display: flex; padding: 3px; background-color: #dddddd; + border-radius: 5px; text-decoration: none; } +div#sidebar table a { justify-content: center; } +table a:hover { background-color: #cccccc; } +div#sidebar table td { padding: 0px; margin: 3px 0; + border-bottom: 8px solid transparent; } +div#content { position: absolute; right: 0px; left: 226px; max-width: 564px; + margin: 5px; } +div.contentblock { background-color: #ffffff; box-shadow: 2px 2px 10px #888888; + margin-bottom: 5px; padding: 10px; width: auto; border-radius: 5px; } a.phantom { color: #cc2200; } div.citeblock a.phantom { font-style: italic; } span.signature { text-align: right; } -div.moveable { float: left; margin: 8px; } -div.moveable p { margin: 0px; } \ No newline at end of file +@media only screen and (max-width: 816px) { + div#wrapper { padding: 5px; } + div#header { max-width: 554; margin: 0 auto; } + div#sidebar { max-width: 548; width: inherit; float: inherit; + margin: 5px auto; } + div#content { max-width: 564; position: static; right: inherit; + margin: 5px auto; } + img#logo { max-width: inherit; width: 100%; } +} \ No newline at end of file diff --git a/src/resources/page-skeleton.html b/src/resources/page-skeleton.html new file mode 100644 index 0000000..6136ff8 --- /dev/null +++ b/src/resources/page-skeleton.html @@ -0,0 +1,29 @@ + + +{title} | {lexicon} + + + + + +
+ + +
+{content} +
+
+ +