X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/e37dd15bbf8683bab8454ea0eec8e9968ce982b2..a67a5a723afbe322f9727c7e1d83072b59a93299:/code/static/style.css diff --git a/code/static/style.css b/code/static/style.css index f311640..29216cc 100644 --- a/code/static/style.css +++ b/code/static/style.css @@ -1,16 +1,10 @@ -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; -} +/* + Good style ideas stolen from Debathena. + Hey, we use some different fonts. + And the colors are unmistakably different. +*/ + +/* Basic fonts and sizes. */ html { font-size: 87.5%; } @@ -21,29 +15,23 @@ 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; + +/* Blue headings. */ +h1, h2, h3, h4, h5, h6 { + color: #13a; } -.long li, .long dd { - margin-bottom: .5em; + +/* Dividing line under the header. */ +h1 { + border-bottom: 1px solid black; + margin-top: 0; + overflow: auto; } + 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; @@ -51,37 +39,54 @@ a:link, a:visited { a:link:hover, a:visited:hover { text-decoration: underline; } -var { - color: #090; + +/* Keep help-popup links unbolded in e.g. table headings. */ +.helplink { + font-weight: normal; } -.index h1 tt { - font-size: 83%; + +/* Highlight error messages in bright red. */ +.error { + color: #FF0000; + padding: 0.25em; } -.index table { - border-collapse: collapse; +td.error { + border: 1px solid red; +} + +/* Navigation bar. */ +.navigation { + padding: 0em 1em; + font-size: 125%; + font-weight: bold; + font-family: "Trebuchet MS", Trebuchet, Sans, sans-serif; } -.index table td { - padding: 0 0.5em; +.navigation li { + display: inline; + padding: .2em; } -.index table td a { - font-family: "Bitstream Vera Sans Mono", "Luxi Mono", "Courier New", monospace; + +/* Logged-in welcome message. */ +.loggedin { + float: right; +} +.loggedin .name { + font-weight: bold; } -#loadingnotice { - padding: 2px; - display: none; - color: #FFFFFF; - background: #CC2200; - position: fixed; - right: 10px; - top: 5px; +/* Machine list power buttons */ +.power.on:hover { + background: url(/static/power_button_on_to_off_bg.png); +} +.power.off:hover { + background: url(/static/power_button_off_to_on_bg.png); } -.error { - color: #FF0000; - padding: 0.25em; +/* Striping applied (by JavaScript) to every other row in /list. */ +tr.stripedrow { + background-color: #DDF; } -td.error { - border: 1px solid red; -} \ No newline at end of file +#machinelist tr > td:first-child { + padding-right: 1em; +}