Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
3c1a0fbd
Commit
3c1a0fbd
authored
Jul 19, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #4103: simpler fix for tfoot in .table-border
parent
89d7ec52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
92 additions
and
8 deletions
+92
-8
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+33
-2
less/tables.less
less/tables.less
+35
-3
less/tests/css-tests.html
less/tests/css-tests.html
+24
-3
No files found.
docs/assets/css/bootstrap.css
View file @
3c1a0fbd
...
...
@@ -1753,6 +1753,35 @@ table {
-webkit-border-radius
:
4px
;
-moz-border-radius
:
4px
;
border-radius
:
4px
;
/* thead:last-child tr:last-child th:first-child,
tbody:last-child tr:last-child td:first-child,
tfoot tr:last-child td:first-child {
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
}
tfoot ~ tbody:last-child tr:last-child td:first-child {
-webkit-border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
-moz-border-radius-bottomleft: 0;
}
thead:last-child tr:last-child th:last-child,
tbody:last-child tr:last-child td:last-child,
tfoot tr:last-child td:last-child {
-webkit-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
}
tfoot ~ tbody:last-child tr:last-child td:last-child {
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
-moz-border-radius-bottomright: 0;
}
*/
}
.table-bordered
th
,
...
...
@@ -1787,7 +1816,8 @@ table {
}
.table-bordered
thead
:last-child
tr
:last-child
th
:first-child
,
.table-bordered
tbody
:last-child
tr
:last-child
td
:first-child
{
.table-bordered
tbody
:last-child
tr
:last-child
td
:first-child
,
.table-bordered
tfoot
:last-child
tr
:last-child
td
:first-child
{
-webkit-border-radius
:
0
0
0
4px
;
-moz-border-radius
:
0
0
0
4px
;
border-radius
:
0
0
0
4px
;
...
...
@@ -1797,7 +1827,8 @@ table {
}
.table-bordered
thead
:last-child
tr
:last-child
th
:last-child
,
.table-bordered
tbody
:last-child
tr
:last-child
td
:last-child
{
.table-bordered
tbody
:last-child
tr
:last-child
td
:last-child
,
.table-bordered
tfoot
:last-child
tr
:last-child
td
:last-child
{
-webkit-border-bottom-right-radius
:
4px
;
border-bottom-right-radius
:
4px
;
-moz-border-radius-bottomright
:
4px
;
...
...
less/tables.less
View file @
3c1a0fbd
...
...
@@ -113,20 +113,22 @@ table {
}
// For first th or td in the first row in the first thead or tbody
thead:last-child tr:last-child th:first-child,
tbody:last-child tr:last-child td:first-child {
tbody:last-child tr:last-child td:first-child,
tfoot:last-child tr:last-child td:first-child {
.border-radius(0 0 0 4px);
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
}
thead:last-child tr:last-child th:last-child,
tbody:last-child tr:last-child td:last-child {
tbody:last-child tr:last-child td:last-child,
tfoot:last-child tr:last-child td:last-child {
-webkit-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
}
// Special fixes to round the left border on the first td/t
d
// Special fixes to round the left border on the first td/t
h
caption + thead tr:first-child th:first-child,
caption + tbody tr:first-child td:first-child,
colgroup + thead tr:first-child th:first-child,
...
...
@@ -143,6 +145,36 @@ table {
border-top-right-radius: 4px;
-moz-border-right-topleft: 4px;
}
// Accounting for tfoot
/* thead:last-child tr:last-child th:first-child,
tbody:last-child tr:last-child td:first-child,
tfoot tr:last-child td:first-child {
-webkit-border-bottom-left-radius: 4px;
border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
}
tfoot ~ tbody:last-child tr:last-child td:first-child {
-webkit-border-bottom-left-radius: 0;
border-bottom-left-radius: 0;
-moz-border-radius-bottomleft: 0;
}
thead:last-child tr:last-child th:last-child,
tbody:last-child tr:last-child td:last-child,
tfoot tr:last-child td:last-child {
-webkit-border-bottom-right-radius: 4px;
border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
}
tfoot ~ tbody:last-child tr:last-child td:last-child {
-webkit-border-bottom-right-radius: 0;
border-bottom-right-radius: 0;
-moz-border-radius-bottomright: 0;
}
*/
}
...
...
less/tests/css-tests.html
View file @
3c1a0fbd
...
...
@@ -404,6 +404,13 @@
<td>
3
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
3
</td>
<td>
6
</td>
<td>
9
</td>
</tr>
</tfoot>
</table>
<h4>
Bordered with thead, with colgroup
</h4>
<table
class=
"table table-bordered"
>
...
...
@@ -414,9 +421,9 @@
</colgroup>
<thead>
<tr>
<t
d>
1
</td
>
<t
d>
2
</td
>
<t
d>
3
</td
>
<t
h>
A
</th
>
<t
h>
B
</th
>
<t
h>
C
</th
>
</tr>
</thead>
<tbody>
...
...
@@ -436,6 +443,13 @@
<td>
3
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
3
</td>
<td>
6
</td>
<td>
9
</td>
</tr>
</tfoot>
</table>
</div>
<!--/span-->
<div
class=
"span6"
>
...
...
@@ -466,6 +480,13 @@
<td>
3
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td>
3
</td>
<td>
6
</td>
<td>
9
</td>
</tr>
</tfoot>
</table>
<h4>
Bordered with rowspan and colspan
</h4>
<table
class=
"table table-bordered"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment