Skip to content

Commit

Permalink
Add .table-group-divider to tbody with a custom color
Browse files Browse the repository at this point in the history
  • Loading branch information
daniviga committed Oct 1, 2023
1 parent 6355460 commit 2fe221d
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 20 deletions.
4 changes: 4 additions & 0 deletions ram/portal/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ a.badge, a.badge:hover {
width: 33% !important;
}

.table-group-divider {
border-top: calc(var(--bs-border-width) * 3) solid var(--bs-border-color);
}

#nav-notes > p {
padding: .5rem;
}
Expand Down
4 changes: 2 additions & 2 deletions ram/portal/templates/cards.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<th colspan="2" scope="row">Data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th class="w-33" scope="row">Type</th>
<td>{{ d.rolling_class.type }}</td>
Expand Down Expand Up @@ -76,7 +76,7 @@
<th colspan="2" scope="row">DCC data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th class="w-33" scope="row">Decoder</th>
<td>{{ d.decoder }}</td>
Expand Down
2 changes: 1 addition & 1 deletion ram/portal/templates/companies.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<th colspan="2" scope="row">Company</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
{% if d.logo %}
<tr>
<th class="w-33" scope="row">Logo</th>
Expand Down
4 changes: 2 additions & 2 deletions ram/portal/templates/consist.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<th colspan="2" scope="row">Data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th class="w-33" scope="row">Company</th>
<td><abbr title="{{ consist.company.extended_name }}">{{ consist.company }}</abbr></td>
Expand All @@ -103,7 +103,7 @@
<th scope="row">Notes</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<td>{{ consist.notes | safe }}</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion ram/portal/templates/consists.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<th colspan="2" scope="row">Consist data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
{% if d.address %}
<tr>
<th class="w-33" scope="row">Address</th>
Expand Down
2 changes: 1 addition & 1 deletion ram/portal/templates/manufacturers.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<th colspan="2" scope="row">Manufacturer</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
{% if d.logo %}
<tr>
<th class="w-33" scope="row">Logo</th>
Expand Down
24 changes: 12 additions & 12 deletions ram/portal/templates/rollingstock.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
<th colspan="2" scope="row">Data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th class="w-33" scope="row">Type</th>
<td>{{ rolling_stock.rolling_class.type }}</td>
Expand Down Expand Up @@ -93,7 +93,7 @@
<th colspan="2" scope="row">Model data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th class="w-33" scope="row">Manufacturer</th>
<td>{%if rolling_stock.manufacturer %}
Expand All @@ -117,7 +117,7 @@
<th colspan="2" scope="row">DCC data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th class="w-33" scope="row">Interface</th>
<td>{{ rolling_stock.get_decoder_interface_display }}</td>
Expand All @@ -143,7 +143,7 @@
<th colspan="2" scope="row">Model data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th class="w-33" scope="row">Manufacturer</th>
<td>{%if rolling_stock.manufacturer %}
Expand Down Expand Up @@ -179,7 +179,7 @@
<th colspan="2" scope="row">Properties</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
{% for p in rolling_stock_properties %}
<tr>
<th class="w-33" scope="row">{{ p.property }}</th>
Expand All @@ -197,7 +197,7 @@
<th colspan="2" scope="row">Class data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th class="w-33" scope="row">Class</th>
<td>{{ rolling_stock.rolling_class.identifier }}</td>
Expand Down Expand Up @@ -231,7 +231,7 @@
<th colspan="2" scope="row">Properties</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
{% for p in class_properties %}
<tr>
<th class="w-33" scope="row">{{ p.property }}</th>
Expand All @@ -249,7 +249,7 @@
<th colspan="2" scope="row">DCC data</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th scope="row">Interface</th>
<td>{{ rolling_stock.get_decoder_interface_display }}</td>
Expand Down Expand Up @@ -284,7 +284,7 @@
<th scope="row">Notes</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<td>{{ rolling_stock.notes | safe }}</td>
</tr>
Expand All @@ -299,7 +299,7 @@
<th colspan="3" scope="row">Documents</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
{% for d in rolling_stock.document.all %}
<tr>
<td class="w-33">{{ d.description }}</td>
Expand All @@ -317,7 +317,7 @@
<th colspan="3" scope="row">Decoder documents</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
{% for d in rolling_stock.decoder.document.all %}
<tr>
<td class="w-33">{{ d.description }}</td>
Expand All @@ -336,7 +336,7 @@
<th colspan="3" scope="row">Journal</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
{% for j in rolling_stock_journal %}
<tr>
<th class="w-33" scope="row">{{ j.date }}</th>
Expand Down
2 changes: 1 addition & 1 deletion ram/portal/templates/types.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<th colspan="2" scope="row">Type</th>
</tr>
</thead>
<tbody>
<tbody class="table-group-divider">
<tr>
<th class="w-33" scope="row">Type</th>
<td>{{ d.type }}</td>
Expand Down

0 comments on commit 2fe221d

Please sign in to comment.