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
798e64ce
Commit
798e64ce
authored
11 years ago
by
Chris Rebert
Browse files
Options
Download
Email Patches
Plain Diff
use nesting to make .table-striped & .table-hover mixin-able again; fixes
#11387
parent
3887f540
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dist/js/bootstrap.min.js
+1
-1
dist/js/bootstrap.min.js
less/tables.less
+12
-8
less/tables.less
with
13 additions
and
9 deletions
+13
-9
dist/js/bootstrap.min.js
+
1
-
1
View file @
798e64ce
This diff is collapsed.
Click to expand it.
less/tables.less
+
12
-
8
View file @
798e64ce
...
@@ -104,10 +104,12 @@ th {
...
@@ -104,10 +104,12 @@ th {
//
//
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
.table-striped > tbody > tr:nth-child(odd) {
.table-striped {
> td,
> tbody > tr:nth-child(odd) {
> th {
> td,
background-color: @table-bg-accent;
> th {
background-color: @table-bg-accent;
}
}
}
}
}
...
@@ -116,10 +118,12 @@ th {
...
@@ -116,10 +118,12 @@ th {
//
//
// Placed here since it has to come after the potential zebra striping
// Placed here since it has to come after the potential zebra striping
.table-hover > tbody > tr:hover {
.table-hover {
> td,
> tbody > tr:hover {
> th {
> td,
background-color: @table-bg-hover;
> th {
background-color: @table-bg-hover;
}
}
}
}
}
...
...
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