aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Cederstròˆm <[email protected]>2012-08-22 11:20:31 +0200
committerAndreas Cederstròˆm <[email protected]>2012-08-22 11:20:31 +0200
commit361889def92af209c8d3315c4d1152fb9fc4bc36 (patch)
treef9ac0e1e8b4db8958f2503a9dabf3433ebef2ed0
parent5d41742f170ad2722df34dcb337b83ade15d12cb (diff)
downloadbootstrap-361889def92af209c8d3315c4d1152fb9fc4bc36.tar.xz
bootstrap-361889def92af209c8d3315c4d1152fb9fc4bc36.zip
Add .warning to table rows
-rw-r--r--docs/assets/css/bootstrap.css4
-rw-r--r--docs/base-css.html14
-rw-r--r--docs/templates/pages/base-css.mustache14
-rw-r--r--less/tables.less3
4 files changed, 33 insertions, 2 deletions
diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css
index 889428d28..d6b4fc38d 100644
--- a/docs/assets/css/bootstrap.css
+++ b/docs/assets/css/bootstrap.css
@@ -2034,6 +2034,10 @@ table .span24 {
background-color: #f2dede;
}
+.table tbody tr.warning td {
+ background-color: #fcf8e3;
+}
+
.table tbody tr.info td {
background-color: #d9edf7;
}
diff --git a/docs/base-css.html b/docs/base-css.html
index fa9dd4b93..9874bcfbb 100644
--- a/docs/base-css.html
+++ b/docs/base-css.html
@@ -688,6 +688,12 @@ For example, &lt;code&gt;&lt;section&gt;&lt;/code&gt; should be wrapped as inlin
</tr>
<tr>
<td>
+ <code>.warning</code>
+ </td>
+ <td>Indicates a warning that might need attention.</td>
+ </tr>
+ <tr>
+ <td>
<code>.info</code>
</td>
<td>Used as an alternative to the default styles.</td>
@@ -717,12 +723,18 @@ For example, &lt;code&gt;&lt;section&gt;&lt;/code&gt; should be wrapped as inlin
<td>02/04/2012</td>
<td>Declined</td>
</tr>
- <tr class="info">
+ <tr class="warning">
<td>3</td>
<td>TB - Monthly</td>
<td>03/04/2012</td>
<td>Pending</td>
</tr>
+ <tr class="info">
+ <td>4</td>
+ <td>TB - Monthly</td>
+ <td>04/04/2012</td>
+ <td>Call in to confirm</td>
+ </tr>
</tbody>
</table>
</div>
diff --git a/docs/templates/pages/base-css.mustache b/docs/templates/pages/base-css.mustache
index ecf0100d3..e6970fbc7 100644
--- a/docs/templates/pages/base-css.mustache
+++ b/docs/templates/pages/base-css.mustache
@@ -625,6 +625,12 @@
</tr>
<tr>
<td>
+ <code>.warning</code>
+ </td>
+ <td>{{_i}}Indicates a warning that might need attention.{{/i}}</td>
+ </tr>
+ <tr>
+ <td>
<code>.info</code>
</td>
<td>{{_i}}Used as an alternative to the default styles.{{/i}}</td>
@@ -654,12 +660,18 @@
<td>02/04/2012</td>
<td>Declined</td>
</tr>
- <tr class="info">
+ <tr class="warning">
<td>3</td>
<td>TB - Monthly</td>
<td>03/04/2012</td>
<td>Pending</td>
</tr>
+ <tr class="info">
+ <td>4</td>
+ <td>TB - Monthly</td>
+ <td>04/04/2012</td>
+ <td>Call in to confirm</td>
+ </tr>
</tbody>
</table>
</div>{{! /example }}
diff --git a/less/tables.less b/less/tables.less
index 853b97e39..0f0c310e0 100644
--- a/less/tables.less
+++ b/less/tables.less
@@ -219,6 +219,9 @@ table {
tbody tr.error td {
background-color: @errorBackground;
}
+ tbody tr.warning td {
+ background-color: @warningBackground;
+ }
tbody tr.info td {
background-color: @infoBackground;
}