Skip to content

Commit ef328d1

Browse files
author
Richard Jones
committed
nicer style for class list
1 parent e534e6e commit ef328d1

File tree

2 files changed

+25
-4
lines changed

2 files changed

+25
-4
lines changed

roundup/templates/classic/html/home.classlist

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<table border=0 cellspacing=0 cellpadding=2>
1+
<table class="classlist">
22

33
<tal:block tal:repeat="cl db/classes">
4-
<tr class="list-header">
5-
<th colspan="2" align="left">
4+
<tr>
5+
<th class="header" colspan="2" align="left">
66
<a tal:attributes="href string:${cl/classname}"
77
tal:content="python:cl.classname.capitalize()">classname</a>
88
</th>
99
</tr>
1010
<tr tal:repeat="prop cl/properties">
11-
<th align="left" tal:content="prop/name">name</th>
11+
<th tal:content="prop/name">name</th>
1212
<td tal:content="prop/prop">type</td>
1313
</tr>
1414
</tal:block>

roundup/templates/classic/html/style.css

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,3 +216,24 @@ table.otherinfo th {
216216
text-align: left;
217217
}
218218

219+
220+
/* style for class list */
221+
table.classlist {
222+
border-spacing: 0px;
223+
border-collapse: separate;
224+
width: 100%;
225+
}
226+
227+
table.classlist th.header{
228+
padding-top: 10px;
229+
border-bottom: 1px solid gray;
230+
font-weight: bold;
231+
background-color: white;
232+
color: #707040;
233+
}
234+
235+
table.classlist th {
236+
font-weight: bold;
237+
text-align: left;
238+
}
239+

0 commit comments

Comments
 (0)