Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
8575a452
Commit
8575a452
authored
12 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
alt fix to #3029: change to single border-radii properties
parent
a7d8145a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/assets/bootstrap.zip
+0
-0
docs/assets/bootstrap.zip
docs/assets/css/bootstrap.css
+12
-9
docs/assets/css/bootstrap.css
less/tables.less
+12
-3
less/tables.less
with
24 additions
and
12 deletions
+24
-12
docs/assets/bootstrap.zip
+
0
-
0
View file @
8575a452
No preview for this file type
This diff is collapsed.
Click to expand it.
docs/assets/css/bootstrap.css
+
12
-
9
View file @
8575a452
...
@@ -1286,27 +1286,30 @@ table {
...
@@ -1286,27 +1286,30 @@ table {
}
}
.table-bordered
thead
:first-child
tr
:first-child
th
:first-child
,
.table-bordered
thead
:first-child
tr
:first-child
th
:first-child
,
.table-bordered
tbody
:first-child
tr
:first-child
td
:first-child
{
.table-bordered
tbody
:first-child
tr
:first-child
td
:first-child
{
-webkit-border-radius
:
4px
0
0
0
;
-webkit-border-
top-left-
radius
:
4px
;
-moz-border-radius
:
4px
0
0
0
;
-moz-border-radius
-topleft
:
4px
;
border-radius
:
4px
0
0
0
;
border-
top-left-
radius
:
4px
;
}
}
.table-bordered
thead
:first-child
tr
:first-child
th
:last-child
,
.table-bordered
thead
:first-child
tr
:first-child
th
:last-child
,
.table-bordered
tbody
:first-child
tr
:first-child
td
:last-child
{
.table-bordered
tbody
:first-child
tr
:first-child
td
:last-child
{
-webkit-border-radius
:
0
4px
0
0
;
-webkit-border-
top-right-
radius
:
4px
;
-moz-border-radius
:
0
4px
0
0
;
-moz-border-radius
-topright
:
4px
;
border-radius
:
0
4px
0
0
;
border-
top-right-
radius
:
4px
;
}
}
.table-bordered
thead
:last-child
tr
:last-child
th
:first-child
,
.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
{
-webkit-border-radius
:
0
0
0
4px
;
-webkit-border-radius
:
0
0
0
4px
;
-moz-border-radius
:
0
0
0
4px
;
-moz-border-radius
:
0
0
0
4px
;
border-radius
:
0
0
0
4px
;
border-radius
:
0
0
0
4px
;
-webkit-border-bottom-left-radius
:
4px
;
-moz-border-radius-bottomleft
:
4px
;
border-bottom-left-radius
:
4px
;
}
}
.table-bordered
thead
:last-child
tr
:last-child
th
:last-child
,
.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
{
-webkit-border-radius
:
0
0
4px
0
;
-webkit-border-
bottom-right-
radius
:
4px
;
-moz-border-radius
:
0
0
4px
0
;
-moz-border-radius
-bottomright
:
4px
;
border-radius
:
0
0
4px
0
;
border-
bottom-right-
radius
:
4px
;
}
}
.table-striped
tbody
tr
:nth-child
(
odd
)
td
,
.table-striped
tbody
tr
:nth-child
(
odd
)
td
,
.table-striped
tbody
tr
:nth-child
(
odd
)
th
{
.table-striped
tbody
tr
:nth-child
(
odd
)
th
{
...
...
This diff is collapsed.
Click to expand it.
less/tables.less
+
12
-
3
View file @
8575a452
...
@@ -92,20 +92,29 @@ table {
...
@@ -92,20 +92,29 @@ table {
// For first th or td in the first row in the first thead or tbody
// For first th or td in the first row in the first thead or tbody
thead:first-child tr:first-child th:first-child,
thead:first-child tr:first-child th:first-child,
tbody:first-child tr:first-child td:first-child {
tbody:first-child tr:first-child td:first-child {
.border-radius(4px 0 0 0);
-webkit-border-top-left-radius: 4px;
-moz-border-radius-topleft: 4px;
border-top-left-radius: 4px;
}
}
thead:first-child tr:first-child th:last-child,
thead:first-child tr:first-child th:last-child,
tbody:first-child tr:first-child td:last-child {
tbody:first-child tr:first-child td:last-child {
.border-radius(0 4px 0 0);
-webkit-border-top-right-radius: 4px;
-moz-border-radius-topright: 4px;
border-top-right-radius: 4px;
}
}
// For first th or td in the first row in the first thead or tbody
// For first th or td in the first row in the first thead or tbody
thead:last-child tr:last-child th:first-child,
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 {
.border-radius(0 0 0 4px);
.border-radius(0 0 0 4px);
-webkit-border-bottom-left-radius: 4px;
-moz-border-radius-bottomleft: 4px;
border-bottom-left-radius: 4px;
}
}
thead:last-child tr:last-child th:last-child,
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 {
.border-radius(0 0 4px 0);
-webkit-border-bottom-right-radius: 4px;
-moz-border-radius-bottomright: 4px;
border-bottom-right-radius: 4px;
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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