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
d7c93fc6
Commit
d7c93fc6
authored
Jan 11, 2013
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #6478: scope table backgrounds to immediate td/th elements
parent
53f9e251
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
20 deletions
+20
-20
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+10
-10
less/tables.less
less/tables.less
+10
-10
No files found.
docs/assets/css/bootstrap.css
View file @
d7c93fc6
...
@@ -2115,8 +2115,8 @@ table {
...
@@ -2115,8 +2115,8 @@ table {
background-color
:
#f9f9f9
;
background-color
:
#f9f9f9
;
}
}
.table-hover
tbody
tr
:hover
td
,
.table-hover
tbody
tr
:hover
>
td
,
.table-hover
tbody
tr
:hover
th
{
.table-hover
tbody
tr
:hover
>
th
{
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
}
}
...
@@ -2213,35 +2213,35 @@ table th[class*="span"],
...
@@ -2213,35 +2213,35 @@ table th[class*="span"],
margin-left
:
0
;
margin-left
:
0
;
}
}
.table
tbody
tr
.success
td
{
.table
tbody
tr
.success
>
td
{
background-color
:
#dff0d8
;
background-color
:
#dff0d8
;
}
}
.table
tbody
tr
.error
td
{
.table
tbody
tr
.error
>
td
{
background-color
:
#f2dede
;
background-color
:
#f2dede
;
}
}
.table
tbody
tr
.warning
td
{
.table
tbody
tr
.warning
>
td
{
background-color
:
#fcf8e3
;
background-color
:
#fcf8e3
;
}
}
.table
tbody
tr
.info
td
{
.table
tbody
tr
.info
>
td
{
background-color
:
#d9edf7
;
background-color
:
#d9edf7
;
}
}
.table-hover
tbody
tr
.success
:hover
td
{
.table-hover
tbody
tr
.success
:hover
>
td
{
background-color
:
#d0e9c6
;
background-color
:
#d0e9c6
;
}
}
.table-hover
tbody
tr
.error
:hover
td
{
.table-hover
tbody
tr
.error
:hover
>
td
{
background-color
:
#ebcccc
;
background-color
:
#ebcccc
;
}
}
.table-hover
tbody
tr
.warning
:hover
td
{
.table-hover
tbody
tr
.warning
:hover
>
td
{
background-color
:
#faf2cc
;
background-color
:
#faf2cc
;
}
}
.table-hover
tbody
tr
.info
:hover
td
{
.table-hover
tbody
tr
.info
:hover
>
td
{
background-color
:
#c4e3f3
;
background-color
:
#c4e3f3
;
}
}
...
...
less/tables.less
View file @
d7c93fc6
...
@@ -161,8 +161,8 @@ table {
...
@@ -161,8 +161,8 @@ table {
// 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 {
.table-hover {
tbody {
tbody {
tr:hover td,
tr:hover
>
td,
tr:hover th {
tr:hover
>
th {
background-color: @tableBackgroundHover;
background-color: @tableBackgroundHover;
}
}
}
}
...
@@ -206,32 +206,32 @@ table th[class*="span"],
...
@@ -206,32 +206,32 @@ table th[class*="span"],
// Exact selectors below required to override .table-striped
// Exact selectors below required to override .table-striped
.table tbody tr {
.table tbody tr {
&.success td {
&.success
>
td {
background-color: @successBackground;
background-color: @successBackground;
}
}
&.error td {
&.error
>
td {
background-color: @errorBackground;
background-color: @errorBackground;
}
}
&.warning td {
&.warning
>
td {
background-color: @warningBackground;
background-color: @warningBackground;
}
}
&.info td {
&.info
>
td {
background-color: @infoBackground;
background-color: @infoBackground;
}
}
}
}
// Hover states for .table-hover
// Hover states for .table-hover
.table-hover tbody tr {
.table-hover tbody tr {
&.success:hover td {
&.success:hover
>
td {
background-color: darken(@successBackground, 5%);
background-color: darken(@successBackground, 5%);
}
}
&.error:hover td {
&.error:hover
>
td {
background-color: darken(@errorBackground, 5%);
background-color: darken(@errorBackground, 5%);
}
}
&.warning:hover td {
&.warning:hover
>
td {
background-color: darken(@warningBackground, 5%);
background-color: darken(@warningBackground, 5%);
}
}
&.info:hover td {
&.info:hover
>
td {
background-color: darken(@infoBackground, 5%);
background-color: darken(@infoBackground, 5%);
}
}
}
}
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