make rules for unicode-char.inc.pl and ttfsupport/
[sheet.git] / base.css
index 6126193ae95900a3ad0ecbc88934af5c64c8e704..37a5716f37fe44da368f6740a6e8ebe13caf6a6c 100644 (file)
--- a/base.css
+++ b/base.css
@@ -17,6 +17,12 @@ a:active, a:hover {
 
 /* common sections */
 
+h1 {
+       background-image: -moz-repeating-linear-gradient(top left -75deg,
+               rgba(255,0,0,.5), rgba(255,0,0,0) 1ex,
+               rgba(255,0,0,0) 2ex, rgba(255,0,0,.5) 3ex
+       );
+}
 h1, h2 {
        font-size: 200%;
        margin: 0;
@@ -79,6 +85,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 */
@@ -130,7 +147,7 @@ ul.keys li b {
        line-height: 2.5ex; /* inherits otherwise */
        padding-left: 2px;
 }
-ul.keys.omni li { /* omni-present esc */
+.row0 ul.keys li { /* omni-present esc */
        width: 8.5em;
 }
 
@@ -246,9 +263,14 @@ table.dimap {
 
 .diinfo {
        -moz-column-width: 24em;
+       -webkit-column-width: 24em;
+       column-width: 24em;
 }
 .diinfo > div {
        overflow: hidden;
+       column-break-inside: avoid;
+       -webkit-column-break-inside: avoid;
+       position: relative; z-index: 1; /* webkit bug */
 }
 
 /* glyph cell overlay (digraph labels) */
@@ -283,6 +305,7 @@ table.dimap {
 #digraphs .Xz {color: #D00} /* proposed */
 
 .Lm, .Mc, .Me, .Zl, .Zp {background: #F00} /* unstyled */
+.X > span               {background: #888} /* invisible contents */
 
 /* letter scripts */
 .Armenian,
@@ -314,7 +337,6 @@ table.dimap {
 .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 */
@@ -332,10 +354,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}
@@ -368,6 +390,7 @@ table.dimap {
 /* hover effects */
 .u-di,
 .X:hover {cursor: help}
+.X:hover > span                            {background: #FFF} /* whitespace marker */
 .Greek:hover, .Armenian:hover              {background: #FA8}
 .Cyrillic:hover                            {background: #FB7}
 .Latin:hover                               {background: #EE4}
@@ -397,12 +420,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 */
 
@@ -530,6 +553,7 @@ dl.legend dt {
 }
 dl.legend dd {
        margin: 3px 0.4em 0; /* align text (add dt border+padding height) */
+       padding: 0;
 }
 
 dl.legend-options dt {
@@ -556,7 +580,14 @@ ul.legend-set li {
 
 /* page-specific */
 
-#browser .aside {
+#browser td > a {
+       text-decoration: none;
+}
+#browser td > a:active,
+#browser td > a:hover {
+       text-decoration: underline;
+}
+#browser tr .aside {
        font-size: 80%;
        overflow: hidden;
        height: 0;
@@ -565,7 +596,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,
@@ -576,6 +607,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 {