Add new css and page skeleton

This commit is contained in:
Tim Van Baak 2018-10-27 16:24:43 -07:00
parent 5d5c3239b6
commit 25a674121f
2 changed files with 61 additions and 7 deletions

View File

@ -1,10 +1,35 @@
body { background-color: #eeeeee; margin: 10px; } body { background-color: #eeeeee; line-height: 1.4; font-size: 16px; }
div#header { background-color: #ffffff; margin: 10px 0; box-shadow: 2px 2px 10px #888888; overflow: hidden; } div#wrapper { max-width: 800px; position: absolute; left: 0; right: 0;
img#logo { float:left; margin:8px; max-width: 140px; } margin: 0 auto; }
div#header p { margin:10px; } div#header { padding: 5px; margin: 5px; background-color: #ffffff;
div.content { margin-top: 10px; background-color: #ffffff; padding: 10px; box-shadow: 2px 2px 10px #888888; overflow: hidden; } 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; } a.phantom { color: #cc2200; }
div.citeblock a.phantom { font-style: italic; } div.citeblock a.phantom { font-style: italic; }
span.signature { text-align: right; } span.signature { text-align: right; }
div.moveable { float: left; margin: 8px; } @media only screen and (max-width: 816px) {
div.moveable p { margin: 0px; } 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%; }
}

View File

@ -0,0 +1,29 @@
<html>
<head>
<title>{title} | {lexicon}</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="../lexicon.css">
</head>
<body>
<div id="wrapper">
<div id="header">
<h2 id="title">{lexicon}</h2>
<p>{prompt}</p>
</div>
<div id="sidebar">
<table>
<tr><td><img id="logo" src="../{logo}"></td></tr>
<tr><td><a href="../contents/{sort}">Contents</a></td></tr>
<tr><td><a href="../rules/">Rules</a></td></tr>
<tr><td><a href="../formatting/">Formatting</a></td></tr>
<tr><td><a href="../session/">Session</a></td></tr>
<tr><td><a href="../statistics/">Statistics</a></td></tr>
</table>
</div>
<div id="content">
{content}
</div>
</div>
</body>
</html>