X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/45151087c5eb4029a380ac5fd0bb9a677be329c5..2ef4dd5f39564f1333dd68bc39c6d8e561efcaf3:/base.css diff --git a/base.css b/base.css index b613c31..4c01d2b 100644 --- a/base.css +++ b/base.css @@ -82,9 +82,9 @@ ul { /* "keyboard" (list of keys) */ ul#rows {margin-top: -5ex} /* top (esc) row fits besides header */ -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 */ +li.row2 {margin-left: 7em} /* row offsets relative to ~6em key width */ +li.row3 {margin-left: 8em} +li.row4 {margin-left: 10em} /* should actually align to next key on row0 */ /* ...however rows>=1 are shifted a bit, to make space */ li.row { @@ -331,9 +331,29 @@ table.dimap { .l5 {background: #EFD} /* yes, supported, ubiquitous, native */ /* default u-ascii */ .l6 {background: #DFD} /* complete, perfect */ +.l9 {background: #EEE} /* unknown, omitted */ .ex {background: #EEE} /* experimental, disfavoured */ .u-invalid {background: #BBB} /* invalid, impossible */ +.p0 {opacity: .5} +.p0.p {opacity: 1} +.p::after {content: '!'; color: #F00} +.p4::after {color: #C00} +.p3::after {color: #A00} +.p2::after {color: #800} +.p1::after, +.p0::after {color: #000} +.p09::after {opacity: .9} +.p08::after {opacity: .8} +.p07::after {opacity: .7} +.p06::after {opacity: .6} +.p05::after {opacity: .5} +.p04::after {opacity: .4} +.p03::after {opacity: .3} +.p02::after {opacity: .2} +.p01::after {opacity: .1} +.p00::after {display: none} + /* code syntax */ .sy-comment { color: #888 } .sy-constant { color: #008 } @@ -386,42 +406,60 @@ table.dimap { /* key type colorization */ +.c-sa, +.ci, +.g0 {background: #BFE} /* cyan: info */ .c-na, -.pm {background: #BFB} /* motion */ -.po {background: #DFA} /* window */ +.pm, +.g1 {background: #BFB} /* green: motion */ +.po, +.g2 {background: #DFA} /* greenish: jump (g1+) */ .c-af, -.co {background: #FFA} /* command */ -.c-sa, -.ci {background: #BFE} /* info */ +.co, +.g3 {background: #FFA} /* yellow: command */ .c-eu, -.cp {background: #FDA} /* TODO */ -.mi {background: #FCA} /* insert mode */ +.cp, +.g4 {background: #FDA} /* orangish: open (g5-) */ +.mi, +.g5 {background: #FCA} /* orange: insert */ .c-as, -.mo {background: #FCC} /* mode */ +.mo, +.g6 {background: #FCC} /* red: mode */ .c-aa, -.mv {background: #ECE} /* visual mode */ +.mv, +.g7 {background: #ECE} /* purple: visual (g6+) */ .c-oc, -.me {background: #CCF} /* key mode */ +.me, +.g8 {background: #CCF} /* blue: prefix */ -.c-na:hover, -.pm a:hover, .pm[onclick]:hover {background: #7E7} -.po a:hover, .po[onclick]:hover {background: #CE6} .c-sa:hover, -.ci a:hover, .ci[onclick]:hover {background: #5ED} +.ci a:hover, .ci[onclick]:hover, +.g0 a:hover, .g0[onclick]:hover {background: #5ED} +.c-na:hover, +.pm a:hover, .pm[onclick]:hover, +.g1 a:hover, .g1[onclick]:hover {background: #7E7} +.po a:hover, .po[onclick]:hover, +.g2 a:hover, .g2[onclick]:hover {background: #CE6} +.c-af:hover, +.co a:hover, .co[onclick]:hover, +.g3 a:hover, .g3[onclick]:hover {background: #EE4} .c-eu:hover, -.cp a:hover, .cp[onclick]:hover {background: #FA6} -.mi a:hover, .mi[onclick]:hover {background: #F97} +.cp a:hover, .cp[onclick]:hover, +.g4 a:hover, .g4[onclick]:hover {background: #FA6} +.mi a:hover, .mi[onclick]:hover, +.g5 a:hover, .g5[onclick]:hover {background: #F97} .c-as:hover, -.mo a:hover, .mo[onclick]:hover {background: #F88} -.c-oc:hover, -.me a:hover, .me[onclick]:hover {background: #99F} +.mo a:hover, .mo[onclick]:hover, +.g6 a:hover, .g6[onclick]:hover {background: #F88} .c-aa:hover, -.mv a:hover, .mv[onclick]:hover {background: #D9D} -.c-af:hover, -.co a:hover, .co[onclick]:hover {background: #EE4} +.mv a:hover, .mv[onclick]:hover, +.g7 a:hover, .g7[onclick]:hover {background: #D9D} +.c-oc:hover, +.me a:hover, .me[onclick]:hover, +.g8 a:hover, .g8[onclick]:hover {background: #99F} .no { - background: #EEE; + background: #EEE; /* unassigned */ } ul.keys li.ni { border: 0; @@ -516,6 +554,28 @@ ul.legend-set li { padding: 0 0.2em; } +/* page-specific */ + +#browser .aside { + font-size: 80%; + overflow: hidden; + height: 0; + -webkit-transition: all 1s ease-in; + -o-transition: all 1s ease-in; + -moz-transition: all 1s ease-in; + transition: height 1s ease-in; +} +#browser .aside p { + margin: 1ex 0; +} +#browser tr:hover .aside { + height: auto; + min-height: 5ex; /* browsers currently only transition to static values */ +} +#browser td.X { + white-space: nowrap; /* some browsers break on dashes */ +} + /* printing hints */ @page {