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
4109c62c
Commit
4109c62c
authored
Mar 11, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix table border bug with double borders on theads and use of colgroup
parent
7154e378
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
12 deletions
+16
-12
docs/assets/bootstrap.zip
docs/assets/bootstrap.zip
+0
-0
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+4
-8
docs/base-css.html
docs/base-css.html
+4
-0
docs/templates/pages/base-css.mustache
docs/templates/pages/base-css.mustache
+4
-0
less/tables.less
less/tables.less
+4
-4
No files found.
docs/assets/bootstrap.zip
View file @
4109c62c
No preview for this file type
docs/assets/css/bootstrap.css
View file @
4109c62c
...
...
@@ -1174,8 +1174,10 @@ table {
.table
thead
th
{
vertical-align
:
bottom
;
}
.table
thead
:first-child
tr
th
,
.table
thead
:first-child
tr
td
{
.table
colgroup
+
thead
tr
:first-child
th
,
.table
colgroup
+
thead
tr
:first-child
td
,
.table
thead
:first-child
tr
:first-child
th
,
.table
thead
:first-child
tr
:first-child
td
{
border-top
:
0
;
}
.table
tbody
+
tbody
{
...
...
@@ -1198,12 +1200,6 @@ table {
.table-bordered
td
{
border-left
:
1px
solid
#dddddd
;
}
.table-bordered
thead
:first-child
tr
:first-child
th
,
.table-bordered
tbody
:first-child
tr
:first-child
th
,
.table-bordered
tbody
:first-child
tr
:first-child
td
{
border-top
:
0
;
border-bottom
:
1px
solid
#dddddd
;
}
.table-bordered
thead
:first-child
tr
:first-child
th
:first-child
,
.table-bordered
tbody
:first-child
tr
:first-child
td
:first-child
{
-webkit-border-radius
:
4px
0
0
0
;
...
...
docs/base-css.html
View file @
4109c62c
...
...
@@ -435,6 +435,10 @@ For example, <code>section</code> should be wrapped as inline.
<div
class=
"row"
>
<div
class=
"span8"
>
<table
class=
"table table-bordered table-striped"
>
<colgroup>
<col
class=
"span1"
>
<col
class=
"span7"
>
</colgroup>
<thead>
<tr>
<th>
Tag
</th>
...
...
docs/templates/pages/base-css.mustache
View file @
4109c62c
...
...
@@ -359,6 +359,10 @@
<div
class=
"row"
>
<div
class=
"span8"
>
<table
class=
"table table-bordered table-striped"
>
<colgroup>
<col
class=
"span1"
>
<col
class=
"span7"
>
</colgroup>
<thead>
<tr>
<th>
{{
_i
}}
Tag
{{/
i
}}
</th>
...
...
less/tables.less
View file @
4109c62c
...
...
@@ -37,8 +37,10 @@ table {
vertical-align: bottom;
}
// Remove top border from thead by default
thead:first-child tr th,
thead:first-child tr td {
colgroup + thead tr:first-child th,
colgroup + thead tr:first-child td,
thead:first-child tr:first-child th,
thead:first-child tr:first-child td {
border-top: 0;
}
// Account for multiple tbody instances
...
...
@@ -77,8 +79,6 @@ table {
thead:first-child tr:first-child th,
tbody:first-child tr:first-child th,
tbody:first-child tr:first-child td {
border-top: 0;
border-bottom: 1px solid @tableBorder;
}
// For first th or td in the first row in the first thead or tbody
thead:first-child tr:first-child th:first-child,
...
...
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