Skip to content

Commit e60d566

Browse files
committed
Split styling classes on semantic tables
1 parent e7a5ab7 commit e60d566

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

site/css/style.css

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,15 @@ table.methods tr td.methodName a {
117117
font-weight: bold;
118118
}
119119

120-
table.funcTable tr td {
120+
table.funcTable tr td,
121+
table.structTable tr td {
121122
padding: 5px 10px;
122123
border-bottom: 1px solid #eee;
123124
}
124-
table.funcTable tr td.comment {
125-
color: #999;
126-
}
127-
table.funcTable tr td.var {
125+
126+
.enumTable .var,
127+
.funcTable .var,
128+
.structTable .var {
128129
font-weight: bold;
129130
color: #833;
130131
}
@@ -152,7 +153,9 @@ code.params {
152153

153154
.returns { margin-bottom: 15px; }
154155

155-
h1.funcTitle {
156+
h1.funcTitle,
157+
h1.enumTitle,
158+
h1.structTitle {
156159
font-size: 1.6em;
157160
}
158161
h3.funcDesc {

site/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ <h3>Argument in</h3>
218218

219219
<!-- listing for an enum -->
220220
<script type="text/template" id="enum-template">
221-
<h1 class="funcTitle"><%= type.tname %><small><%= type.type %></small></h1>
221+
<h1 class="enumTitle"><%= type.tname %><small><%= type.type %></small></h1>
222222
<p><%= type.value %></p>
223223

224224
<% if (type.data.description) { %>
@@ -228,7 +228,7 @@ <h1 class="funcTitle"><%= type.tname %><small><%= type.type %></small></h1>
228228
<p><%= type.data.comments %></p>
229229
<% } %>
230230

231-
<table>
231+
<table class="enumTable">
232232
<% _.each(type.data.fields, function(field) { %>
233233
<tr>
234234
<td><code><%= field.name %></code></td>
@@ -245,7 +245,7 @@ <h1 class="funcTitle"><%= type.tname %><small><%= type.type %></small></h1>
245245

246246
<!-- listing for a struct -->
247247
<script type="text/template" id="struct-template">
248-
<h1 class="funcTitle"><%= type.tname %><small><%= type.type %></small></h1>
248+
<h1 class="structTitle"><%= type.tname %><small><%= type.type %></small></h1>
249249
<p><%= type.value %></p>
250250

251251
<% if (type.data.description) { %>
@@ -255,7 +255,7 @@ <h1 class="funcTitle"><%= type.tname %><small><%= type.type %></small></h1>
255255
<p><%= type.data.comments %></p>
256256
<% } %>
257257

258-
<table class="funcTable">
258+
<table class="structTable">
259259
<% _.each(type.data.fields, function(field) { %>
260260
<tr>
261261
<td valign="top" nowrap="true"><%= field.type %></td>

0 commit comments

Comments
 (0)