Skip to content

Commit 40378c2

Browse files
committed
Right-align types in the func & struct tables
1 parent 58ef678 commit 40378c2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

site/css/style.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ table.structTable tr td {
136136
padding-left: 3em;
137137
}
138138

139+
.funcTable .type,
140+
.structTable .type {
141+
text-align: right;
142+
}
143+
139144
code.params {
140145
white-space: pre-wrap; /* css-3 */
141146
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */

site/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ <h3><a href="#">Examples</a></h3>
111111
<table class="funcTable">
112112
<% _.each(args, function(arg) { %>
113113
<tr>
114-
<td valign="top" nowrap="true"><%= arg.link %></td>
114+
<td valign="top" class="type" nowrap="true"><%= arg.link %></td>
115115
<td valign="top" class="var"><%= arg.name %></td>
116116
<td class="comment"><%= arg.comment %></td>
117117
</tr>
@@ -258,7 +258,7 @@ <h1 class="structTitle"><%= type.tname %><small><%= type.type %></small></h1>
258258
<table class="structTable">
259259
<% _.each(type.data.fields, function(field) { %>
260260
<tr>
261-
<td valign="top"><%= field.type %></td>
261+
<td class="type" valign="top"><%= field.type %></td>
262262
<td class="var"><%= field.name %></td>
263263
<% if (field.comments) { %>
264264
</tr>

0 commit comments

Comments
 (0)