diff --git a/dip3.css b/dip3.css index cf1125d..6faddbf 100755 --- a/dip3.css +++ b/dip3.css @@ -76,8 +76,9 @@ pre, kbd, samp, code, var, .b, pre span { .u { font: medium/1.75 'Arial Unicode MS', FreeSerif, OpenSymbol, 'DejaVu Sans', sans-serif; } -pre .u, td .u, pre .u span, .a { +pre .u, td .u, pre .u span, .a, tr + tr th:first-child { font: medium/1.75 'Arial Unicode MS', 'DejaVu Sans', FreeSerif, OpenSymbol, sans-serif; + color: #222; } .baa { font: oblique 105% Constantia, Baskerville, Palatino, 'Palatino Linotype', 'URW Palladio L', serif; @@ -196,7 +197,6 @@ a.hl:hover, h2[id]:hover a.hl, h3[id]:hover a.hl { color: gainsboro; } - /* code blocks */ pre { @@ -231,15 +231,41 @@ pre span, .p { color: #667; } +/* tables */ + +table { + width: 100%; + border-collapse: collapse; +} +th, td { + width: 45%; + padding: 0 0.5em; + border: 1px solid #bbb; +} +th { + text-align: left; + vertical-align: baseline; +} +td { + vertical-align: top; +} +th:first-child { + width: 10%; + text-align: center; +} +td pre { + padding: 0; +} + /* overrides */ -li ol, .q { +li ol, .q, th, td, td pre { margin: 0; } code, var, samp { - line-height:inherit !important; + line-height: inherit !important; } -pre a, td code a, .w a, pre a:hover { +pre a, td code a, .w a, pre a:hover, td a:link, td a:visited, td pre { border: 0; } diff --git a/porting-code-to-python-3-with-2to3.html b/porting-code-to-python-3-with-2to3.html index 0db8976..73c0224 100644 --- a/porting-code-to-python-3-with-2to3.html +++ b/porting-code-to-python-3-with-2to3.html @@ -8,14 +8,6 @@ h1:before{counter-increment:h1;content:'Appendix A. '} h2:before{counter-increment:h2;content:'A.' counter(h2) '. '} h3:before{counter-increment:h3;content:'A.' counter(h2) '.' counter(h3) '. '} -tr + tr th:first-child{font: medium/1.75 'Arial Unicode MS','DejaVu Sans',FreeSerif,OpenSymbol,sans-serif} -table{width:100%;border-collapse:collapse} -th,td{width:45%;padding:0 0.5em;border:1px solid #bbb} -th{text-align:left;vertical-align:baseline} -td{vertical-align:top} -th:first-child{width:10%;text-align:center} -th,td,td pre{margin:0} -td pre{padding:0;border:0} diff --git a/special-method-names.html b/special-method-names.html index 2e8c1c9..4b6187c 100644 --- a/special-method-names.html +++ b/special-method-names.html @@ -8,15 +8,6 @@ h1:before{counter-increment:h1;content:'Appendix B. '} h2:before{counter-increment:h2;content:'B.' counter(h2) '. '} h3:before{counter-increment:h3;content:'B.' counter(h2) '.' counter(h3) '. '} -tr + tr th:first-child{font: medium/1.75 'Arial Unicode MS','DejaVu Sans',FreeSerif,OpenSymbol,sans-serif} -table{width:100%;border-collapse:collapse} -th,td{width:30%;padding:0 0.5em;border:1px solid #bbb} -th{text-align:left;vertical-align:baseline} -td{vertical-align:top} -th:first-child{width:10%;text-align:center} -th,td,td pre{margin:0} -td pre{padding:0;border:0} -td a:link, td a:visited{border:0}