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
f8ac403d
Commit
f8ac403d
authored
Oct 01, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes #5123: scope table grid classes to td and th elements only, plus drop columns 13-24
parent
bc4f5d56
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
109 deletions
+38
-109
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+24
-84
less/tables.less
less/tables.less
+14
-25
No files found.
docs/assets/css/bootstrap.css
View file @
f8ac403d
...
@@ -2023,150 +2023,90 @@ table [class*=span],
...
@@ -2023,150 +2023,90 @@ table [class*=span],
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span1
{
.table
td
.span1
,
.table
th
.span1
{
float
:
none
;
float
:
none
;
width
:
44px
;
width
:
44px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span2
{
.table
td
.span2
,
.table
th
.span2
{
float
:
none
;
float
:
none
;
width
:
124px
;
width
:
124px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span3
{
.table
td
.span3
,
.table
th
.span3
{
float
:
none
;
float
:
none
;
width
:
204px
;
width
:
204px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span4
{
.table
td
.span4
,
.table
th
.span4
{
float
:
none
;
float
:
none
;
width
:
284px
;
width
:
284px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span5
{
.table
td
.span5
,
.table
th
.span5
{
float
:
none
;
float
:
none
;
width
:
364px
;
width
:
364px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span6
{
.table
td
.span6
,
.table
th
.span6
{
float
:
none
;
float
:
none
;
width
:
444px
;
width
:
444px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span7
{
.table
td
.span7
,
.table
th
.span7
{
float
:
none
;
float
:
none
;
width
:
524px
;
width
:
524px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span8
{
.table
td
.span8
,
.table
th
.span8
{
float
:
none
;
float
:
none
;
width
:
604px
;
width
:
604px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span9
{
.table
td
.span9
,
.table
th
.span9
{
float
:
none
;
float
:
none
;
width
:
684px
;
width
:
684px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span10
{
.table
td
.span10
,
.table
th
.span10
{
float
:
none
;
float
:
none
;
width
:
764px
;
width
:
764px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span11
{
.table
td
.span11
,
.table
th
.span11
{
float
:
none
;
float
:
none
;
width
:
844px
;
width
:
844px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span12
{
.table
td
.span12
,
.table
th
.span12
{
float
:
none
;
float
:
none
;
width
:
924px
;
width
:
924px
;
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
.span13
{
float
:
none
;
width
:
1004px
;
margin-left
:
0
;
}
.table
.span14
{
float
:
none
;
width
:
1084px
;
margin-left
:
0
;
}
.table
.span15
{
float
:
none
;
width
:
1164px
;
margin-left
:
0
;
}
.table
.span16
{
float
:
none
;
width
:
1244px
;
margin-left
:
0
;
}
.table
.span17
{
float
:
none
;
width
:
1324px
;
margin-left
:
0
;
}
.table
.span18
{
float
:
none
;
width
:
1404px
;
margin-left
:
0
;
}
.table
.span19
{
float
:
none
;
width
:
1484px
;
margin-left
:
0
;
}
.table
.span20
{
float
:
none
;
width
:
1564px
;
margin-left
:
0
;
}
.table
.span21
{
float
:
none
;
width
:
1644px
;
margin-left
:
0
;
}
.table
.span22
{
float
:
none
;
width
:
1724px
;
margin-left
:
0
;
}
.table
.span23
{
float
:
none
;
width
:
1804px
;
margin-left
:
0
;
}
.table
.span24
{
float
:
none
;
width
:
1884px
;
margin-left
:
0
;
}
.table
tbody
tr
.success
td
{
.table
tbody
tr
.success
td
{
background-color
:
#dff0d8
;
background-color
:
#dff0d8
;
}
}
...
...
less/tables.less
View file @
f8ac403d
...
@@ -180,31 +180,20 @@ table [class*=span],
...
@@ -180,31 +180,20 @@ table [class*=span],
}
}
// Change the column widths to account for td/th padding
// Change the column widths to account for td/th padding
.table {
.table td,
.span1 { .tableColumns(1); }
.table th {
.span2 { .tableColumns(2); }
&.span1 { .tableColumns(1); }
.span3 { .tableColumns(3); }
&.span2 { .tableColumns(2); }
.span4 { .tableColumns(4); }
&.span3 { .tableColumns(3); }
.span5 { .tableColumns(5); }
&.span4 { .tableColumns(4); }
.span6 { .tableColumns(6); }
&.span5 { .tableColumns(5); }
.span7 { .tableColumns(7); }
&.span6 { .tableColumns(6); }
.span8 { .tableColumns(8); }
&.span7 { .tableColumns(7); }
.span9 { .tableColumns(9); }
&.span8 { .tableColumns(8); }
.span10 { .tableColumns(10); }
&.span9 { .tableColumns(9); }
.span11 { .tableColumns(11); }
&.span10 { .tableColumns(10); }
.span12 { .tableColumns(12); }
&.span11 { .tableColumns(11); }
.span13 { .tableColumns(13); }
&.span12 { .tableColumns(12); }
.span14 { .tableColumns(14); }
.span15 { .tableColumns(15); }
.span16 { .tableColumns(16); }
.span17 { .tableColumns(17); }
.span18 { .tableColumns(18); }
.span19 { .tableColumns(19); }
.span20 { .tableColumns(20); }
.span21 { .tableColumns(21); }
.span22 { .tableColumns(22); }
.span23 { .tableColumns(23); }
.span24 { .tableColumns(24); }
}
}
...
...
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