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
96109d31
Commit
96109d31
authored
Nov 07, 2013
by
Zlatan Vasović
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify table state styles
parent
463343af
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
93 deletions
+70
-93
dist/css/bootstrap.css
dist/css/bootstrap.css
+51
-60
dist/css/bootstrap.min.css
dist/css/bootstrap.min.css
+1
-1
less/mixins.less
less/mixins.less
+14
-14
less/tables.less
less/tables.less
+4
-18
No files found.
dist/css/bootstrap.css
View file @
96109d31
...
@@ -1716,84 +1716,75 @@ table th[class*="col-"] {
...
@@ -1716,84 +1716,75 @@ table th[class*="col-"] {
float
:
none
;
float
:
none
;
}
}
.table
>
thead
>
tr
>
td
.active
,
.table
>
thead
>
tr
>
.active
,
.table
>
tbody
>
tr
>
td
.active
,
.table
>
tbody
>
tr
>
.active
,
.table
>
tfoot
>
tr
>
td
.active
,
.table
>
tfoot
>
tr
>
.active
,
.table
>
thead
>
tr
>
th
.active
,
.table
>
thead
>
.active
>
td
,
.table
>
tbody
>
tr
>
th
.active
,
.table
>
tbody
>
.active
>
td
,
.table
>
tfoot
>
tr
>
th
.active
,
.table
>
tfoot
>
.active
>
td
,
.table
>
thead
>
tr
.active
>
td
,
.table
>
thead
>
.active
>
th
,
.table
>
tbody
>
tr
.active
>
td
,
.table
>
tbody
>
.active
>
th
,
.table
>
tfoot
>
tr
.active
>
td
,
.table
>
tfoot
>
.active
>
th
{
.table
>
thead
>
tr
.active
>
th
,
.table
>
tbody
>
tr
.active
>
th
,
.table
>
tfoot
>
tr
.active
>
th
{
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
}
}
.table
>
thead
>
tr
>
td
.success
,
.table-hover
>
tbody
>
tr
>
.active
:hover
,
.table
>
tbody
>
tr
>
td
.success
,
.table-hover
>
tbody
>
.active
:hover
>
td
,
.table
>
tfoot
>
tr
>
td
.success
,
.table-hover
>
tbody
>
.active
:hover
>
th
{
.table
>
thead
>
tr
>
th
.success
,
background-color
:
#e8e8e8
;
.table
>
tbody
>
tr
>
th
.success
,
}
.table
>
tfoot
>
tr
>
th
.success
,
.table
>
thead
>
tr
.success
>
td
,
.table
>
thead
>
tr
>
.success
,
.table
>
tbody
>
tr
.success
>
td
,
.table
>
tbody
>
tr
>
.success
,
.table
>
tfoot
>
tr
.success
>
td
,
.table
>
tfoot
>
tr
>
.success
,
.table
>
thead
>
tr
.success
>
th
,
.table
>
thead
>
.success
>
td
,
.table
>
tbody
>
tr
.success
>
th
,
.table
>
tbody
>
.success
>
td
,
.table
>
tfoot
>
tr
.success
>
th
{
.table
>
tfoot
>
.success
>
td
,
.table
>
thead
>
.success
>
th
,
.table
>
tbody
>
.success
>
th
,
.table
>
tfoot
>
.success
>
th
{
background-color
:
#dff0d8
;
background-color
:
#dff0d8
;
}
}
.table-hover
>
tbody
>
tr
>
td
.success
:hover
,
.table-hover
>
tbody
>
tr
>
.success
:hover
,
.table-hover
>
tbody
>
tr
>
th
.success
:hover
,
.table-hover
>
tbody
>
.success
:hover
>
td
,
.table-hover
>
tbody
>
tr
.success
:hover
>
td
,
.table-hover
>
tbody
>
.success
:hover
>
th
{
.table-hover
>
tbody
>
tr
.success
:hover
>
th
{
background-color
:
#d0e9c6
;
background-color
:
#d0e9c6
;
}
}
.table
>
thead
>
tr
>
td
.danger
,
.table
>
thead
>
tr
>
.danger
,
.table
>
tbody
>
tr
>
td
.danger
,
.table
>
tbody
>
tr
>
.danger
,
.table
>
tfoot
>
tr
>
td
.danger
,
.table
>
tfoot
>
tr
>
.danger
,
.table
>
thead
>
tr
>
th
.danger
,
.table
>
thead
>
.danger
>
td
,
.table
>
tbody
>
tr
>
th
.danger
,
.table
>
tbody
>
.danger
>
td
,
.table
>
tfoot
>
tr
>
th
.danger
,
.table
>
tfoot
>
.danger
>
td
,
.table
>
thead
>
tr
.danger
>
td
,
.table
>
thead
>
.danger
>
th
,
.table
>
tbody
>
tr
.danger
>
td
,
.table
>
tbody
>
.danger
>
th
,
.table
>
tfoot
>
tr
.danger
>
td
,
.table
>
tfoot
>
.danger
>
th
{
.table
>
thead
>
tr
.danger
>
th
,
.table
>
tbody
>
tr
.danger
>
th
,
.table
>
tfoot
>
tr
.danger
>
th
{
background-color
:
#f2dede
;
background-color
:
#f2dede
;
}
}
.table-hover
>
tbody
>
tr
>
td
.danger
:hover
,
.table-hover
>
tbody
>
tr
>
.danger
:hover
,
.table-hover
>
tbody
>
tr
>
th
.danger
:hover
,
.table-hover
>
tbody
>
.danger
:hover
>
td
,
.table-hover
>
tbody
>
tr
.danger
:hover
>
td
,
.table-hover
>
tbody
>
.danger
:hover
>
th
{
.table-hover
>
tbody
>
tr
.danger
:hover
>
th
{
background-color
:
#ebcccc
;
background-color
:
#ebcccc
;
}
}
.table
>
thead
>
tr
>
td
.warning
,
.table
>
thead
>
tr
>
.warning
,
.table
>
tbody
>
tr
>
td
.warning
,
.table
>
tbody
>
tr
>
.warning
,
.table
>
tfoot
>
tr
>
td
.warning
,
.table
>
tfoot
>
tr
>
.warning
,
.table
>
thead
>
tr
>
th
.warning
,
.table
>
thead
>
.warning
>
td
,
.table
>
tbody
>
tr
>
th
.warning
,
.table
>
tbody
>
.warning
>
td
,
.table
>
tfoot
>
tr
>
th
.warning
,
.table
>
tfoot
>
.warning
>
td
,
.table
>
thead
>
tr
.warning
>
td
,
.table
>
thead
>
.warning
>
th
,
.table
>
tbody
>
tr
.warning
>
td
,
.table
>
tbody
>
.warning
>
th
,
.table
>
tfoot
>
tr
.warning
>
td
,
.table
>
tfoot
>
.warning
>
th
{
.table
>
thead
>
tr
.warning
>
th
,
.table
>
tbody
>
tr
.warning
>
th
,
.table
>
tfoot
>
tr
.warning
>
th
{
background-color
:
#fcf8e3
;
background-color
:
#fcf8e3
;
}
}
.table-hover
>
tbody
>
tr
>
td
.warning
:hover
,
.table-hover
>
tbody
>
tr
>
.warning
:hover
,
.table-hover
>
tbody
>
tr
>
th
.warning
:hover
,
.table-hover
>
tbody
>
.warning
:hover
>
td
,
.table-hover
>
tbody
>
tr
.warning
:hover
>
td
,
.table-hover
>
tbody
>
.warning
:hover
>
th
{
.table-hover
>
tbody
>
tr
.warning
:hover
>
th
{
background-color
:
#faf2cc
;
background-color
:
#faf2cc
;
}
}
...
...
dist/css/bootstrap.min.css
View file @
96109d31
This source diff could not be displayed because it is too large. You can
view the blob
instead.
less/mixins.less
View file @
96109d31
...
@@ -430,27 +430,27 @@
...
@@ -430,27 +430,27 @@
// Tables
// Tables
// -------------------------
// -------------------------
.table-row-variant(@state; @background
; @border
) {
.table-row-variant(@state; @background) {
// Exact selectors below required to override `.table-striped` and prevent
// Exact selectors below required to override `.table-striped` and prevent
// inheritance to nested tables.
// inheritance to nested tables.
.table
> thead > tr,
.table
{
.table > tbody > tr
,
> thead
,
.table > tfoot > tr {
> tbody,
> t
d.@{state},
> t
foot {
> th
.@{state},
> tr >
.@{state},
&
.@{state} > td,
>
.@{state} > td,
&
.@{state} > th {
>
.@{state} > th {
background-color: @background;
background-color: @background;
}
}
}
}
}
// Hover states for `.table-hover`
// Hover states for `.table-hover`
// Note: this is not available for cells or rows within `thead` or `tfoot`.
// Note: this is not available for cells or rows within `thead` or `tfoot`.
.table-hover > tbody > tr {
.table-hover > tbody {
> td.@{state}:hover,
> tr > .@{state}:hover,
> th.@{state}:hover,
> .@{state}:hover > td,
&.@{state}:hover > td,
> .@{state}:hover > th {
&.@{state}:hover > th {
background-color: darken(@background, 5%);
background-color: darken(@background, 5%);
}
}
}
}
...
...
less/tables.less
View file @
96109d31
...
@@ -152,25 +152,11 @@ table {
...
@@ -152,25 +152,11 @@ table {
// Exact selectors below required to override `.table-striped` and prevent
// Exact selectors below required to override `.table-striped` and prevent
// inheritance to nested tables.
// inheritance to nested tables.
.table {
> thead,
> tbody,
> tfoot {
> tr {
> td.active,
> th.active,
&.active > td,
&.active > th {
background-color: @table-bg-active;
}
}
}
}
// Generate the contextual variants
// Generate the contextual variants
.table-row-variant(success; @state-success-bg; @state-success-border);
.table-row-variant(active; @table-bg-active);
.table-row-variant(danger; @state-danger-bg; @state-danger-border);
.table-row-variant(success; @state-success-bg);
.table-row-variant(warning; @state-warning-bg; @state-warning-border);
.table-row-variant(danger; @state-danger-bg);
.table-row-variant(warning; @state-warning-bg);
// Responsive tables
// Responsive tables
...
...
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