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
8575a452
Commit
8575a452
authored
Apr 14, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
alt fix to #3029: change to single border-radii properties
parent
a7d8145a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
12 deletions
+24
-12
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+12
-9
less/tables.less
less/tables.less
+12
-3
No files found.
docs/assets/bootstrap.zip
View file @
8575a452
No preview for this file type
docs/assets/css/bootstrap.css
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
{
...
...
less/tables.less
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;
}
}
}
}
...
...
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