Skip to content

Commit

Permalink
Fixes #10884: Adds .info variant to contextual table classes
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed Dec 7, 2013
1 parent c07632e commit fe58357
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 1 deletion.
20 changes: 20 additions & 0 deletions css.html
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,12 @@ <h2 id="tables-contextual-classes">Contextual classes</h2>
</td>
<td>Indicates a dangerous or potentially negative action</td>
</tr>
<tr>
<td>
<code>.info</code>
</td>
<td>Indicates a neutral informative change or action</td>
</tr>
</tbody>
</table>
</div>
Expand Down Expand Up @@ -1383,6 +1389,18 @@ <h2 id="tables-contextual-classes">Contextual classes</h2>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr>
<td>8</td>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
<tr class="info">
<td>9</td>
<td>Column content</td>
<td>Column content</td>
<td>Column content</td>
</tr>
</tbody>
</table>
</div><!-- /example -->
Expand All @@ -1392,13 +1410,15 @@ <h2 id="tables-contextual-classes">Contextual classes</h2>
<tr class="success">...</tr>
<tr class="warning">...</tr>
<tr class="danger">...</tr>
<tr class="info">...</tr>

<!-- On cells (`td` or `th`) -->
<tr>
<td class="active">...</td>
<td class="success">...</td>
<td class="warning">...</td>
<td class="danger">...</td>
<td class="info">...</td>
</tr>
{% endhighlight %}

Expand Down
18 changes: 18 additions & 0 deletions dist/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -1803,6 +1803,24 @@ table th[class*="col-"] {
background-color: #ebcccc;
}

.table > thead > tr > .info,
.table > tbody > tr > .info,
.table > tfoot > tr > .info,
.table > thead > .info > td,
.table > tbody > .info > td,
.table > tfoot > .info > td,
.table > thead > .info > th,
.table > tbody > .info > th,
.table > tfoot > .info > th {
background-color: #d9edf7;
}

.table-hover > tbody > tr > .info:hover,
.table-hover > tbody > .info:hover > td,
.table-hover > tbody > .info:hover > th {
background-color: #c4e3f3;
}

@media (max-width: 767px) {
.table-responsive {
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/bootstrap.min.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions less/tables.less
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ table {
.table-row-variant(success; @state-success-bg);
.table-row-variant(warning; @state-warning-bg);
.table-row-variant(danger; @state-danger-bg);
.table-row-variant(info; @state-info-bg);

This comment has been minimized.

Copy link
@zlatanvasovic

zlatanvasovic Dec 7, 2013

Contributor

info should be before success.



// Responsive tables
Expand Down

0 comments on commit fe58357

Please sign in to comment.