X-Git-Url: http://git.shiar.net/sheet.git/blobdiff_plain/a226a258f1c08e8dc9b2bb3003955dff3bdf5159..3f38a7192491a73a1527179cdd68218f023aed61:/base.css diff --git a/base.css b/base.css deleted file mode 100644 index 366499e..0000000 --- a/base.css +++ /dev/null @@ -1,223 +0,0 @@ -/* media features */ - -@import url(terse.css) all and (max-width: 80em); - -@import url(mono.css) all and (monochrome); - -/* general */ - -body { - background: #FFF; - color: #000; - font-size: 90%; -} -a, a:visited { - color: #000; - text-decoration: underline; -} -a:active, a:hover { - color: #00F; - text-decoration: none; -} -h1, h2 { - text-align: center; - font-size: 200%; - margin: 0; -} -h2 { - font-size: 125%; - margin-bottom: -4ex; -} - -/* footer */ - -hr { - clear: both; - visibility: hidden; - height: 2ex; - margin: 0; -} - -p.footer { - margin: 0; - text-align: center; -} - -/* "keyboard" (list of keys) */ - -ul { - margin: 0; - padding: 0; - list-style: none; -} -li.row1 {margin-left: 7em} /* row offsets relative to ~6em key width */ -li.row2 {margin-left: 8em} -li.row3 {margin-left: 10em} /* should actually align to next key on row0 */ - /* ...however rows>=1 are shifted a bit, to make space */ - -li.row { - clear: both; /* start new row block (keyboard row) */ - padding-top: 1ex; -} -li.row > ul > li { - clear: both; /* start new row (screen row) */ -} /* css2 selectors ignored by msie<=6 */ -li.row ul ul { - clear: both; -} /* css1 alternative as well (doesn't match in gecko for some reason) */ - -h3 {display: none} /* semantic details (non-css/js) */ -li.mode {display: none} /* initially hidden (only show interactively (js)) */ - -/* individual keys */ - -dl.legend dt, -ul.keys li { - float: left; - width: 6.2em; - line-height: 2.25ex; /* a little terser (seems to be gecko's default anyway) */ - height: 4.5ex; /* 2 lines */ - overflow: hidden; - margin: 0 2px -1px; - text-align: center; - border: 1px solid #000; - border-radius: 4px; - -moz-border-radius: 4px; -} -ul.keys li b { - float: left; - font-size: 200%; - line-height: 2.5ex; /* inherits otherwise */ - padding-left: 2px; -} -ul.keys.omni li { /* omni-present esc */ - width: 8.5em; -} - -/* fine tuning of special occurrences */ - -ul.keys li b[title] { /* mnemonic hover */ - cursor: help; -} -ul.keys li[onclick]:hover { /* link */ - cursor: pointer; -} -ul.keys.ctrl li b, -ul.keys.lead li b { /* char with ctrl or leading key */ - font-size: 100%; /* space is too limited for 2+ double-sized chars */ - line-height: 5ex; /* keep double height though */ -} -ul.keys.ctrl li b small { /* meta key indicator */ - font-size: 70%; - font-weight: normal; /* nice and subtle */ -} - -/* key type colorization */ - -.pm {background: #BFB} /* motion */ -.po {background: #DFA} /* window */ -.co {background: #FFA} /* command */ -.ci {background: #BFE} /* info */ -.cp {background: #FDA} /* TODO */ -.mi {background: #FCA} /* insert mode */ -.mo {background: #FCC} /* mode */ -.mv {background: #ECE} /* visual mode */ -.me {background: #CCF} /* key mode */ - -.mi[onclick]:hover {background: #F97} -.mo[onclick]:hover {background: #F88} -.me[onclick]:hover {background: #99F} -.mv[onclick]:hover {background: #D9D} -.co[onclick]:hover {background: #EE4} - -.no { - background: #EEE; -} -ul.keys li.ni { - border: 0; - padding: 1px; /* same size as borderlessless keys */ -} - -dl.legend dt.vim, -ul.keys li.vim { - border-style: dashed; - -moz-border-radius: 0; /* incompatible with border-style */ -} -dl.legend dt.vim7, -ul.keys li.vim7 { - border-style: dotted; - -moz-border-radius: 0; -} - -/* l/r help columns */ - -.help { - display: table; - width: 100%; -} -.help > * { - display: table-cell; - width: 20%; - vertical-align: top; -} - -.left dl.legend { - margin-left: 6.4em; /* a bit over 6.2em to allow for borders+padding (border-sizing would work too) */ -} -.left dl.legend dt { - margin-left: -6.4em; /* msie<=6 multiply this by two for some reason */ - float: left; - clear: left; -} -.left dl.legend dd { - float: left; /* align next to dt (except msie<=7 does just the opposite) */ -} -.right dl.legend { - margin-right: 6.4em; -} -.right dl.legend dt { - margin-right: -6.4em; - float: right; - clear: right; -} -.right dl.legend dd { - float: right; -} -.right { - text-align: right; -} - -/* help/legend */ - -dl.legend dt { - margin: 0 0 1px; /* distinct keys */ - height: auto; /* not key-height */ - padding: 2px 0; -} -dl.legend dd { - margin: 3px 0.4em 0; /* align text (add dt border+padding height) */ -} - -dl.legend-options dt { - background: #CCC; -} - -ul.legend-set { - clear: right; - padding-top: 1ex; -} -ul.legend-set li { - margin: 6px 0; /* similar to dl legends */ -} - -/* printing hints */ - -@page { - size: landscape; - margin: 0; -} - -@media print { - ul.legend-set {display: none} -} -