0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-19 16:54:24 +01:00

fixes #8491: add vars for table padding

This commit is contained in:
Mark Otto 2013-07-17 23:34:04 -07:00
parent ba0c6cd57c
commit d3a139622e
3 changed files with 6 additions and 3 deletions

View File

@ -1147,7 +1147,7 @@ th {
.table-condensed thead > tr > td,
.table-condensed tbody > tr > td,
.table-condensed tfoot > tr > td {
padding: 4px 5px;
padding: 5px;
}
.table-bordered {

View File

@ -25,7 +25,7 @@ th {
> tr {
> th,
> td {
padding: 8px;
padding: @table-cell-padding;
line-height: @line-height-base;
vertical-align: top;
border-top: 1px solid @table-border-color;
@ -69,7 +69,7 @@ th {
> tr {
> th,
> td {
padding: 4px 5px;
padding: @table-condensed-cell-padding;
}
}
}

View File

@ -81,6 +81,9 @@
// Tables
// -------------------------
@table-cell-padding: 8px;
@table-condensed-cell-padding: 5px;
@table-bg: transparent; // overall background-color
@table-bg-accent: #f9f9f9; // for striping
@table-bg-hover: #f5f5f5; // for hover