Skip to content

Commit 4e54531

Browse files
committed
add list element background colors
1 parent 0a61b2e commit 4e54531

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

code/css/style.css

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ tr.highlight td {
99
background-color: #BDD7FD !important;
1010
}
1111

12+
tr.rowDefault td {
13+
background-color: #a7baa1 !important;
14+
}
15+
tr.rowInactive td {
16+
background-color: #c4bfbc !important;
17+
}
18+
1219
#stored-sql {
1320
max-height: 230px;
1421
overflow-x: hidden;

code/gbstList.asp

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ var udl_file = FSO.GetFile(dbConnect.replace("File Name=","").replace(/\\/g,"\\\
9090
var status = "Active";
9191
if (state == 2) status = "Default";
9292
if (state == 1) status = "Inactive";
93+
var rowClass = 'row' + status;
9394
%>
94-
<tr>
95+
<tr class="<%=rowClass%>">
9596
<td title="<%=rsGbst("objid")%>"><% rw(rsGbst("title") + ""); %></td>
9697
<td><% rw(rsGbst("rank") - 0); %></td>
9798
<td><% rw(status); %></td>

0 commit comments

Comments
 (0)