X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/0f352cba4bd2bd1271275c60853c500a233eeef5..41beface2d4a28895b1983547dcbcc69b38a7743:/base.css diff --git a/base.css b/base.css index d0905bc..54c1e1a 100644 --- a/base.css +++ b/base.css @@ -79,6 +79,17 @@ ul { text-align: left; } +dl > dt { + float: left; + width: 50%; + text-align: right; +} +dl > dd { + text-align: left; + padding-left: 1em; + overflow: hidden; +} + /* "keyboard" (list of keys) */ ul#rows {margin-top: -5ex} /* top (esc) row fits besides header */ @@ -332,10 +343,10 @@ table.dimap { /* default u-ascii */ .l5 {background: #DFD} /* complete, perfect */ .l0 {background: #EEE} /* unknown, omitted */ -.ex {background: #EEE} /* experimental, disfavoured */ +.ex { color: #888} /* experimental, disfavoured */ .u-invalid {background: #BBB} /* invalid, impossible */ -.p0 {opacity: .5} +.p0 {opacity: .6} .p0.p {opacity: 1} .p::after {content: '!'; color: #F00} .p4::after {color: #C00} @@ -397,12 +408,12 @@ table.dimap { .Xa:hover {outline: 1px solid #0F0} /* ascii */ .Xl:hover {outline: 1px solid #0C0} /* latin1 */ .Xz:hover {outline: 1px solid #F00} /* proposed */ +.l0:hover {background: #888} .l1:hover {background: #F88} .l2:hover {background: #FC8} .l3:hover {background: #FF8} .l4:hover {background: #CF8} .l5:hover {background: #8F8} -.ex:hover {background: #BBB} /* key type colorization */ @@ -527,9 +538,11 @@ dl.legend dt { margin: 0 0 1px; /* distinct keys */ height: auto; /* not key-height */ padding: 2px 0; + width: auto; /* not center-aligned */ } dl.legend dd { margin: 3px 0.4em 0; /* align text (add dt border+padding height) */ + padding: 0; } dl.legend-options dt { @@ -559,7 +572,11 @@ ul.legend-set li { #browser td > a { text-decoration: none; } -#browser .aside { +#browser td > a:active, +#browser td > a:hover { + text-decoration: underline; +} +#browser tr .aside { font-size: 80%; overflow: hidden; height: 0; @@ -568,7 +585,7 @@ ul.legend-set li { -moz-transition: all 1s ease-in; transition: height 1s ease-in; } -#browser .aside p { +#browser tr .aside p { margin: 1ex 0; } #browser tr.target .aside, @@ -579,6 +596,20 @@ ul.legend-set li { white-space: nowrap; /* some browsers break on dashes */ } +#browser tr:target > td:first-of-type, +#browser tr.focus > td:first-of-type { + background: inherit; +} +#browser tr.focus > td { + border-bottom-color: #000; +} + +form.aside { + position: absolute; + top: 3ex; + right: 1em; +} + /* printing hints */ @page {