From: Tim Abbott <tabbott@mit.edu> Date: Wed, 10 Oct 2007 06:54:23 +0000 (-0400) Subject: Add CSS! X-Git-Tag: sipb-xen-www/1~63 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/990ff14e4ab3f392e150ecea587bb266b6dbe2ea Add CSS! svn path=/trunk/web/; revision=178 --- diff --git a/templates/layout.css b/templates/layout.css new file mode 100644 index 0000000..b13b675 --- /dev/null +++ b/templates/layout.css @@ -0,0 +1,12 @@ +html { + background: #529; + padding: .75em; +} +body { + position: relative; + max-width: 66em; + margin: 0 auto; + padding: 1em; + border: 1px solid black; + background: #fff; +} diff --git a/templates/skeleton.tmpl b/templates/skeleton.tmpl index 1ccea2e..a27d2f5 100644 --- a/templates/skeleton.tmpl +++ b/templates/skeleton.tmpl @@ -1,9 +1,8 @@ <html> <head><title>$title</title> <link href="/static/favicon.ico" type="image/x-icon" rel="shortcut icon"> - <style media="screen" type="text/css"> - @import "static/css/all.css"; - </style> + <link rel="stylesheet" href="/svn/style.css" type="text/css" /> + <link rel="stylesheet" href="/svn/layout.css" type="text/css" media="screen" /> <script type="text/javascript"> var helpWin = null; function closeWin(){ diff --git a/templates/style.css b/templates/style.css new file mode 100644 index 0000000..65f6966 --- /dev/null +++ b/templates/style.css @@ -0,0 +1,68 @@ +h1 { + border-bottom: 1px dashed black; + margin-top: 0; + overflow: auto; +} +h1, h2, h3, h4, h5, h6 { + font-family: "Trebuchet MS", Trebuchet, Sans, sans-serif; + font-weight: bold; + color: #529; +} +kbd, dt { + font-weight: bold; +} +html { + font-size: 87.5%; +} +body { + font-family: Tahoma, Sans, sans-serif; +} +pre, code, samp, kbd, tt { + font-family: "Bitstream Vera Sans Mono", "Luxi Mono", "Courier New", monospace; + font-size: 100%; +} +#logo { + float: right; + margin: -1em -1em 0 0; +} +#logo img { + border: none; +} +p, li { + line-height: 1.5em; +} +.long li, .long dd { + margin-bottom: .5em; +} +pre { + background: #f6f6f6; + border: 1px solid #ddd; + padding: .125em; + line-height: 1.25em; +} +.note { + border: 1px solid #eea; + background: #ffd; + padding: .25em; +} +a:link, a:visited { + text-decoration: none; +} +a:link:hover, a:visited:hover { + text-decoration: underline; +} +var { + color: #090; +} +.index h1 tt { + font-size: 83%; +} +.index table { + border-collapse: collapse; +} +.index table td { + padding: 0 0.5em; +} +.index table td a { + font-family: "Bitstream Vera Sans Mono", "Luxi Mono", "Courier New", monospace; +}