Skip to content

Commit 074f9a8

Browse files
committed
Clean up default.css: fix indentation, remove unused styles, reorganize, add comments
1 parent ed29de8 commit 074f9a8

7 files changed

Lines changed: 827 additions & 744 deletions

File tree

css-box/Overview.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,16 @@
2929
dt + dt::before {content: ", "}
3030
/* Undo the max-width in the 2012 style for editor's drafts: */
3131
body {max-width: none}
32+
33+
/* maybe replace this with using default.css's class=data? */
34+
table.equiv-table { border-spacing: 0; margin: 0.5em 0 }
35+
table.equiv-table th, table.equiv-table td { padding: 0.3em }
36+
table.equiv-table th { text-align: left }
37+
/* table.equiv-table th:first-child { text-align: right } */
38+
table.equiv-table td, table.equiv-table th { border-bottom: thin solid #666 }
39+
table.equiv-table { border-bottom: hidden }
40+
table.equiv-table { empty-cells: show }
41+
table.equiv-table caption { margin: 0.5em 0 0 0 }
3242
</style>
3343
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
3444
title=Default type="text/css">

css-box/Overview.src.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@
2424
dt + dt::before {content: ", "}
2525
/* Undo the max-width in the 2012 style for editor's drafts: */
2626
body {max-width: none}
27+
28+
/* maybe replace this with using default.css's class=data? */
29+
table.equiv-table { border-spacing: 0; margin: 0.5em 0 }
30+
table.equiv-table th, table.equiv-table td { padding: 0.3em }
31+
table.equiv-table th { text-align: left }
32+
/* table.equiv-table th:first-child { text-align: right } */
33+
table.equiv-table td, table.equiv-table th { border-bottom: thin solid #666 }
34+
table.equiv-table { border-bottom: hidden }
35+
table.equiv-table { empty-cells: show }
36+
table.equiv-table caption { margin: 0.5em 0 0 0 }
37+
2738
</style>
2839
<link href="http://www.w3.org/StyleSheets/TR/W3C-MO.css" rel="stylesheet"
2940
title="Default" type="text/css">

css-template/Overview.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3401,7 +3401,7 @@ <h3 id=vertical-alignment><span class=secno>7.1. </span>Vertical alignment
34013401
edge</dfn> and <dfn id=c-edge>C edge</dfn> of a box as a
34023402
writing-mode-dependent edge as follows:
34033403

3404-
<table class=equiv-table>
3404+
<table class=data>
34053405
<thead>
34063406
<tr>
34073407
<th>Value of ‘<a href="#writing-mode"><code
@@ -4570,7 +4570,7 @@ <h4 id=the-number-of-rows-and-columns><span class=secno>10.2.6. </span>The
45704570
class=css>none</code></a>’) determine the number of columns or the
45714571
maximum of the template and the list of sizes? E.g.:
45724572

4573-
<table class=equiv-table>
4573+
<table class=data>
45744574
<thead>
45754575
<tr>
45764576
<th>Specified values

css-template/Overview.src.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ <h3 id=vertical-alignment>Vertical alignment of the contents of
25642564
and <dfn>C edge</dfn> of a box as a writing-mode-dependent edge as
25652565
follows:
25662566

2567-
<table class=equiv-table>
2567+
<table class=data>
25682568
<thead>
25692569
<tr><th>Value of 'writing-mode' <th>Meaning of “A” <th>Meaning of “C”
25702570
<tbody>

css3-tables/Overview.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,7 @@ <h3 id=caption-position-and-alignment><span class=secno>6.1. </span>Caption
15861586

15871587
<dd>The used value depends on the value of the element's ‘<code
15881588
class=property>writing-mode</code>’:
1589-
<table class=equiv-table>
1589+
<table class=data>
15901590
<thead>
15911591
<tr>
15921592
<th>Value of ‘<code class=property>writing-mode</code>’
@@ -1614,7 +1614,7 @@ <h3 id=caption-position-and-alignment><span class=secno>6.1. </span>Caption
16141614

16151615
<dd>The used value depends on the value of the element's ‘<code
16161616
class=property>writing-mode</code>’:
1617-
<table class=equiv-table>
1617+
<table class=datae>
16181618
<thead>
16191619
<tr>
16201620
<th>Value of ‘<code class=property>writing-mode</code>’

css3-tables/Overview.src.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1136,7 +1136,7 @@ <h3>Caption position and alignment</h3>
11361136

11371137
<dt><dfn title="before (caption-side)">before</dfn>
11381138
<dd>The used value depends on the value of the element's 'writing-mode':
1139-
<table class=equiv-table>
1139+
<table class=data>
11401140
<thead>
11411141
<tr><th>Value of 'writing-mode' <th>Meaning of ''before''
11421142
<tbody>
@@ -1147,7 +1147,7 @@ <h3>Caption position and alignment</h3>
11471147

11481148
<dt><dfn title="after (caption-side)">after</dfn> <dd>The used value
11491149
depends on the value of the element's 'writing-mode':
1150-
<table class=equiv-table>
1150+
<table class=data>
11511151
<thead>
11521152
<tr><th>Value of 'writing-mode' <th>Meaning of ''after''
11531153
<tbody>

0 commit comments

Comments
 (0)