X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/5ff4b1c1b790314cd654d32ca6d72368d1748283..3e24bf25b4f498277639d4f97e64999ebfc76a11:/base.css diff --git a/base.css b/base.css index a488e97..4b3cac9 100644 --- a/base.css +++ b/base.css @@ -1,15 +1,10 @@ -/* 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%; + text-align: center; } a, a:visited { color: #000; @@ -23,12 +18,11 @@ a:active, a:hover { /* common sections */ h1, h2 { - text-align: center; font-size: 200%; margin: 0; } h2, caption { - font-size: 125%; + font-size: 110%; font-weight: bold; } caption { @@ -42,15 +36,26 @@ hr { margin: 0; } -.diinfo h2 { +.section ul { + margin-bottom: 1ex; +} +.section h2 { margin: 0 1ex; clear: both; - font-size: 110%; - text-align: left; +} +.section table { + float: left; + position: relative; /* prevents buggy hovering in table if caption present in gecko */ + margin: 1ex 1ex 2ex; +} +.section .section { + float: left; +} +#charset .section table { + margin: -0.5ex 0 1ex; /* headers provide sufficient spacing already */ } p { - text-align: center; margin: 1ex 0 1em; } p.aside { @@ -69,9 +74,6 @@ ul { list-style: none; } -#source { - text-align: center; -} #source pre { display: inline-block; text-align: left; @@ -140,6 +142,13 @@ ul.keys li b[title] { /* mnemonic hover */ ul.keys li[onclick]:hover { /* link */ cursor: pointer; } +ul.keys li a { /* key link */ + color: inherit; + text-decoration: none; + display: block; + height: 100%; +} + ul.keys.meta li b, ul.keys.ctrl li b, ul.keys.lead li b { /* char with ctrl or leading key */ @@ -154,11 +163,6 @@ ul.keys.ctrl li b small { /* meta key indicator */ /* tables */ -li table { - float: left; - position: relative; /* prevents buggy hovering if table-caption present in gecko */ -} - table { border-collapse: collapse; } @@ -213,25 +217,28 @@ th { /* digraphs map */ -table.glyphs.dimap { +table.dimap { table-layout: fixed; /* prevent resizing, notably in msie6 */ } -.glyphs.dimap thead th, .glyphs.dimap td { +.dimap thead th, .dimap td { /* below-maximum size (but still average enough to be regular) so we can fit more */ width: 1.2em; /* msie only looks at the first row */ min-width: 1em; /* prevents gecko from restricting to page width */ } -.glyphs.dimap th { +.dimap th { text-align: center; /* row headers are also glyph-sized */ } -.glyphs.dimap tbody, .glyphs.dimap colgroup { +.mapped tbody, .mapped colgroup, +.dimap tbody, .dimap colgroup { border: 2px double #888; /* major character group grid */ } -.glyphs.dimap tbody { +.mapped tbody, +.dimap tbody { border-width: 2px 0; /* horizontal group dividers */ } -.glyphs.dimap colgroup { +.mapped colgroup, +.dimap colgroup { border-width: 0 2px; /* vertical divides */ } @@ -244,11 +251,6 @@ table.glyphs.dimap { overflow: hidden; } -.diinfo table.glyphs { - margin: 1ex 1ex 2ex; - float: left; -} - /* glyph cell overlay (digraph labels) */ .glyphs.dilabel td { @@ -275,67 +277,62 @@ table.glyphs.dimap { /* character properties */ -td.X {background: #FFF} /* unidentified */ -#digraphs td.Xa {color: #0A0} /* ascii */ -#digraphs td.Xl {color: #070} /* latin1 */ -#digraphs .Xz {color: #D00} /* proposed */ +.X {background: #FFF} /* unidentified */ +#digraphs .Xa {color: #0A0} /* ascii */ +#digraphs .Xl {color: #070} /* latin1 */ +#digraphs .Xz {color: #D00} /* proposed */ -td.Lm, td.Mc, td.Me, td.Zl, td.Zp {background: #F00} /* unstyled */ +.Lm, .Mc, .Me, .Zl, .Zp {background: #F00} /* unstyled */ /* letter scripts */ -td.Armenian, -td.Greek {background: #FFE8CF} -td.Cyrillic {background: #FFDDA8} -td.Latin {background: #FFB} -td.Aramaic, -td.Hebrew {background: #FFD} -td.Arabic {background: #EFE} -td.African {background: #DED} -td.Brahmic {background: #FBB} /* same as number */ -td.Khmer {background: #FBA} -td.Hangul, -td.Syllabic {background: #DEA} -td.Katakana {background: #DFA} -td.Hiragana {background: #DFC} -td.Bopomofo {background: #BFC} -td.Han {background: #CFD} -td.Alpha {background: #ADA} /* other scripts */ +.Armenian, +.Greek {background: #FFE8CF} +.Cyrillic {background: #FFDDA8} +.Latin {background: #FFB} +.Aramaic, +.Hebrew {background: #FFD} +.Arabic {background: #EFE} +.African {background: #DED} +.Brahmic {background: #FBB} /* same as number */ +.Khmer {background: #FBA} +.Hangul, +.Syllabic {background: #DEA} +.Katakana {background: #DFA} +.Hiragana {background: #DFC} +.Bopomofo {background: #BFC} +.Han {background: #CFD} +.Alpha {background: #ADA} /* other scripts */ /* other categories */ -td.Nd, td.Nl, td.No {background: #FDD} /* number */ -td.Sc {background: #FCD} /* currency */ -td.Sm {background: #ECE} /* math */ -td.So {background: #DCF} /* symbol */ -td.Pd, td.Po, td.Pc {background: #CDF} /* punctuation */ -td.Ps, td.Pe, td.Pi, td.Pf {background: #BEF} /* quote */ -td.Lm, td.Sk {background: #CEE} /* spacing modifier */ -td.Mn {background: #ACC} /* modifier */ -td.Cc, td.Cf {color: #666; background: #BBB} /* control */ -td.Zs {background: #ACB} /* space */ -td.Zs span {background: #EEE} -td.Co {background: #A99} /* private */ -td.Xi, td.Cs {background: #CCC} /* invalid */ -td.Xd {color: #844} /* deprecated */ -td.Xr {color: #888} /* reserved (digraph reverse or proposal) */ -.dimap td.Xr {background: #EEE} /* reversed digraph */ -.ccmap td.Xr {opacity:.4} - -/* implementation-based alternatives */ -td.di-b {background: #FDD} /* bmp */ -td.di-d {background: #FFD} /* rfc-1345 digraph */ -td.di-prop {background: #FED} /* proposed digraph */ -td.di-a {background: #EFD} /* ascii */ -td.di-rare {background: #EEE} /* disfavoured */ -td.di-invalid {background: #BBB} /* impossible */ - -/* continents */ -td.c-af {background: #FFC} -td.c-eu {background: #FDC} -td.c-as {background: #FDD} -td.c-oc {background: #EEDDF4} -td.c-aa {background: #E3E8FF} -td.c-sa {background: #DFF} -td.c-na {background: #DFD} +.Nd, .Nl, .No {background: #FDD} /* number */ +.Sc {background: #FCD} /* currency */ +.Sm {background: #ECE} /* math */ +.So {background: #DCF} /* symbol */ +.Pd, .Po, .Pc {background: #CDF} /* punctuation */ +.Ps, .Pe, .Pi, .Pf {background: #BEF} /* quote */ +.Lm, .Sk {background: #CEE} /* spacing modifier */ +.Mn {background: #ACC} /* modifier */ +.Cc, .Cf {color: #666; background: #BBB} /* control */ +.Zs {background: #ACB} /* space */ +.Zs span {background: #EEE} +.Co {background: #DCC} /* private */ +.Xi, .Cs {background: #CCC} /* invalid */ +.Xd {color: #844} /* deprecated */ +.Xr {color: #888} /* reserved (digraph reverse or proposal) */ +.dimap .Xr {background: #EEE} /* reversed digraph */ +.ccmap .Xr {opacity:.4} + +/* support levels */ +.l0 {background: #FDD} /* no, unsupported, other */ +.l2 {background: #FED} /* partial, restricted, unofficial */ + /* default u-prop, u-bmp */ +.l4 {background: #FFD} /* almost, imperfect, common */ + /* default u-di, u-lat1 */ +.l5 {background: #EFD} /* yes, supported, ubiquitous, native */ + /* default u-ascii */ +.l6 {background: #DFD} /* complete, perfect */ +.ex {background: #EEE} /* experimental, disfavoured */ +.u-invalid {background: #BBB} /* invalid, impossible */ /* code syntax */ .sy-comment { color: #888 } @@ -349,72 +346,114 @@ td.c-na {background: #DFD} .sy-todo { background-color: #FF0 } /* hover effects */ -td.di-d, -td.X:hover {cursor: help} -td.Greek:hover, td.Armenian:hover {background: #FA8} -td.Cyrillic:hover {background: #FB7} -td.Latin:hover {background: #EE4} -td.Hebrew:hover, td.Aramaic:hover {background: #FFA} -td.Arabic:hover {background: #CFD} -td.African:hover {background: #BDB} -td.Syllabic:hover, td.Hangul:hover {background: #CE6} -td.Katakana:hover {background: #BF7} -td.Hiragana:hover {background: #AF8} -td.Bopomofo:hover {background: #8FA} -td.Brahmic:hover {background: #F77} -td.Khmer:hover {background: #F87} -td.Han:hover {background: #5EB} -td.Alpha:hover {background: #5C5} -td.Nd:hover, td.Nl:hover, td.No:hover {background: #F99} /* number */ -td.Sc:hover {background: #F8C} /* currency */ -td.Sm:hover {background: #F8F} /* math */ -td.So:hover {background: #A8F} /* symbol */ -td.Pd:hover, td.Po:hover, td.Pc:hover {background: #8AF} /* punctuation */ -td.Ps:hover, td.Pe:hover, td.Pi:hover, td.Pf:hover {background: #8DF} /* quote */ -td.Lm:hover, td.Sk:hover {background: #BFF} /* spacing modifier */ -td.Mn:hover {background: #CDE} /* modifier */ -td.Zs:hover {background: #CED} /* space */ -td.Cc:hover, td.Cf:hover {background: #DDD} /* control */ -td.Co:hover {background: #A77} /* private */ -td.Xr:hover {background: #FFF} /* reserved */ -td.Xa:hover {outline: 1px solid #0F0} /* ascii */ -td.Xl:hover {outline: 1px solid #0C0} /* latin1 */ -td.Xz:hover {outline: 1px solid #F00} /* proposed */ -td.di-rare:hover {background: #BBB} -td.di-b:hover {background: #F88} -td.di-d:hover {background: #FF8} -td.di-prop:hover {background: #FC8} -td.di-a:hover {background: #CF8} +.u-di, +.X:hover {cursor: help} +.Greek:hover, .Armenian:hover {background: #FA8} +.Cyrillic:hover {background: #FB7} +.Latin:hover {background: #EE4} +.Hebrew:hover, .Aramaic:hover {background: #FFA} +.Arabic:hover {background: #CFD} +.African:hover {background: #BDB} +.Syllabic:hover, .Hangul:hover {background: #CE6} +.Katakana:hover {background: #BF7} +.Hiragana:hover {background: #AF8} +.Bopomofo:hover {background: #8FA} +.Brahmic:hover {background: #F77} +.Khmer:hover {background: #F87} +.Han:hover {background: #5EB} +.Alpha:hover {background: #5C5} +.Nd:hover, .Nl:hover, .No:hover {background: #F99} /* number */ +.Sc:hover {background: #F8C} /* currency */ +.Sm:hover {background: #F8F} /* math */ +.So:hover {background: #A8F} /* symbol */ +.Pd:hover, .Po:hover, .Pc:hover {background: #8AF} /* punctuation */ +.Ps:hover, .Pe:hover, .Pi:hover, .Pf:hover {background: #8DF} /* quote */ +.Lm:hover, .Sk:hover {background: #BFF} /* spacing modifier */ +.Mn:hover {background: #CDE} /* modifier */ +.Zs:hover {background: #CED} /* space */ +.Cc:hover, .Cf:hover {background: #DDD} /* control */ +.Co:hover {background: #A77} /* private */ +.Xr:hover {background: #FFF} /* reserved */ +.Xa:hover {outline: 1px solid #0F0} /* ascii */ +.Xl:hover {outline: 1px solid #0C0} /* latin1 */ +.Xz:hover {outline: 1px solid #F00} /* proposed */ +.l0:hover {background: #F88} +.l2:hover {background: #FC8} +.l4:hover {background: #FF8} +.l5:hover {background: #CF8} +.l6:hover {background: #8F8} +.ex:hover {background: #BBB} /* 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 */ - -.pm[onclick]:hover {background: #7E7} -.po[onclick]:hover {background: #CE6} -.ci[onclick]:hover {background: #5ED} -.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} +.c-sa, +.ci, +.g0 {background: #BFE} /* cyan: info */ +.c-na, +.pm, +.g1 {background: #BFB} /* green: motion */ +.po, +.g2 {background: #DFA} /* greenish: jump (g1+) */ +.c-af, +.co, +.g3 {background: #FFA} /* yellow: command */ +.c-eu, +.cp, +.g4 {background: #FDA} /* orangish: open (g5-) */ +.mi, +.g5 {background: #FCA} /* orange: insert */ +.c-as, +.mo, +.g6 {background: #FCC} /* red: mode */ +.c-aa, +.mv, +.g7 {background: #ECE} /* purple: visual (g6+) */ +.c-oc, +.me, +.g8 {background: #CCF} /* blue: prefix */ + +.c-sa:hover, +.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, +.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, +.g6 a:hover, .g6[onclick]:hover {background: #F88} +.c-aa:hover, +.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; padding: 1px; /* same size as borderlessless keys */ } +dl.legend dt.more, +ul.keys li.more b { + text-shadow: #F20 0 0 0.1em; +} +dl.legend dt.more:hover, +ul.keys li.more:hover b { + text-shadow: #F20 0 0 0.5em, #FC0 0 0 0.2em; +} dl.legend dt.ext, ul.keys li.ext { border-style: dashed;